blob: e3940dc3217ca5fa19f14480a710fe5f3226ded4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jorge Ramirez-Ortiz9f2d1b22018-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-Ortiz9f2d1b22018-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-Ortiz9f2d1b22018-01-10 11:33:50 +010014/* Physical Memory Map */
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010015
16#define PHYS_SDRAM_SIZE 0xC0000000
17#define PHYS_SDRAM_1 0x80000000
18#define PHYS_SDRAM_1_SIZE 0x60000000
19#define PHYS_SDRAM_2 0x100000000
20#define PHYS_SDRAM_2_SIZE 0x5ea4ffff
21
22#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010023#define CONFIG_SYS_BOOTM_LEN SZ_64M
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010024
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010025#ifndef CONFIG_SPL_BUILD
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010026#include <config_distro_bootcmd.h>
27#endif
28
29#define BOOT_TARGET_DEVICES(func) \
30 func(MMC, mmc, 0)
31
32#define CONFIG_EXTRA_ENV_SETTINGS \
33 "loadaddr=0x95000000\0" \
34 "fdt_high=0xffffffffffffffff\0" \
35 "initrd_high=0xffffffffffffffff\0" \
36 "linux_image=uImage\0" \
37 "kernel_addr_r=0x95000000\0"\
38 "fdtfile=qcom/apq8096-db820c.dtb\0" \
39 "fdt_addr_r=0x93000000\0"\
40 "ramdisk_addr_r=0x91000000\0"\
41 "scriptaddr=0x90000000\0"\
42 "pxefile_addr_r=0x90100000\0"\
43 BOOTENV
44
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +010045#endif