developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019, MediaTek Inc. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef PMIC_H |
| 8 | #define PMIC_H |
| 9 | |
| 10 | enum { |
| 11 | PMIC_TMA_KEY = 0x03a8, |
| 12 | PMIC_PWRHOLD = 0x0a08, |
developer | 083fa24 | 2019-08-21 20:50:20 +0800 | [diff] [blame] | 13 | PMIC_PSEQ_ELR11 = 0x0a62, |
| 14 | PMIC_VPROC11_CON0 = 0x1388, |
| 15 | PMIC_VPROC11_OP_EN = 0x1390, |
| 16 | PMIC_VSRAM_PROC11_CON0 = 0x1b46, |
| 17 | PMIC_VSRAM_PROC11_OP_EN = 0x1b4e |
developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | enum { |
| 21 | PMIC_RG_SDN_DLY_ENB = 1U << 10 |
| 22 | }; |
| 23 | |
| 24 | /* external API */ |
developer | 083fa24 | 2019-08-21 20:50:20 +0800 | [diff] [blame] | 25 | void bcpu_enable(uint32_t en); |
| 26 | void bcpu_sram_enable(uint32_t en); |
developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 27 | void wk_pmic_enable_sdn_delay(void); |
| 28 | void pmic_power_off(void); |
| 29 | |
| 30 | #endif /* PMIC_H */ |