]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/dragonboard820c.h
mmc: omap_hsmmc: use a default 52MHz max clock rate if none is specified
[people/ms/u-boot.git] / include / configs / dragonboard820c.h
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 #define CONFIG_MISC_INIT_R /* To stop autoboot */
16
17 /* Physical Memory Map */
18 #define CONFIG_NR_DRAM_BANKS 2
19
20 #define PHYS_SDRAM_SIZE 0xC0000000
21 #define PHYS_SDRAM_1 0x80000000
22 #define PHYS_SDRAM_1_SIZE 0x60000000
23 #define PHYS_SDRAM_2 0x100000000
24 #define PHYS_SDRAM_2_SIZE 0x5ea4ffff
25
26 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
27 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
28 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x80000)
29 #define CONFIG_SYS_BOOTM_LEN SZ_64M
30 #define CONFIG_SYS_LDSCRIPT "board/qualcomm/dragonboard820c/u-boot.lds"
31
32 /* Generic Timer Definitions */
33 #define COUNTER_FREQUENCY 19000000
34
35 /* BOOTP options */
36 #define CONFIG_BOOTP_BOOTFILESIZE
37
38 #ifndef CONFIG_SPL_BUILD
39 #include <config_distro_defaults.h>
40 #include <config_distro_bootcmd.h>
41 #endif
42
43 #define BOOT_TARGET_DEVICES(func) \
44 func(MMC, mmc, 0)
45
46 #define CONFIG_EXTRA_ENV_SETTINGS \
47 "loadaddr=0x95000000\0" \
48 "fdt_high=0xffffffffffffffff\0" \
49 "initrd_high=0xffffffffffffffff\0" \
50 "linux_image=uImage\0" \
51 "kernel_addr_r=0x95000000\0"\
52 "fdtfile=qcom/apq8096-db820c.dtb\0" \
53 "fdt_addr_r=0x93000000\0"\
54 "ramdisk_addr_r=0x91000000\0"\
55 "scriptaddr=0x90000000\0"\
56 "pxefile_addr_r=0x90100000\0"\
57 BOOTENV
58
59 #define CONFIG_ENV_SIZE 0x4000
60 #define CONFIG_ENV_VARS_UBOOT_CONFIG
61
62 /* Size of malloc() pool */
63 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
64
65 /* Monitor Command Prompt */
66 #define CONFIG_SYS_CBSIZE 512
67 #define CONFIG_SYS_MAXARGS 64
68
69 #endif