Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pmic.h File Reference
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/regulator/machine.h>

Go to the source code of this file.

Data Structures

struct  wm8350_led_platform_data
 
struct  wm8350_led
 
struct  wm8350_pmic
 

Macros

#define WM8350_CURRENT_SINK_DRIVER_A   0xAC
 
#define WM8350_CSA_FLASH_CONTROL   0xAD
 
#define WM8350_CURRENT_SINK_DRIVER_B   0xAE
 
#define WM8350_CSB_FLASH_CONTROL   0xAF
 
#define WM8350_DCDC_LDO_REQUESTED   0xB0
 
#define WM8350_DCDC_ACTIVE_OPTIONS   0xB1
 
#define WM8350_DCDC_SLEEP_OPTIONS   0xB2
 
#define WM8350_POWER_CHECK_COMPARATOR   0xB3
 
#define WM8350_DCDC1_CONTROL   0xB4
 
#define WM8350_DCDC1_TIMEOUTS   0xB5
 
#define WM8350_DCDC1_LOW_POWER   0xB6
 
#define WM8350_DCDC2_CONTROL   0xB7
 
#define WM8350_DCDC2_TIMEOUTS   0xB8
 
#define WM8350_DCDC3_CONTROL   0xBA
 
#define WM8350_DCDC3_TIMEOUTS   0xBB
 
#define WM8350_DCDC3_LOW_POWER   0xBC
 
#define WM8350_DCDC4_CONTROL   0xBD
 
#define WM8350_DCDC4_TIMEOUTS   0xBE
 
#define WM8350_DCDC4_LOW_POWER   0xBF
 
#define WM8350_DCDC5_CONTROL   0xC0
 
#define WM8350_DCDC5_TIMEOUTS   0xC1
 
#define WM8350_DCDC6_CONTROL   0xC3
 
#define WM8350_DCDC6_TIMEOUTS   0xC4
 
#define WM8350_DCDC6_LOW_POWER   0xC5
 
#define WM8350_LIMIT_SWITCH_CONTROL   0xC7
 
#define WM8350_LDO1_CONTROL   0xC8
 
#define WM8350_LDO1_TIMEOUTS   0xC9
 
#define WM8350_LDO1_LOW_POWER   0xCA
 
#define WM8350_LDO2_CONTROL   0xCB
 
#define WM8350_LDO2_TIMEOUTS   0xCC
 
#define WM8350_LDO2_LOW_POWER   0xCD
 
#define WM8350_LDO3_CONTROL   0xCE
 
#define WM8350_LDO3_TIMEOUTS   0xCF
 
#define WM8350_LDO3_LOW_POWER   0xD0
 
#define WM8350_LDO4_CONTROL   0xD1
 
#define WM8350_LDO4_TIMEOUTS   0xD2
 
#define WM8350_LDO4_LOW_POWER   0xD3
 
#define WM8350_VCC_FAULT_MASKS   0xD7
 
#define WM8350_MAIN_BANDGAP_CONTROL   0xD8
 
#define WM8350_OSC_CONTROL   0xD9
 
#define WM8350_RTC_TICK_CONTROL   0xDA
 
#define WM8350_SECURITY   0xDB
 
#define WM8350_RAM_BIST_1   0xDC
 
#define WM8350_DCDC_LDO_STATUS   0xE1
 
#define WM8350_GPIO_PIN_STATUS   0xE6
 
#define WM8350_DCDC1_FORCE_PWM   0xF8
 
#define WM8350_DCDC3_FORCE_PWM   0xFA
 
#define WM8350_DCDC4_FORCE_PWM   0xFB
 
#define WM8350_DCDC6_FORCE_PWM   0xFD
 
#define WM8350_CS1_HIB_MODE   0x1000
 
#define WM8350_CS1_HIB_MODE_MASK   0x1000
 
#define WM8350_CS1_HIB_MODE_SHIFT   12
 
#define WM8350_CS1_ISEL_MASK   0x003F
 
#define WM8350_CS1_ISEL_SHIFT   0
 
#define WM8350_CS1_HIB_MODE_DISABLE   0
 
#define WM8350_CS1_HIB_MODE_LEAVE   1
 
#define WM8350_CS1_ISEL_220M   0x3F
 
#define WM8350_CS1_FLASH_MODE   0x8000
 
#define WM8350_CS1_TRIGSRC   0x4000
 
#define WM8350_CS1_DRIVE   0x2000
 
#define WM8350_CS1_FLASH_DUR_MASK   0x0300
 
#define WM8350_CS1_OFF_RAMP_MASK   0x0030
 
#define WM8350_CS1_ON_RAMP_MASK   0x0003
 
#define WM8350_CS2_HIB_MODE   0x1000
 
#define WM8350_CS2_ISEL_MASK   0x003F
 
#define WM8350_CS2_FLASH_MODE   0x8000
 
#define WM8350_CS2_TRIGSRC   0x4000
 
#define WM8350_CS2_DRIVE   0x2000
 
#define WM8350_CS2_FLASH_DUR_MASK   0x0300
 
#define WM8350_CS2_OFF_RAMP_MASK   0x0030
 
#define WM8350_CS2_ON_RAMP_MASK   0x0003
 
#define WM8350_LS_ENA   0x8000
 
#define WM8350_LDO4_ENA   0x0800
 
#define WM8350_LDO3_ENA   0x0400
 
#define WM8350_LDO2_ENA   0x0200
 
#define WM8350_LDO1_ENA   0x0100
 
#define WM8350_DC6_ENA   0x0020
 
#define WM8350_DC5_ENA   0x0010
 
#define WM8350_DC4_ENA   0x0008
 
#define WM8350_DC3_ENA   0x0004
 
#define WM8350_DC2_ENA   0x0002
 
#define WM8350_DC1_ENA   0x0001
 
#define WM8350_PUTO_MASK   0x3000
 
#define WM8350_PWRUP_DELAY_MASK   0x0300
 
#define WM8350_DC6_ACTIVE   0x0020
 
#define WM8350_DC4_ACTIVE   0x0008
 
#define WM8350_DC3_ACTIVE   0x0004
 
#define WM8350_DC1_ACTIVE   0x0001
 
#define WM8350_DC6_SLEEP   0x0020
 
#define WM8350_DC4_SLEEP   0x0008
 
#define WM8350_DC3_SLEEP   0x0004
 
#define WM8350_DC1_SLEEP   0x0001
 
#define WM8350_PCCMP_ERRACT   0x4000
 
#define WM8350_PCCMP_RAIL   0x0100
 
#define WM8350_PCCMP_OFF_THR_MASK   0x0070
 
#define WM8350_PCCMP_ON_THR_MASK   0x0007
 
#define WM8350_DC1_OPFLT   0x0400
 
#define WM8350_DC1_VSEL_MASK   0x007F
 
#define WM8350_DC1_VSEL_SHIFT   0
 
#define WM8350_DC1_ERRACT_MASK   0xC000
 
#define WM8350_DC1_ERRACT_SHIFT   14
 
#define WM8350_DC1_ENSLOT_MASK   0x3C00
 
#define WM8350_DC1_ENSLOT_SHIFT   10
 
#define WM8350_DC1_SDSLOT_MASK   0x03C0
 
#define WM8350_DC1_UVTO_MASK   0x0030
 
#define WM8350_DC1_SDSLOT_SHIFT   6
 
#define WM8350_DC1_ERRACT_NONE   0
 
#define WM8350_DC1_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_DC1_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_DC1_HIB_MODE_MASK   0x7000
 
#define WM8350_DC1_HIB_TRIG_MASK   0x0300
 
#define WM8350_DC1_VIMG_MASK   0x007F
 
#define WM8350_DC2_MODE   0x4000
 
#define WM8350_DC2_MODE_MASK   0x4000
 
#define WM8350_DC2_MODE_SHIFT   14
 
#define WM8350_DC2_HIB_MODE   0x1000
 
#define WM8350_DC2_HIB_MODE_MASK   0x1000
 
#define WM8350_DC2_HIB_MODE_SHIFT   12
 
#define WM8350_DC2_HIB_TRIG_MASK   0x0300
 
#define WM8350_DC2_HIB_TRIG_SHIFT   8
 
#define WM8350_DC2_ILIM   0x0040
 
#define WM8350_DC2_ILIM_MASK   0x0040
 
#define WM8350_DC2_ILIM_SHIFT   6
 
#define WM8350_DC2_RMP_MASK   0x0018
 
#define WM8350_DC2_RMP_SHIFT   3
 
#define WM8350_DC2_FBSRC_MASK   0x0003
 
#define WM8350_DC2_FBSRC_SHIFT   0
 
#define WM8350_DC2_MODE_BOOST   0
 
#define WM8350_DC2_MODE_SWITCH   1
 
#define WM8350_DC2_HIB_MODE_ACTIVE   1
 
#define WM8350_DC2_HIB_MODE_DISABLE   0
 
#define WM8350_DC2_HIB_TRIG_NONE   0
 
#define WM8350_DC2_HIB_TRIG_LPWR1   1
 
#define WM8350_DC2_HIB_TRIG_LPWR2   2
 
#define WM8350_DC2_HIB_TRIG_LPWR3   3
 
#define WM8350_DC2_ILIM_HIGH   0
 
#define WM8350_DC2_ILIM_LOW   1
 
#define WM8350_DC2_RMP_30V   0
 
#define WM8350_DC2_RMP_20V   1
 
#define WM8350_DC2_RMP_10V   2
 
#define WM8350_DC2_RMP_5V   3
 
#define WM8350_DC2_FBSRC_FB2   0
 
#define WM8350_DC2_FBSRC_ISINKA   1
 
#define WM8350_DC2_FBSRC_ISINKB   2
 
#define WM8350_DC2_FBSRC_USB   3
 
#define WM8350_DC2_ERRACT_MASK   0xC000
 
#define WM8350_DC2_ERRACT_SHIFT   14
 
#define WM8350_DC2_ENSLOT_MASK   0x3C00
 
#define WM8350_DC2_ENSLOT_SHIFT   10
 
#define WM8350_DC2_SDSLOT_MASK   0x03C0
 
#define WM8350_DC2_UVTO_MASK   0x0030
 
#define WM8350_DC2_ERRACT_NONE   0
 
#define WM8350_DC2_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_DC2_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_DC3_OPFLT   0x0400
 
#define WM8350_DC3_VSEL_MASK   0x007F
 
#define WM8350_DC3_VSEL_SHIFT   0
 
#define WM8350_DC3_ERRACT_MASK   0xC000
 
#define WM8350_DC3_ERRACT_SHIFT   14
 
#define WM8350_DC3_ENSLOT_MASK   0x3C00
 
#define WM8350_DC3_ENSLOT_SHIFT   10
 
#define WM8350_DC3_SDSLOT_MASK   0x03C0
 
#define WM8350_DC3_UVTO_MASK   0x0030
 
#define WM8350_DC3_SDSLOT_SHIFT   6
 
#define WM8350_DC3_ERRACT_NONE   0
 
#define WM8350_DC3_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_DC3_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_DC3_HIB_MODE_MASK   0x7000
 
#define WM8350_DC3_HIB_TRIG_MASK   0x0300
 
#define WM8350_DC3_VIMG_MASK   0x007F
 
#define WM8350_DC4_OPFLT   0x0400
 
#define WM8350_DC4_VSEL_MASK   0x007F
 
#define WM8350_DC4_VSEL_SHIFT   0
 
#define WM8350_DC4_ERRACT_MASK   0xC000
 
#define WM8350_DC4_ERRACT_SHIFT   14
 
#define WM8350_DC4_ENSLOT_MASK   0x3C00
 
#define WM8350_DC4_ENSLOT_SHIFT   10
 
#define WM8350_DC4_SDSLOT_MASK   0x03C0
 
#define WM8350_DC4_UVTO_MASK   0x0030
 
#define WM8350_DC4_SDSLOT_SHIFT   6
 
#define WM8350_DC4_ERRACT_NONE   0
 
#define WM8350_DC4_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_DC4_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_DC4_HIB_MODE_MASK   0x7000
 
#define WM8350_DC4_HIB_TRIG_MASK   0x0300
 
#define WM8350_DC4_VIMG_MASK   0x007F
 
#define WM8350_DC5_MODE   0x4000
 
#define WM8350_DC5_MODE_MASK   0x4000
 
#define WM8350_DC5_MODE_SHIFT   14
 
#define WM8350_DC5_HIB_MODE   0x1000
 
#define WM8350_DC5_HIB_MODE_MASK   0x1000
 
#define WM8350_DC5_HIB_MODE_SHIFT   12
 
#define WM8350_DC5_HIB_TRIG_MASK   0x0300
 
#define WM8350_DC5_HIB_TRIG_SHIFT   8
 
#define WM8350_DC5_ILIM   0x0040
 
#define WM8350_DC5_ILIM_MASK   0x0040
 
#define WM8350_DC5_ILIM_SHIFT   6
 
#define WM8350_DC5_RMP_MASK   0x0018
 
#define WM8350_DC5_RMP_SHIFT   3
 
#define WM8350_DC5_FBSRC_MASK   0x0003
 
#define WM8350_DC5_FBSRC_SHIFT   0
 
#define WM8350_DC5_MODE_BOOST   0
 
#define WM8350_DC5_MODE_SWITCH   1
 
#define WM8350_DC5_HIB_MODE_ACTIVE   1
 
#define WM8350_DC5_HIB_MODE_DISABLE   0
 
#define WM8350_DC5_HIB_TRIG_NONE   0
 
#define WM8350_DC5_HIB_TRIG_LPWR1   1
 
#define WM8350_DC5_HIB_TRIG_LPWR2   2
 
#define WM8350_DC5_HIB_TRIG_LPWR3   3
 
#define WM8350_DC5_ILIM_HIGH   0
 
#define WM8350_DC5_ILIM_LOW   1
 
#define WM8350_DC5_RMP_30V   0
 
#define WM8350_DC5_RMP_20V   1
 
#define WM8350_DC5_RMP_10V   2
 
#define WM8350_DC5_RMP_5V   3
 
#define WM8350_DC5_FBSRC_FB2   0
 
#define WM8350_DC5_FBSRC_ISINKA   1
 
#define WM8350_DC5_FBSRC_ISINKB   2
 
#define WM8350_DC5_FBSRC_USB   3
 
#define WM8350_DC5_ERRACT_MASK   0xC000
 
#define WM8350_DC5_ERRACT_SHIFT   14
 
#define WM8350_DC5_ENSLOT_MASK   0x3C00
 
#define WM8350_DC5_ENSLOT_SHIFT   10
 
#define WM8350_DC5_SDSLOT_MASK   0x03C0
 
#define WM8350_DC5_UVTO_MASK   0x0030
 
#define WM8350_DC5_SDSLOT_SHIFT   6
 
#define WM8350_DC5_ERRACT_NONE   0
 
#define WM8350_DC5_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_DC5_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_DC6_OPFLT   0x0400
 
#define WM8350_DC6_VSEL_MASK   0x007F
 
#define WM8350_DC6_VSEL_SHIFT   0
 
#define WM8350_DC6_ERRACT_MASK   0xC000
 
#define WM8350_DC6_ERRACT_SHIFT   14
 
#define WM8350_DC6_ENSLOT_MASK   0x3C00
 
#define WM8350_DC6_ENSLOT_SHIFT   10
 
#define WM8350_DC6_SDSLOT_MASK   0x03C0
 
#define WM8350_DC6_UVTO_MASK   0x0030
 
#define WM8350_DC6_SDSLOT_SHIFT   6
 
#define WM8350_DC6_ERRACT_NONE   0
 
#define WM8350_DC6_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_DC6_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_DC6_HIB_MODE_MASK   0x7000
 
#define WM8350_DC6_HIB_TRIG_MASK   0x0300
 
#define WM8350_DC6_VIMG_MASK   0x007F
 
#define WM8350_LS_ERRACT_MASK   0xC000
 
#define WM8350_LS_ERRACT_SHIFT   14
 
#define WM8350_LS_ENSLOT_MASK   0x3C00
 
#define WM8350_LS_ENSLOT_SHIFT   10
 
#define WM8350_LS_SDSLOT_MASK   0x03C0
 
#define WM8350_LS_SDSLOT_SHIFT   6
 
#define WM8350_LS_HIB_MODE   0x0010
 
#define WM8350_LS_HIB_MODE_MASK   0x0010
 
#define WM8350_LS_HIB_MODE_SHIFT   4
 
#define WM8350_LS_HIB_PROT   0x0002
 
#define WM8350_LS_HIB_PROT_MASK   0x0002
 
#define WM8350_LS_HIB_PROT_SHIFT   1
 
#define WM8350_LS_PROT   0x0001
 
#define WM8350_LS_PROT_MASK   0x0001
 
#define WM8350_LS_PROT_SHIFT   0
 
#define WM8350_LS_ERRACT_NONE   0
 
#define WM8350_LS_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_LS_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_LDO1_SWI   0x4000
 
#define WM8350_LDO1_OPFLT   0x0400
 
#define WM8350_LDO1_VSEL_MASK   0x001F
 
#define WM8350_LDO1_VSEL_SHIFT   0
 
#define WM8350_LDO1_ERRACT_MASK   0xC000
 
#define WM8350_LDO1_ERRACT_SHIFT   14
 
#define WM8350_LDO1_ENSLOT_MASK   0x3C00
 
#define WM8350_LDO1_ENSLOT_SHIFT   10
 
#define WM8350_LDO1_SDSLOT_MASK   0x03C0
 
#define WM8350_LDO1_UVTO_MASK   0x0030
 
#define WM8350_LDO1_SDSLOT_SHIFT   6
 
#define WM8350_LDO1_ERRACT_NONE   0
 
#define WM8350_LDO1_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_LDO1_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_LDO1_HIB_MODE_MASK   0x3000
 
#define WM8350_LDO1_HIB_TRIG_MASK   0x0300
 
#define WM8350_LDO1_VIMG_MASK   0x001F
 
#define WM8350_LDO1_HIB_MODE_DIS   (0x1 << 12)
 
#define WM8350_LDO2_SWI   0x4000
 
#define WM8350_LDO2_OPFLT   0x0400
 
#define WM8350_LDO2_VSEL_MASK   0x001F
 
#define WM8350_LDO2_VSEL_SHIFT   0
 
#define WM8350_LDO2_ERRACT_MASK   0xC000
 
#define WM8350_LDO2_ERRACT_SHIFT   14
 
#define WM8350_LDO2_ENSLOT_MASK   0x3C00
 
#define WM8350_LDO2_ENSLOT_SHIFT   10
 
#define WM8350_LDO2_SDSLOT_MASK   0x03C0
 
#define WM8350_LDO2_SDSLOT_SHIFT   6
 
#define WM8350_LDO2_ERRACT_NONE   0
 
#define WM8350_LDO2_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_LDO2_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_LDO2_HIB_MODE_MASK   0x3000
 
#define WM8350_LDO2_HIB_TRIG_MASK   0x0300
 
#define WM8350_LDO2_VIMG_MASK   0x001F
 
#define WM8350_LDO3_SWI   0x4000
 
#define WM8350_LDO3_OPFLT   0x0400
 
#define WM8350_LDO3_VSEL_MASK   0x001F
 
#define WM8350_LDO3_VSEL_SHIFT   0
 
#define WM8350_LDO3_ERRACT_MASK   0xC000
 
#define WM8350_LDO3_ERRACT_SHIFT   14
 
#define WM8350_LDO3_ENSLOT_MASK   0x3C00
 
#define WM8350_LDO3_ENSLOT_SHIFT   10
 
#define WM8350_LDO3_SDSLOT_MASK   0x03C0
 
#define WM8350_LDO3_UVTO_MASK   0x0030
 
#define WM8350_LDO3_SDSLOT_SHIFT   6
 
#define WM8350_LDO3_ERRACT_NONE   0
 
#define WM8350_LDO3_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_LDO3_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_LDO3_HIB_MODE_MASK   0x3000
 
#define WM8350_LDO3_HIB_TRIG_MASK   0x0300
 
#define WM8350_LDO3_VIMG_MASK   0x001F
 
#define WM8350_LDO4_SWI   0x4000
 
#define WM8350_LDO4_OPFLT   0x0400
 
#define WM8350_LDO4_VSEL_MASK   0x001F
 
#define WM8350_LDO4_VSEL_SHIFT   0
 
#define WM8350_LDO4_ERRACT_MASK   0xC000
 
#define WM8350_LDO4_ERRACT_SHIFT   14
 
#define WM8350_LDO4_ENSLOT_MASK   0x3C00
 
#define WM8350_LDO4_ENSLOT_SHIFT   10
 
#define WM8350_LDO4_SDSLOT_MASK   0x03C0
 
#define WM8350_LDO4_UVTO_MASK   0x0030
 
#define WM8350_LDO4_SDSLOT_SHIFT   6
 
#define WM8350_LDO4_ERRACT_NONE   0
 
#define WM8350_LDO4_ERRACT_SHUTDOWN_CONV   1
 
#define WM8350_LDO4_ERRACT_SHUTDOWN_SYS   2
 
#define WM8350_LDO4_HIB_MODE_MASK   0x3000
 
#define WM8350_LDO4_HIB_TRIG_MASK   0x0300
 
#define WM8350_LDO4_VIMG_MASK   0x001F
 
#define WM8350_LS_FAULT   0x8000
 
#define WM8350_LDO4_FAULT   0x0800
 
#define WM8350_LDO3_FAULT   0x0400
 
#define WM8350_LDO2_FAULT   0x0200
 
#define WM8350_LDO1_FAULT   0x0100
 
#define WM8350_DC6_FAULT   0x0020
 
#define WM8350_DC5_FAULT   0x0010
 
#define WM8350_DC4_FAULT   0x0008
 
#define WM8350_DC3_FAULT   0x0004
 
#define WM8350_DC2_FAULT   0x0002
 
#define WM8350_DC1_FAULT   0x0001
 
#define WM8350_MBG_LOAD_FUSES   0x8000
 
#define WM8350_MBG_FUSE_WPREP   0x4000
 
#define WM8350_MBG_FUSE_WRITE   0x2000
 
#define WM8350_MBG_FUSE_TRIM_MASK   0x1F00
 
#define WM8350_MBG_TRIM_SRC   0x0020
 
#define WM8350_MBG_USER_TRIM_MASK   0x001F
 
#define WM8350_OSC_LOAD_FUSES   0x8000
 
#define WM8350_OSC_FUSE_WPREP   0x4000
 
#define WM8350_OSC_FUSE_WRITE   0x2000
 
#define WM8350_OSC_FUSE_TRIM_MASK   0x0F00
 
#define WM8350_OSC_TRIM_SRC   0x0020
 
#define WM8350_OSC_USER_TRIM_MASK   0x000F
 
#define WM8350_DCDC1_FORCE_PWM_ENA   0x0010
 
#define WM8350_DCDC3_FORCE_PWM_ENA   0x0010
 
#define WM8350_DCDC4_FORCE_PWM_ENA   0x0010
 
#define WM8350_DCDC6_FORCE_PWM_ENA   0x0010
 
#define WM8350_DCDC_1   0
 
#define WM8350_DCDC_2   1
 
#define WM8350_DCDC_3   2
 
#define WM8350_DCDC_4   3
 
#define WM8350_DCDC_5   4
 
#define WM8350_DCDC_6   5
 
#define WM8350_DCDC_ACTIVE_STANDBY   0
 
#define WM8350_DCDC_ACTIVE_PULSE   1
 
#define WM8350_DCDC_SLEEP_NORMAL   0
 
#define WM8350_DCDC_SLEEP_LOW   1
 
#define WM8350_DCDC_HIB_MODE_CUR   (0 << 12)
 
#define WM8350_DCDC_HIB_MODE_IMAGE   (1 << 12)
 
#define WM8350_DCDC_HIB_MODE_STANDBY   (2 << 12)
 
#define WM8350_DCDC_HIB_MODE_LDO   (4 << 12)
 
#define WM8350_DCDC_HIB_MODE_LDO_IM   (5 << 12)
 
#define WM8350_DCDC_HIB_MODE_DIS   (7 << 12)
 
#define WM8350_DCDC_HIB_MODE_MASK   (7 << 12)
 
#define WM8350_DCDC_HIB_SIG_REG   (0 << 8)
 
#define WM8350_DCDC_HIB_SIG_LPWR1   (1 << 8)
 
#define WM8350_DCDC_HIB_SIG_LPWR2   (2 << 8)
 
#define WM8350_DCDC_HIB_SIG_LPWR3   (3 << 8)
 
#define WM8350_LDO_HIB_MODE_IMAGE   (0 << 0)
 
#define WM8350_LDO_HIB_MODE_DIS   (1 << 0)
 
#define WM8350_LDO_HIB_SIG_REG   (0 << 8)
 
#define WM8350_LDO_HIB_SIG_LPWR1   (1 << 8)
 
#define WM8350_LDO_HIB_SIG_LPWR2   (2 << 8)
 
#define WM8350_LDO_HIB_SIG_LPWR3   (3 << 8)
 
#define WM8350_LDO_1   6
 
#define WM8350_LDO_2   7
 
#define WM8350_LDO_3   8
 
#define WM8350_LDO_4   9
 
#define WM8350_ISINK_A   10
 
#define WM8350_ISINK_B   11
 
#define WM8350_ISINK_MODE_BOOST   0
 
#define WM8350_ISINK_MODE_SWITCH   1
 
#define WM8350_ISINK_ILIM_NORMAL   0
 
#define WM8350_ISINK_ILIM_LOW   1
 
#define WM8350_ISINK_FLASH_DISABLE   0
 
#define WM8350_ISINK_FLASH_ENABLE   1
 
#define WM8350_ISINK_FLASH_TRIG_BIT   0
 
#define WM8350_ISINK_FLASH_TRIG_GPIO   1
 
#define WM8350_ISINK_FLASH_MODE_EN   (1 << 13)
 
#define WM8350_ISINK_FLASH_MODE_DIS   (0 << 13)
 
#define WM8350_ISINK_FLASH_DUR_32MS   (0 << 8)
 
#define WM8350_ISINK_FLASH_DUR_64MS   (1 << 8)
 
#define WM8350_ISINK_FLASH_DUR_96MS   (2 << 8)
 
#define WM8350_ISINK_FLASH_DUR_1024MS   (3 << 8)
 
#define WM8350_ISINK_FLASH_ON_INSTANT   (0 << 0)
 
#define WM8350_ISINK_FLASH_ON_0_25S   (1 << 0)
 
#define WM8350_ISINK_FLASH_ON_0_50S   (2 << 0)
 
#define WM8350_ISINK_FLASH_ON_1_00S   (3 << 0)
 
#define WM8350_ISINK_FLASH_ON_1_95S   (1 << 0)
 
#define WM8350_ISINK_FLASH_ON_3_91S   (2 << 0)
 
#define WM8350_ISINK_FLASH_ON_7_80S   (3 << 0)
 
#define WM8350_ISINK_FLASH_OFF_INSTANT   (0 << 4)
 
#define WM8350_ISINK_FLASH_OFF_0_25S   (1 << 4)
 
#define WM8350_ISINK_FLASH_OFF_0_50S   (2 << 4)
 
#define WM8350_ISINK_FLASH_OFF_1_00S   (3 << 4)
 
#define WM8350_ISINK_FLASH_OFF_1_95S   (1 << 4)
 
#define WM8350_ISINK_FLASH_OFF_3_91S   (2 << 4)
 
#define WM8350_ISINK_FLASH_OFF_7_80S   (3 << 4)
 
#define WM8350_IRQ_CS1   13
 
#define WM8350_IRQ_CS2   14
 
#define WM8350_IRQ_UV_LDO4   25
 
#define WM8350_IRQ_UV_LDO3   26
 
#define WM8350_IRQ_UV_LDO2   27
 
#define WM8350_IRQ_UV_LDO1   28
 
#define WM8350_IRQ_UV_DC6   29
 
#define WM8350_IRQ_UV_DC5   30
 
#define WM8350_IRQ_UV_DC4   31
 
#define WM8350_IRQ_UV_DC3   32
 
#define WM8350_IRQ_UV_DC2   33
 
#define WM8350_IRQ_UV_DC1   34
 
#define WM8350_IRQ_OC_LS   35
 
#define NUM_WM8350_REGULATORS   12
 

Functions

int wm8350_register_regulator (struct wm8350 *wm8350, int reg, struct regulator_init_data *initdata)
 
int wm8350_register_led (struct wm8350 *wm8350, int lednum, int dcdc, int isink, struct wm8350_led_platform_data *pdata)
 
int wm8350_dcdc_set_slot (struct wm8350 *wm8350, int dcdc, u16 start, u16 stop, u16 fault)
 
int wm8350_dcdc25_set_mode (struct wm8350 *wm8350, int dcdc, u16 mode, u16 ilim, u16 ramp, u16 feedback)
 
int wm8350_ldo_set_slot (struct wm8350 *wm8350, int ldo, u16 start, u16 stop)
 
int wm8350_isink_set_flash (struct wm8350 *wm8350, int isink, u16 mode, u16 trigger, u16 duration, u16 on_ramp, u16 off_ramp, u16 drive)
 

Macro Definition Documentation

#define NUM_WM8350_REGULATORS   12

Definition at line 701 of file pmic.h.

#define WM8350_CS1_DRIVE   0x2000

Definition at line 95 of file pmic.h.

#define WM8350_CS1_FLASH_DUR_MASK   0x0300

Definition at line 96 of file pmic.h.

#define WM8350_CS1_FLASH_MODE   0x8000

Definition at line 93 of file pmic.h.

#define WM8350_CS1_HIB_MODE   0x1000

Definition at line 78 of file pmic.h.

#define WM8350_CS1_HIB_MODE_DISABLE   0

Definition at line 85 of file pmic.h.

#define WM8350_CS1_HIB_MODE_LEAVE   1

Definition at line 86 of file pmic.h.

#define WM8350_CS1_HIB_MODE_MASK   0x1000

Definition at line 79 of file pmic.h.

#define WM8350_CS1_HIB_MODE_SHIFT   12

Definition at line 80 of file pmic.h.

#define WM8350_CS1_ISEL_220M   0x3F

Definition at line 88 of file pmic.h.

#define WM8350_CS1_ISEL_MASK   0x003F

Definition at line 81 of file pmic.h.

#define WM8350_CS1_ISEL_SHIFT   0

Definition at line 82 of file pmic.h.

#define WM8350_CS1_OFF_RAMP_MASK   0x0030

Definition at line 97 of file pmic.h.

#define WM8350_CS1_ON_RAMP_MASK   0x0003

Definition at line 98 of file pmic.h.

#define WM8350_CS1_TRIGSRC   0x4000

Definition at line 94 of file pmic.h.

#define WM8350_CS2_DRIVE   0x2000

Definition at line 111 of file pmic.h.

#define WM8350_CS2_FLASH_DUR_MASK   0x0300

Definition at line 112 of file pmic.h.

#define WM8350_CS2_FLASH_MODE   0x8000

Definition at line 109 of file pmic.h.

#define WM8350_CS2_HIB_MODE   0x1000

Definition at line 103 of file pmic.h.

#define WM8350_CS2_ISEL_MASK   0x003F

Definition at line 104 of file pmic.h.

#define WM8350_CS2_OFF_RAMP_MASK   0x0030

Definition at line 113 of file pmic.h.

#define WM8350_CS2_ON_RAMP_MASK   0x0003

Definition at line 114 of file pmic.h.

#define WM8350_CS2_TRIGSRC   0x4000

Definition at line 110 of file pmic.h.

#define WM8350_CSA_FLASH_CONTROL   0xAD

Definition at line 25 of file pmic.h.

#define WM8350_CSB_FLASH_CONTROL   0xAF

Definition at line 27 of file pmic.h.

#define WM8350_CURRENT_SINK_DRIVER_A   0xAC

Definition at line 24 of file pmic.h.

#define WM8350_CURRENT_SINK_DRIVER_B   0xAE

Definition at line 26 of file pmic.h.

#define WM8350_DC1_ACTIVE   0x0001

Definition at line 139 of file pmic.h.

#define WM8350_DC1_ENA   0x0001

Definition at line 129 of file pmic.h.

#define WM8350_DC1_ENSLOT_MASK   0x3C00

Definition at line 169 of file pmic.h.

#define WM8350_DC1_ENSLOT_SHIFT   10

Definition at line 170 of file pmic.h.

#define WM8350_DC1_ERRACT_MASK   0xC000

Definition at line 167 of file pmic.h.

#define WM8350_DC1_ERRACT_NONE   0

Definition at line 176 of file pmic.h.

#define WM8350_DC1_ERRACT_SHIFT   14

Definition at line 168 of file pmic.h.

#define WM8350_DC1_ERRACT_SHUTDOWN_CONV   1

Definition at line 177 of file pmic.h.

#define WM8350_DC1_ERRACT_SHUTDOWN_SYS   2

Definition at line 178 of file pmic.h.

#define WM8350_DC1_FAULT   0x0001

Definition at line 557 of file pmic.h.

#define WM8350_DC1_HIB_MODE_MASK   0x7000

Definition at line 183 of file pmic.h.

#define WM8350_DC1_HIB_TRIG_MASK   0x0300

Definition at line 184 of file pmic.h.

#define WM8350_DC1_OPFLT   0x0400

Definition at line 160 of file pmic.h.

#define WM8350_DC1_SDSLOT_MASK   0x03C0

Definition at line 171 of file pmic.h.

#define WM8350_DC1_SDSLOT_SHIFT   6

Definition at line 173 of file pmic.h.

#define WM8350_DC1_SLEEP   0x0001

Definition at line 147 of file pmic.h.

#define WM8350_DC1_UVTO_MASK   0x0030

Definition at line 172 of file pmic.h.

#define WM8350_DC1_VIMG_MASK   0x007F

Definition at line 185 of file pmic.h.

#define WM8350_DC1_VSEL_MASK   0x007F

Definition at line 161 of file pmic.h.

#define WM8350_DC1_VSEL_SHIFT   0

Definition at line 162 of file pmic.h.

#define WM8350_DC2_ENA   0x0002

Definition at line 128 of file pmic.h.

#define WM8350_DC2_ENSLOT_MASK   0x3C00

Definition at line 236 of file pmic.h.

#define WM8350_DC2_ENSLOT_SHIFT   10

Definition at line 237 of file pmic.h.

#define WM8350_DC2_ERRACT_MASK   0xC000

Definition at line 234 of file pmic.h.

#define WM8350_DC2_ERRACT_NONE   0

Definition at line 242 of file pmic.h.

#define WM8350_DC2_ERRACT_SHIFT   14

Definition at line 235 of file pmic.h.

#define WM8350_DC2_ERRACT_SHUTDOWN_CONV   1

Definition at line 243 of file pmic.h.

#define WM8350_DC2_ERRACT_SHUTDOWN_SYS   2

Definition at line 244 of file pmic.h.

#define WM8350_DC2_FAULT   0x0002

Definition at line 556 of file pmic.h.

#define WM8350_DC2_FBSRC_FB2   0

Definition at line 226 of file pmic.h.

#define WM8350_DC2_FBSRC_ISINKA   1

Definition at line 227 of file pmic.h.

#define WM8350_DC2_FBSRC_ISINKB   2

Definition at line 228 of file pmic.h.

#define WM8350_DC2_FBSRC_MASK   0x0003

Definition at line 203 of file pmic.h.

#define WM8350_DC2_FBSRC_SHIFT   0

Definition at line 204 of file pmic.h.

#define WM8350_DC2_FBSRC_USB   3

Definition at line 229 of file pmic.h.

#define WM8350_DC2_HIB_MODE   0x1000

Definition at line 193 of file pmic.h.

#define WM8350_DC2_HIB_MODE_ACTIVE   1

Definition at line 210 of file pmic.h.

#define WM8350_DC2_HIB_MODE_DISABLE   0

Definition at line 211 of file pmic.h.

#define WM8350_DC2_HIB_MODE_MASK   0x1000

Definition at line 194 of file pmic.h.

#define WM8350_DC2_HIB_MODE_SHIFT   12

Definition at line 195 of file pmic.h.

#define WM8350_DC2_HIB_TRIG_LPWR1   1

Definition at line 214 of file pmic.h.

#define WM8350_DC2_HIB_TRIG_LPWR2   2

Definition at line 215 of file pmic.h.

#define WM8350_DC2_HIB_TRIG_LPWR3   3

Definition at line 216 of file pmic.h.

#define WM8350_DC2_HIB_TRIG_MASK   0x0300

Definition at line 196 of file pmic.h.

#define WM8350_DC2_HIB_TRIG_NONE   0

Definition at line 213 of file pmic.h.

#define WM8350_DC2_HIB_TRIG_SHIFT   8

Definition at line 197 of file pmic.h.

#define WM8350_DC2_ILIM   0x0040

Definition at line 198 of file pmic.h.

#define WM8350_DC2_ILIM_HIGH   0

Definition at line 218 of file pmic.h.

#define WM8350_DC2_ILIM_LOW   1

Definition at line 219 of file pmic.h.

#define WM8350_DC2_ILIM_MASK   0x0040

Definition at line 199 of file pmic.h.

#define WM8350_DC2_ILIM_SHIFT   6

Definition at line 200 of file pmic.h.

#define WM8350_DC2_MODE   0x4000

Definition at line 190 of file pmic.h.

#define WM8350_DC2_MODE_BOOST   0

Definition at line 207 of file pmic.h.

#define WM8350_DC2_MODE_MASK   0x4000

Definition at line 191 of file pmic.h.

#define WM8350_DC2_MODE_SHIFT   14

Definition at line 192 of file pmic.h.

#define WM8350_DC2_MODE_SWITCH   1

Definition at line 208 of file pmic.h.

#define WM8350_DC2_RMP_10V   2

Definition at line 223 of file pmic.h.

#define WM8350_DC2_RMP_20V   1

Definition at line 222 of file pmic.h.

#define WM8350_DC2_RMP_30V   0

Definition at line 221 of file pmic.h.

#define WM8350_DC2_RMP_5V   3

Definition at line 224 of file pmic.h.

#define WM8350_DC2_RMP_MASK   0x0018

Definition at line 201 of file pmic.h.

#define WM8350_DC2_RMP_SHIFT   3

Definition at line 202 of file pmic.h.

#define WM8350_DC2_SDSLOT_MASK   0x03C0

Definition at line 238 of file pmic.h.

#define WM8350_DC2_UVTO_MASK   0x0030

Definition at line 239 of file pmic.h.

#define WM8350_DC3_ACTIVE   0x0004

Definition at line 138 of file pmic.h.

#define WM8350_DC3_ENA   0x0004

Definition at line 127 of file pmic.h.

#define WM8350_DC3_ENSLOT_MASK   0x3C00

Definition at line 258 of file pmic.h.

#define WM8350_DC3_ENSLOT_SHIFT   10

Definition at line 259 of file pmic.h.

#define WM8350_DC3_ERRACT_MASK   0xC000

Definition at line 256 of file pmic.h.

#define WM8350_DC3_ERRACT_NONE   0

Definition at line 265 of file pmic.h.

#define WM8350_DC3_ERRACT_SHIFT   14

Definition at line 257 of file pmic.h.

#define WM8350_DC3_ERRACT_SHUTDOWN_CONV   1

Definition at line 266 of file pmic.h.

#define WM8350_DC3_ERRACT_SHUTDOWN_SYS   2

Definition at line 267 of file pmic.h.

#define WM8350_DC3_FAULT   0x0004

Definition at line 555 of file pmic.h.

#define WM8350_DC3_HIB_MODE_MASK   0x7000

Definition at line 271 of file pmic.h.

#define WM8350_DC3_HIB_TRIG_MASK   0x0300

Definition at line 272 of file pmic.h.

#define WM8350_DC3_OPFLT   0x0400

Definition at line 249 of file pmic.h.

#define WM8350_DC3_SDSLOT_MASK   0x03C0

Definition at line 260 of file pmic.h.

#define WM8350_DC3_SDSLOT_SHIFT   6

Definition at line 262 of file pmic.h.

#define WM8350_DC3_SLEEP   0x0004

Definition at line 146 of file pmic.h.

#define WM8350_DC3_UVTO_MASK   0x0030

Definition at line 261 of file pmic.h.

#define WM8350_DC3_VIMG_MASK   0x007F

Definition at line 273 of file pmic.h.

#define WM8350_DC3_VSEL_MASK   0x007F

Definition at line 250 of file pmic.h.

#define WM8350_DC3_VSEL_SHIFT   0

Definition at line 251 of file pmic.h.

#define WM8350_DC4_ACTIVE   0x0008

Definition at line 137 of file pmic.h.

#define WM8350_DC4_ENA   0x0008

Definition at line 126 of file pmic.h.

#define WM8350_DC4_ENSLOT_MASK   0x3C00

Definition at line 287 of file pmic.h.

#define WM8350_DC4_ENSLOT_SHIFT   10

Definition at line 288 of file pmic.h.

#define WM8350_DC4_ERRACT_MASK   0xC000

Definition at line 285 of file pmic.h.

#define WM8350_DC4_ERRACT_NONE   0

Definition at line 294 of file pmic.h.

#define WM8350_DC4_ERRACT_SHIFT   14

Definition at line 286 of file pmic.h.

#define WM8350_DC4_ERRACT_SHUTDOWN_CONV   1

Definition at line 295 of file pmic.h.

#define WM8350_DC4_ERRACT_SHUTDOWN_SYS   2

Definition at line 296 of file pmic.h.

#define WM8350_DC4_FAULT   0x0008

Definition at line 554 of file pmic.h.

#define WM8350_DC4_HIB_MODE_MASK   0x7000

Definition at line 301 of file pmic.h.

#define WM8350_DC4_HIB_TRIG_MASK   0x0300

Definition at line 302 of file pmic.h.

#define WM8350_DC4_OPFLT   0x0400

Definition at line 278 of file pmic.h.

#define WM8350_DC4_SDSLOT_MASK   0x03C0

Definition at line 289 of file pmic.h.

#define WM8350_DC4_SDSLOT_SHIFT   6

Definition at line 291 of file pmic.h.

#define WM8350_DC4_SLEEP   0x0008

Definition at line 145 of file pmic.h.

#define WM8350_DC4_UVTO_MASK   0x0030

Definition at line 290 of file pmic.h.

#define WM8350_DC4_VIMG_MASK   0x007F

Definition at line 303 of file pmic.h.

#define WM8350_DC4_VSEL_MASK   0x007F

Definition at line 279 of file pmic.h.

#define WM8350_DC4_VSEL_SHIFT   0

Definition at line 280 of file pmic.h.

#define WM8350_DC5_ENA   0x0010

Definition at line 125 of file pmic.h.

#define WM8350_DC5_ENSLOT_MASK   0x3C00

Definition at line 354 of file pmic.h.

#define WM8350_DC5_ENSLOT_SHIFT   10

Definition at line 355 of file pmic.h.

#define WM8350_DC5_ERRACT_MASK   0xC000

Definition at line 352 of file pmic.h.

#define WM8350_DC5_ERRACT_NONE   0

Definition at line 361 of file pmic.h.

#define WM8350_DC5_ERRACT_SHIFT   14

Definition at line 353 of file pmic.h.

#define WM8350_DC5_ERRACT_SHUTDOWN_CONV   1

Definition at line 362 of file pmic.h.

#define WM8350_DC5_ERRACT_SHUTDOWN_SYS   2

Definition at line 363 of file pmic.h.

#define WM8350_DC5_FAULT   0x0010

Definition at line 553 of file pmic.h.

#define WM8350_DC5_FBSRC_FB2   0

Definition at line 344 of file pmic.h.

#define WM8350_DC5_FBSRC_ISINKA   1

Definition at line 345 of file pmic.h.

#define WM8350_DC5_FBSRC_ISINKB   2

Definition at line 346 of file pmic.h.

#define WM8350_DC5_FBSRC_MASK   0x0003

Definition at line 321 of file pmic.h.

#define WM8350_DC5_FBSRC_SHIFT   0

Definition at line 322 of file pmic.h.

#define WM8350_DC5_FBSRC_USB   3

Definition at line 347 of file pmic.h.

#define WM8350_DC5_HIB_MODE   0x1000

Definition at line 311 of file pmic.h.

#define WM8350_DC5_HIB_MODE_ACTIVE   1

Definition at line 328 of file pmic.h.

#define WM8350_DC5_HIB_MODE_DISABLE   0

Definition at line 329 of file pmic.h.

#define WM8350_DC5_HIB_MODE_MASK   0x1000

Definition at line 312 of file pmic.h.

#define WM8350_DC5_HIB_MODE_SHIFT   12

Definition at line 313 of file pmic.h.

#define WM8350_DC5_HIB_TRIG_LPWR1   1

Definition at line 332 of file pmic.h.

#define WM8350_DC5_HIB_TRIG_LPWR2   2

Definition at line 333 of file pmic.h.

#define WM8350_DC5_HIB_TRIG_LPWR3   3

Definition at line 334 of file pmic.h.

#define WM8350_DC5_HIB_TRIG_MASK   0x0300

Definition at line 314 of file pmic.h.

#define WM8350_DC5_HIB_TRIG_NONE   0

Definition at line 331 of file pmic.h.

#define WM8350_DC5_HIB_TRIG_SHIFT   8

Definition at line 315 of file pmic.h.

#define WM8350_DC5_ILIM   0x0040

Definition at line 316 of file pmic.h.

#define WM8350_DC5_ILIM_HIGH   0

Definition at line 336 of file pmic.h.

#define WM8350_DC5_ILIM_LOW   1

Definition at line 337 of file pmic.h.

#define WM8350_DC5_ILIM_MASK   0x0040

Definition at line 317 of file pmic.h.

#define WM8350_DC5_ILIM_SHIFT   6

Definition at line 318 of file pmic.h.

#define WM8350_DC5_MODE   0x4000

Definition at line 308 of file pmic.h.

#define WM8350_DC5_MODE_BOOST   0

Definition at line 325 of file pmic.h.

#define WM8350_DC5_MODE_MASK   0x4000

Definition at line 309 of file pmic.h.

#define WM8350_DC5_MODE_SHIFT   14

Definition at line 310 of file pmic.h.

#define WM8350_DC5_MODE_SWITCH   1

Definition at line 326 of file pmic.h.

#define WM8350_DC5_RMP_10V   2

Definition at line 341 of file pmic.h.

#define WM8350_DC5_RMP_20V   1

Definition at line 340 of file pmic.h.

#define WM8350_DC5_RMP_30V   0

Definition at line 339 of file pmic.h.

#define WM8350_DC5_RMP_5V   3

Definition at line 342 of file pmic.h.

#define WM8350_DC5_RMP_MASK   0x0018

Definition at line 319 of file pmic.h.

#define WM8350_DC5_RMP_SHIFT   3

Definition at line 320 of file pmic.h.

#define WM8350_DC5_SDSLOT_MASK   0x03C0

Definition at line 356 of file pmic.h.

#define WM8350_DC5_SDSLOT_SHIFT   6

Definition at line 358 of file pmic.h.

#define WM8350_DC5_UVTO_MASK   0x0030

Definition at line 357 of file pmic.h.

#define WM8350_DC6_ACTIVE   0x0020

Definition at line 136 of file pmic.h.

#define WM8350_DC6_ENA   0x0020

Definition at line 124 of file pmic.h.

#define WM8350_DC6_ENSLOT_MASK   0x3C00

Definition at line 377 of file pmic.h.

#define WM8350_DC6_ENSLOT_SHIFT   10

Definition at line 378 of file pmic.h.

#define WM8350_DC6_ERRACT_MASK   0xC000

Definition at line 375 of file pmic.h.

#define WM8350_DC6_ERRACT_NONE   0

Definition at line 384 of file pmic.h.

#define WM8350_DC6_ERRACT_SHIFT   14

Definition at line 376 of file pmic.h.

#define WM8350_DC6_ERRACT_SHUTDOWN_CONV   1

Definition at line 385 of file pmic.h.

#define WM8350_DC6_ERRACT_SHUTDOWN_SYS   2

Definition at line 386 of file pmic.h.

#define WM8350_DC6_FAULT   0x0020

Definition at line 552 of file pmic.h.

#define WM8350_DC6_HIB_MODE_MASK   0x7000

Definition at line 391 of file pmic.h.

#define WM8350_DC6_HIB_TRIG_MASK   0x0300

Definition at line 392 of file pmic.h.

#define WM8350_DC6_OPFLT   0x0400

Definition at line 368 of file pmic.h.

#define WM8350_DC6_SDSLOT_MASK   0x03C0

Definition at line 379 of file pmic.h.

#define WM8350_DC6_SDSLOT_SHIFT   6

Definition at line 381 of file pmic.h.

#define WM8350_DC6_SLEEP   0x0020

Definition at line 144 of file pmic.h.

#define WM8350_DC6_UVTO_MASK   0x0030

Definition at line 380 of file pmic.h.

#define WM8350_DC6_VIMG_MASK   0x007F

Definition at line 393 of file pmic.h.

#define WM8350_DC6_VSEL_MASK   0x007F

Definition at line 369 of file pmic.h.

#define WM8350_DC6_VSEL_SHIFT   0

Definition at line 370 of file pmic.h.

#define WM8350_DCDC1_CONTROL   0xB4

Definition at line 32 of file pmic.h.

#define WM8350_DCDC1_FORCE_PWM   0xF8

Definition at line 70 of file pmic.h.

#define WM8350_DCDC1_FORCE_PWM_ENA   0x0010

Definition at line 582 of file pmic.h.

#define WM8350_DCDC1_LOW_POWER   0xB6

Definition at line 34 of file pmic.h.

#define WM8350_DCDC1_TIMEOUTS   0xB5

Definition at line 33 of file pmic.h.

#define WM8350_DCDC2_CONTROL   0xB7

Definition at line 35 of file pmic.h.

#define WM8350_DCDC2_TIMEOUTS   0xB8

Definition at line 36 of file pmic.h.

#define WM8350_DCDC3_CONTROL   0xBA

Definition at line 37 of file pmic.h.

#define WM8350_DCDC3_FORCE_PWM   0xFA

Definition at line 71 of file pmic.h.

#define WM8350_DCDC3_FORCE_PWM_ENA   0x0010

Definition at line 587 of file pmic.h.

#define WM8350_DCDC3_LOW_POWER   0xBC

Definition at line 39 of file pmic.h.

#define WM8350_DCDC3_TIMEOUTS   0xBB

Definition at line 38 of file pmic.h.

#define WM8350_DCDC4_CONTROL   0xBD

Definition at line 40 of file pmic.h.

#define WM8350_DCDC4_FORCE_PWM   0xFB

Definition at line 72 of file pmic.h.

#define WM8350_DCDC4_FORCE_PWM_ENA   0x0010

Definition at line 592 of file pmic.h.

#define WM8350_DCDC4_LOW_POWER   0xBF

Definition at line 42 of file pmic.h.

#define WM8350_DCDC4_TIMEOUTS   0xBE

Definition at line 41 of file pmic.h.

#define WM8350_DCDC5_CONTROL   0xC0

Definition at line 43 of file pmic.h.

#define WM8350_DCDC5_TIMEOUTS   0xC1

Definition at line 44 of file pmic.h.

#define WM8350_DCDC6_CONTROL   0xC3

Definition at line 45 of file pmic.h.

#define WM8350_DCDC6_FORCE_PWM   0xFD

Definition at line 73 of file pmic.h.

#define WM8350_DCDC6_FORCE_PWM_ENA   0x0010

Definition at line 597 of file pmic.h.

#define WM8350_DCDC6_LOW_POWER   0xC5

Definition at line 47 of file pmic.h.

#define WM8350_DCDC6_TIMEOUTS   0xC4

Definition at line 46 of file pmic.h.

#define WM8350_DCDC_1   0

Definition at line 602 of file pmic.h.

#define WM8350_DCDC_2   1

Definition at line 603 of file pmic.h.

#define WM8350_DCDC_3   2

Definition at line 604 of file pmic.h.

#define WM8350_DCDC_4   3

Definition at line 605 of file pmic.h.

#define WM8350_DCDC_5   4

Definition at line 606 of file pmic.h.

#define WM8350_DCDC_6   5

Definition at line 607 of file pmic.h.

#define WM8350_DCDC_ACTIVE_OPTIONS   0xB1

Definition at line 29 of file pmic.h.

#define WM8350_DCDC_ACTIVE_PULSE   1

Definition at line 611 of file pmic.h.

#define WM8350_DCDC_ACTIVE_STANDBY   0

Definition at line 610 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_CUR   (0 << 12)

Definition at line 616 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_DIS   (7 << 12)

Definition at line 621 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_IMAGE   (1 << 12)

Definition at line 617 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_LDO   (4 << 12)

Definition at line 619 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_LDO_IM   (5 << 12)

Definition at line 620 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_MASK   (7 << 12)

Definition at line 622 of file pmic.h.

#define WM8350_DCDC_HIB_MODE_STANDBY   (2 << 12)

Definition at line 618 of file pmic.h.

#define WM8350_DCDC_HIB_SIG_LPWR1   (1 << 8)

Definition at line 626 of file pmic.h.

#define WM8350_DCDC_HIB_SIG_LPWR2   (2 << 8)

Definition at line 627 of file pmic.h.

#define WM8350_DCDC_HIB_SIG_LPWR3   (3 << 8)

Definition at line 628 of file pmic.h.

#define WM8350_DCDC_HIB_SIG_REG   (0 << 8)

Definition at line 625 of file pmic.h.

#define WM8350_DCDC_LDO_REQUESTED   0xB0

Definition at line 28 of file pmic.h.

#define WM8350_DCDC_LDO_STATUS   0xE1

Definition at line 67 of file pmic.h.

#define WM8350_DCDC_SLEEP_LOW   1

Definition at line 613 of file pmic.h.

#define WM8350_DCDC_SLEEP_NORMAL   0

Definition at line 612 of file pmic.h.

#define WM8350_DCDC_SLEEP_OPTIONS   0xB2

Definition at line 30 of file pmic.h.

#define WM8350_GPIO_PIN_STATUS   0xE6

Definition at line 68 of file pmic.h.

#define WM8350_IRQ_CS1   13

Definition at line 687 of file pmic.h.

#define WM8350_IRQ_CS2   14

Definition at line 688 of file pmic.h.

#define WM8350_IRQ_OC_LS   35

Definition at line 699 of file pmic.h.

#define WM8350_IRQ_UV_DC1   34

Definition at line 698 of file pmic.h.

#define WM8350_IRQ_UV_DC2   33

Definition at line 697 of file pmic.h.

#define WM8350_IRQ_UV_DC3   32

Definition at line 696 of file pmic.h.

#define WM8350_IRQ_UV_DC4   31

Definition at line 695 of file pmic.h.

#define WM8350_IRQ_UV_DC5   30

Definition at line 694 of file pmic.h.

#define WM8350_IRQ_UV_DC6   29

Definition at line 693 of file pmic.h.

#define WM8350_IRQ_UV_LDO1   28

Definition at line 692 of file pmic.h.

#define WM8350_IRQ_UV_LDO2   27

Definition at line 691 of file pmic.h.

#define WM8350_IRQ_UV_LDO3   26

Definition at line 690 of file pmic.h.

#define WM8350_IRQ_UV_LDO4   25

Definition at line 689 of file pmic.h.

#define WM8350_ISINK_A   10

Definition at line 651 of file pmic.h.

#define WM8350_ISINK_B   11

Definition at line 652 of file pmic.h.

#define WM8350_ISINK_FLASH_DISABLE   0

Definition at line 659 of file pmic.h.

#define WM8350_ISINK_FLASH_DUR_1024MS   (3 << 8)

Definition at line 668 of file pmic.h.

#define WM8350_ISINK_FLASH_DUR_32MS   (0 << 8)

Definition at line 665 of file pmic.h.

#define WM8350_ISINK_FLASH_DUR_64MS   (1 << 8)

Definition at line 666 of file pmic.h.

#define WM8350_ISINK_FLASH_DUR_96MS   (2 << 8)

Definition at line 667 of file pmic.h.

#define WM8350_ISINK_FLASH_ENABLE   1

Definition at line 660 of file pmic.h.

#define WM8350_ISINK_FLASH_MODE_DIS   (0 << 13)

Definition at line 664 of file pmic.h.

#define WM8350_ISINK_FLASH_MODE_EN   (1 << 13)

Definition at line 663 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_0_25S   (1 << 4)

Definition at line 677 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_0_50S   (2 << 4)

Definition at line 678 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_1_00S   (3 << 4)

Definition at line 679 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_1_95S   (1 << 4)

Definition at line 680 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_3_91S   (2 << 4)

Definition at line 681 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_7_80S   (3 << 4)

Definition at line 682 of file pmic.h.

#define WM8350_ISINK_FLASH_OFF_INSTANT   (0 << 4)

Definition at line 676 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_0_25S   (1 << 0)

Definition at line 670 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_0_50S   (2 << 0)

Definition at line 671 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_1_00S   (3 << 0)

Definition at line 672 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_1_95S   (1 << 0)

Definition at line 673 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_3_91S   (2 << 0)

Definition at line 674 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_7_80S   (3 << 0)

Definition at line 675 of file pmic.h.

#define WM8350_ISINK_FLASH_ON_INSTANT   (0 << 0)

Definition at line 669 of file pmic.h.

#define WM8350_ISINK_FLASH_TRIG_BIT   0

Definition at line 661 of file pmic.h.

#define WM8350_ISINK_FLASH_TRIG_GPIO   1

Definition at line 662 of file pmic.h.

#define WM8350_ISINK_ILIM_LOW   1

Definition at line 657 of file pmic.h.

#define WM8350_ISINK_ILIM_NORMAL   0

Definition at line 656 of file pmic.h.

#define WM8350_ISINK_MODE_BOOST   0

Definition at line 654 of file pmic.h.

#define WM8350_ISINK_MODE_SWITCH   1

Definition at line 655 of file pmic.h.

#define WM8350_LDO1_CONTROL   0xC8

Definition at line 49 of file pmic.h.

#define WM8350_LDO1_ENA   0x0100

Definition at line 123 of file pmic.h.

#define WM8350_LDO1_ENSLOT_MASK   0x3C00

Definition at line 432 of file pmic.h.

#define WM8350_LDO1_ENSLOT_SHIFT   10

Definition at line 433 of file pmic.h.

#define WM8350_LDO1_ERRACT_MASK   0xC000

Definition at line 430 of file pmic.h.

#define WM8350_LDO1_ERRACT_NONE   0

Definition at line 439 of file pmic.h.

#define WM8350_LDO1_ERRACT_SHIFT   14

Definition at line 431 of file pmic.h.

#define WM8350_LDO1_ERRACT_SHUTDOWN_CONV   1

Definition at line 440 of file pmic.h.

#define WM8350_LDO1_ERRACT_SHUTDOWN_SYS   2

Definition at line 441 of file pmic.h.

#define WM8350_LDO1_FAULT   0x0100

Definition at line 551 of file pmic.h.

#define WM8350_LDO1_HIB_MODE_DIS   (0x1 << 12)

Definition at line 449 of file pmic.h.

#define WM8350_LDO1_HIB_MODE_MASK   0x3000

Definition at line 446 of file pmic.h.

#define WM8350_LDO1_HIB_TRIG_MASK   0x0300

Definition at line 447 of file pmic.h.

#define WM8350_LDO1_LOW_POWER   0xCA

Definition at line 51 of file pmic.h.

#define WM8350_LDO1_OPFLT   0x0400

Definition at line 423 of file pmic.h.

#define WM8350_LDO1_SDSLOT_MASK   0x03C0

Definition at line 434 of file pmic.h.

#define WM8350_LDO1_SDSLOT_SHIFT   6

Definition at line 436 of file pmic.h.

#define WM8350_LDO1_SWI   0x4000

Definition at line 422 of file pmic.h.

#define WM8350_LDO1_TIMEOUTS   0xC9

Definition at line 50 of file pmic.h.

#define WM8350_LDO1_UVTO_MASK   0x0030

Definition at line 435 of file pmic.h.

#define WM8350_LDO1_VIMG_MASK   0x001F

Definition at line 448 of file pmic.h.

#define WM8350_LDO1_VSEL_MASK   0x001F

Definition at line 424 of file pmic.h.

#define WM8350_LDO1_VSEL_SHIFT   0

Definition at line 425 of file pmic.h.

#define WM8350_LDO2_CONTROL   0xCB

Definition at line 52 of file pmic.h.

#define WM8350_LDO2_ENA   0x0200

Definition at line 122 of file pmic.h.

#define WM8350_LDO2_ENSLOT_MASK   0x3C00

Definition at line 465 of file pmic.h.

#define WM8350_LDO2_ENSLOT_SHIFT   10

Definition at line 466 of file pmic.h.

#define WM8350_LDO2_ERRACT_MASK   0xC000

Definition at line 463 of file pmic.h.

#define WM8350_LDO2_ERRACT_NONE   0

Definition at line 471 of file pmic.h.

#define WM8350_LDO2_ERRACT_SHIFT   14

Definition at line 464 of file pmic.h.

#define WM8350_LDO2_ERRACT_SHUTDOWN_CONV   1

Definition at line 472 of file pmic.h.

#define WM8350_LDO2_ERRACT_SHUTDOWN_SYS   2

Definition at line 473 of file pmic.h.

#define WM8350_LDO2_FAULT   0x0200

Definition at line 550 of file pmic.h.

#define WM8350_LDO2_HIB_MODE_MASK   0x3000

Definition at line 478 of file pmic.h.

#define WM8350_LDO2_HIB_TRIG_MASK   0x0300

Definition at line 479 of file pmic.h.

#define WM8350_LDO2_LOW_POWER   0xCD

Definition at line 54 of file pmic.h.

#define WM8350_LDO2_OPFLT   0x0400

Definition at line 456 of file pmic.h.

#define WM8350_LDO2_SDSLOT_MASK   0x03C0

Definition at line 467 of file pmic.h.

#define WM8350_LDO2_SDSLOT_SHIFT   6

Definition at line 468 of file pmic.h.

#define WM8350_LDO2_SWI   0x4000

Definition at line 455 of file pmic.h.

#define WM8350_LDO2_TIMEOUTS   0xCC

Definition at line 53 of file pmic.h.

#define WM8350_LDO2_VIMG_MASK   0x001F

Definition at line 480 of file pmic.h.

#define WM8350_LDO2_VSEL_MASK   0x001F

Definition at line 457 of file pmic.h.

#define WM8350_LDO2_VSEL_SHIFT   0

Definition at line 458 of file pmic.h.

#define WM8350_LDO3_CONTROL   0xCE

Definition at line 55 of file pmic.h.

#define WM8350_LDO3_ENA   0x0400

Definition at line 121 of file pmic.h.

#define WM8350_LDO3_ENSLOT_MASK   0x3C00

Definition at line 495 of file pmic.h.

#define WM8350_LDO3_ENSLOT_SHIFT   10

Definition at line 496 of file pmic.h.

#define WM8350_LDO3_ERRACT_MASK   0xC000

Definition at line 493 of file pmic.h.

#define WM8350_LDO3_ERRACT_NONE   0

Definition at line 502 of file pmic.h.

#define WM8350_LDO3_ERRACT_SHIFT   14

Definition at line 494 of file pmic.h.

#define WM8350_LDO3_ERRACT_SHUTDOWN_CONV   1

Definition at line 503 of file pmic.h.

#define WM8350_LDO3_ERRACT_SHUTDOWN_SYS   2

Definition at line 504 of file pmic.h.

#define WM8350_LDO3_FAULT   0x0400

Definition at line 549 of file pmic.h.

#define WM8350_LDO3_HIB_MODE_MASK   0x3000

Definition at line 509 of file pmic.h.

#define WM8350_LDO3_HIB_TRIG_MASK   0x0300

Definition at line 510 of file pmic.h.

#define WM8350_LDO3_LOW_POWER   0xD0

Definition at line 57 of file pmic.h.

#define WM8350_LDO3_OPFLT   0x0400

Definition at line 486 of file pmic.h.

#define WM8350_LDO3_SDSLOT_MASK   0x03C0

Definition at line 497 of file pmic.h.

#define WM8350_LDO3_SDSLOT_SHIFT   6

Definition at line 499 of file pmic.h.

#define WM8350_LDO3_SWI   0x4000

Definition at line 485 of file pmic.h.

#define WM8350_LDO3_TIMEOUTS   0xCF

Definition at line 56 of file pmic.h.

#define WM8350_LDO3_UVTO_MASK   0x0030

Definition at line 498 of file pmic.h.

#define WM8350_LDO3_VIMG_MASK   0x001F

Definition at line 511 of file pmic.h.

#define WM8350_LDO3_VSEL_MASK   0x001F

Definition at line 487 of file pmic.h.

#define WM8350_LDO3_VSEL_SHIFT   0

Definition at line 488 of file pmic.h.

#define WM8350_LDO4_CONTROL   0xD1

Definition at line 58 of file pmic.h.

#define WM8350_LDO4_ENA   0x0800

Definition at line 120 of file pmic.h.

#define WM8350_LDO4_ENSLOT_MASK   0x3C00

Definition at line 526 of file pmic.h.

#define WM8350_LDO4_ENSLOT_SHIFT   10

Definition at line 527 of file pmic.h.

#define WM8350_LDO4_ERRACT_MASK   0xC000

Definition at line 524 of file pmic.h.

#define WM8350_LDO4_ERRACT_NONE   0

Definition at line 533 of file pmic.h.

#define WM8350_LDO4_ERRACT_SHIFT   14

Definition at line 525 of file pmic.h.

#define WM8350_LDO4_ERRACT_SHUTDOWN_CONV   1

Definition at line 534 of file pmic.h.

#define WM8350_LDO4_ERRACT_SHUTDOWN_SYS   2

Definition at line 535 of file pmic.h.

#define WM8350_LDO4_FAULT   0x0800

Definition at line 548 of file pmic.h.

#define WM8350_LDO4_HIB_MODE_MASK   0x3000

Definition at line 540 of file pmic.h.

#define WM8350_LDO4_HIB_TRIG_MASK   0x0300

Definition at line 541 of file pmic.h.

#define WM8350_LDO4_LOW_POWER   0xD3

Definition at line 60 of file pmic.h.

#define WM8350_LDO4_OPFLT   0x0400

Definition at line 517 of file pmic.h.

#define WM8350_LDO4_SDSLOT_MASK   0x03C0

Definition at line 528 of file pmic.h.

#define WM8350_LDO4_SDSLOT_SHIFT   6

Definition at line 530 of file pmic.h.

#define WM8350_LDO4_SWI   0x4000

Definition at line 516 of file pmic.h.

#define WM8350_LDO4_TIMEOUTS   0xD2

Definition at line 59 of file pmic.h.

#define WM8350_LDO4_UVTO_MASK   0x0030

Definition at line 529 of file pmic.h.

#define WM8350_LDO4_VIMG_MASK   0x001F

Definition at line 542 of file pmic.h.

#define WM8350_LDO4_VSEL_MASK   0x001F

Definition at line 518 of file pmic.h.

#define WM8350_LDO4_VSEL_SHIFT   0

Definition at line 519 of file pmic.h.

#define WM8350_LDO_1   6

Definition at line 643 of file pmic.h.

#define WM8350_LDO_2   7

Definition at line 644 of file pmic.h.

#define WM8350_LDO_3   8

Definition at line 645 of file pmic.h.

#define WM8350_LDO_4   9

Definition at line 646 of file pmic.h.

#define WM8350_LDO_HIB_MODE_DIS   (1 << 0)

Definition at line 632 of file pmic.h.

#define WM8350_LDO_HIB_MODE_IMAGE   (0 << 0)

Definition at line 631 of file pmic.h.

#define WM8350_LDO_HIB_SIG_LPWR1   (1 << 8)

Definition at line 636 of file pmic.h.

#define WM8350_LDO_HIB_SIG_LPWR2   (2 << 8)

Definition at line 637 of file pmic.h.

#define WM8350_LDO_HIB_SIG_LPWR3   (3 << 8)

Definition at line 638 of file pmic.h.

#define WM8350_LDO_HIB_SIG_REG   (0 << 8)

Definition at line 635 of file pmic.h.

#define WM8350_LIMIT_SWITCH_CONTROL   0xC7

Definition at line 48 of file pmic.h.

#define WM8350_LS_ENA   0x8000

Definition at line 119 of file pmic.h.

#define WM8350_LS_ENSLOT_MASK   0x3C00

Definition at line 400 of file pmic.h.

#define WM8350_LS_ENSLOT_SHIFT   10

Definition at line 401 of file pmic.h.

#define WM8350_LS_ERRACT_MASK   0xC000

Definition at line 398 of file pmic.h.

#define WM8350_LS_ERRACT_NONE   0

Definition at line 415 of file pmic.h.

#define WM8350_LS_ERRACT_SHIFT   14

Definition at line 399 of file pmic.h.

#define WM8350_LS_ERRACT_SHUTDOWN_CONV   1

Definition at line 416 of file pmic.h.

#define WM8350_LS_ERRACT_SHUTDOWN_SYS   2

Definition at line 417 of file pmic.h.

#define WM8350_LS_FAULT   0x8000

Definition at line 547 of file pmic.h.

#define WM8350_LS_HIB_MODE   0x0010

Definition at line 404 of file pmic.h.

#define WM8350_LS_HIB_MODE_MASK   0x0010

Definition at line 405 of file pmic.h.

#define WM8350_LS_HIB_MODE_SHIFT   4

Definition at line 406 of file pmic.h.

#define WM8350_LS_HIB_PROT   0x0002

Definition at line 407 of file pmic.h.

#define WM8350_LS_HIB_PROT_MASK   0x0002

Definition at line 408 of file pmic.h.

#define WM8350_LS_HIB_PROT_SHIFT   1

Definition at line 409 of file pmic.h.

#define WM8350_LS_PROT   0x0001

Definition at line 410 of file pmic.h.

#define WM8350_LS_PROT_MASK   0x0001

Definition at line 411 of file pmic.h.

#define WM8350_LS_PROT_SHIFT   0

Definition at line 412 of file pmic.h.

#define WM8350_LS_SDSLOT_MASK   0x03C0

Definition at line 402 of file pmic.h.

#define WM8350_LS_SDSLOT_SHIFT   6

Definition at line 403 of file pmic.h.

#define WM8350_MAIN_BANDGAP_CONTROL   0xD8

Definition at line 62 of file pmic.h.

#define WM8350_MBG_FUSE_TRIM_MASK   0x1F00

Definition at line 565 of file pmic.h.

#define WM8350_MBG_FUSE_WPREP   0x4000

Definition at line 563 of file pmic.h.

#define WM8350_MBG_FUSE_WRITE   0x2000

Definition at line 564 of file pmic.h.

#define WM8350_MBG_LOAD_FUSES   0x8000

Definition at line 562 of file pmic.h.

#define WM8350_MBG_TRIM_SRC   0x0020

Definition at line 566 of file pmic.h.

#define WM8350_MBG_USER_TRIM_MASK   0x001F

Definition at line 567 of file pmic.h.

#define WM8350_OSC_CONTROL   0xD9

Definition at line 63 of file pmic.h.

#define WM8350_OSC_FUSE_TRIM_MASK   0x0F00

Definition at line 575 of file pmic.h.

#define WM8350_OSC_FUSE_WPREP   0x4000

Definition at line 573 of file pmic.h.

#define WM8350_OSC_FUSE_WRITE   0x2000

Definition at line 574 of file pmic.h.

#define WM8350_OSC_LOAD_FUSES   0x8000

Definition at line 572 of file pmic.h.

#define WM8350_OSC_TRIM_SRC   0x0020

Definition at line 576 of file pmic.h.

#define WM8350_OSC_USER_TRIM_MASK   0x000F

Definition at line 577 of file pmic.h.

#define WM8350_PCCMP_ERRACT   0x4000

Definition at line 152 of file pmic.h.

#define WM8350_PCCMP_OFF_THR_MASK   0x0070

Definition at line 154 of file pmic.h.

#define WM8350_PCCMP_ON_THR_MASK   0x0007

Definition at line 155 of file pmic.h.

#define WM8350_PCCMP_RAIL   0x0100

Definition at line 153 of file pmic.h.

#define WM8350_POWER_CHECK_COMPARATOR   0xB3

Definition at line 31 of file pmic.h.

#define WM8350_PUTO_MASK   0x3000

Definition at line 134 of file pmic.h.

#define WM8350_PWRUP_DELAY_MASK   0x0300

Definition at line 135 of file pmic.h.

#define WM8350_RAM_BIST_1   0xDC

Definition at line 66 of file pmic.h.

#define WM8350_RTC_TICK_CONTROL   0xDA

Definition at line 64 of file pmic.h.

#define WM8350_SECURITY   0xDB

Definition at line 65 of file pmic.h.

#define WM8350_VCC_FAULT_MASKS   0xD7

Definition at line 61 of file pmic.h.

Function Documentation

int wm8350_dcdc25_set_mode ( struct wm8350 wm8350,
int  dcdc,
u16  mode,
u16  ilim,
u16  ramp,
u16  feedback 
)

Definition at line 757 of file wm8350-regulator.c.

int wm8350_dcdc_set_slot ( struct wm8350 wm8350,
int  dcdc,
u16  start,
u16  stop,
u16  fault 
)

Definition at line 674 of file wm8350-regulator.c.

int wm8350_isink_set_flash ( struct wm8350 wm8350,
int  isink,
u16  mode,
u16  trigger,
u16  duration,
u16  on_ramp,
u16  off_ramp,
u16  drive 
)

Definition at line 311 of file wm8350-regulator.c.

int wm8350_ldo_set_slot ( struct wm8350 wm8350,
int  ldo,
u16  start,
u16  stop 
)

Definition at line 722 of file wm8350-regulator.c.

int wm8350_register_led ( struct wm8350 wm8350,
int  lednum,
int  dcdc,
int  isink,
struct wm8350_led_platform_data pdata 
)

wm8350_register_led - Register a WM8350 LED output

Parameters
wm8350The WM8350 device to configure.
lednumLED device index to create.
dcdcThe DCDC to use for the LED.
isinkThe ISINK to use for the LED.
pdataConfiguration for the LED.

The WM8350 supports the use of an ISINK together with a DCDC to provide a power-efficient LED driver. This function registers the regulators and instantiates the platform device for a LED. The operating modes for the LED regulators must be configured using wm8350_isink_set_flash(), wm8350_dcdc25_set_mode() and wm8350_dcdc_set_slot() prior to calling this function.

Definition at line 1321 of file wm8350-regulator.c.

int wm8350_register_regulator ( struct wm8350 wm8350,
int  reg,
struct regulator_init_data initdata 
)

Definition at line 1262 of file wm8350-regulator.c.