Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2017 Linaro |
| 3 | * |
| 4 | * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> |
| 5 | * |
| 6 | * Configuration for Poplar 96boards CE. Parts were derived from other ARM |
| 7 | * configurations. |
| 8 | * |
| 9 | * SPDX-License-Identifier: GPL-2.0+ |
| 10 | */ |
| 11 | |
| 12 | #ifndef _POPLAR_H_ |
| 13 | #define _POPLAR_H_ |
| 14 | |
| 15 | #include <linux/sizes.h> |
| 16 | |
| 17 | /* DRAM banks */ |
| 18 | #define CONFIG_NR_DRAM_BANKS 2 |
| 19 | |
| 20 | /* SYS */ |
Jorge Ramirez-Ortiz | 08e770f | 2018-01-10 11:33:29 +0100 | [diff] [blame] | 21 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 22 | #define CONFIG_SYS_INIT_SP_ADDR 0x200000 |
| 23 | #define CONFIG_SYS_LOAD_ADDR 0x800000 |
| 24 | #define CONFIG_SYS_MALLOC_LEN SZ_32M |
| 25 | |
| 26 | /* ATF bl33.bin load address (must match) */ |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 27 | |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 28 | /* USB configuration */ |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 29 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 30 | |
| 31 | /* SD/MMC */ |
| 32 | #define CONFIG_BOUNCE_BUFFER |
| 33 | |
| 34 | /***************************************************************************** |
| 35 | * Initial environment variables |
| 36 | *****************************************************************************/ |
| 37 | |
| 38 | #define BOOT_TARGET_DEVICES(func) \ |
| 39 | func(USB, usb, 0) \ |
| 40 | func(MMC, mmc, 0) \ |
| 41 | func(DHCP, dhcp, na) |
| 42 | #ifndef CONFIG_SPL_BUILD |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 43 | #include <config_distro_bootcmd.h> |
| 44 | #endif |
| 45 | |
| 46 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 47 | "loader_mmc_blknum=0x0\0" \ |
| 48 | "loader_mmc_nblks=0x780\0" \ |
| 49 | "env_mmc_blknum=0x780\0" \ |
| 50 | "env_mmc_nblks=0x80\0" \ |
| 51 | "kernel_addr_r=0x30000000\0" \ |
| 52 | "pxefile_addr_r=0x32000000\0" \ |
| 53 | "scriptaddr=0x32000000\0" \ |
| 54 | "fdt_addr_r=0x32200000\0" \ |
| 55 | "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0" \ |
| 56 | "ramdisk_addr_r=0x32400000\0" \ |
| 57 | BOOTENV |
| 58 | |
| 59 | |
| 60 | /* Command line configuration */ |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 61 | #define CONFIG_SYS_MMC_ENV_DEV 0 |
| 62 | #define CONFIG_ENV_OFFSET (0x780 * 512) /* env_mmc_blknum */ |
| 63 | #define CONFIG_ENV_SIZE 0x10000 /* env_mmc_nblks bytes */ |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 64 | |
| 65 | /* Monitor Command Prompt */ |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 66 | #define CONFIG_SYS_CBSIZE 512 |
| 67 | #define CONFIG_SYS_MAXARGS 64 |
Jorge Ramirez-Ortiz | f5b3842 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 68 | |
| 69 | #endif /* _POPLAR_H_ */ |