pmic.h 568 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2019, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef PMIC_H
  7. #define PMIC_H
  8. enum {
  9. PMIC_TMA_KEY = 0x03a8,
  10. PMIC_PWRHOLD = 0x0a08,
  11. PMIC_PSEQ_ELR11 = 0x0a62,
  12. PMIC_VPROC11_CON0 = 0x1388,
  13. PMIC_VPROC11_OP_EN = 0x1390,
  14. PMIC_VSRAM_PROC11_CON0 = 0x1b46,
  15. PMIC_VSRAM_PROC11_OP_EN = 0x1b4e
  16. };
  17. enum {
  18. PMIC_RG_SDN_DLY_ENB = 1U << 10
  19. };
  20. /* external API */
  21. void bcpu_enable(uint32_t en);
  22. void bcpu_sram_enable(uint32_t en);
  23. void wk_pmic_enable_sdn_delay(void);
  24. void pmic_power_off(void);
  25. #endif /* PMIC_H */