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

Go to the source code of this file.

Data Structures

struct  max77686_dev
 

Macros

#define MAX77686_REG_INVALID   (0xff)
 
#define MAX77686_IRQSRC_PMIC   (0)
 
#define MAX77686_IRQSRC_RTC   (1 << 0)
 

Enumerations

enum  max77686_pmic_reg {
  MAX77686_REG_DEVICE_ID = 0x00, MAX77686_REG_INTSRC = 0x01, MAX77686_REG_INT1 = 0x02, MAX77686_REG_INT2 = 0x03,
  MAX77686_REG_INT1MSK = 0x04, MAX77686_REG_INT2MSK = 0x05, MAX77686_REG_STATUS1 = 0x06, MAX77686_REG_STATUS2 = 0x07,
  MAX77686_REG_PWRON = 0x08, MAX77686_REG_ONOFF_DELAY = 0x09, MAX77686_REG_MRSTB = 0x0A, MAX77686_REG_BUCK1CTRL = 0x10,
  MAX77686_REG_BUCK1OUT = 0x11, MAX77686_REG_BUCK2CTRL1 = 0x12, MAX77686_REG_BUCK234FREQ = 0x13, MAX77686_REG_BUCK2DVS1 = 0x14,
  MAX77686_REG_BUCK2DVS2 = 0x15, MAX77686_REG_BUCK2DVS3 = 0x16, MAX77686_REG_BUCK2DVS4 = 0x17, MAX77686_REG_BUCK2DVS5 = 0x18,
  MAX77686_REG_BUCK2DVS6 = 0x19, MAX77686_REG_BUCK2DVS7 = 0x1A, MAX77686_REG_BUCK2DVS8 = 0x1B, MAX77686_REG_BUCK3CTRL1 = 0x1C,
  MAX77686_REG_BUCK3DVS1 = 0x1E, MAX77686_REG_BUCK3DVS2 = 0x1F, MAX77686_REG_BUCK3DVS3 = 0x20, MAX77686_REG_BUCK3DVS4 = 0x21,
  MAX77686_REG_BUCK3DVS5 = 0x22, MAX77686_REG_BUCK3DVS6 = 0x23, MAX77686_REG_BUCK3DVS7 = 0x24, MAX77686_REG_BUCK3DVS8 = 0x25,
  MAX77686_REG_BUCK4CTRL1 = 0x26, MAX77686_REG_BUCK4DVS1 = 0x28, MAX77686_REG_BUCK4DVS2 = 0x29, MAX77686_REG_BUCK4DVS3 = 0x2A,
  MAX77686_REG_BUCK4DVS4 = 0x2B, MAX77686_REG_BUCK4DVS5 = 0x2C, MAX77686_REG_BUCK4DVS6 = 0x2D, MAX77686_REG_BUCK4DVS7 = 0x2E,
  MAX77686_REG_BUCK4DVS8 = 0x2F, MAX77686_REG_BUCK5CTRL = 0x30, MAX77686_REG_BUCK5OUT = 0x31, MAX77686_REG_BUCK6CTRL = 0x32,
  MAX77686_REG_BUCK6OUT = 0x33, MAX77686_REG_BUCK7CTRL = 0x34, MAX77686_REG_BUCK7OUT = 0x35, MAX77686_REG_BUCK8CTRL = 0x36,
  MAX77686_REG_BUCK8OUT = 0x37, MAX77686_REG_BUCK9CTRL = 0x38, MAX77686_REG_BUCK9OUT = 0x39, MAX77686_REG_LDO1CTRL1 = 0x40,
  MAX77686_REG_LDO2CTRL1 = 0x41, MAX77686_REG_LDO3CTRL1 = 0x42, MAX77686_REG_LDO4CTRL1 = 0x43, MAX77686_REG_LDO5CTRL1 = 0x44,
  MAX77686_REG_LDO6CTRL1 = 0x45, MAX77686_REG_LDO7CTRL1 = 0x46, MAX77686_REG_LDO8CTRL1 = 0x47, MAX77686_REG_LDO9CTRL1 = 0x48,
  MAX77686_REG_LDO10CTRL1 = 0x49, MAX77686_REG_LDO11CTRL1 = 0x4A, MAX77686_REG_LDO12CTRL1 = 0x4B, MAX77686_REG_LDO13CTRL1 = 0x4C,
  MAX77686_REG_LDO14CTRL1 = 0x4D, MAX77686_REG_LDO15CTRL1 = 0x4E, MAX77686_REG_LDO16CTRL1 = 0x4F, MAX77686_REG_LDO17CTRL1 = 0x50,
  MAX77686_REG_LDO18CTRL1 = 0x51, MAX77686_REG_LDO19CTRL1 = 0x52, MAX77686_REG_LDO20CTRL1 = 0x53, MAX77686_REG_LDO21CTRL1 = 0x54,
  MAX77686_REG_LDO22CTRL1 = 0x55, MAX77686_REG_LDO23CTRL1 = 0x56, MAX77686_REG_LDO24CTRL1 = 0x57, MAX77686_REG_LDO25CTRL1 = 0x58,
  MAX77686_REG_LDO26CTRL1 = 0x59, MAX77686_REG_LDO1CTRL2 = 0x60, MAX77686_REG_LDO2CTRL2 = 0x61, MAX77686_REG_LDO3CTRL2 = 0x62,
  MAX77686_REG_LDO4CTRL2 = 0x63, MAX77686_REG_LDO5CTRL2 = 0x64, MAX77686_REG_LDO6CTRL2 = 0x65, MAX77686_REG_LDO7CTRL2 = 0x66,
  MAX77686_REG_LDO8CTRL2 = 0x67, MAX77686_REG_LDO9CTRL2 = 0x68, MAX77686_REG_LDO10CTRL2 = 0x69, MAX77686_REG_LDO11CTRL2 = 0x6A,
  MAX77686_REG_LDO12CTRL2 = 0x6B, MAX77686_REG_LDO13CTRL2 = 0x6C, MAX77686_REG_LDO14CTRL2 = 0x6D, MAX77686_REG_LDO15CTRL2 = 0x6E,
  MAX77686_REG_LDO16CTRL2 = 0x6F, MAX77686_REG_LDO17CTRL2 = 0x70, MAX77686_REG_LDO18CTRL2 = 0x71, MAX77686_REG_LDO19CTRL2 = 0x72,
  MAX77686_REG_LDO20CTRL2 = 0x73, MAX77686_REG_LDO21CTRL2 = 0x74, MAX77686_REG_LDO22CTRL2 = 0x75, MAX77686_REG_LDO23CTRL2 = 0x76,
  MAX77686_REG_LDO24CTRL2 = 0x77, MAX77686_REG_LDO25CTRL2 = 0x78, MAX77686_REG_LDO26CTRL2 = 0x79, MAX77686_REG_BBAT_CHG = 0x7E,
  MAX77686_REG_32KHZ = 0x7F, MAX77686_REG_PMIC_END = 0x80
}
 
enum  max77686_rtc_reg {
  MAX77686_RTC_INT = 0x00, MAX77686_RTC_INTM = 0x01, MAX77686_RTC_CONTROLM = 0x02, MAX77686_RTC_CONTROL = 0x03,
  MAX77686_RTC_UPDATE0 = 0x04, MAX77686_WTSR_SMPL_CNTL = 0x06, MAX77686_RTC_SEC = 0x07, MAX77686_RTC_MIN = 0x08,
  MAX77686_RTC_HOUR = 0x09, MAX77686_RTC_WEEKDAY = 0x0A, MAX77686_RTC_MONTH = 0x0B, MAX77686_RTC_YEAR = 0x0C,
  MAX77686_RTC_DATE = 0x0D, MAX77686_ALARM1_SEC = 0x0E, MAX77686_ALARM1_MIN = 0x0F, MAX77686_ALARM1_HOUR = 0x10,
  MAX77686_ALARM1_WEEKDAY = 0x11, MAX77686_ALARM1_MONTH = 0x12, MAX77686_ALARM1_YEAR = 0x13, MAX77686_ALARM1_DATE = 0x14,
  MAX77686_ALARM2_SEC = 0x15, MAX77686_ALARM2_MIN = 0x16, MAX77686_ALARM2_HOUR = 0x17, MAX77686_ALARM2_WEEKDAY = 0x18,
  MAX77686_ALARM2_MONTH = 0x19, MAX77686_ALARM2_YEAR = 0x1A, MAX77686_ALARM2_DATE = 0x1B
}
 
enum  max77686_irq_source { PMIC_INT1 = 0, PMIC_INT2, RTC_INT, MAX77686_IRQ_GROUP_NR }
 
enum  max77686_irq {
  MAX77686_PMICIRQ_PWRONF, MAX77686_PMICIRQ_PWRONR, MAX77686_PMICIRQ_JIGONBF, MAX77686_PMICIRQ_JIGONBR,
  MAX77686_PMICIRQ_ACOKBF, MAX77686_PMICIRQ_ACOKBR, MAX77686_PMICIRQ_ONKEY1S, MAX77686_PMICIRQ_MRSTB,
  MAX77686_PMICIRQ_140C, MAX77686_PMICIRQ_120C, MAX77686_RTCIRQ_RTC60S, MAX77686_RTCIRQ_RTCA1,
  MAX77686_RTCIRQ_RTCA2, MAX77686_RTCIRQ_SMPL, MAX77686_RTCIRQ_RTC1S, MAX77686_RTCIRQ_WTSR,
  MAX77686_IRQ_NR
}
 
enum  max77686_types { TYPE_MAX77686 }
 

Functions

int max77686_irq_init (struct max77686_dev *max77686)
 
void max77686_irq_exit (struct max77686_dev *max77686)
 
int max77686_irq_resume (struct max77686_dev *max77686)
 

Macro Definition Documentation

#define MAX77686_IRQSRC_PMIC   (0)

Definition at line 184 of file max77686-private.h.

#define MAX77686_IRQSRC_RTC   (1 << 0)

Definition at line 185 of file max77686-private.h.

#define MAX77686_REG_INVALID   (0xff)

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

Enumeration Type Documentation

Enumerator:
MAX77686_PMICIRQ_PWRONF 
MAX77686_PMICIRQ_PWRONR 
MAX77686_PMICIRQ_JIGONBF 
MAX77686_PMICIRQ_JIGONBR 
MAX77686_PMICIRQ_ACOKBF 
MAX77686_PMICIRQ_ACOKBR 
MAX77686_PMICIRQ_ONKEY1S 
MAX77686_PMICIRQ_MRSTB 
MAX77686_PMICIRQ_140C 
MAX77686_PMICIRQ_120C 
MAX77686_RTCIRQ_RTC60S 
MAX77686_RTCIRQ_RTCA1 
MAX77686_RTCIRQ_RTCA2 
MAX77686_RTCIRQ_SMPL 
MAX77686_RTCIRQ_RTC1S 
MAX77686_RTCIRQ_WTSR 
MAX77686_IRQ_NR 

Definition at line 195 of file max77686-private.h.

Enumerator:
PMIC_INT1 
PMIC_INT2 
RTC_INT 
MAX77686_IRQ_GROUP_NR 

Definition at line 187 of file max77686-private.h.

Enumerator:
MAX77686_REG_DEVICE_ID 
MAX77686_REG_INTSRC 
MAX77686_REG_INT1 
MAX77686_REG_INT2 
MAX77686_REG_INT1MSK 
MAX77686_REG_INT2MSK 
MAX77686_REG_STATUS1 
MAX77686_REG_STATUS2 
MAX77686_REG_PWRON 
MAX77686_REG_ONOFF_DELAY 
MAX77686_REG_MRSTB 
MAX77686_REG_BUCK1CTRL 
MAX77686_REG_BUCK1OUT 
MAX77686_REG_BUCK2CTRL1 
MAX77686_REG_BUCK234FREQ 
MAX77686_REG_BUCK2DVS1 
MAX77686_REG_BUCK2DVS2 
MAX77686_REG_BUCK2DVS3 
MAX77686_REG_BUCK2DVS4 
MAX77686_REG_BUCK2DVS5 
MAX77686_REG_BUCK2DVS6 
MAX77686_REG_BUCK2DVS7 
MAX77686_REG_BUCK2DVS8 
MAX77686_REG_BUCK3CTRL1 
MAX77686_REG_BUCK3DVS1 
MAX77686_REG_BUCK3DVS2 
MAX77686_REG_BUCK3DVS3 
MAX77686_REG_BUCK3DVS4 
MAX77686_REG_BUCK3DVS5 
MAX77686_REG_BUCK3DVS6 
MAX77686_REG_BUCK3DVS7 
MAX77686_REG_BUCK3DVS8 
MAX77686_REG_BUCK4CTRL1 
MAX77686_REG_BUCK4DVS1 
MAX77686_REG_BUCK4DVS2 
MAX77686_REG_BUCK4DVS3 
MAX77686_REG_BUCK4DVS4 
MAX77686_REG_BUCK4DVS5 
MAX77686_REG_BUCK4DVS6 
MAX77686_REG_BUCK4DVS7 
MAX77686_REG_BUCK4DVS8 
MAX77686_REG_BUCK5CTRL 
MAX77686_REG_BUCK5OUT 
MAX77686_REG_BUCK6CTRL 
MAX77686_REG_BUCK6OUT 
MAX77686_REG_BUCK7CTRL 
MAX77686_REG_BUCK7OUT 
MAX77686_REG_BUCK8CTRL 
MAX77686_REG_BUCK8OUT 
MAX77686_REG_BUCK9CTRL 
MAX77686_REG_BUCK9OUT 
MAX77686_REG_LDO1CTRL1 
MAX77686_REG_LDO2CTRL1 
MAX77686_REG_LDO3CTRL1 
MAX77686_REG_LDO4CTRL1 
MAX77686_REG_LDO5CTRL1 
MAX77686_REG_LDO6CTRL1 
MAX77686_REG_LDO7CTRL1 
MAX77686_REG_LDO8CTRL1 
MAX77686_REG_LDO9CTRL1 
MAX77686_REG_LDO10CTRL1 
MAX77686_REG_LDO11CTRL1 
MAX77686_REG_LDO12CTRL1 
MAX77686_REG_LDO13CTRL1 
MAX77686_REG_LDO14CTRL1 
MAX77686_REG_LDO15CTRL1 
MAX77686_REG_LDO16CTRL1 
MAX77686_REG_LDO17CTRL1 
MAX77686_REG_LDO18CTRL1 
MAX77686_REG_LDO19CTRL1 
MAX77686_REG_LDO20CTRL1 
MAX77686_REG_LDO21CTRL1 
MAX77686_REG_LDO22CTRL1 
MAX77686_REG_LDO23CTRL1 
MAX77686_REG_LDO24CTRL1 
MAX77686_REG_LDO25CTRL1 
MAX77686_REG_LDO26CTRL1 
MAX77686_REG_LDO1CTRL2 
MAX77686_REG_LDO2CTRL2 
MAX77686_REG_LDO3CTRL2 
MAX77686_REG_LDO4CTRL2 
MAX77686_REG_LDO5CTRL2 
MAX77686_REG_LDO6CTRL2 
MAX77686_REG_LDO7CTRL2 
MAX77686_REG_LDO8CTRL2 
MAX77686_REG_LDO9CTRL2 
MAX77686_REG_LDO10CTRL2 
MAX77686_REG_LDO11CTRL2 
MAX77686_REG_LDO12CTRL2 
MAX77686_REG_LDO13CTRL2 
MAX77686_REG_LDO14CTRL2 
MAX77686_REG_LDO15CTRL2 
MAX77686_REG_LDO16CTRL2 
MAX77686_REG_LDO17CTRL2 
MAX77686_REG_LDO18CTRL2 
MAX77686_REG_LDO19CTRL2 
MAX77686_REG_LDO20CTRL2 
MAX77686_REG_LDO21CTRL2 
MAX77686_REG_LDO22CTRL2 
MAX77686_REG_LDO23CTRL2 
MAX77686_REG_LDO24CTRL2 
MAX77686_REG_LDO25CTRL2 
MAX77686_REG_LDO26CTRL2 
MAX77686_REG_BBAT_CHG 
MAX77686_REG_32KHZ 
MAX77686_REG_PMIC_END 

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

Enumerator:
MAX77686_RTC_INT 
MAX77686_RTC_INTM 
MAX77686_RTC_CONTROLM 
MAX77686_RTC_CONTROL 
MAX77686_RTC_UPDATE0 
MAX77686_WTSR_SMPL_CNTL 
MAX77686_RTC_SEC 
MAX77686_RTC_MIN 
MAX77686_RTC_HOUR 
MAX77686_RTC_WEEKDAY 
MAX77686_RTC_MONTH 
MAX77686_RTC_YEAR 
MAX77686_RTC_DATE 
MAX77686_ALARM1_SEC 
MAX77686_ALARM1_MIN 
MAX77686_ALARM1_HOUR 
MAX77686_ALARM1_WEEKDAY 
MAX77686_ALARM1_MONTH 
MAX77686_ALARM1_YEAR 
MAX77686_ALARM1_DATE 
MAX77686_ALARM2_SEC 
MAX77686_ALARM2_MIN 
MAX77686_ALARM2_HOUR 
MAX77686_ALARM2_WEEKDAY 
MAX77686_ALARM2_MONTH 
MAX77686_ALARM2_YEAR 
MAX77686_ALARM2_DATE 

Definition at line 153 of file max77686-private.h.

Enumerator:
TYPE_MAX77686 

Definition at line 238 of file max77686-private.h.

Function Documentation

void max77686_irq_exit ( struct max77686_dev max77686)

Definition at line 315 of file max77686-irq.c.

int max77686_irq_init ( struct max77686_dev max77686)

Definition at line 245 of file max77686-irq.c.

int max77686_irq_resume ( struct max77686_dev max77686)