xref: /rk3399_ARM-atf/plat/common/aarch32/plat_common.c (revision d50ece03d9e95ac2e35546ceff0f787199e4420e)
1877cf3ffSSoby Mathew /*
2*d50ece03SAntonio Nino Diaz  * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3877cf3ffSSoby Mathew  *
4877cf3ffSSoby Mathew  * Redistribution and use in source and binary forms, with or without
5877cf3ffSSoby Mathew  * modification, are permitted provided that the following conditions are met:
6877cf3ffSSoby Mathew  *
7877cf3ffSSoby Mathew  * Redistributions of source code must retain the above copyright notice, this
8877cf3ffSSoby Mathew  * list of conditions and the following disclaimer.
9877cf3ffSSoby Mathew  *
10877cf3ffSSoby Mathew  * Redistributions in binary form must reproduce the above copyright notice,
11877cf3ffSSoby Mathew  * this list of conditions and the following disclaimer in the documentation
12877cf3ffSSoby Mathew  * and/or other materials provided with the distribution.
13877cf3ffSSoby Mathew  *
14877cf3ffSSoby Mathew  * Neither the name of ARM nor the names of its contributors may be used
15877cf3ffSSoby Mathew  * to endorse or promote products derived from this software without specific
16877cf3ffSSoby Mathew  * prior written permission.
17877cf3ffSSoby Mathew  *
18877cf3ffSSoby Mathew  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19877cf3ffSSoby Mathew  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20877cf3ffSSoby Mathew  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21877cf3ffSSoby Mathew  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22877cf3ffSSoby Mathew  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23877cf3ffSSoby Mathew  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24877cf3ffSSoby Mathew  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25877cf3ffSSoby Mathew  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26877cf3ffSSoby Mathew  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27877cf3ffSSoby Mathew  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28877cf3ffSSoby Mathew  * POSSIBILITY OF SUCH DAMAGE.
29877cf3ffSSoby Mathew  */
30877cf3ffSSoby Mathew 
31877cf3ffSSoby Mathew #include <platform.h>
32*d50ece03SAntonio Nino Diaz #include <xlat_mmu_helpers.h>
33877cf3ffSSoby Mathew 
34877cf3ffSSoby Mathew /*
35877cf3ffSSoby Mathew  * The following platform setup functions are weakly defined. They
36877cf3ffSSoby Mathew  * provide typical implementations that may be re-used by multiple
37877cf3ffSSoby Mathew  * platforms but may also be overridden by a platform if required.
38877cf3ffSSoby Mathew  */
39877cf3ffSSoby Mathew #pragma weak bl32_plat_enable_mmu
40877cf3ffSSoby Mathew 
41877cf3ffSSoby Mathew void bl32_plat_enable_mmu(uint32_t flags)
42877cf3ffSSoby Mathew {
43877cf3ffSSoby Mathew 	enable_mmu_secure(flags);
44877cf3ffSSoby Mathew }
45