blob: f19f9f6e4dd0339fb20869822f09f47491442333 [file] [log] [blame]
developer6f37fd22019-05-02 20:02:05 +08001/*
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
10enum {
11 PMIC_TMA_KEY = 0x03a8,
12 PMIC_PWRHOLD = 0x0a08,
developer083fa242019-08-21 20:50:20 +080013 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
developer6f37fd22019-05-02 20:02:05 +080018};
19
20enum {
21 PMIC_RG_SDN_DLY_ENB = 1U << 10
22};
23
24/* external API */
developer083fa242019-08-21 20:50:20 +080025void bcpu_enable(uint32_t en);
26void bcpu_sram_enable(uint32_t en);
developer6f37fd22019-05-02 20:02:05 +080027void wk_pmic_enable_sdn_delay(void);
28void pmic_power_off(void);
29
30#endif /* PMIC_H */