blob: 20fa23e6234b038cc815eb64cc162c2d27c376d4 [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
7#ifndef __SUNXI_PRIVATE_H__
8#define __SUNXI_PRIVATE_H__
9
10void sunxi_configure_mmu_el3(int flags);
Samuel Holland321c0ab2017-08-12 04:07:39 -050011void sunxi_cpu_off(unsigned int cluster, unsigned int core);
12void sunxi_cpu_on(unsigned int cluster, unsigned int core);
13void sunxi_disable_secondary_cpus(unsigned int primary_cpu);
Samuel Hollandb8566642017-08-12 04:07:39 -050014
Andre Przywarac2366b92018-06-22 00:47:08 +010015uint16_t sunxi_read_soc_id(void);
Icenowy Zheng7508bef2018-07-21 20:41:12 +080016
17void sunxi_pmic_setup(void);
Andre Przywara13815472018-06-01 02:01:39 +010018void sunxi_security_setup(void);
19
Icenowy Zhengbd57eb52018-07-22 21:52:50 +080020void __dead2 sunxi_power_down(void);
21
Samuel Hollandb8566642017-08-12 04:07:39 -050022#endif /* __SUNXI_PRIVATE_H__ */