xref: /rk3399_ARM-atf/plat/rockchip/rk3399/include/shared/bl31_param.h (revision ae7a93521fd46f278a35d847a83e621026a33786)
1*ae7a9352SXing Zheng /*
2*ae7a9352SXing Zheng  * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3*ae7a9352SXing Zheng  *
4*ae7a9352SXing Zheng  * Redistribution and use in source and binary forms, with or without
5*ae7a9352SXing Zheng  * modification, are permitted provided that the following conditions are met:
6*ae7a9352SXing Zheng  *
7*ae7a9352SXing Zheng  * Redistributions of source code must retain the above copyright notice, this
8*ae7a9352SXing Zheng  * list of conditions and the following disclaimer.
9*ae7a9352SXing Zheng  *
10*ae7a9352SXing Zheng  * Redistributions in binary form must reproduce the above copyright notice,
11*ae7a9352SXing Zheng  * this list of conditions and the following disclaimer in the documentation
12*ae7a9352SXing Zheng  * and/or other materials provided with the distribution.
13*ae7a9352SXing Zheng  *
14*ae7a9352SXing Zheng  * Neither the name of ARM nor the names of its contributors may be used
15*ae7a9352SXing Zheng  * to endorse or promote products derived from this software without specific
16*ae7a9352SXing Zheng  * prior written permission.
17*ae7a9352SXing Zheng  *
18*ae7a9352SXing Zheng  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*ae7a9352SXing Zheng  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*ae7a9352SXing Zheng  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*ae7a9352SXing Zheng  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*ae7a9352SXing Zheng  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*ae7a9352SXing Zheng  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*ae7a9352SXing Zheng  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*ae7a9352SXing Zheng  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*ae7a9352SXing Zheng  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*ae7a9352SXing Zheng  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*ae7a9352SXing Zheng  * POSSIBILITY OF SUCH DAMAGE.
29*ae7a9352SXing Zheng  */
30*ae7a9352SXing Zheng 
31*ae7a9352SXing Zheng #ifndef __PLAT_ROCKCHIP_RK3399_INCLUDE_SHARED_BL31_PARAM_H__
32*ae7a9352SXing Zheng #define __PLAT_ROCKCHIP_RK3399_INCLUDE_SHARED_BL31_PARAM_H__
33*ae7a9352SXing Zheng 
34*ae7a9352SXing Zheng /*******************************************************************************
35*ae7a9352SXing Zheng  * Platform memory map related constants
36*ae7a9352SXing Zheng  ******************************************************************************/
37*ae7a9352SXing Zheng /* TF text, ro, rw, Size: 1MB */
38*ae7a9352SXing Zheng #define TZRAM_BASE		(0x0)
39*ae7a9352SXing Zheng #define TZRAM_SIZE		(0x100000)
40*ae7a9352SXing Zheng 
41*ae7a9352SXing Zheng /*******************************************************************************
42*ae7a9352SXing Zheng  * BL31 specific defines.
43*ae7a9352SXing Zheng  ******************************************************************************/
44*ae7a9352SXing Zheng /*
45*ae7a9352SXing Zheng  * Put BL3-1 at the top of the Trusted RAM
46*ae7a9352SXing Zheng  */
47*ae7a9352SXing Zheng #define BL31_BASE		(TZRAM_BASE + 0x1000)
48*ae7a9352SXing Zheng #define BL31_LIMIT		(TZRAM_BASE + TZRAM_SIZE)
49*ae7a9352SXing Zheng 
50*ae7a9352SXing Zheng #endif /*__PLAT_ROCKCHIP_RK3399_INCLUDE_SHARED_BL31_PARAM_H__*/
51