Samuel Holland | b856664 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef __SUNXI_PRIVATE_H__ |
| 8 | #define __SUNXI_PRIVATE_H__ |
| 9 | |
| 10 | void sunxi_configure_mmu_el3(int flags); |
Samuel Holland | 321c0ab | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 11 | void sunxi_cpu_off(unsigned int cluster, unsigned int core); |
| 12 | void sunxi_cpu_on(unsigned int cluster, unsigned int core); |
| 13 | void sunxi_disable_secondary_cpus(unsigned int primary_cpu); |
Samuel Holland | b856664 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 14 | |
Andre Przywara | c2366b9 | 2018-06-22 00:47:08 +0100 | [diff] [blame] | 15 | uint16_t sunxi_read_soc_id(void); |
Icenowy Zheng | 7508bef | 2018-07-21 20:41:12 +0800 | [diff] [blame] | 16 | |
Andre Przywara | 3464e3f | 2018-09-08 19:18:37 +0100 | [diff] [blame] | 17 | void sunxi_pmic_setup(uint16_t socid); |
Andre Przywara | 1381547 | 2018-06-01 02:01:39 +0100 | [diff] [blame] | 18 | void sunxi_security_setup(void); |
| 19 | |
Icenowy Zheng | bd57eb5 | 2018-07-22 21:52:50 +0800 | [diff] [blame] | 20 | void __dead2 sunxi_power_down(void); |
| 21 | |
Samuel Holland | b856664 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 22 | #endif /* __SUNXI_PRIVATE_H__ */ |