blob: 0a126002d7f95fbe4326c255337b4722f644e600 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +02002/*
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-Ortizd7542542017-06-26 15:52:49 +02009 */
10
11#ifndef _POPLAR_H_
12#define _POPLAR_H_
13
14#include <linux/sizes.h>
15
16/* DRAM banks */
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020017
18/* SYS */
Jorge Ramirez-Ortiz42091fa2018-01-10 11:33:29 +010019#define CONFIG_SYS_BOOTM_LEN SZ_64M
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020020#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-Ortizd7542542017-06-26 15:52:49 +020025
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020026/* USB configuration */
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020027#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020028
29/* SD/MMC */
30#define CONFIG_BOUNCE_BUFFER
31
32/*****************************************************************************
33 * Initial environment variables
34 *****************************************************************************/
35
36#define BOOT_TARGET_DEVICES(func) \
37 func(USB, usb, 0) \
38 func(MMC, mmc, 0) \
39 func(DHCP, dhcp, na)
40#ifndef CONFIG_SPL_BUILD
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020041#include <config_distro_bootcmd.h>
42#endif
43
44#define CONFIG_EXTRA_ENV_SETTINGS \
45 "loader_mmc_blknum=0x0\0" \
46 "loader_mmc_nblks=0x780\0" \
47 "env_mmc_blknum=0x780\0" \
48 "env_mmc_nblks=0x80\0" \
49 "kernel_addr_r=0x30000000\0" \
50 "pxefile_addr_r=0x32000000\0" \
51 "scriptaddr=0x32000000\0" \
52 "fdt_addr_r=0x32200000\0" \
53 "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0" \
54 "ramdisk_addr_r=0x32400000\0" \
55 BOOTENV
56
57
58/* Command line configuration */
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020059#define CONFIG_SYS_MMC_ENV_DEV 0
60#define CONFIG_ENV_OFFSET (0x780 * 512) /* env_mmc_blknum */
61#define CONFIG_ENV_SIZE 0x10000 /* env_mmc_nblks bytes */
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020062
63/* Monitor Command Prompt */
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020064#define CONFIG_SYS_CBSIZE 512
65#define CONFIG_SYS_MAXARGS 64
Jorge Ramirez-Ortizd7542542017-06-26 15:52:49 +020066
67#endif /* _POPLAR_H_ */