xref: /openbmc/u-boot/include/configs/dragonboard820c.h (revision 4b684a6b82572654b7398d871aa138398c2b18c7)
1 /*
2  * Board configuration file for Dragonboard 410C
3  *
4  * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
7  */
8 
9 #ifndef __CONFIGS_DRAGONBOARD820C_H
10 #define __CONFIGS_DRAGONBOARD820C_H
11 
12 #include <linux/sizes.h>
13 #include <asm/arch/sysmap-apq8096.h>
14 
15 /* Physical Memory Map */
16 #define CONFIG_NR_DRAM_BANKS		2
17 
18 #define PHYS_SDRAM_SIZE			0xC0000000
19 #define PHYS_SDRAM_1			0x80000000
20 #define PHYS_SDRAM_1_SIZE		0x60000000
21 #define PHYS_SDRAM_2			0x100000000
22 #define PHYS_SDRAM_2_SIZE		0x5ea4ffff
23 
24 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
25 #define CONFIG_SYS_TEXT_BASE		0x80080000
26 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x7fff0)
27 #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x80000)
28 #define CONFIG_SYS_BOOTM_LEN		SZ_64M
29 #define CONFIG_SYS_LDSCRIPT	"board/qualcomm/dragonboard820c/u-boot.lds"
30 
31 /* Generic Timer Definitions */
32 #define COUNTER_FREQUENCY		19000000
33 
34 /* Partition table support */
35 #define HAVE_BLOCK_DEVICE
36 
37 /* BOOTP options */
38 #define CONFIG_BOOTP_BOOTFILESIZE
39 
40 #ifndef CONFIG_SPL_BUILD
41 #include <config_distro_defaults.h>
42 #include <config_distro_bootcmd.h>
43 #endif
44 
45 #define BOOT_TARGET_DEVICES(func) \
46 	func(MMC, mmc, 0)
47 
48 #define CONFIG_EXTRA_ENV_SETTINGS \
49 	"loadaddr=0x95000000\0" \
50 	"fdt_high=0xffffffffffffffff\0" \
51 	"initrd_high=0xffffffffffffffff\0" \
52 	"linux_image=uImage\0" \
53 	"kernel_addr_r=0x95000000\0"\
54 	"fdtfile=qcom/apq8096-db820c.dtb\0" \
55 	"fdt_addr_r=0x93000000\0"\
56 	"ramdisk_addr_r=0x91000000\0"\
57 	"scriptaddr=0x90000000\0"\
58 	"pxefile_addr_r=0x90100000\0"\
59 	BOOTENV
60 
61 #define CONFIG_EXT4_WRITE
62 #define CONFIG_ENV_SIZE			0x4000
63 #define CONFIG_ENV_VARS_UBOOT_CONFIG
64 
65 /* Size of malloc() pool */
66 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + SZ_8M)
67 
68 /* Monitor Command Prompt */
69 #define CONFIG_SYS_CBSIZE		512
70 #define CONFIG_SYS_MAXARGS		64
71 
72 #endif
73