1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
7 #ifndef _PMIC_ACT8846_H_
8 #define _PMIC_ACT8846_H_
12 #define ACT8846_NUM_OF_REGS 12
14 #define BUCK_VOL_MASK 0x3f
15 #define LDO_VOL_MASK 0x3f
17 #define BUCK_EN_MASK 0x80
18 #define LDO_EN_MASK 0x80
20 #define VOL_MIN_IDX 0x00
21 #define VOL_MAX_IDX 0x3f
23 struct act8846_reg_table {
31 int node; /*device tree node*/
32 struct gpio_desc pwr_hold;