blob: 54cc27e4fdbd106eaeb85a125e532c5b4d6dfd55 [file] [log] [blame]
Samuel Hollandb8566642017-08-12 04:07:39 -05001/*
2 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Andre Przywara456208a2018-10-14 12:02:02 +01007#ifndef SUNXI_PRIVATE_H
8#define SUNXI_PRIVATE_H
Samuel Hollandb8566642017-08-12 04:07:39 -05009
10void sunxi_configure_mmu_el3(int flags);
Andre Przywara456208a2018-10-14 12:02:02 +010011
Samuel Holland321c0ab2017-08-12 04:07:39 -050012void sunxi_cpu_on(unsigned int cluster, unsigned int core);
Andre Przywara456208a2018-10-14 12:02:02 +010013void sunxi_cpu_off(unsigned int cluster, unsigned int core);
Samuel Holland321c0ab2017-08-12 04:07:39 -050014void sunxi_disable_secondary_cpus(unsigned int primary_cpu);
Andre Przywara456208a2018-10-14 12:02:02 +010015void __dead2 sunxi_power_down(void);
Icenowy Zheng7508bef2018-07-21 20:41:12 +080016
Andre Przywara456208a2018-10-14 12:02:02 +010017int sunxi_pmic_setup(uint16_t socid);
Andre Przywara13815472018-06-01 02:01:39 +010018void sunxi_security_setup(void);
19
Andre Przywara456208a2018-10-14 12:02:02 +010020uint16_t sunxi_read_soc_id(void);
Andre Przywara435464d2018-10-14 12:03:23 +010021void sunxi_set_gpio_out(char port, int pin, bool level_high);
Icenowy Zhengbd57eb52018-07-22 21:52:50 +080022
Andre Przywara456208a2018-10-14 12:02:02 +010023#endif /* SUNXI_PRIVATE_H */