sunxi_power.c 437 B

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