1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Board configuration file for Dragonboard 410C
5 * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
8 #ifndef __CONFIGS_DRAGONBOARD820C_H
9 #define __CONFIGS_DRAGONBOARD820C_H
11 #include <linux/sizes.h>
12 #include <asm/arch/sysmap-apq8096.h>
14 /* Physical Memory Map */
16 #define PHYS_SDRAM_SIZE 0xC0000000
17 #define PHYS_SDRAM_1 0x80000000
18 #define PHYS_SDRAM_1_SIZE 0x60000000
19 #define PHYS_SDRAM_2 0x100000000
20 #define PHYS_SDRAM_2_SIZE 0x5ea4ffff
22 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
23 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
24 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x80000)
25 #define CONFIG_SYS_BOOTM_LEN SZ_64M
27 /* Generic Timer Definitions */
28 #define COUNTER_FREQUENCY 19000000
31 #define CONFIG_BOOTP_BOOTFILESIZE
33 #ifndef CONFIG_SPL_BUILD
34 #include <config_distro_bootcmd.h>
37 #define BOOT_TARGET_DEVICES(func) \
40 #define CONFIG_EXTRA_ENV_SETTINGS \
41 "loadaddr=0x95000000\0" \
42 "fdt_high=0xffffffffffffffff\0" \
43 "initrd_high=0xffffffffffffffff\0" \
44 "linux_image=uImage\0" \
45 "kernel_addr_r=0x95000000\0"\
46 "fdtfile=qcom/apq8096-db820c.dtb\0" \
47 "fdt_addr_r=0x93000000\0"\
48 "ramdisk_addr_r=0x91000000\0"\
49 "scriptaddr=0x90000000\0"\
50 "pxefile_addr_r=0x90100000\0"\
53 #define CONFIG_ENV_SIZE 0x4000
55 /* Size of malloc() pool */
56 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
58 /* Monitor Command Prompt */
59 #define CONFIG_SYS_CBSIZE 512
60 #define CONFIG_SYS_MAXARGS 64