summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/mt8186/drivers/pmic/pmic.h
blob: 91ccb197c461f4a5765eeb83d3dff45df3a5854f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2021, MediaTek Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef PMIC_H
#define PMIC_H

#include <stdint.h>

#define PMIC_RG_HWCID_ADDR 0x8
#define PMIC_PWRHOLD 0xa08

/* external API */
uint32_t pmic_get_hwcid(void);
void pmic_power_off(void);

#endif /* PMIC_H */