soc_powergate.h 592 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2018 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file reboot configuration macros for Actions SoC
  8. */
  9. #ifndef _ACTIONS_SOC_POWERGATE_H_
  10. #define _ACTIONS_SOC_POWERGATE_H_
  11. enum
  12. {
  13. POWERGATE_DISPLAY_PG_DEV,
  14. POWERGATE_GPU_PG_DEV,
  15. POWERGATE_DSP_AU_PG_DEV,
  16. POWERGATE_BT_PG_DEV,
  17. PWRGATE_MAINCPU_PG_DEV,
  18. POWERGATE_MAX_DEV,
  19. };
  20. bool soc_powergate_is_poweron(uint8_t pg_dev);
  21. int soc_powergate_set(uint8_t pg_dev, bool power_on);
  22. void soc_powergate_init(void);
  23. void soc_powergate_dump(void);
  24. #endif /* _ACTIONS_SOC_POWERGATE_H_ */