xref: /rk3399_ARM-atf/plat/mediatek/mt8173/include/plat_private.h (revision e2a65959bc610a4928a77b78532fec349a9cacb4)
1*e2a65959SJimmy Huang /*
2*e2a65959SJimmy Huang  * Copyright (c) 2014-2015, ARM Limited and Contributors. All rights reserved.
3*e2a65959SJimmy Huang  *
4*e2a65959SJimmy Huang  * Redistribution and use in source and binary forms, with or without
5*e2a65959SJimmy Huang  * modification, are permitted provided that the following conditions are met:
6*e2a65959SJimmy Huang  *
7*e2a65959SJimmy Huang  * Redistributions of source code must retain the above copyright notice, this
8*e2a65959SJimmy Huang  * list of conditions and the following disclaimer.
9*e2a65959SJimmy Huang  *
10*e2a65959SJimmy Huang  * Redistributions in binary form must reproduce the above copyright notice,
11*e2a65959SJimmy Huang  * this list of conditions and the following disclaimer in the documentation
12*e2a65959SJimmy Huang  * and/or other materials provided with the distribution.
13*e2a65959SJimmy Huang  *
14*e2a65959SJimmy Huang  * Neither the name of ARM nor the names of its contributors may be used
15*e2a65959SJimmy Huang  * to endorse or promote products derived from this software without specific
16*e2a65959SJimmy Huang  * prior written permission.
17*e2a65959SJimmy Huang  *
18*e2a65959SJimmy Huang  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*e2a65959SJimmy Huang  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*e2a65959SJimmy Huang  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*e2a65959SJimmy Huang  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*e2a65959SJimmy Huang  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*e2a65959SJimmy Huang  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*e2a65959SJimmy Huang  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*e2a65959SJimmy Huang  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*e2a65959SJimmy Huang  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*e2a65959SJimmy Huang  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*e2a65959SJimmy Huang  * POSSIBILITY OF SUCH DAMAGE.
29*e2a65959SJimmy Huang  */
30*e2a65959SJimmy Huang 
31*e2a65959SJimmy Huang #ifndef __PLAT_PRIVATE_H__
32*e2a65959SJimmy Huang #define __PLAT_PRIVATE_H__
33*e2a65959SJimmy Huang 
34*e2a65959SJimmy Huang /*******************************************************************************
35*e2a65959SJimmy Huang  * Function and variable prototypes
36*e2a65959SJimmy Huang  ******************************************************************************/
37*e2a65959SJimmy Huang void plat_configure_mmu_el3(unsigned long total_base,
38*e2a65959SJimmy Huang 			    unsigned long total_size,
39*e2a65959SJimmy Huang 			    unsigned long,
40*e2a65959SJimmy Huang 			    unsigned long,
41*e2a65959SJimmy Huang 			    unsigned long,
42*e2a65959SJimmy Huang 			    unsigned long);
43*e2a65959SJimmy Huang 
44*e2a65959SJimmy Huang void plat_cci_init(void);
45*e2a65959SJimmy Huang void plat_cci_enable(void);
46*e2a65959SJimmy Huang void plat_cci_disable(void);
47*e2a65959SJimmy Huang 
48*e2a65959SJimmy Huang /* Declarations for plat_mt_gic.c */
49*e2a65959SJimmy Huang void plat_mt_gic_init(void);
50*e2a65959SJimmy Huang 
51*e2a65959SJimmy Huang /* Declarations for plat_topology.c */
52*e2a65959SJimmy Huang int mt_setup_topology(void);
53*e2a65959SJimmy Huang 
54*e2a65959SJimmy Huang void plat_delay_timer_init(void);
55*e2a65959SJimmy Huang 
56*e2a65959SJimmy Huang #endif /* __PLAT_PRIVATE_H__ */
57