• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2017-2019, 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);
11 
12 void sunxi_cpu_on(u_register_t mpidr);
13 void sunxi_cpu_off(u_register_t mpidr);
14 void sunxi_disable_secondary_cpus(u_register_t primary_mpidr);
15 void sunxi_power_down(void);
16 
17 int sunxi_pmic_setup(uint16_t socid, const void *fdt);
18 void sunxi_security_setup(void);
19 
20 uint16_t sunxi_read_soc_id(void);
21 void sunxi_set_gpio_out(char port, int pin, bool level_high);
22 int sunxi_init_platform_r_twi(uint16_t socid, bool use_rsb);
23 void sunxi_execute_arisc_code(uint32_t *code, size_t size, uint16_t param);
24 
25 #endif /* SUNXI_PRIVATE_H */
26