configs: Migrate CONFIG_NR_DRAM_BANKS
[platform/kernel/u-boot.git] / include / configs / dragonboard820c.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Board configuration file for Dragonboard 410C
4  *
5  * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
6  */
7
8 #ifndef __CONFIGS_DRAGONBOARD820C_H
9 #define __CONFIGS_DRAGONBOARD820C_H
10
11 #include <linux/sizes.h>
12 #include <asm/arch/sysmap-apq8096.h>
13
14 #define CONFIG_MISC_INIT_R /* To stop autoboot */
15
16 /* Physical Memory Map */
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_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
26 #define CONFIG_SYS_LOAD_ADDR            (CONFIG_SYS_SDRAM_BASE + 0x80000)
27 #define CONFIG_SYS_BOOTM_LEN            SZ_64M
28 #define CONFIG_SYS_LDSCRIPT     "board/qualcomm/dragonboard820c/u-boot.lds"
29
30 /* Generic Timer Definitions */
31 #define COUNTER_FREQUENCY               19000000
32
33 /* BOOTP options */
34 #define CONFIG_BOOTP_BOOTFILESIZE
35
36 #ifndef CONFIG_SPL_BUILD
37 #include <config_distro_bootcmd.h>
38 #endif
39
40 #define BOOT_TARGET_DEVICES(func) \
41         func(MMC, mmc, 0)
42
43 #define CONFIG_EXTRA_ENV_SETTINGS \
44         "loadaddr=0x95000000\0" \
45         "fdt_high=0xffffffffffffffff\0" \
46         "initrd_high=0xffffffffffffffff\0" \
47         "linux_image=uImage\0" \
48         "kernel_addr_r=0x95000000\0"\
49         "fdtfile=qcom/apq8096-db820c.dtb\0" \
50         "fdt_addr_r=0x93000000\0"\
51         "ramdisk_addr_r=0x91000000\0"\
52         "scriptaddr=0x90000000\0"\
53         "pxefile_addr_r=0x90100000\0"\
54         BOOTENV
55
56 #define CONFIG_ENV_SIZE                 0x4000
57
58 /* Size of malloc() pool */
59 #define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + SZ_8M)
60
61 /* Monitor Command Prompt */
62 #define CONFIG_SYS_CBSIZE               512
63 #define CONFIG_SYS_MAXARGS              64
64
65 #endif