1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2014 Gateworks Corporation
7 #ifndef __LTC3676_PMIC_H_
8 #define __LTC3676_PMIC_H_
10 /* LTC3676 registers */
29 LTC3676_MSKIRQ = 0x12,
34 LTC3676_IRQSTAT = 0x15,
35 LTC3676_PGSTATL = 0x16,
36 LTC3676_PGSTATR = 0x17,
37 LTC3676_NUM_OF_REGS = 0x20,
44 #define LTC3676_DVB_MASK 0x1f
45 #define LTC3676_PGOOD_MASK (1<<5)
46 #define LTC3676_REF_SELA (0<<5)
47 #define LTC3676_REF_SELB (1<<5)
49 int power_ltc3676_init(unsigned char bus);