blob: dbf102b888dbaaaba0cd740b868acb561985106a [file] [log] [blame]
Dan Handley9df48042015-03-19 18:58:55 +00001/*
David Cunado2e36de82017-01-19 10:26:16 +00002 * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
Dan Handley9df48042015-03-19 18:58:55 +00003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Dan Handley9df48042015-03-19 18:58:55 +00005 */
6#ifndef __ARM_DEF_H__
7#define __ARM_DEF_H__
8
Soby Mathewfec4eb72015-07-01 16:16:20 +01009#include <arch.h>
Dan Handley9df48042015-03-19 18:58:55 +000010#include <common_def.h>
11#include <platform_def.h>
Juan Castillo9b265a82015-05-07 14:52:44 +010012#include <tbbr_img_def.h>
Scott Brandenbf404c02017-04-10 11:45:52 -070013#include <utils_def.h>
Antonio Nino Diaz719bf852017-02-23 17:22:58 +000014#include <xlat_tables_defs.h>
Dan Handley9df48042015-03-19 18:58:55 +000015
16
17/******************************************************************************
18 * Definitions common to all ARM standard platforms
19 *****************************************************************************/
20
Juan Castillo7d199412015-12-14 09:35:25 +000021/* Special value used to verify platform parameters from BL2 to BL31 */
Dan Handley9df48042015-03-19 18:58:55 +000022#define ARM_BL31_PLAT_PARAM_VAL 0x0f1e2d3c4b5a6978ULL
23
Soby Mathewa869de12015-05-08 10:18:59 +010024#define ARM_SYSTEM_COUNT 1
Dan Handley9df48042015-03-19 18:58:55 +000025
26#define ARM_CACHE_WRITEBACK_SHIFT 6
27
Soby Mathewfec4eb72015-07-01 16:16:20 +010028/*
29 * Macros mapping the MPIDR Affinity levels to ARM Platform Power levels. The
30 * power levels have a 1:1 mapping with the MPIDR affinity levels.
31 */
32#define ARM_PWR_LVL0 MPIDR_AFFLVL0
33#define ARM_PWR_LVL1 MPIDR_AFFLVL1
Soby Mathewa869de12015-05-08 10:18:59 +010034#define ARM_PWR_LVL2 MPIDR_AFFLVL2
Soby Mathewfec4eb72015-07-01 16:16:20 +010035
36/*
37 * Macros for local power states in ARM platforms encoded by State-ID field
38 * within the power-state parameter.
39 */
40/* Local power state for power domains in Run state. */
41#define ARM_LOCAL_STATE_RUN 0
42/* Local power state for retention. Valid only for CPU power domains */
43#define ARM_LOCAL_STATE_RET 1
44/* Local power state for OFF/power-down. Valid for CPU and cluster power
45 domains */
46#define ARM_LOCAL_STATE_OFF 2
47
Dan Handley9df48042015-03-19 18:58:55 +000048/* Memory location options for TSP */
49#define ARM_TRUSTED_SRAM_ID 0
50#define ARM_TRUSTED_DRAM_ID 1
51#define ARM_DRAM_ID 2
52
53/* The first 4KB of Trusted SRAM are used as shared memory */
54#define ARM_TRUSTED_SRAM_BASE 0x04000000
55#define ARM_SHARED_RAM_BASE ARM_TRUSTED_SRAM_BASE
56#define ARM_SHARED_RAM_SIZE 0x00001000 /* 4 KB */
57
58/* The remaining Trusted SRAM is used to load the BL images */
59#define ARM_BL_RAM_BASE (ARM_SHARED_RAM_BASE + \
60 ARM_SHARED_RAM_SIZE)
61#define ARM_BL_RAM_SIZE (PLAT_ARM_TRUSTED_SRAM_SIZE - \
62 ARM_SHARED_RAM_SIZE)
63
64/*
65 * The top 16MB of DRAM1 is configured as secure access only using the TZC
66 * - SCP TZC DRAM: If present, DRAM reserved for SCP use
67 * - AP TZC DRAM: The remaining TZC secured DRAM reserved for AP use
68 */
David Cunado2e36de82017-01-19 10:26:16 +000069#define ARM_TZC_DRAM1_SIZE ULL(0x01000000)
Dan Handley9df48042015-03-19 18:58:55 +000070
71#define ARM_SCP_TZC_DRAM1_BASE (ARM_DRAM1_BASE + \
72 ARM_DRAM1_SIZE - \
73 ARM_SCP_TZC_DRAM1_SIZE)
74#define ARM_SCP_TZC_DRAM1_SIZE PLAT_ARM_SCP_TZC_DRAM1_SIZE
75#define ARM_SCP_TZC_DRAM1_END (ARM_SCP_TZC_DRAM1_BASE + \
76 ARM_SCP_TZC_DRAM1_SIZE - 1)
77
78#define ARM_AP_TZC_DRAM1_BASE (ARM_DRAM1_BASE + \
79 ARM_DRAM1_SIZE - \
80 ARM_TZC_DRAM1_SIZE)
81#define ARM_AP_TZC_DRAM1_SIZE (ARM_TZC_DRAM1_SIZE - \
82 ARM_SCP_TZC_DRAM1_SIZE)
83#define ARM_AP_TZC_DRAM1_END (ARM_AP_TZC_DRAM1_BASE + \
84 ARM_AP_TZC_DRAM1_SIZE - 1)
85
Soby Mathew7e4d6652017-05-10 11:50:30 +010086/* Define the Access permissions for Secure peripherals to NS_DRAM */
87#if ARM_CRYPTOCELL_INTEG
88/*
89 * Allow Secure peripheral to read NS DRAM when integrated with CryptoCell.
90 * This is required by CryptoCell to authenticate BL33 which is loaded
91 * into the Non Secure DDR.
92 */
93#define ARM_TZC_NS_DRAM_S_ACCESS TZC_REGION_S_RD
94#else
95#define ARM_TZC_NS_DRAM_S_ACCESS TZC_REGION_S_NONE
96#endif
97
Summer Qin9db8f2e2017-04-24 16:49:28 +010098#ifdef SPD_opteed
99/*
Jens Wiklanderae73b162017-08-24 15:39:09 +0200100 * BL2 needs to map 4MB at the end of TZC_DRAM1 in order to
101 * load/authenticate the trusted os extra image. The first 512KB of
102 * TZC_DRAM1 are reserved for trusted os (OPTEE). The extra image loading
103 * for OPTEE is paged image which only include the paging part using
104 * virtual memory but without "init" data. OPTEE will copy the "init" data
105 * (from pager image) to the first 512KB of TZC_DRAM, and then copy the
106 * extra image behind the "init" data.
Summer Qin9db8f2e2017-04-24 16:49:28 +0100107 */
Jens Wiklanderae73b162017-08-24 15:39:09 +0200108#define ARM_OPTEE_PAGEABLE_LOAD_BASE (ARM_AP_TZC_DRAM1_BASE + \
109 ARM_AP_TZC_DRAM1_SIZE - \
110 ARM_OPTEE_PAGEABLE_LOAD_SIZE)
111#define ARM_OPTEE_PAGEABLE_LOAD_SIZE 0x400000
Summer Qin9db8f2e2017-04-24 16:49:28 +0100112#define ARM_OPTEE_PAGEABLE_LOAD_MEM MAP_REGION_FLAT( \
113 ARM_OPTEE_PAGEABLE_LOAD_BASE, \
114 ARM_OPTEE_PAGEABLE_LOAD_SIZE, \
115 MT_MEMORY | MT_RW | MT_SECURE)
Soby Mathew874fc9e2017-09-01 13:43:50 +0100116
117/*
118 * Map the memory for the OP-TEE core (also known as OP-TEE pager when paging
119 * support is enabled).
120 */
121#define ARM_MAP_OPTEE_CORE_MEM MAP_REGION_FLAT( \
122 BL32_BASE, \
123 BL32_LIMIT - BL32_BASE, \
124 MT_MEMORY | MT_RW | MT_SECURE)
Summer Qin9db8f2e2017-04-24 16:49:28 +0100125#endif /* SPD_opteed */
Dan Handley9df48042015-03-19 18:58:55 +0000126
127#define ARM_NS_DRAM1_BASE ARM_DRAM1_BASE
128#define ARM_NS_DRAM1_SIZE (ARM_DRAM1_SIZE - \
129 ARM_TZC_DRAM1_SIZE)
130#define ARM_NS_DRAM1_END (ARM_NS_DRAM1_BASE + \
131 ARM_NS_DRAM1_SIZE - 1)
132
David Cunado2e36de82017-01-19 10:26:16 +0000133#define ARM_DRAM1_BASE ULL(0x80000000)
134#define ARM_DRAM1_SIZE ULL(0x80000000)
Dan Handley9df48042015-03-19 18:58:55 +0000135#define ARM_DRAM1_END (ARM_DRAM1_BASE + \
136 ARM_DRAM1_SIZE - 1)
137
David Cunado2e36de82017-01-19 10:26:16 +0000138#define ARM_DRAM2_BASE ULL(0x880000000)
Dan Handley9df48042015-03-19 18:58:55 +0000139#define ARM_DRAM2_SIZE PLAT_ARM_DRAM2_SIZE
140#define ARM_DRAM2_END (ARM_DRAM2_BASE + \
141 ARM_DRAM2_SIZE - 1)
142
143#define ARM_IRQ_SEC_PHY_TIMER 29
144
145#define ARM_IRQ_SEC_SGI_0 8
146#define ARM_IRQ_SEC_SGI_1 9
147#define ARM_IRQ_SEC_SGI_2 10
148#define ARM_IRQ_SEC_SGI_3 11
149#define ARM_IRQ_SEC_SGI_4 12
150#define ARM_IRQ_SEC_SGI_5 13
151#define ARM_IRQ_SEC_SGI_6 14
152#define ARM_IRQ_SEC_SGI_7 15
153
Achin Gupta1fa7eb62015-11-03 14:18:34 +0000154/*
155 * Define a list of Group 1 Secure and Group 0 interrupts as per GICv3
156 * terminology. On a GICv2 system or mode, the lists will be merged and treated
157 * as Group 0 interrupts.
158 */
159#define ARM_G1S_IRQS ARM_IRQ_SEC_PHY_TIMER, \
160 ARM_IRQ_SEC_SGI_1, \
161 ARM_IRQ_SEC_SGI_2, \
162 ARM_IRQ_SEC_SGI_3, \
163 ARM_IRQ_SEC_SGI_4, \
164 ARM_IRQ_SEC_SGI_5, \
165 ARM_IRQ_SEC_SGI_7
166
167#define ARM_G0_IRQS ARM_IRQ_SEC_SGI_0, \
168 ARM_IRQ_SEC_SGI_6
169
Dan Handley9df48042015-03-19 18:58:55 +0000170#define ARM_MAP_SHARED_RAM MAP_REGION_FLAT( \
171 ARM_SHARED_RAM_BASE, \
172 ARM_SHARED_RAM_SIZE, \
Juan Castillo2e86cb12016-01-13 15:01:09 +0000173 MT_DEVICE | MT_RW | MT_SECURE)
Dan Handley9df48042015-03-19 18:58:55 +0000174
175#define ARM_MAP_NS_DRAM1 MAP_REGION_FLAT( \
176 ARM_NS_DRAM1_BASE, \
177 ARM_NS_DRAM1_SIZE, \
178 MT_MEMORY | MT_RW | MT_NS)
179
Roberto Vargasf8fda102017-08-08 11:27:20 +0100180#define ARM_MAP_DRAM2 MAP_REGION_FLAT( \
181 ARM_DRAM2_BASE, \
182 ARM_DRAM2_SIZE, \
183 MT_MEMORY | MT_RW | MT_NS)
Sandrine Bailleuxb260c3a2017-08-30 10:59:22 +0100184#ifdef SPD_tspd
Roberto Vargasf8fda102017-08-08 11:27:20 +0100185
Dan Handley9df48042015-03-19 18:58:55 +0000186#define ARM_MAP_TSP_SEC_MEM MAP_REGION_FLAT( \
187 TSP_SEC_MEM_BASE, \
188 TSP_SEC_MEM_SIZE, \
189 MT_MEMORY | MT_RW | MT_SECURE)
Sandrine Bailleuxb260c3a2017-08-30 10:59:22 +0100190#endif
Dan Handley9df48042015-03-19 18:58:55 +0000191
David Wang0ba499f2016-03-07 11:02:57 +0800192#if ARM_BL31_IN_DRAM
193#define ARM_MAP_BL31_SEC_DRAM MAP_REGION_FLAT( \
194 BL31_BASE, \
195 PLAT_ARM_MAX_BL31_SIZE, \
196 MT_MEMORY | MT_RW | MT_SECURE)
197#endif
Dan Handley9df48042015-03-19 18:58:55 +0000198
199/*
200 * The number of regions like RO(code), coherent and data required by
201 * different BL stages which need to be mapped in the MMU.
202 */
203#if USE_COHERENT_MEM
204#define ARM_BL_REGIONS 3
205#else
206#define ARM_BL_REGIONS 2
207#endif
208
209#define MAX_MMAP_REGIONS (PLAT_ARM_MMAP_ENTRIES + \
210 ARM_BL_REGIONS)
211
212/* Memory mapped Generic timer interfaces */
213#define ARM_SYS_CNTCTL_BASE 0x2a430000
214#define ARM_SYS_CNTREAD_BASE 0x2a800000
215#define ARM_SYS_TIMCTL_BASE 0x2a810000
216
217#define ARM_CONSOLE_BAUDRATE 115200
218
Juan Castillob6132f12015-10-06 14:01:35 +0100219/* Trusted Watchdog constants */
220#define ARM_SP805_TWDG_BASE 0x2a490000
221#define ARM_SP805_TWDG_CLK_HZ 32768
222/* The TBBR document specifies a watchdog timeout of 256 seconds. SP805
223 * asserts reset after two consecutive countdowns (2 x 128 = 256 sec) */
224#define ARM_TWDG_TIMEOUT_SEC 128
225#define ARM_TWDG_LOAD_VAL (ARM_SP805_TWDG_CLK_HZ * \
226 ARM_TWDG_TIMEOUT_SEC)
227
Dan Handley9df48042015-03-19 18:58:55 +0000228/******************************************************************************
229 * Required platform porting definitions common to all ARM standard platforms
230 *****************************************************************************/
231
Roberto Vargasf8fda102017-08-08 11:27:20 +0100232/*
233 * We need to access DRAM2 from BL2 for PSCI_MEM_PROTECT for
234 * AArch64 builds
235 */
236#ifdef AARCH64
237#define PLAT_PHY_ADDR_SPACE_SIZE (1ull << 36)
238#define PLAT_VIRT_ADDR_SPACE_SIZE (1ull << 36)
239#else
Antonio Nino Diazf6601042016-12-13 13:48:31 +0000240#define PLAT_PHY_ADDR_SPACE_SIZE (1ull << 32)
241#define PLAT_VIRT_ADDR_SPACE_SIZE (1ull << 32)
Roberto Vargasf8fda102017-08-08 11:27:20 +0100242#endif
243
Dan Handley9df48042015-03-19 18:58:55 +0000244
Soby Mathewfec4eb72015-07-01 16:16:20 +0100245/*
246 * This macro defines the deepest retention state possible. A higher state
247 * id will represent an invalid or a power down state.
248 */
249#define PLAT_MAX_RET_STATE ARM_LOCAL_STATE_RET
250
251/*
252 * This macro defines the deepest power down states possible. Any state ID
253 * higher than this is invalid.
254 */
255#define PLAT_MAX_OFF_STATE ARM_LOCAL_STATE_OFF
256
Dan Handley9df48042015-03-19 18:58:55 +0000257/*
258 * Some data must be aligned on the biggest cache line size in the platform.
259 * This is known only to the platform as it might have a combination of
260 * integrated and external caches.
261 */
262#define CACHE_WRITEBACK_GRANULE (1 << ARM_CACHE_WRITEBACK_SHIFT)
263
Dan Handley9df48042015-03-19 18:58:55 +0000264
265/*******************************************************************************
266 * BL1 specific defines.
267 * BL1 RW data is relocated from ROM to RAM at runtime so we need 2 sets of
268 * addresses.
269 ******************************************************************************/
270#define BL1_RO_BASE PLAT_ARM_TRUSTED_ROM_BASE
271#define BL1_RO_LIMIT (PLAT_ARM_TRUSTED_ROM_BASE \
272 + PLAT_ARM_TRUSTED_ROM_SIZE)
273/*
Vikram Kanigiri5d86f2e2016-01-21 14:08:15 +0000274 * Put BL1 RW at the top of the Trusted SRAM.
Dan Handley9df48042015-03-19 18:58:55 +0000275 */
Dan Handley9df48042015-03-19 18:58:55 +0000276#define BL1_RW_BASE (ARM_BL_RAM_BASE + \
277 ARM_BL_RAM_SIZE - \
Vikram Kanigiri5d86f2e2016-01-21 14:08:15 +0000278 PLAT_ARM_MAX_BL1_RW_SIZE)
Dan Handley9df48042015-03-19 18:58:55 +0000279#define BL1_RW_LIMIT (ARM_BL_RAM_BASE + ARM_BL_RAM_SIZE)
280
281/*******************************************************************************
282 * BL2 specific defines.
283 ******************************************************************************/
Soby Mathew20948c42017-07-05 15:07:05 +0100284#if ARM_BL31_IN_DRAM || (defined(AARCH32) && !defined(JUNO_AARCH32_EL3_RUNTIME))
David Wang0ba499f2016-03-07 11:02:57 +0800285/*
dp-armcdd03cb2017-02-15 11:07:55 +0000286 * For AArch32 BL31 is not applicable.
287 * For AArch64 BL31 is loaded in the DRAM.
David Wang0ba499f2016-03-07 11:02:57 +0800288 * Put BL2 just below BL1.
289 */
290#define BL2_BASE (BL1_RW_BASE - PLAT_ARM_MAX_BL2_SIZE)
291#define BL2_LIMIT BL1_RW_BASE
292#else
Dan Handley9df48042015-03-19 18:58:55 +0000293/*
Vikram Kanigiri5d86f2e2016-01-21 14:08:15 +0000294 * Put BL2 just below BL31.
Dan Handley9df48042015-03-19 18:58:55 +0000295 */
Vikram Kanigiri5d86f2e2016-01-21 14:08:15 +0000296#define BL2_BASE (BL31_BASE - PLAT_ARM_MAX_BL2_SIZE)
Dan Handley9df48042015-03-19 18:58:55 +0000297#define BL2_LIMIT BL31_BASE
David Wang0ba499f2016-03-07 11:02:57 +0800298#endif
Dan Handley9df48042015-03-19 18:58:55 +0000299
300/*******************************************************************************
Juan Castillo7d199412015-12-14 09:35:25 +0000301 * BL31 specific defines.
Dan Handley9df48042015-03-19 18:58:55 +0000302 ******************************************************************************/
David Wang0ba499f2016-03-07 11:02:57 +0800303#if ARM_BL31_IN_DRAM
304/*
305 * Put BL31 at the bottom of TZC secured DRAM
306 */
307#define BL31_BASE ARM_AP_TZC_DRAM1_BASE
308#define BL31_LIMIT (ARM_AP_TZC_DRAM1_BASE + \
309 PLAT_ARM_MAX_BL31_SIZE)
Qixiang Xua5f72812017-08-31 11:45:32 +0800310#elif (RESET_TO_BL31)
311/*
312 * Put BL31_BASE in the middle of the Trusted SRAM.
313 */
314#define BL31_BASE (ARM_TRUSTED_SRAM_BASE + \
315 (PLAT_ARM_TRUSTED_SRAM_SIZE >> 1))
316#define BL31_LIMIT (ARM_BL_RAM_BASE + ARM_BL_RAM_SIZE)
David Wang0ba499f2016-03-07 11:02:57 +0800317#else
Dan Handley9df48042015-03-19 18:58:55 +0000318/*
Vikram Kanigiri5d86f2e2016-01-21 14:08:15 +0000319 * Put BL31 at the top of the Trusted SRAM.
Dan Handley9df48042015-03-19 18:58:55 +0000320 */
321#define BL31_BASE (ARM_BL_RAM_BASE + \
322 ARM_BL_RAM_SIZE - \
Vikram Kanigiri5d86f2e2016-01-21 14:08:15 +0000323 PLAT_ARM_MAX_BL31_SIZE)
Dan Handley9df48042015-03-19 18:58:55 +0000324#define BL31_PROGBITS_LIMIT BL1_RW_BASE
325#define BL31_LIMIT (ARM_BL_RAM_BASE + ARM_BL_RAM_SIZE)
David Wang0ba499f2016-03-07 11:02:57 +0800326#endif
Dan Handley9df48042015-03-19 18:58:55 +0000327
328/*******************************************************************************
Juan Castillo7d199412015-12-14 09:35:25 +0000329 * BL32 specific defines.
Dan Handley9df48042015-03-19 18:58:55 +0000330 ******************************************************************************/
331/*
332 * On ARM standard platforms, the TSP can execute from Trusted SRAM,
333 * Trusted DRAM (if available) or the DRAM region secured by the TrustZone
334 * controller.
335 */
David Wang0ba499f2016-03-07 11:02:57 +0800336#if ARM_BL31_IN_DRAM
337# define TSP_SEC_MEM_BASE (ARM_AP_TZC_DRAM1_BASE + \
338 PLAT_ARM_MAX_BL31_SIZE)
339# define TSP_SEC_MEM_SIZE (ARM_AP_TZC_DRAM1_SIZE - \
340 PLAT_ARM_MAX_BL31_SIZE)
341# define BL32_BASE (ARM_AP_TZC_DRAM1_BASE + \
342 PLAT_ARM_MAX_BL31_SIZE)
343# define BL32_LIMIT (ARM_AP_TZC_DRAM1_BASE + \
344 ARM_AP_TZC_DRAM1_SIZE)
345#elif ARM_TSP_RAM_LOCATION_ID == ARM_TRUSTED_SRAM_ID
Dan Handley9df48042015-03-19 18:58:55 +0000346# define TSP_SEC_MEM_BASE ARM_BL_RAM_BASE
347# define TSP_SEC_MEM_SIZE ARM_BL_RAM_SIZE
348# define TSP_PROGBITS_LIMIT BL2_BASE
349# define BL32_BASE ARM_BL_RAM_BASE
350# define BL32_LIMIT BL31_BASE
351#elif ARM_TSP_RAM_LOCATION_ID == ARM_TRUSTED_DRAM_ID
352# define TSP_SEC_MEM_BASE PLAT_ARM_TRUSTED_DRAM_BASE
353# define TSP_SEC_MEM_SIZE PLAT_ARM_TRUSTED_DRAM_SIZE
354# define BL32_BASE PLAT_ARM_TRUSTED_DRAM_BASE
355# define BL32_LIMIT (PLAT_ARM_TRUSTED_DRAM_BASE \
356 + (1 << 21))
357#elif ARM_TSP_RAM_LOCATION_ID == ARM_DRAM_ID
358# define TSP_SEC_MEM_BASE ARM_AP_TZC_DRAM1_BASE
359# define TSP_SEC_MEM_SIZE ARM_AP_TZC_DRAM1_SIZE
360# define BL32_BASE ARM_AP_TZC_DRAM1_BASE
361# define BL32_LIMIT (ARM_AP_TZC_DRAM1_BASE + \
362 ARM_AP_TZC_DRAM1_SIZE)
363#else
364# error "Unsupported ARM_TSP_RAM_LOCATION_ID value"
365#endif
366
Soby Mathew0d268dc2016-07-11 14:13:56 +0100367/* BL32 is mandatory in AArch32 */
368#ifndef AARCH32
Antonio Nino Diaze4fa3702016-04-05 11:38:49 +0100369#ifdef SPD_none
370#undef BL32_BASE
371#endif /* SPD_none */
Soby Mathew0d268dc2016-07-11 14:13:56 +0100372#endif
Antonio Nino Diaze4fa3702016-04-05 11:38:49 +0100373
Yatharth Kochar736a3bf2015-10-11 14:14:55 +0100374/*******************************************************************************
375 * FWU Images: NS_BL1U, BL2U & NS_BL2U defines.
376 ******************************************************************************/
377#define BL2U_BASE BL2_BASE
Soby Mathew20948c42017-07-05 15:07:05 +0100378#if ARM_BL31_IN_DRAM || (defined(AARCH32) && !defined(JUNO_AARCH32_EL3_RUNTIME))
Yatharth Kochar18dfb302016-11-22 11:06:03 +0000379/*
380 * For AArch32 BL31 is not applicable.
381 * For AArch64 BL31 is loaded in the DRAM.
382 * BL2U extends up to BL1.
383 */
David Wang0ba499f2016-03-07 11:02:57 +0800384#define BL2U_LIMIT BL1_RW_BASE
385#else
Yatharth Kochar18dfb302016-11-22 11:06:03 +0000386/* BL2U extends up to BL31. */
Yatharth Kochar736a3bf2015-10-11 14:14:55 +0100387#define BL2U_LIMIT BL31_BASE
David Wang0ba499f2016-03-07 11:02:57 +0800388#endif
Yatharth Kochar736a3bf2015-10-11 14:14:55 +0100389#define NS_BL2U_BASE ARM_NS_DRAM1_BASE
Yatharth Kocharf11b29a2016-02-01 11:04:46 +0000390#define NS_BL1U_BASE (PLAT_ARM_NVM_BASE + 0x03EB8000)
Yatharth Kochar736a3bf2015-10-11 14:14:55 +0100391
Dan Handley9df48042015-03-19 18:58:55 +0000392/*
393 * ID of the secure physical generic timer interrupt used by the TSP.
394 */
395#define TSP_IRQ_SEC_PHY_TIMER ARM_IRQ_SEC_PHY_TIMER
396
397
Vikram Kanigirid79214c2015-09-09 10:52:13 +0100398/*
399 * One cache line needed for bakery locks on ARM platforms
400 */
401#define PLAT_PERCPU_BAKERY_LOCK_SIZE (1 * CACHE_WRITEBACK_GRANULE)
402
403
Dan Handley9df48042015-03-19 18:58:55 +0000404#endif /* __ARM_DEF_H__ */