1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuration settings for the Espresso7420 board.
4 * Copyright (C) 2016 Samsung Electronics
5 * Thomas Abraham <thomas.ab@samsung.com>
8 #ifndef __CONFIG_EXYNOS7420_COMMON_H
9 #define __CONFIG_EXYNOS7420_COMMON_H
11 /* High Level Configuration Options */
12 #define CONFIG_SAMSUNG /* in a SAMSUNG core */
15 #include <asm/arch/cpu.h> /* get chip and board defs */
16 #include <linux/sizes.h>
18 /* Miscellaneous configurable options */
19 #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
20 #define CONFIG_SYS_PBSIZE 1024 /* Print Buffer Size */
22 /* Boot Argument Buffer Size */
23 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
25 /* select serial console configuration */
27 /* Timer input clock frequency */
28 #define COUNTER_FREQUENCY 24000000
31 #define CONFIG_IRAM_BASE 0x02100000
32 #define CONFIG_IRAM_SIZE 0x58000
33 #define CONFIG_IRAM_END (CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE)
34 #define CPU_RELEASE_ADDR secondary_boot_addr
36 /* select serial console configuration */
38 #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
39 #define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
40 #define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
41 #define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE
42 #define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
43 #define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE
44 #define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
45 #define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE
46 #define PHYS_SDRAM_5 (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
47 #define PHYS_SDRAM_5_SIZE SDRAM_BANK_SIZE
48 #define PHYS_SDRAM_6 (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
49 #define PHYS_SDRAM_6_SIZE SDRAM_BANK_SIZE
50 #define PHYS_SDRAM_7 (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
51 #define PHYS_SDRAM_7_SIZE SDRAM_BANK_SIZE
52 #define PHYS_SDRAM_8 (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
53 #define PHYS_SDRAM_8_SIZE SDRAM_BANK_SIZE
55 /* Configuration of ENV Blocks */
57 #define BOOT_TARGET_DEVICES(func) \
61 #ifndef MEM_LAYOUT_ENV_SETTINGS
62 #define MEM_LAYOUT_ENV_SETTINGS \
63 "bootm_size=0x10000000\0" \
64 "kernel_addr_r=0x42000000\0" \
65 "fdt_addr_r=0x43000000\0" \
66 "ramdisk_addr_r=0x43300000\0" \
67 "scriptaddr=0x50000000\0" \
68 "pxefile_addr_r=0x51000000\0"
71 #ifndef EXYNOS_DEVICE_SETTINGS
72 #define EXYNOS_DEVICE_SETTINGS \
78 #ifndef EXYNOS_FDTFILE_SETTING
79 #define EXYNOS_FDTFILE_SETTING
82 #define CONFIG_EXTRA_ENV_SETTINGS \
83 EXYNOS_DEVICE_SETTINGS \
84 EXYNOS_FDTFILE_SETTING \
85 MEM_LAYOUT_ENV_SETTINGS
87 #endif /* __CONFIG_EXYNOS7420_COMMON_H */