blob: 222a14bc8f8e5def95f33864c32f3c4788a1dc90 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +02002/*
3 * (C) Copyright 2017 Linaro
4 *
5 * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
6 *
7 * Configuration for Poplar 96boards CE. Parts were derived from other ARM
8 * configurations.
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +02009 */
10
11#ifndef _POPLAR_H_
12#define _POPLAR_H_
13
14#include <linux/sizes.h>
15
16/* DRAM banks */
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020017
18/* SYS */
Jorge Ramirez-Ortiz08e770f2018-01-10 11:33:29 +010019#define CONFIG_SYS_BOOTM_LEN SZ_64M
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020020#define CONFIG_SYS_INIT_SP_ADDR 0x200000
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020021
22/* ATF bl33.bin load address (must match) */
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020023
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020024/* USB configuration */
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020025#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020026
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020027/*****************************************************************************
28 * Initial environment variables
29 *****************************************************************************/
30
31#define BOOT_TARGET_DEVICES(func) \
32 func(USB, usb, 0) \
33 func(MMC, mmc, 0) \
34 func(DHCP, dhcp, na)
35#ifndef CONFIG_SPL_BUILD
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020036#include <config_distro_bootcmd.h>
37#endif
38
39#define CONFIG_EXTRA_ENV_SETTINGS \
40 "loader_mmc_blknum=0x0\0" \
41 "loader_mmc_nblks=0x780\0" \
Alex Elder31218522018-12-18 11:08:18 +080042 "env_mmc_blknum=0xf80\0" \
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020043 "env_mmc_nblks=0x80\0" \
44 "kernel_addr_r=0x30000000\0" \
45 "pxefile_addr_r=0x32000000\0" \
46 "scriptaddr=0x32000000\0" \
47 "fdt_addr_r=0x32200000\0" \
48 "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0" \
49 "ramdisk_addr_r=0x32400000\0" \
50 BOOTENV
51
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020052/* Monitor Command Prompt */
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020053#define CONFIG_SYS_CBSIZE 512
54#define CONFIG_SYS_MAXARGS 64
Jorge Ramirez-Ortizf5b38422017-06-26 15:52:49 +020055
56#endif /* _POPLAR_H_ */