blob: 822654351c0ccb94e1f6e6076d0d0cb8424b8f2a [file] [log] [blame]
Thomas Abrahamd23cb312016-04-23 22:18:13 +05301/*
2 * Configuration settings for the Espresso7420 board.
3 * Copyright (C) 2016 Samsung Electronics
4 * Thomas Abraham <thomas.ab@samsung.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#ifndef __CONFIG_EXYNOS7420_COMMON_H
10#define __CONFIG_EXYNOS7420_COMMON_H
11
12/* High Level Configuration Options */
13#define CONFIG_SAMSUNG /* in a SAMSUNG core */
14#define CONFIG_EXYNOS7420 /* Exynos7 Family */
15#define CONFIG_S5P
16
17#include <asm/arch/cpu.h> /* get chip and board defs */
18#include <linux/sizes.h>
19
20#define CONFIG_ARCH_CPU_INIT
Thomas Abrahamd23cb312016-04-23 22:18:13 +053021
22/* Size of malloc() pool before and after relocation */
23#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 << 20))
24
25/* Miscellaneous configurable options */
26#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
27#define CONFIG_SYS_PBSIZE 1024 /* Print Buffer Size */
28#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
29
30/* Boot Argument Buffer Size */
31#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
32
33/* select serial console configuration */
34#define CONFIG_BAUDRATE 115200
35
Thomas Abrahamd23cb312016-04-23 22:18:13 +053036/* Timer input clock frequency */
37#define COUNTER_FREQUENCY 24000000
38
39/* Device Tree */
40#define CONFIG_DEVICE_TREE_LIST "exynos7420-espresso7420"
41
42/* IRAM Layout */
43#define CONFIG_IRAM_BASE 0x02100000
44#define CONFIG_IRAM_SIZE 0x58000
45#define CONFIG_IRAM_END (CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE)
Thomas Abrahamf1855fc2016-11-16 18:49:16 +053046#define CPU_RELEASE_ADDR secondary_boot_addr
Thomas Abrahamd23cb312016-04-23 22:18:13 +053047
48/* Number of CPUs available */
49#define CONFIG_CORE_COUNT 0x8
50
51/* select serial console configuration */
52#define CONFIG_BAUDRATE 115200
Thomas Abrahamd23cb312016-04-23 22:18:13 +053053
54#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000)
55
56#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
57#define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
58#define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
59#define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE
60#define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
61#define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE
62#define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
63#define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE
64#define PHYS_SDRAM_5 (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
65#define PHYS_SDRAM_5_SIZE SDRAM_BANK_SIZE
66#define PHYS_SDRAM_6 (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
67#define PHYS_SDRAM_6_SIZE SDRAM_BANK_SIZE
68#define PHYS_SDRAM_7 (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
69#define PHYS_SDRAM_7_SIZE SDRAM_BANK_SIZE
70#define PHYS_SDRAM_8 (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
71#define PHYS_SDRAM_8_SIZE SDRAM_BANK_SIZE
72
73/* Configuration of ENV Blocks */
74#define CONFIG_ENV_SIZE (16 << 10) /* 16 KB */
75
76#define BOOT_TARGET_DEVICES(func) \
77 func(MMC, mmc, 1) \
78 func(MMC, mmc, 0) \
79
80#ifndef MEM_LAYOUT_ENV_SETTINGS
81#define MEM_LAYOUT_ENV_SETTINGS \
82 "bootm_size=0x10000000\0" \
83 "kernel_addr_r=0x42000000\0" \
84 "fdt_addr_r=0x43000000\0" \
85 "ramdisk_addr_r=0x43300000\0" \
86 "scriptaddr=0x50000000\0" \
87 "pxefile_addr_r=0x51000000\0"
88#endif
89
90#ifndef EXYNOS_DEVICE_SETTINGS
91#define EXYNOS_DEVICE_SETTINGS \
92 "stdin=serial\0" \
93 "stdout=serial\0" \
94 "stderr=serial\0"
95#endif
96
97#ifndef EXYNOS_FDTFILE_SETTING
98#define EXYNOS_FDTFILE_SETTING
99#endif
100
101#define CONFIG_EXTRA_ENV_SETTINGS \
102 EXYNOS_DEVICE_SETTINGS \
103 EXYNOS_FDTFILE_SETTING \
104 MEM_LAYOUT_ENV_SETTINGS
105
106#endif /* __CONFIG_EXYNOS7420_COMMON_H */