Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h
[platform/kernel/u-boot.git] / include / configs / poplar.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
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.
9  */
10
11 #ifndef _POPLAR_H_
12 #define _POPLAR_H_
13
14 #include <linux/sizes.h>
15
16 /* DRAM banks */
17
18 /* SYS */
19 #define CONFIG_SYS_BOOTM_LEN                    SZ_64M
20
21 /* ATF bl33.bin load address (must match) */
22
23 /* USB configuration */
24 #define CONFIG_USB_MAX_CONTROLLER_COUNT         2
25
26 /*****************************************************************************
27  *  Initial environment variables
28  *****************************************************************************/
29
30 #define BOOT_TARGET_DEVICES(func)                                       \
31                                         func(USB, usb, 0)               \
32                                         func(MMC, mmc, 0)               \
33                                         func(DHCP, dhcp, na)
34 #ifndef CONFIG_SPL_BUILD
35 #include <config_distro_bootcmd.h>
36 #endif
37
38 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
39                         "loader_mmc_blknum=0x0\0"                       \
40                         "loader_mmc_nblks=0x780\0"                      \
41                         "env_mmc_blknum=0xf80\0"                        \
42                         "env_mmc_nblks=0x80\0"                          \
43                         "kernel_addr_r=0x30000000\0"                    \
44                         "pxefile_addr_r=0x32000000\0"                   \
45                         "scriptaddr=0x32000000\0"                       \
46                         "fdt_addr_r=0x32200000\0"                       \
47                         "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0"    \
48                         "ramdisk_addr_r=0x32400000\0"                   \
49                         BOOTENV
50
51 #endif /* _POPLAR_H_ */