xref: /rk3399_ARM-atf/plat/allwinner/sun50i_r329/sunxi_power.c (revision abd63ed0c575a2517c43fe8dc4321d6e9fc512c3)
1*13bacd3bSIcenowy Zheng /*
2*13bacd3bSIcenowy Zheng  * Copyright (c) 2021 Sipeed
3*13bacd3bSIcenowy Zheng  *
4*13bacd3bSIcenowy Zheng  * SPDX-License-Identifier: BSD-3-Clause
5*13bacd3bSIcenowy Zheng  */
6*13bacd3bSIcenowy Zheng 
7*13bacd3bSIcenowy Zheng #include <platform_def.h>
8*13bacd3bSIcenowy Zheng 
9*13bacd3bSIcenowy Zheng #include <sunxi_mmap.h>
10*13bacd3bSIcenowy Zheng #include <sunxi_cpucfg.h>
11*13bacd3bSIcenowy Zheng #include <sunxi_private.h>
12*13bacd3bSIcenowy Zheng 
sunxi_pmic_setup(uint16_t socid,const void * fdt)13*13bacd3bSIcenowy Zheng int sunxi_pmic_setup(uint16_t socid, const void *fdt)
14*13bacd3bSIcenowy Zheng {
15*13bacd3bSIcenowy Zheng 	/* Currently known hardware has no PMIC */
16*13bacd3bSIcenowy Zheng 
17*13bacd3bSIcenowy Zheng 	return 0;
18*13bacd3bSIcenowy Zheng }
19*13bacd3bSIcenowy Zheng 
sunxi_power_down(void)20*13bacd3bSIcenowy Zheng void sunxi_power_down(void)
21*13bacd3bSIcenowy Zheng {
22*13bacd3bSIcenowy Zheng }
23*13bacd3bSIcenowy Zheng 
sunxi_cpu_power_off_self(void)24*13bacd3bSIcenowy Zheng void sunxi_cpu_power_off_self(void)
25*13bacd3bSIcenowy Zheng {
26*13bacd3bSIcenowy Zheng 	/* TODO: It's still unknown whether CPUIDLE exists on R329 */
27*13bacd3bSIcenowy Zheng }
28