global: Migrate CONFIG_STACKBASE to CFG
[platform/kernel/u-boot.git] / include / configs / exynos7420-common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuration settings for the Espresso7420 board.
4  * Copyright (C) 2016 Samsung Electronics
5  * Thomas Abraham <thomas.ab@samsung.com>
6  */
7
8 #ifndef __CONFIG_EXYNOS7420_COMMON_H
9 #define __CONFIG_EXYNOS7420_COMMON_H
10
11 #include <asm/arch/cpu.h>               /* get chip and board defs */
12 #include <linux/sizes.h>
13
14 /* Miscellaneous configurable options */
15
16 /* select serial console configuration */
17
18 #define CPU_RELEASE_ADDR                secondary_boot_addr
19
20 /* select serial console configuration */
21
22 #define PHYS_SDRAM_1            CFG_SYS_SDRAM_BASE
23 #define PHYS_SDRAM_1_SIZE       SDRAM_BANK_SIZE
24 #define PHYS_SDRAM_2            (CFG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
25 #define PHYS_SDRAM_2_SIZE       SDRAM_BANK_SIZE
26 #define PHYS_SDRAM_3            (CFG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
27 #define PHYS_SDRAM_3_SIZE       SDRAM_BANK_SIZE
28 #define PHYS_SDRAM_4            (CFG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
29 #define PHYS_SDRAM_4_SIZE       SDRAM_BANK_SIZE
30 #define PHYS_SDRAM_5            (CFG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
31 #define PHYS_SDRAM_5_SIZE       SDRAM_BANK_SIZE
32 #define PHYS_SDRAM_6            (CFG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
33 #define PHYS_SDRAM_6_SIZE       SDRAM_BANK_SIZE
34 #define PHYS_SDRAM_7            (CFG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
35 #define PHYS_SDRAM_7_SIZE       SDRAM_BANK_SIZE
36 #define PHYS_SDRAM_8            (CFG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
37 #define PHYS_SDRAM_8_SIZE       SDRAM_BANK_SIZE
38
39 /* Configuration of ENV Blocks */
40
41 #define BOOT_TARGET_DEVICES(func) \
42         func(MMC, mmc, 1) \
43         func(MMC, mmc, 0) \
44
45 #ifndef MEM_LAYOUT_ENV_SETTINGS
46 #define MEM_LAYOUT_ENV_SETTINGS \
47         "bootm_size=0x10000000\0" \
48         "kernel_addr_r=0x42000000\0" \
49         "fdt_addr_r=0x43000000\0" \
50         "ramdisk_addr_r=0x43300000\0" \
51         "scriptaddr=0x50000000\0" \
52         "pxefile_addr_r=0x51000000\0"
53 #endif
54
55 #ifndef EXYNOS_DEVICE_SETTINGS
56 #define EXYNOS_DEVICE_SETTINGS \
57         "stdin=serial\0" \
58         "stdout=serial\0" \
59         "stderr=serial\0"
60 #endif
61
62 #ifndef EXYNOS_FDTFILE_SETTING
63 #define EXYNOS_FDTFILE_SETTING
64 #endif
65
66 #define CFG_EXTRA_ENV_SETTINGS \
67         EXYNOS_DEVICE_SETTINGS \
68         EXYNOS_FDTFILE_SETTING \
69         MEM_LAYOUT_ENV_SETTINGS
70
71 #endif  /* __CONFIG_EXYNOS7420_COMMON_H */