xref: /rk3399_ARM-atf/plat/allwinner/common/include/sunxi_private.h (revision a1d349beb02f1d9d4cad7c1b5827ab737faff433)
14ec1a239SAndre Przywara /*
2*a1d349beSSamuel Holland  * Copyright (c) 2017-2021, 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 
125d4bd66dSSamuel Holland void sunxi_cpu_on(u_register_t mpidr);
13*a1d349beSSamuel Holland void sunxi_cpu_power_off_others(void);
14*a1d349beSSamuel Holland void sunxi_cpu_power_off_self(void);
15818e6732SSamuel Holland void sunxi_power_down(void);
164ec1a239SAndre Przywara 
17df301601SAndre Przywara int sunxi_pmic_setup(uint16_t socid, const void *fdt);
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);
22d5ddf67aSAndre Przywara int sunxi_init_platform_r_twi(uint16_t socid, bool use_rsb);
235cffedceSSamuel Holland void sunxi_execute_arisc_code(uint32_t *code, size_t size, uint16_t param);
244ec1a239SAndre Przywara 
254ec1a239SAndre Przywara #endif /* SUNXI_PRIVATE_H */
26