blob: e28a956e92001795e31f0b04cf8f37387f3c2286 [file] [log] [blame]
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +01001/*
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
Jorge Ramirez-Ortizc8833d32018-01-10 11:33:52 +010015#define CONFIG_MISC_INIT_R /* To stop autoboot */
16
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010017/* 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_TEXT_BASE 0x80080000
28#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
29#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x80000)
30#define CONFIG_SYS_BOOTM_LEN SZ_64M
31#define CONFIG_SYS_LDSCRIPT "board/qualcomm/dragonboard820c/u-boot.lds"
32
33/* Generic Timer Definitions */
34#define COUNTER_FREQUENCY 19000000
35
36/* Partition table support */
37#define HAVE_BLOCK_DEVICE
38
39/* BOOTP options */
40#define CONFIG_BOOTP_BOOTFILESIZE
41
42#ifndef CONFIG_SPL_BUILD
43#include <config_distro_defaults.h>
44#include <config_distro_bootcmd.h>
45#endif
46
47#define BOOT_TARGET_DEVICES(func) \
48 func(MMC, mmc, 0)
49
50#define CONFIG_EXTRA_ENV_SETTINGS \
51 "loadaddr=0x95000000\0" \
52 "fdt_high=0xffffffffffffffff\0" \
53 "initrd_high=0xffffffffffffffff\0" \
54 "linux_image=uImage\0" \
55 "kernel_addr_r=0x95000000\0"\
56 "fdtfile=qcom/apq8096-db820c.dtb\0" \
57 "fdt_addr_r=0x93000000\0"\
58 "ramdisk_addr_r=0x91000000\0"\
59 "scriptaddr=0x90000000\0"\
60 "pxefile_addr_r=0x90100000\0"\
61 BOOTENV
62
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010063#define CONFIG_ENV_SIZE 0x4000
64#define CONFIG_ENV_VARS_UBOOT_CONFIG
65
66/* Size of malloc() pool */
67#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
68
69/* Monitor Command Prompt */
70#define CONFIG_SYS_CBSIZE 512
71#define CONFIG_SYS_MAXARGS 64
72
73#endif