blob: 12ae6bc8843ff069fcbe0ee081b30a8304c88362 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +01002/*
3 * Board configuration file for Dragonboard 410C
4 *
5 * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +01006 */
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
Jorge Ramirez-Ortiz100fb0b2018-01-10 11:33:52 +010014#define CONFIG_MISC_INIT_R /* To stop autoboot */
15
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +010016/* Physical Memory Map */
17#define CONFIG_NR_DRAM_BANKS 2
18
19#define PHYS_SDRAM_SIZE 0xC0000000
20#define PHYS_SDRAM_1 0x80000000
21#define PHYS_SDRAM_1_SIZE 0x60000000
22#define PHYS_SDRAM_2 0x100000000
23#define PHYS_SDRAM_2_SIZE 0x5ea4ffff
24
25#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +010026#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
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +010034/* BOOTP options */
35#define CONFIG_BOOTP_BOOTFILESIZE
36
37#ifndef CONFIG_SPL_BUILD
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +010038#include <config_distro_bootcmd.h>
39#endif
40
41#define BOOT_TARGET_DEVICES(func) \
42 func(MMC, mmc, 0)
43
44#define CONFIG_EXTRA_ENV_SETTINGS \
45 "loadaddr=0x95000000\0" \
46 "fdt_high=0xffffffffffffffff\0" \
47 "initrd_high=0xffffffffffffffff\0" \
48 "linux_image=uImage\0" \
49 "kernel_addr_r=0x95000000\0"\
50 "fdtfile=qcom/apq8096-db820c.dtb\0" \
51 "fdt_addr_r=0x93000000\0"\
52 "ramdisk_addr_r=0x91000000\0"\
53 "scriptaddr=0x90000000\0"\
54 "pxefile_addr_r=0x90100000\0"\
55 BOOTENV
56
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +010057#define CONFIG_ENV_SIZE 0x4000
Jorge Ramirez-Ortiz4b684a62018-01-10 11:33:50 +010058
59/* Size of malloc() pool */
60#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
61
62/* Monitor Command Prompt */
63#define CONFIG_SYS_CBSIZE 512
64#define CONFIG_SYS_MAXARGS 64
65
66#endif