Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Board configuration file for Dragonboard 410C |
| 4 | * |
| 5 | * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 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 | |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 14 | /* Physical Memory Map */ |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 15 | |
| 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-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 23 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0) |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 24 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 25 | |
| 26 | /* Generic Timer Definitions */ |
| 27 | #define COUNTER_FREQUENCY 19000000 |
| 28 | |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 29 | /* BOOTP options */ |
| 30 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 31 | |
| 32 | #ifndef CONFIG_SPL_BUILD |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 33 | #include <config_distro_bootcmd.h> |
| 34 | #endif |
| 35 | |
| 36 | #define BOOT_TARGET_DEVICES(func) \ |
| 37 | func(MMC, mmc, 0) |
| 38 | |
| 39 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 40 | "loadaddr=0x95000000\0" \ |
| 41 | "fdt_high=0xffffffffffffffff\0" \ |
| 42 | "initrd_high=0xffffffffffffffff\0" \ |
| 43 | "linux_image=uImage\0" \ |
| 44 | "kernel_addr_r=0x95000000\0"\ |
| 45 | "fdtfile=qcom/apq8096-db820c.dtb\0" \ |
| 46 | "fdt_addr_r=0x93000000\0"\ |
| 47 | "ramdisk_addr_r=0x91000000\0"\ |
| 48 | "scriptaddr=0x90000000\0"\ |
| 49 | "pxefile_addr_r=0x90100000\0"\ |
| 50 | BOOTENV |
| 51 | |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 52 | /* Monitor Command Prompt */ |
| 53 | #define CONFIG_SYS_CBSIZE 512 |
| 54 | #define CONFIG_SYS_MAXARGS 64 |
| 55 | |
| 56 | #endif |