James Lo | 4ac7a41 | 2021-10-06 18:12:30 +0800 | [diff] [blame^] | 1 | /* |
2 | * Copyright (c) 2021, 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 | #include <stdint.h> | ||||
11 | |||||
12 | #define PMIC_RG_HWCID_ADDR 0x8 | ||||
13 | #define PMIC_PWRHOLD 0xa08 | ||||
14 | |||||
15 | /* external API */ | ||||
16 | uint32_t pmic_get_hwcid(void); | ||||
17 | void pmic_power_off(void); | ||||
18 | |||||
19 | #endif /* PMIC_H */ |