Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 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. |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _POPLAR_H_ |
| 12 | #define _POPLAR_H_ |
| 13 | |
| 14 | #include <linux/sizes.h> |
| 15 | |
| 16 | /* DRAM banks */ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 17 | |
| 18 | /* SYS */ |
Jorge Ramirez-Ortiz | 42091fa | 2018-01-10 11:33:29 +0100 | [diff] [blame] | 19 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 20 | #define CONFIG_SYS_INIT_SP_ADDR 0x200000 |
| 21 | #define CONFIG_SYS_LOAD_ADDR 0x800000 |
| 22 | #define CONFIG_SYS_MALLOC_LEN SZ_32M |
| 23 | |
| 24 | /* ATF bl33.bin load address (must match) */ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 25 | |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 26 | /* USB configuration */ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 27 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 28 | |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 29 | /***************************************************************************** |
| 30 | * Initial environment variables |
| 31 | *****************************************************************************/ |
| 32 | |
| 33 | #define BOOT_TARGET_DEVICES(func) \ |
| 34 | func(USB, usb, 0) \ |
| 35 | func(MMC, mmc, 0) \ |
| 36 | func(DHCP, dhcp, na) |
| 37 | #ifndef CONFIG_SPL_BUILD |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 38 | #include <config_distro_bootcmd.h> |
| 39 | #endif |
| 40 | |
| 41 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 42 | "loader_mmc_blknum=0x0\0" \ |
| 43 | "loader_mmc_nblks=0x780\0" \ |
Alex Elder | cdee91a | 2018-12-18 11:08:18 +0800 | [diff] [blame] | 44 | "env_mmc_blknum=0xf80\0" \ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 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" \ |
| 52 | BOOTENV |
| 53 | |
| 54 | |
| 55 | /* Command line configuration */ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 56 | #define CONFIG_SYS_MMC_ENV_DEV 0 |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 57 | |
| 58 | /* Monitor Command Prompt */ |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 59 | #define CONFIG_SYS_CBSIZE 512 |
| 60 | #define CONFIG_SYS_MAXARGS 64 |
Jorge Ramirez-Ortiz | d754254 | 2017-06-26 15:52:49 +0200 | [diff] [blame] | 61 | |
| 62 | #endif /* _POPLAR_H_ */ |