1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2017 Linaro
5 * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
7 * Configuration for Poplar 96boards CE. Parts were derived from other ARM
14 #include <linux/sizes.h>
19 #define CONFIG_SYS_BOOTM_LEN SZ_64M
20 #define CONFIG_SYS_INIT_SP_ADDR 0x200000
21 #define CONFIG_SYS_LOAD_ADDR 0x800000
22 #define CONFIG_SYS_MALLOC_LEN SZ_32M
24 /* ATF bl33.bin load address (must match) */
26 /* USB configuration */
27 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
29 /*****************************************************************************
30 * Initial environment variables
31 *****************************************************************************/
33 #define BOOT_TARGET_DEVICES(func) \
37 #ifndef CONFIG_SPL_BUILD
38 #include <config_distro_bootcmd.h>
41 #define CONFIG_EXTRA_ENV_SETTINGS \
42 "loader_mmc_blknum=0x0\0" \
43 "loader_mmc_nblks=0x780\0" \
44 "env_mmc_blknum=0xf80\0" \
45 "env_mmc_nblks=0x80\0" \
46 "kernel_addr_r=0x30000000\0" \
47 "pxefile_addr_r=0x32000000\0" \
48 "scriptaddr=0x32000000\0" \
49 "fdt_addr_r=0x32200000\0" \
50 "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0" \
51 "ramdisk_addr_r=0x32400000\0" \
55 /* Command line configuration */
56 #define CONFIG_SYS_MMC_ENV_DEV 0
57 #define CONFIG_ENV_OFFSET (0xf80 * 512) /* env_mmc_blknum bytes */
58 #define CONFIG_ENV_SIZE (0x80 * 512) /* env_mmc_nblks bytes */
60 /* Monitor Command Prompt */
61 #define CONFIG_SYS_CBSIZE 512
62 #define CONFIG_SYS_MAXARGS 64
64 #endif /* _POPLAR_H_ */