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 #define CONFIG_NR_DRAM_BANKS 2 18 19 /* SYS */ 20 #define CONFIG_SYS_BOOTM_LEN SZ_64M 21 #define CONFIG_SYS_INIT_SP_ADDR 0x200000 22 #define CONFIG_SYS_LOAD_ADDR 0x800000 23 #define CONFIG_SYS_MALLOC_LEN SZ_32M 24 25 /* ATF bl33.bin load address (must match) */ 26 27 /* USB configuration */ 28 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 29 30 /* SD/MMC */ 31 #define CONFIG_BOUNCE_BUFFER 32 33 /***************************************************************************** 34 * Initial environment variables 35 *****************************************************************************/ 36 37 #define BOOT_TARGET_DEVICES(func) \ 38 func(USB, usb, 0) \ 39 func(MMC, mmc, 0) \ 40 func(DHCP, dhcp, na) 41 #ifndef CONFIG_SPL_BUILD 42 #include <config_distro_bootcmd.h> 43 #endif 44 45 #define CONFIG_EXTRA_ENV_SETTINGS \ 46 "loader_mmc_blknum=0x0\0" \ 47 "loader_mmc_nblks=0x780\0" \ 48 "env_mmc_blknum=0x780\0" \ 49 "env_mmc_nblks=0x80\0" \ 50 "kernel_addr_r=0x30000000\0" \ 51 "pxefile_addr_r=0x32000000\0" \ 52 "scriptaddr=0x32000000\0" \ 53 "fdt_addr_r=0x32200000\0" \ 54 "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0" \ 55 "ramdisk_addr_r=0x32400000\0" \ 56 BOOTENV 57 58 59 /* Command line configuration */ 60 #define CONFIG_SYS_MMC_ENV_DEV 0 61 #define CONFIG_ENV_OFFSET (0x780 * 512) /* env_mmc_blknum */ 62 #define CONFIG_ENV_SIZE 0x10000 /* env_mmc_nblks bytes */ 63 64 /* Monitor Command Prompt */ 65 #define CONFIG_SYS_CBSIZE 512 66 #define CONFIG_SYS_MAXARGS 64 67 68 #endif /* _POPLAR_H_ */ 69