sunxi_private.h 718 Bytes
Newer Older
1
2
3
4
5
6
/*
 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
#ifndef SUNXI_PRIVATE_H
#define SUNXI_PRIVATE_H
9
10

void sunxi_configure_mmu_el3(int flags);
11

12
void sunxi_cpu_on(unsigned int cluster, unsigned int core);
13
void sunxi_cpu_off(unsigned int cluster, unsigned int core);
14
void sunxi_disable_secondary_cpus(unsigned int primary_cpu);
15
void __dead2 sunxi_power_down(void);
16

17
int sunxi_pmic_setup(uint16_t socid, const void *fdt);
Andre Przywara's avatar
Andre Przywara committed
18
19
void sunxi_security_setup(void);

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

24
#endif /* SUNXI_PRIVATE_H */