blob: dd35c356e4baf44b6ecbd16455dada7bd01ed424 [file] [log] [blame]
Stefan Reinauer3511b922013-06-19 12:02:47 -07001config CPU_SAMSUNG_EXYNOS5420
2 depends on ARCH_ARMV7
3 select HAVE_MONOTONIC_TIMER
4 select HAVE_UART_SPECIAL
Stefan Reinauerd2f45c62013-06-19 13:42:00 -07005 select EARLY_CONSOLE
Stefan Reinauer80e62932013-07-29 15:52:23 -07006 select DYNAMIC_CBMEM
Stefan Reinauer3511b922013-06-19 12:02:47 -07007 bool
8 default n
9
10if CPU_SAMSUNG_EXYNOS5420
11
Gabe Black607c0b62013-05-16 05:45:57 -070012config BOOTBLOCK_CPU_INIT
13 string
14 default "cpu/samsung/exynos5420/bootblock.c"
15 help
16 CPU/SoC-specific bootblock code. This is useful if the
17 bootblock must load microcode or copy data from ROM before
18 searching for the bootblock.
19
Hung-Te Lind63bddc2013-06-11 21:55:58 -070020# ROM image layout.
21#
22# 0x0000: vendor-provided BL1 (8k).
23# 0x2000: variable length bootblock checksum header
24# 0x2010: bootblock
25# 0x2020-0x20A0: reserved for CBFS master header.
26# 0xA000: Free for CBFS data.
27
28config BOOTBLOCK_ROM_OFFSET
29 hex
30 default 0x2010
31
32config CBFS_HEADER_ROM_OFFSET
33 hex "offset of master CBFS header in ROM"
34 default 0x2020
35
36config CBFS_ROM_OFFSET
37 # Calculated by BOOTBLOCK_ROM_OFFSET + max bootblock size.
38 hex "offset of CBFS data in ROM"
39 default 0x0A000
40
Gabe Black607c0b62013-05-16 05:45:57 -070041
42# Example SRAM/iRAM map for Exynos5420 platform:
43#
44# 0x0202_0000: vendor-provided BL1
Hung-Te Lind63bddc2013-06-11 21:55:58 -070045# 0x0202_4400: variable length bootblock checksum header.
46# 0x0202_4410: bootblock, assume up to 32KB in size
Gabe Black607c0b62013-05-16 05:45:57 -070047# 0x0203_0000: romstage, assume up to 128KB in size.
Gabe Blackb2d811a2013-05-13 15:56:53 -070048# 0x0207_4000: stack pointer
Gabe Black607c0b62013-05-16 05:45:57 -070049
50config BOOTBLOCK_BASE
51 hex
Hung-Te Lind63bddc2013-06-11 21:55:58 -070052 default 0x02024410
Gabe Black607c0b62013-05-16 05:45:57 -070053
54config ROMSTAGE_BASE
55 hex
56 default 0x02030000
57
58config ROMSTAGE_SIZE
59 hex
60 default 0x10000
61
62# Stack may reside in either IRAM or DRAM. We will define it to live
63# at the top of IRAM for now.
64#
65# Stack grows downward, push operation stores register contents in
66# consecutive memory locations ending just below SP
67config STACK_TOP
68 hex
Gabe Blackb2d811a2013-05-13 15:56:53 -070069 default 0x02074000
Gabe Black607c0b62013-05-16 05:45:57 -070070
71config STACK_BOTTOM
72 hex
Gabe Blackb2d811a2013-05-13 15:56:53 -070073 default 0x02073000
Gabe Black607c0b62013-05-16 05:45:57 -070074
75config STACK_SIZE
76 hex
77 default 0x1000
78
Gabe Black607c0b62013-05-16 05:45:57 -070079# TODO We may probably move this to board-specific implementation files instead
80# of KConfig values.
81config CBFS_CACHE_ADDRESS
82 hex "memory address to put CBFS cache data"
83 default 0x02060000
84
85config CBFS_CACHE_SIZE
86 hex "size of CBFS cache data"
Gabe Blackb2d811a2013-05-13 15:56:53 -070087 default 0x000013000
Gabe Black607c0b62013-05-16 05:45:57 -070088
Gabe Black607c0b62013-05-16 05:45:57 -070089config SYS_SDRAM_BASE
90 hex
Gabe Blackb2d811a2013-05-13 15:56:53 -070091 default 0x20000000
Gabe Black607c0b62013-05-16 05:45:57 -070092
Gabe Black607c0b62013-05-16 05:45:57 -070093choice CONSOLE_SERIAL_UART_CHOICES
94 prompt "Serial Console UART"
95 default CONSOLE_SERIAL_UART3
96 depends on CONSOLE_SERIAL_UART
97
98config CONSOLE_SERIAL_UART0
99 bool "UART0"
100 help
101 Serial console on UART0
102
103config CONSOLE_SERIAL_UART1
104 bool "UART1"
105 help
106 Serial console on UART1
107
108config CONSOLE_SERIAL_UART2
109 bool "UART2"
110 help
111 Serial console on UART2
112
113config CONSOLE_SERIAL_UART3
114 bool "UART3"
115 help
116 Serial console on UART3
117
118endchoice
119
120config CONSOLE_SERIAL_UART_ADDRESS
121 hex
122 depends on CONSOLE_SERIAL_UART
123 default 0x12c00000 if CONSOLE_SERIAL_UART0
124 default 0x12c10000 if CONSOLE_SERIAL_UART1
125 default 0x12c20000 if CONSOLE_SERIAL_UART2
126 default 0x12c30000 if CONSOLE_SERIAL_UART3
127 help
128 Map the UART names to the respective MMIO address.
129
Stefan Reinauer3511b922013-06-19 12:02:47 -0700130endif