Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
max8997-private.h File Reference
#include <linux/i2c.h>
#include <linux/export.h>
#include <linux/irqdomain.h>

Go to the source code of this file.

Data Structures

struct  max8997_dev
 

Macros

#define MAX8997_REG_INVALID   (0xff)
 
#define MAX8997_NUM_GPIO   12
 
#define MAX8997_GPIO_INT_BOTH   (0x3 << 4)
 
#define MAX8997_GPIO_INT_RISE   (0x2 << 4)
 
#define MAX8997_GPIO_INT_FALL   (0x1 << 4)
 
#define MAX8997_GPIO_INT_MASK   (0x3 << 4)
 
#define MAX8997_GPIO_DATA_MASK   (0x1 << 2)
 

Enumerations

enum  max8997_pmic_reg {
  MAX8997_REG_PMIC_ID0 = 0x00, MAX8997_REG_PMIC_ID1 = 0x01, MAX8997_REG_INTSRC = 0x02, MAX8997_REG_INT1 = 0x03,
  MAX8997_REG_INT2 = 0x04, MAX8997_REG_INT3 = 0x05, MAX8997_REG_INT4 = 0x06, MAX8997_REG_INT1MSK = 0x08,
  MAX8997_REG_INT2MSK = 0x09, MAX8997_REG_INT3MSK = 0x0a, MAX8997_REG_INT4MSK = 0x0b, MAX8997_REG_STATUS1 = 0x0d,
  MAX8997_REG_STATUS2 = 0x0e, MAX8997_REG_STATUS3 = 0x0f, MAX8997_REG_STATUS4 = 0x10, MAX8997_REG_MAINCON1 = 0x13,
  MAX8997_REG_MAINCON2 = 0x14, MAX8997_REG_BUCKRAMP = 0x15, MAX8997_REG_BUCK1CTRL = 0x18, MAX8997_REG_BUCK1DVS1 = 0x19,
  MAX8997_REG_BUCK1DVS2 = 0x1a, MAX8997_REG_BUCK1DVS3 = 0x1b, MAX8997_REG_BUCK1DVS4 = 0x1c, MAX8997_REG_BUCK1DVS5 = 0x1d,
  MAX8997_REG_BUCK1DVS6 = 0x1e, MAX8997_REG_BUCK1DVS7 = 0x1f, MAX8997_REG_BUCK1DVS8 = 0x20, MAX8997_REG_BUCK2CTRL = 0x21,
  MAX8997_REG_BUCK2DVS1 = 0x22, MAX8997_REG_BUCK2DVS2 = 0x23, MAX8997_REG_BUCK2DVS3 = 0x24, MAX8997_REG_BUCK2DVS4 = 0x25,
  MAX8997_REG_BUCK2DVS5 = 0x26, MAX8997_REG_BUCK2DVS6 = 0x27, MAX8997_REG_BUCK2DVS7 = 0x28, MAX8997_REG_BUCK2DVS8 = 0x29,
  MAX8997_REG_BUCK3CTRL = 0x2a, MAX8997_REG_BUCK3DVS = 0x2b, MAX8997_REG_BUCK4CTRL = 0x2c, MAX8997_REG_BUCK4DVS = 0x2d,
  MAX8997_REG_BUCK5CTRL = 0x2e, MAX8997_REG_BUCK5DVS1 = 0x2f, MAX8997_REG_BUCK5DVS2 = 0x30, MAX8997_REG_BUCK5DVS3 = 0x31,
  MAX8997_REG_BUCK5DVS4 = 0x32, MAX8997_REG_BUCK5DVS5 = 0x33, MAX8997_REG_BUCK5DVS6 = 0x34, MAX8997_REG_BUCK5DVS7 = 0x35,
  MAX8997_REG_BUCK5DVS8 = 0x36, MAX8997_REG_BUCK6CTRL = 0x37, MAX8997_REG_BUCK6BPSKIPCTRL = 0x38, MAX8997_REG_BUCK7CTRL = 0x39,
  MAX8997_REG_BUCK7DVS = 0x3a, MAX8997_REG_LDO1CTRL = 0x3b, MAX8997_REG_LDO2CTRL = 0x3c, MAX8997_REG_LDO3CTRL = 0x3d,
  MAX8997_REG_LDO4CTRL = 0x3e, MAX8997_REG_LDO5CTRL = 0x3f, MAX8997_REG_LDO6CTRL = 0x40, MAX8997_REG_LDO7CTRL = 0x41,
  MAX8997_REG_LDO8CTRL = 0x42, MAX8997_REG_LDO9CTRL = 0x43, MAX8997_REG_LDO10CTRL = 0x44, MAX8997_REG_LDO11CTRL = 0x45,
  MAX8997_REG_LDO12CTRL = 0x46, MAX8997_REG_LDO13CTRL = 0x47, MAX8997_REG_LDO14CTRL = 0x48, MAX8997_REG_LDO15CTRL = 0x49,
  MAX8997_REG_LDO16CTRL = 0x4a, MAX8997_REG_LDO17CTRL = 0x4b, MAX8997_REG_LDO18CTRL = 0x4c, MAX8997_REG_LDO21CTRL = 0x4d,
  MAX8997_REG_MBCCTRL1 = 0x50, MAX8997_REG_MBCCTRL2 = 0x51, MAX8997_REG_MBCCTRL3 = 0x52, MAX8997_REG_MBCCTRL4 = 0x53,
  MAX8997_REG_MBCCTRL5 = 0x54, MAX8997_REG_MBCCTRL6 = 0x55, MAX8997_REG_OTPCGHCVS = 0x56, MAX8997_REG_SAFEOUTCTRL = 0x5a,
  MAX8997_REG_LBCNFG1 = 0x5e, MAX8997_REG_LBCNFG2 = 0x5f, MAX8997_REG_BBCCTRL = 0x60, MAX8997_REG_FLASH1_CUR = 0x63,
  MAX8997_REG_FLASH2_CUR = 0x64, MAX8997_REG_MOVIE_CUR = 0x65, MAX8997_REG_GSMB_CUR = 0x66, MAX8997_REG_BOOST_CNTL = 0x67,
  MAX8997_REG_LEN_CNTL = 0x68, MAX8997_REG_FLASH_CNTL = 0x69, MAX8997_REG_WDT_CNTL = 0x6a, MAX8997_REG_MAXFLASH1 = 0x6b,
  MAX8997_REG_MAXFLASH2 = 0x6c, MAX8997_REG_FLASHSTATUS = 0x6d, MAX8997_REG_FLASHSTATUSMASK = 0x6e, MAX8997_REG_GPIOCNTL1 = 0x70,
  MAX8997_REG_GPIOCNTL2 = 0x71, MAX8997_REG_GPIOCNTL3 = 0x72, MAX8997_REG_GPIOCNTL4 = 0x73, MAX8997_REG_GPIOCNTL5 = 0x74,
  MAX8997_REG_GPIOCNTL6 = 0x75, MAX8997_REG_GPIOCNTL7 = 0x76, MAX8997_REG_GPIOCNTL8 = 0x77, MAX8997_REG_GPIOCNTL9 = 0x78,
  MAX8997_REG_GPIOCNTL10 = 0x79, MAX8997_REG_GPIOCNTL11 = 0x7a, MAX8997_REG_GPIOCNTL12 = 0x7b, MAX8997_REG_LDO1CONFIG = 0x80,
  MAX8997_REG_LDO2CONFIG = 0x81, MAX8997_REG_LDO3CONFIG = 0x82, MAX8997_REG_LDO4CONFIG = 0x83, MAX8997_REG_LDO5CONFIG = 0x84,
  MAX8997_REG_LDO6CONFIG = 0x85, MAX8997_REG_LDO7CONFIG = 0x86, MAX8997_REG_LDO8CONFIG = 0x87, MAX8997_REG_LDO9CONFIG = 0x88,
  MAX8997_REG_LDO10CONFIG = 0x89, MAX8997_REG_LDO11CONFIG = 0x8a, MAX8997_REG_LDO12CONFIG = 0x8b, MAX8997_REG_LDO13CONFIG = 0x8c,
  MAX8997_REG_LDO14CONFIG = 0x8d, MAX8997_REG_LDO15CONFIG = 0x8e, MAX8997_REG_LDO16CONFIG = 0x8f, MAX8997_REG_LDO17CONFIG = 0x90,
  MAX8997_REG_LDO18CONFIG = 0x91, MAX8997_REG_LDO21CONFIG = 0x92, MAX8997_REG_DVSOKTIMER1 = 0x97, MAX8997_REG_DVSOKTIMER2 = 0x98,
  MAX8997_REG_DVSOKTIMER4 = 0x99, MAX8997_REG_DVSOKTIMER5 = 0x9a, MAX8997_REG_PMIC_END = 0x9b
}
 
enum  max8997_muic_reg {
  MAX8997_MUIC_REG_ID = 0x0, MAX8997_MUIC_REG_INT1 = 0x1, MAX8997_MUIC_REG_INT2 = 0x2, MAX8997_MUIC_REG_INT3 = 0x3,
  MAX8997_MUIC_REG_STATUS1 = 0x4, MAX8997_MUIC_REG_STATUS2 = 0x5, MAX8997_MUIC_REG_STATUS3 = 0x6, MAX8997_MUIC_REG_INTMASK1 = 0x7,
  MAX8997_MUIC_REG_INTMASK2 = 0x8, MAX8997_MUIC_REG_INTMASK3 = 0x9, MAX8997_MUIC_REG_CDETCTRL = 0xa, MAX8997_MUIC_REG_CONTROL1 = 0xc,
  MAX8997_MUIC_REG_CONTROL2 = 0xd, MAX8997_MUIC_REG_CONTROL3 = 0xe, MAX8997_MUIC_REG_END = 0xf
}
 
enum  max8997_haptic_reg {
  MAX8997_HAPTIC_REG_GENERAL = 0x00, MAX8997_HAPTIC_REG_CONF1 = 0x01, MAX8997_HAPTIC_REG_CONF2 = 0x02, MAX8997_HAPTIC_REG_DRVCONF = 0x03,
  MAX8997_HAPTIC_REG_CYCLECONF1 = 0x04, MAX8997_HAPTIC_REG_CYCLECONF2 = 0x05, MAX8997_HAPTIC_REG_SIGCONF1 = 0x06, MAX8997_HAPTIC_REG_SIGCONF2 = 0x07,
  MAX8997_HAPTIC_REG_SIGCONF3 = 0x08, MAX8997_HAPTIC_REG_SIGCONF4 = 0x09, MAX8997_HAPTIC_REG_SIGDC1 = 0x0a, MAX8997_HAPTIC_REG_SIGDC2 = 0x0b,
  MAX8997_HAPTIC_REG_SIGPWMDC1 = 0x0c, MAX8997_HAPTIC_REG_SIGPWMDC2 = 0x0d, MAX8997_HAPTIC_REG_SIGPWMDC3 = 0x0e, MAX8997_HAPTIC_REG_SIGPWMDC4 = 0x0f,
  MAX8997_HAPTIC_REG_MTR_REV = 0x10, MAX8997_HAPTIC_REG_END = 0x11
}
 
enum  max8997_rtc_reg {
  MAX8997_RTC_CTRLMASK = 0x02, MAX8997_RTC_CTRL = 0x03, MAX8997_RTC_UPDATE1 = 0x04, MAX8997_RTC_UPDATE2 = 0x05,
  MAX8997_RTC_WTSR_SMPL = 0x06, MAX8997_RTC_SEC = 0x10, MAX8997_RTC_MIN = 0x11, MAX8997_RTC_HOUR = 0x12,
  MAX8997_RTC_DAY_OF_WEEK = 0x13, MAX8997_RTC_MONTH = 0x14, MAX8997_RTC_YEAR = 0x15, MAX8997_RTC_DAY_OF_MONTH = 0x16,
  MAX8997_RTC_ALARM1_SEC = 0x17, MAX8997_RTC_ALARM1_MIN = 0x18, MAX8997_RTC_ALARM1_HOUR = 0x19, MAX8997_RTC_ALARM1_DAY_OF_WEEK = 0x1a,
  MAX8997_RTC_ALARM1_MONTH = 0x1b, MAX8997_RTC_ALARM1_YEAR = 0x1c, MAX8997_RTC_ALARM1_DAY_OF_MONTH = 0x1d, MAX8997_RTC_ALARM2_SEC = 0x1e,
  MAX8997_RTC_ALARM2_MIN = 0x1f, MAX8997_RTC_ALARM2_HOUR = 0x20, MAX8997_RTC_ALARM2_DAY_OF_WEEK = 0x21, MAX8997_RTC_ALARM2_MONTH = 0x22,
  MAX8997_RTC_ALARM2_YEAR = 0x23, MAX8997_RTC_ALARM2_DAY_OF_MONTH = 0x24
}
 
enum  max8997_irq_source {
  PMIC_INT1 = 0, PMIC_INT2, PMIC_INT3, PMIC_INT4,
  FUEL_GAUGE, MUIC_INT1, MUIC_INT2, MUIC_INT3,
  GPIO_LOW, GPIO_HI, FLASH_STATUS, MAX8997_IRQ_GROUP_NR
}
 
enum  max8997_irq {
  MAX8997_PMICIRQ_PWRONR, MAX8997_PMICIRQ_PWRONF, MAX8997_PMICIRQ_PWRON1SEC, MAX8997_PMICIRQ_JIGONR,
  MAX8997_PMICIRQ_JIGONF, MAX8997_PMICIRQ_LOWBAT2, MAX8997_PMICIRQ_LOWBAT1, MAX8997_PMICIRQ_JIGR,
  MAX8997_PMICIRQ_JIGF, MAX8997_PMICIRQ_MR, MAX8997_PMICIRQ_DVS1OK, MAX8997_PMICIRQ_DVS2OK,
  MAX8997_PMICIRQ_DVS3OK, MAX8997_PMICIRQ_DVS4OK, MAX8997_PMICIRQ_CHGINS, MAX8997_PMICIRQ_CHGRM,
  MAX8997_PMICIRQ_DCINOVP, MAX8997_PMICIRQ_TOPOFFR, MAX8997_PMICIRQ_CHGRSTF, MAX8997_PMICIRQ_MBCHGTMEXPD,
  MAX8997_PMICIRQ_RTC60S, MAX8997_PMICIRQ_RTCA1, MAX8997_PMICIRQ_RTCA2, MAX8997_PMICIRQ_SMPL_INT,
  MAX8997_PMICIRQ_RTC1S, MAX8997_PMICIRQ_WTSR, MAX8997_MUICIRQ_ADCError, MAX8997_MUICIRQ_ADCLow,
  MAX8997_MUICIRQ_ADC, MAX8997_MUICIRQ_VBVolt, MAX8997_MUICIRQ_DBChg, MAX8997_MUICIRQ_DCDTmr,
  MAX8997_MUICIRQ_ChgDetRun, MAX8997_MUICIRQ_ChgTyp, MAX8997_MUICIRQ_OVP, MAX8997_IRQ_NR
}
 
enum  max8997_types { TYPE_MAX8997, TYPE_MAX8966 }
 

Functions

int max8997_irq_init (struct max8997_dev *max8997)
 
void max8997_irq_exit (struct max8997_dev *max8997)
 
int max8997_irq_resume (struct max8997_dev *max8997)
 
int max8997_read_reg (struct i2c_client *i2c, u8 reg, u8 *dest)
 
int max8997_bulk_read (struct i2c_client *i2c, u8 reg, int count, u8 *buf)
 
int max8997_write_reg (struct i2c_client *i2c, u8 reg, u8 value)
 
int max8997_bulk_write (struct i2c_client *i2c, u8 reg, int count, u8 *buf)
 
int max8997_update_reg (struct i2c_client *i2c, u8 reg, u8 val, u8 mask)
 

Macro Definition Documentation

#define MAX8997_GPIO_DATA_MASK   (0x1 << 2)

Definition at line 364 of file max8997-private.h.

#define MAX8997_GPIO_INT_BOTH   (0x3 << 4)

Definition at line 359 of file max8997-private.h.

#define MAX8997_GPIO_INT_FALL   (0x1 << 4)

Definition at line 361 of file max8997-private.h.

#define MAX8997_GPIO_INT_MASK   (0x3 << 4)

Definition at line 363 of file max8997-private.h.

#define MAX8997_GPIO_INT_RISE   (0x2 << 4)

Definition at line 360 of file max8997-private.h.

#define MAX8997_NUM_GPIO   12

Definition at line 316 of file max8997-private.h.

#define MAX8997_REG_INVALID   (0xff)

Definition at line 29 of file max8997-private.h.

Enumeration Type Documentation

Enumerator:
MAX8997_HAPTIC_REG_GENERAL 
MAX8997_HAPTIC_REG_CONF1 
MAX8997_HAPTIC_REG_CONF2 
MAX8997_HAPTIC_REG_DRVCONF 
MAX8997_HAPTIC_REG_CYCLECONF1 
MAX8997_HAPTIC_REG_CYCLECONF2 
MAX8997_HAPTIC_REG_SIGCONF1 
MAX8997_HAPTIC_REG_SIGCONF2 
MAX8997_HAPTIC_REG_SIGCONF3 
MAX8997_HAPTIC_REG_SIGCONF4 
MAX8997_HAPTIC_REG_SIGDC1 
MAX8997_HAPTIC_REG_SIGDC2 
MAX8997_HAPTIC_REG_SIGPWMDC1 
MAX8997_HAPTIC_REG_SIGPWMDC2 
MAX8997_HAPTIC_REG_SIGPWMDC3 
MAX8997_HAPTIC_REG_SIGPWMDC4 
MAX8997_HAPTIC_REG_MTR_REV 
MAX8997_HAPTIC_REG_END 

Definition at line 197 of file max8997-private.h.

Enumerator:
MAX8997_PMICIRQ_PWRONR 
MAX8997_PMICIRQ_PWRONF 
MAX8997_PMICIRQ_PWRON1SEC 
MAX8997_PMICIRQ_JIGONR 
MAX8997_PMICIRQ_JIGONF 
MAX8997_PMICIRQ_LOWBAT2 
MAX8997_PMICIRQ_LOWBAT1 
MAX8997_PMICIRQ_JIGR 
MAX8997_PMICIRQ_JIGF 
MAX8997_PMICIRQ_MR 
MAX8997_PMICIRQ_DVS1OK 
MAX8997_PMICIRQ_DVS2OK 
MAX8997_PMICIRQ_DVS3OK 
MAX8997_PMICIRQ_DVS4OK 
MAX8997_PMICIRQ_CHGINS 
MAX8997_PMICIRQ_CHGRM 
MAX8997_PMICIRQ_DCINOVP 
MAX8997_PMICIRQ_TOPOFFR 
MAX8997_PMICIRQ_CHGRSTF 
MAX8997_PMICIRQ_MBCHGTMEXPD 
MAX8997_PMICIRQ_RTC60S 
MAX8997_PMICIRQ_RTCA1 
MAX8997_PMICIRQ_RTCA2 
MAX8997_PMICIRQ_SMPL_INT 
MAX8997_PMICIRQ_RTC1S 
MAX8997_PMICIRQ_WTSR 
MAX8997_MUICIRQ_ADCError 
MAX8997_MUICIRQ_ADCLow 
MAX8997_MUICIRQ_ADC 
MAX8997_MUICIRQ_VBVolt 
MAX8997_MUICIRQ_DBChg 
MAX8997_MUICIRQ_DCDTmr 
MAX8997_MUICIRQ_ChgDetRun 
MAX8997_MUICIRQ_ChgTyp 
MAX8997_MUICIRQ_OVP 
MAX8997_IRQ_NR 

Definition at line 270 of file max8997-private.h.

Enumerator:
PMIC_INT1 
PMIC_INT2 
PMIC_INT3 
PMIC_INT4 
FUEL_GAUGE 
MUIC_INT1 
MUIC_INT2 
MUIC_INT3 
GPIO_LOW 
GPIO_HI 
FLASH_STATUS 
MAX8997_IRQ_GROUP_NR 

Definition at line 250 of file max8997-private.h.

Enumerator:
MAX8997_MUIC_REG_ID 
MAX8997_MUIC_REG_INT1 
MAX8997_MUIC_REG_INT2 
MAX8997_MUIC_REG_INT3 
MAX8997_MUIC_REG_STATUS1 
MAX8997_MUIC_REG_STATUS2 
MAX8997_MUIC_REG_STATUS3 
MAX8997_MUIC_REG_INTMASK1 
MAX8997_MUIC_REG_INTMASK2 
MAX8997_MUIC_REG_INTMASK3 
MAX8997_MUIC_REG_CDETCTRL 
MAX8997_MUIC_REG_CONTROL1 
MAX8997_MUIC_REG_CONTROL2 
MAX8997_MUIC_REG_CONTROL3 
MAX8997_MUIC_REG_END 

Definition at line 177 of file max8997-private.h.

Enumerator:
MAX8997_REG_PMIC_ID0 
MAX8997_REG_PMIC_ID1 
MAX8997_REG_INTSRC 
MAX8997_REG_INT1 
MAX8997_REG_INT2 
MAX8997_REG_INT3 
MAX8997_REG_INT4 
MAX8997_REG_INT1MSK 
MAX8997_REG_INT2MSK 
MAX8997_REG_INT3MSK 
MAX8997_REG_INT4MSK 
MAX8997_REG_STATUS1 
MAX8997_REG_STATUS2 
MAX8997_REG_STATUS3 
MAX8997_REG_STATUS4 
MAX8997_REG_MAINCON1 
MAX8997_REG_MAINCON2 
MAX8997_REG_BUCKRAMP 
MAX8997_REG_BUCK1CTRL 
MAX8997_REG_BUCK1DVS1 
MAX8997_REG_BUCK1DVS2 
MAX8997_REG_BUCK1DVS3 
MAX8997_REG_BUCK1DVS4 
MAX8997_REG_BUCK1DVS5 
MAX8997_REG_BUCK1DVS6 
MAX8997_REG_BUCK1DVS7 
MAX8997_REG_BUCK1DVS8 
MAX8997_REG_BUCK2CTRL 
MAX8997_REG_BUCK2DVS1 
MAX8997_REG_BUCK2DVS2 
MAX8997_REG_BUCK2DVS3 
MAX8997_REG_BUCK2DVS4 
MAX8997_REG_BUCK2DVS5 
MAX8997_REG_BUCK2DVS6 
MAX8997_REG_BUCK2DVS7 
MAX8997_REG_BUCK2DVS8 
MAX8997_REG_BUCK3CTRL 
MAX8997_REG_BUCK3DVS 
MAX8997_REG_BUCK4CTRL 
MAX8997_REG_BUCK4DVS 
MAX8997_REG_BUCK5CTRL 
MAX8997_REG_BUCK5DVS1 
MAX8997_REG_BUCK5DVS2 
MAX8997_REG_BUCK5DVS3 
MAX8997_REG_BUCK5DVS4 
MAX8997_REG_BUCK5DVS5 
MAX8997_REG_BUCK5DVS6 
MAX8997_REG_BUCK5DVS7 
MAX8997_REG_BUCK5DVS8 
MAX8997_REG_BUCK6CTRL 
MAX8997_REG_BUCK6BPSKIPCTRL 
MAX8997_REG_BUCK7CTRL 
MAX8997_REG_BUCK7DVS 
MAX8997_REG_LDO1CTRL 
MAX8997_REG_LDO2CTRL 
MAX8997_REG_LDO3CTRL 
MAX8997_REG_LDO4CTRL 
MAX8997_REG_LDO5CTRL 
MAX8997_REG_LDO6CTRL 
MAX8997_REG_LDO7CTRL 
MAX8997_REG_LDO8CTRL 
MAX8997_REG_LDO9CTRL 
MAX8997_REG_LDO10CTRL 
MAX8997_REG_LDO11CTRL 
MAX8997_REG_LDO12CTRL 
MAX8997_REG_LDO13CTRL 
MAX8997_REG_LDO14CTRL 
MAX8997_REG_LDO15CTRL 
MAX8997_REG_LDO16CTRL 
MAX8997_REG_LDO17CTRL 
MAX8997_REG_LDO18CTRL 
MAX8997_REG_LDO21CTRL 
MAX8997_REG_MBCCTRL1 
MAX8997_REG_MBCCTRL2 
MAX8997_REG_MBCCTRL3 
MAX8997_REG_MBCCTRL4 
MAX8997_REG_MBCCTRL5 
MAX8997_REG_MBCCTRL6 
MAX8997_REG_OTPCGHCVS 
MAX8997_REG_SAFEOUTCTRL 
MAX8997_REG_LBCNFG1 
MAX8997_REG_LBCNFG2 
MAX8997_REG_BBCCTRL 
MAX8997_REG_FLASH1_CUR 
MAX8997_REG_FLASH2_CUR 
MAX8997_REG_MOVIE_CUR 
MAX8997_REG_GSMB_CUR 
MAX8997_REG_BOOST_CNTL 
MAX8997_REG_LEN_CNTL 
MAX8997_REG_FLASH_CNTL 
MAX8997_REG_WDT_CNTL 
MAX8997_REG_MAXFLASH1 
MAX8997_REG_MAXFLASH2 
MAX8997_REG_FLASHSTATUS 
MAX8997_REG_FLASHSTATUSMASK 
MAX8997_REG_GPIOCNTL1 
MAX8997_REG_GPIOCNTL2 
MAX8997_REG_GPIOCNTL3 
MAX8997_REG_GPIOCNTL4 
MAX8997_REG_GPIOCNTL5 
MAX8997_REG_GPIOCNTL6 
MAX8997_REG_GPIOCNTL7 
MAX8997_REG_GPIOCNTL8 
MAX8997_REG_GPIOCNTL9 
MAX8997_REG_GPIOCNTL10 
MAX8997_REG_GPIOCNTL11 
MAX8997_REG_GPIOCNTL12 
MAX8997_REG_LDO1CONFIG 
MAX8997_REG_LDO2CONFIG 
MAX8997_REG_LDO3CONFIG 
MAX8997_REG_LDO4CONFIG 
MAX8997_REG_LDO5CONFIG 
MAX8997_REG_LDO6CONFIG 
MAX8997_REG_LDO7CONFIG 
MAX8997_REG_LDO8CONFIG 
MAX8997_REG_LDO9CONFIG 
MAX8997_REG_LDO10CONFIG 
MAX8997_REG_LDO11CONFIG 
MAX8997_REG_LDO12CONFIG 
MAX8997_REG_LDO13CONFIG 
MAX8997_REG_LDO14CONFIG 
MAX8997_REG_LDO15CONFIG 
MAX8997_REG_LDO16CONFIG 
MAX8997_REG_LDO17CONFIG 
MAX8997_REG_LDO18CONFIG 
MAX8997_REG_LDO21CONFIG 
MAX8997_REG_DVSOKTIMER1 
MAX8997_REG_DVSOKTIMER2 
MAX8997_REG_DVSOKTIMER4 
MAX8997_REG_DVSOKTIMER5 
MAX8997_REG_PMIC_END 

Definition at line 31 of file max8997-private.h.

Enumerator:
MAX8997_RTC_CTRLMASK 
MAX8997_RTC_CTRL 
MAX8997_RTC_UPDATE1 
MAX8997_RTC_UPDATE2 
MAX8997_RTC_WTSR_SMPL 
MAX8997_RTC_SEC 
MAX8997_RTC_MIN 
MAX8997_RTC_HOUR 
MAX8997_RTC_DAY_OF_WEEK 
MAX8997_RTC_MONTH 
MAX8997_RTC_YEAR 
MAX8997_RTC_DAY_OF_MONTH 
MAX8997_RTC_ALARM1_SEC 
MAX8997_RTC_ALARM1_MIN 
MAX8997_RTC_ALARM1_HOUR 
MAX8997_RTC_ALARM1_DAY_OF_WEEK 
MAX8997_RTC_ALARM1_MONTH 
MAX8997_RTC_ALARM1_YEAR 
MAX8997_RTC_ALARM1_DAY_OF_MONTH 
MAX8997_RTC_ALARM2_SEC 
MAX8997_RTC_ALARM2_MIN 
MAX8997_RTC_ALARM2_HOUR 
MAX8997_RTC_ALARM2_DAY_OF_WEEK 
MAX8997_RTC_ALARM2_MONTH 
MAX8997_RTC_ALARM2_YEAR 
MAX8997_RTC_ALARM2_DAY_OF_MONTH 

Definition at line 220 of file max8997-private.h.

Enumerator:
TYPE_MAX8997 
TYPE_MAX8966 

Definition at line 342 of file max8997-private.h.

Function Documentation

int max8997_bulk_read ( struct i2c_client i2c,
u8  reg,
int  count,
u8 buf 
)

Definition at line 67 of file max8997.c.

int max8997_bulk_write ( struct i2c_client i2c,
u8  reg,
int  count,
u8 buf 
)

Definition at line 94 of file max8997.c.

void max8997_irq_exit ( struct max8997_dev max8997)

Definition at line 380 of file max8997-irq.c.

int max8997_irq_init ( struct max8997_dev max8997)

Definition at line 310 of file max8997-irq.c.

int max8997_irq_resume ( struct max8997_dev max8997)

Definition at line 283 of file max8997-irq.c.

int max8997_read_reg ( struct i2c_client i2c,
u8  reg,
u8 dest 
)

Definition at line 50 of file max8997.c.

int max8997_update_reg ( struct i2c_client i2c,
u8  reg,
u8  val,
u8  mask 
)

Definition at line 109 of file max8997.c.

int max8997_write_reg ( struct i2c_client i2c,
u8  reg,
u8  value 
)

Definition at line 82 of file max8997.c.