1*5e2f0177STim Harvey /* 2*5e2f0177STim Harvey * Copyright (C) 2014 Gateworks Corporation 3*5e2f0177STim Harvey * Tim Harvey <tharvey@gateworks.com> 4*5e2f0177STim Harvey * 5*5e2f0177STim Harvey * SPDX-License-Identifier: GPL-2.0+ 6*5e2f0177STim Harvey */ 7*5e2f0177STim Harvey 8*5e2f0177STim Harvey #ifndef __LTC3676_PMIC_H_ 9*5e2f0177STim Harvey #define __LTC3676_PMIC_H_ 10*5e2f0177STim Harvey 11*5e2f0177STim Harvey /* LTC3676 registers */ 12*5e2f0177STim Harvey enum { 13*5e2f0177STim Harvey LTC3676_BUCK1 = 0x01, 14*5e2f0177STim Harvey LTC3676_BUCK2 = 0x02, 15*5e2f0177STim Harvey LTC3676_BUCK3 = 0x03, 16*5e2f0177STim Harvey LTC3676_BUCK4 = 0x04, 17*5e2f0177STim Harvey LTC3676_LDOA = 0x05, 18*5e2f0177STim Harvey LTC3676_LDOB = 0x06, 19*5e2f0177STim Harvey LTC3676_SQD1 = 0x07, 20*5e2f0177STim Harvey LTC3676_SQD2 = 0x08, 21*5e2f0177STim Harvey LTC3676_CNTRL = 0x09, 22*5e2f0177STim Harvey LTC3676_DVB1A = 0x0A, 23*5e2f0177STim Harvey LTC3676_DVB1B = 0x0B, 24*5e2f0177STim Harvey LTC3676_DVB2A = 0x0C, 25*5e2f0177STim Harvey LTC3676_DVB2B = 0x0D, 26*5e2f0177STim Harvey LTC3676_DVB3A = 0x0E, 27*5e2f0177STim Harvey LTC3676_DVB3B = 0x0F, 28*5e2f0177STim Harvey LTC3676_DVB4A = 0x10, 29*5e2f0177STim Harvey LTC3676_DVB4B = 0x11, 30*5e2f0177STim Harvey LTC3676_MSKIRQ = 0x12, 31*5e2f0177STim Harvey LTC3676_MSKPG = 0x13, 32*5e2f0177STim Harvey LTC3676_USER = 0x14, 33*5e2f0177STim Harvey LTC3676_HRST = 0x1E, 34*5e2f0177STim Harvey LTC3676_CLIRQ = 0x1F, 35*5e2f0177STim Harvey LTC3676_IRQSTAT = 0x15, 36*5e2f0177STim Harvey LTC3676_PGSTATL = 0x16, 37*5e2f0177STim Harvey LTC3676_PGSTATR = 0x17, 38*5e2f0177STim Harvey LTC3676_NUM_OF_REGS = 0x20, 39*5e2f0177STim Harvey }; 40*5e2f0177STim Harvey 41*5e2f0177STim Harvey /* 42*5e2f0177STim Harvey * SW Configuration 43*5e2f0177STim Harvey */ 44*5e2f0177STim Harvey 45*5e2f0177STim Harvey #define LTC3676_DVB_MASK 0x1f 46*5e2f0177STim Harvey #define LTC3676_PGOOD_MASK (1<<5) 47*5e2f0177STim Harvey #define LTC3676_REF_SELA (0<<5) 48*5e2f0177STim Harvey #define LTC3676_REF_SELB (1<<5) 49*5e2f0177STim Harvey 50*5e2f0177STim Harvey int power_ltc3676_init(unsigned char bus); 51*5e2f0177STim Harvey #endif 52