1*48469c2dSAdrian Alonso /* 2*48469c2dSAdrian Alonso * Copyright (C) 2015 Freescale Semiconductor, Inc 3*48469c2dSAdrian Alonso * Peng Fan <Peng.Fan@freescale.com> 4*48469c2dSAdrian Alonso * 5*48469c2dSAdrian Alonso * SPDX-License-Identifier: GPL-2.0+ 6*48469c2dSAdrian Alonso */ 7*48469c2dSAdrian Alonso #ifndef __PFUZE3000_PMIC_H_ 8*48469c2dSAdrian Alonso #define __PFUZE3000_PMIC_H_ 9*48469c2dSAdrian Alonso 10*48469c2dSAdrian Alonso /* PFUZE3000 registers */ 11*48469c2dSAdrian Alonso enum { 12*48469c2dSAdrian Alonso PFUZE3000_DEVICEID = 0x00, 13*48469c2dSAdrian Alonso 14*48469c2dSAdrian Alonso PFUZE3000_REVID = 0x03, 15*48469c2dSAdrian Alonso PFUZE3000_FABID = 0x04, 16*48469c2dSAdrian Alonso PFUZE3000_INTSTAT0 = 0x05, 17*48469c2dSAdrian Alonso PFUZE3000_INTMASK0 = 0x06, 18*48469c2dSAdrian Alonso PFUZE3000_INTSENSE0 = 0x07, 19*48469c2dSAdrian Alonso PFUZE3000_INTSTAT1 = 0x08, 20*48469c2dSAdrian Alonso PFUZE3000_INTMASK1 = 0x09, 21*48469c2dSAdrian Alonso PFUZE3000_INTSENSE1 = 0x0A, 22*48469c2dSAdrian Alonso 23*48469c2dSAdrian Alonso PFUZE3000_INTSTAT3 = 0x0E, 24*48469c2dSAdrian Alonso PFUZE3000_INTMASK3 = 0x0F, 25*48469c2dSAdrian Alonso PFUZE3000_INTSENSE3 = 0x10, 26*48469c2dSAdrian Alonso PFUZE3000_INTSTAT4 = 0x11, 27*48469c2dSAdrian Alonso PFUZE3000_INTMASK4 = 0x12, 28*48469c2dSAdrian Alonso PFUZE3000_INTSENSE4 = 0x13, 29*48469c2dSAdrian Alonso 30*48469c2dSAdrian Alonso PFUZE3000_COINCTL = 0x1A, 31*48469c2dSAdrian Alonso PFUZE3000_PWRCTL = 0x1B, 32*48469c2dSAdrian Alonso PFUZE3000_MEMA = 0x1C, 33*48469c2dSAdrian Alonso PFUZE3000_MEMB = 0x1D, 34*48469c2dSAdrian Alonso PFUZE3000_MEMC = 0x1E, 35*48469c2dSAdrian Alonso PFUZE3000_MEMD = 0x1F, 36*48469c2dSAdrian Alonso 37*48469c2dSAdrian Alonso PFUZE3000_SW1AVOLT = 0x20, 38*48469c2dSAdrian Alonso PFUZE3000_SW1ASTBY = 0x21, 39*48469c2dSAdrian Alonso PFUZE3000_SW1AOFF = 0x22, 40*48469c2dSAdrian Alonso PFUZE3000_SW1AMODE = 0x23, 41*48469c2dSAdrian Alonso PFUZE3000_SW1ACONF = 0x24, 42*48469c2dSAdrian Alonso 43*48469c2dSAdrian Alonso PFUZE3000_SW1BVOLT = 0x2E, 44*48469c2dSAdrian Alonso PFUZE3000_SW1BSTBY = 0x2F, 45*48469c2dSAdrian Alonso PFUZE3000_SW1BOFF = 0x30, 46*48469c2dSAdrian Alonso PFUZE3000_SW1BMODE = 0x31, 47*48469c2dSAdrian Alonso PFUZE3000_SW1BCONF = 0x32, 48*48469c2dSAdrian Alonso 49*48469c2dSAdrian Alonso PFUZE3000_SW2VOLT = 0x35, 50*48469c2dSAdrian Alonso PFUZE3000_SW2STBY = 0x36, 51*48469c2dSAdrian Alonso PFUZE3000_SW2OFF = 0x37, 52*48469c2dSAdrian Alonso PFUZE3000_SW2MODE = 0x38, 53*48469c2dSAdrian Alonso PFUZE3000_SW2CONF = 0x39, 54*48469c2dSAdrian Alonso 55*48469c2dSAdrian Alonso PFUZE3000_SW3VOLT = 0x3C, 56*48469c2dSAdrian Alonso PFUZE3000_SW3STBY = 0x3D, 57*48469c2dSAdrian Alonso PFUZE3000_SW3OFF = 0x3E, 58*48469c2dSAdrian Alonso PFUZE3000_SW3MODE = 0x3F, 59*48469c2dSAdrian Alonso PFUZE3000_SW3CONF = 0x40, 60*48469c2dSAdrian Alonso 61*48469c2dSAdrian Alonso PFUZE3000_SWBSTCTL = 0x66, 62*48469c2dSAdrian Alonso 63*48469c2dSAdrian Alonso PFUZE3000_LDOGCTL = 0x69, 64*48469c2dSAdrian Alonso PFUZE3000_VREFDDRCTL = 0x6A, 65*48469c2dSAdrian Alonso PFUZE3000_VSNVSCTL = 0x6B, 66*48469c2dSAdrian Alonso PFUZE3000_VLDO1CTL = 0x6C, 67*48469c2dSAdrian Alonso PFUZE3000_VLDO2CTL = 0x6D, 68*48469c2dSAdrian Alonso PFUZE3000_VCC_SDCTL = 0x6E, 69*48469c2dSAdrian Alonso PFUZE3000_V33CTL = 0x6F, 70*48469c2dSAdrian Alonso PFUZE3000_VLDO3CTL = 0x70, 71*48469c2dSAdrian Alonso PFUZE3000_VLD4CTL = 0x71, 72*48469c2dSAdrian Alonso 73*48469c2dSAdrian Alonso PMIC_NUM_OF_REGS = 0x7F, 74*48469c2dSAdrian Alonso }; 75*48469c2dSAdrian Alonso 76*48469c2dSAdrian Alonso int power_pfuze3000_init(unsigned char bus); 77*48469c2dSAdrian Alonso 78*48469c2dSAdrian Alonso #endif 79