14ec1a239SAndre Przywara /* 24ec1a239SAndre Przywara * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. 34ec1a239SAndre Przywara * 44ec1a239SAndre Przywara * SPDX-License-Identifier: BSD-3-Clause 54ec1a239SAndre Przywara */ 64ec1a239SAndre Przywara 74ec1a239SAndre Przywara #ifndef SUNXI_PRIVATE_H 84ec1a239SAndre Przywara #define SUNXI_PRIVATE_H 94ec1a239SAndre Przywara 104ec1a239SAndre Przywara void sunxi_configure_mmu_el3(int flags); 114ec1a239SAndre Przywara 124ec1a239SAndre Przywara void sunxi_cpu_on(unsigned int cluster, unsigned int core); 134ec1a239SAndre Przywara void sunxi_cpu_off(unsigned int cluster, unsigned int core); 144ec1a239SAndre Przywara void sunxi_disable_secondary_cpus(unsigned int primary_cpu); 154ec1a239SAndre Przywara void __dead2 sunxi_power_down(void); 164ec1a239SAndre Przywara 174ec1a239SAndre Przywara int sunxi_pmic_setup(uint16_t socid); 184ec1a239SAndre Przywara void sunxi_security_setup(void); 194ec1a239SAndre Przywara 204ec1a239SAndre Przywara uint16_t sunxi_read_soc_id(void); 217020dca0SAndre Przywara void sunxi_set_gpio_out(char port, int pin, bool level_high); 22*d5ddf67aSAndre Przywara int sunxi_init_platform_r_twi(uint16_t socid, bool use_rsb); 234ec1a239SAndre Przywara 244ec1a239SAndre Przywara #endif /* SUNXI_PRIVATE_H */ 25