blob: 7f06907c0e4e19600f42b84cc22ab5fe6b2c8a9f [file] [log] [blame]
Chander Kashyap0d2f2772013-08-21 10:38:56 +05301/*
2 * Copyright (C) 2013 Samsung Electronics
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 *
6 * Configuration settings for the SAMSUNG Arndale board.
7 */
8
9#ifndef __CONFIG_ARNDALE_H
10#define __CONFIG_ARNDALE_H
11
12/* High Level Configuration Options */
13#define CONFIG_SAMSUNG /* in a SAMSUNG core */
14#define CONFIG_S5P /* S5P Family */
15#define CONFIG_EXYNOS5 /* which is in a Exynos5 Family */
16#define CONFIG_EXYNOS5250
17
18#include <asm/arch/cpu.h> /* get chip and board defs */
19
20#define CONFIG_SYS_GENERIC_BOARD
21#define CONFIG_ARCH_CPU_INIT
22#define CONFIG_DISPLAY_CPUINFO
23#define CONFIG_DISPLAY_BOARDINFO
24
Chander Kashyap0d2f2772013-08-21 10:38:56 +053025
26/* Allow tracing to be enabled */
27#define CONFIG_TRACE
28#define CONFIG_CMD_TRACE
29#define CONFIG_TRACE_BUFFER_SIZE (16 << 20)
30#define CONFIG_TRACE_EARLY_SIZE (8 << 20)
31#define CONFIG_TRACE_EARLY
32#define CONFIG_TRACE_EARLY_ADDR 0x50000000
33
34/* Keep L2 Cache Disabled */
35#define CONFIG_SYS_DCACHE_OFF
36
37#define CONFIG_SYS_SDRAM_BASE 0x40000000
38#define CONFIG_SYS_TEXT_BASE 0x43E00000
39
40/* input clock of PLL: SMDK5250 has 24MHz input clock */
41#define CONFIG_SYS_CLK_FREQ 24000000
42
43#define CONFIG_SETUP_MEMORY_TAGS
44#define CONFIG_CMDLINE_TAG
45#define CONFIG_INITRD_TAG
46#define CONFIG_CMDLINE_EDITING
47
48/* Power Down Modes */
49#define S5P_CHECK_SLEEP 0x00000BAD
50#define S5P_CHECK_DIDLE 0xBAD00000
51#define S5P_CHECK_LPA 0xABAD0000
52
53/* Offset for inform registers */
54#define INFORM0_OFFSET 0x800
55#define INFORM1_OFFSET 0x804
56
57/* Size of malloc() pool */
58#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (4 << 20))
59
60/* select serial console configuration */
61#define CONFIG_BAUDRATE 115200
62#define EXYNOS5_DEFAULT_UART_OFFSET 0x010000
63#define CONFIG_SILENT_CONSOLE
64
65/* Console configuration */
66#define CONFIG_CONSOLE_MUX
67#define CONFIG_SYS_CONSOLE_IS_IN_ENV
68#define EXYNOS_DEVICE_SETTINGS \
69 "stdin=serial\0" \
70 "stdout=serial\0" \
71 "stderr=serial\0"
72
73#define CONFIG_EXTRA_ENV_SETTINGS \
74 EXYNOS_DEVICE_SETTINGS
75
76/* SD/MMC configuration */
77#define CONFIG_GENERIC_MMC
78#define CONFIG_MMC
79#define CONFIG_SDHCI
80#define CONFIG_S5P_SDHCI
81#define CONFIG_DWMMC
82#define CONFIG_EXYNOS_DWMMC
83#define CONFIG_SUPPORT_EMMC_BOOT
Alexey Brodkin55bab5e2013-12-26 15:29:07 +040084#define CONFIG_BOUNCE_BUFFER
Chander Kashyap0d2f2772013-08-21 10:38:56 +053085
86
87#define CONFIG_BOARD_EARLY_INIT_F
88#define CONFIG_SKIP_LOWLEVEL_INIT
89
90/* PWM */
91#define CONFIG_PWM
92
93/* allow to overwrite serial and ethaddr */
94#define CONFIG_ENV_OVERWRITE
95
96/* Command definition*/
97#include <config_cmd_default.h>
98
99#define CONFIG_CMD_PING
100#define CONFIG_CMD_ELF
101#define CONFIG_CMD_MMC
102#define CONFIG_CMD_EXT2
103#define CONFIG_CMD_FAT
104#define CONFIG_CMD_NET
105#define CONFIG_CMD_HASH
106
107#define CONFIG_BOOTDELAY 3
108#define CONFIG_ZERO_BOOTDELAY_CHECK
109
110/* USB */
111#define CONFIG_CMD_USB
112#define CONFIG_USB_EHCI
113#define CONFIG_USB_EHCI_EXYNOS
114#define CONFIG_USB_STORAGE
115
Inderpal Singh3260bc82014-01-08 09:19:57 +0530116#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
117#define CONFIG_USB_HOST_ETHER
118#define CONFIG_USB_ETHER_ASIX
119
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530120/* MMC SPL */
Rajeshwari Birje5b475ae2013-12-26 09:44:24 +0530121#define CONFIG_EXYNOS_SPL
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530122#define COPY_BL2_FNPTR_ADDR 0x02020030
123
124#define CONFIG_SPL_LIBCOMMON_SUPPORT
125
126/* specific .lds file */
127#define CONFIG_SPL_LDSCRIPT "board/samsung/common/exynos-uboot-spl.lds"
128#define CONFIG_SPL_TEXT_BASE 0x02023400
129#define CONFIG_SPL_MAX_FOOTPRINT (14 * 1024)
130
131#define CONFIG_BOOTCOMMAND "mmc read 40007000 451 2000; bootm 40007000"
132
133/* Miscellaneous configurable options */
134#define CONFIG_SYS_LONGHELP /* undef to save memory */
135#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
136#define CONFIG_SYS_PROMPT "ARNDALE # "
137#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
138#define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */
139#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
140#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
141/* Boot Argument Buffer Size */
142#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
143/* memtest works on */
144#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
145#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x5E00000)
146#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000)
147
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530148#define CONFIG_RD_LVL
149
150#define CONFIG_NR_DRAM_BANKS 8
151#define SDRAM_BANK_SIZE (256UL << 20UL) /* 256 MB */
152#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
153#define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
154#define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
155#define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE
156#define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
157#define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE
158#define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
159#define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE
160#define PHYS_SDRAM_5 (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
161#define PHYS_SDRAM_5_SIZE SDRAM_BANK_SIZE
162#define PHYS_SDRAM_6 (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
163#define PHYS_SDRAM_6_SIZE SDRAM_BANK_SIZE
164#define PHYS_SDRAM_7 (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
165#define PHYS_SDRAM_7_SIZE SDRAM_BANK_SIZE
166#define PHYS_SDRAM_8 (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
167#define PHYS_SDRAM_8_SIZE SDRAM_BANK_SIZE
168
169#define CONFIG_SYS_MONITOR_BASE 0x00000000
170
171/* FLASH and environment organization */
172#define CONFIG_SYS_NO_FLASH
173#undef CONFIG_CMD_IMLS
174#define CONFIG_IDENT_STRING " for ARNDALE"
175
176#define CONFIG_SYS_MMC_ENV_DEV 0
177
178#define CONFIG_ENV_IS_IN_MMC
179#define CONFIG_SECURE_BL1_ONLY
180
181/* Secure FW size configuration */
182#ifdef CONFIG_SECURE_BL1_ONLY
183#define CONFIG_SEC_FW_SIZE (8 << 10) /* 8KB */
184#else
185#define CONFIG_SEC_FW_SIZE 0
186#endif
187
188/* Configuration of BL1, BL2, ENV Blocks on mmc */
189#define CONFIG_RES_BLOCK_SIZE (512)
190#define CONFIG_BL1_SIZE (16 << 10) /*16 K reserved for BL1*/
191#define CONFIG_BL2_SIZE (512UL << 10UL) /* 512 KB */
192#define CONFIG_ENV_SIZE (16 << 10) /* 16 KB */
193
194#define CONFIG_BL1_OFFSET (CONFIG_RES_BLOCK_SIZE + CONFIG_SEC_FW_SIZE)
195#define CONFIG_BL2_OFFSET (CONFIG_BL1_OFFSET + CONFIG_BL1_SIZE)
196#define CONFIG_ENV_OFFSET (CONFIG_BL2_OFFSET + CONFIG_BL2_SIZE)
197
198/* U-boot copy size from boot Media to DRAM.*/
199#define BL2_START_OFFSET (CONFIG_BL2_OFFSET/512)
200#define BL2_SIZE_BLOC_COUNT (CONFIG_BL2_SIZE/512)
201
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530202#define CONFIG_DOS_PARTITION
203#define CONFIG_EFI_PARTITION
204#define CONFIG_CMD_PART
205#define CONFIG_PARTITION_UUIDS
206
207
208#define CONFIG_IRAM_STACK 0x02050000
209
210#define CONFIG_SYS_INIT_SP_ADDR CONFIG_IRAM_STACK
211
212/* I2C */
213#define CONFIG_SYS_I2C_INIT_BOARD
Piotr Wilczek58bbd2b2013-11-20 10:43:49 +0100214#define CONFIG_SYS_I2C
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530215#define CONFIG_CMD_I2C
Piotr Wilczek58bbd2b2013-11-20 10:43:49 +0100216#define CONFIG_SYS_I2C_S3C24X0_SPEED 100000 /* 100 Kbps */
217#define CONFIG_SYS_I2C_S3C24X0
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530218#define CONFIG_MAX_I2C_NUM 8
Piotr Wilczek58bbd2b2013-11-20 10:43:49 +0100219#define CONFIG_SYS_I2C_S3C24X0_SLAVE 0x0
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530220#define CONFIG_I2C_EDID
221
222/* PMIC */
223#define CONFIG_PMIC
Simon Glass02229812014-05-20 06:01:34 -0600224#define CONFIG_POWER_I2C
225#define CONFIG_POWER_MAX77686
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530226
227#define CONFIG_DEFAULT_DEVICE_TREE exynos5250-arndale
228
Tushar Beherabcf23632014-06-10 14:54:18 +0530229#define CONFIG_PREBOOT
230
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530231/* Ethernet Controllor Driver */
232#ifdef CONFIG_CMD_NET
233#define CONFIG_SMC911X
234#define CONFIG_SMC911X_BASE 0x5000000
235#define CONFIG_SMC911X_16_BIT
236#define CONFIG_ENV_SROM_BANK 1
237#endif /*CONFIG_CMD_NET*/
238
239/* Enable PXE Support */
240#ifdef CONFIG_CMD_NET
241#define CONFIG_CMD_PXE
242#define CONFIG_MENU
243#endif
244
245/* Enable devicetree support */
246#define CONFIG_OF_LIBFDT
247
248/* Enable Time Command */
249#define CONFIG_CMD_TIME
250
Andre Przywara64d4c222014-08-01 13:35:44 +0200251#define CONFIG_S5P_PA_SYSRAM 0x02020000
252#define CONFIG_SMP_PEN_ADDR CONFIG_S5P_PA_SYSRAM
253
254/* The PERIPHBASE in the CBAR register is wrong on the Arndale, so override it */
255#define CONFIG_ARM_GIC_BASE_ADDRESS 0x10480000
256
257#define CONFIG_ARMV7_VIRT
258
Chander Kashyap0d2f2772013-08-21 10:38:56 +0530259#endif /* __CONFIG_H */