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,
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
18 };
19 
20 enum {
21 	PMIC_RG_SDN_DLY_ENB = 1U << 10
22 };
23 
24 /* external API */
25 void bcpu_enable(uint32_t en);
26 void bcpu_sram_enable(uint32_t en);
27 void wk_pmic_enable_sdn_delay(void);
28 void pmic_power_off(void);
29 
30 #endif /* PMIC_H */
31