Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
core.h File Reference
#include <linux/completion.h>
#include <linux/interrupt.h>
#include <linux/irqdomain.h>
#include <linux/list.h>
#include <linux/regmap.h>

Go to the source code of this file.

Data Structures

struct  wm831x
 

Macros

#define WM831X_RESET_ID   0x00
 
#define WM831X_REVISION   0x01
 
#define WM831X_PARENT_ID   0x4000
 
#define WM831X_SYSVDD_CONTROL   0x4001
 
#define WM831X_THERMAL_MONITORING   0x4002
 
#define WM831X_POWER_STATE   0x4003
 
#define WM831X_WATCHDOG   0x4004
 
#define WM831X_ON_PIN_CONTROL   0x4005
 
#define WM831X_RESET_CONTROL   0x4006
 
#define WM831X_CONTROL_INTERFACE   0x4007
 
#define WM831X_SECURITY_KEY   0x4008
 
#define WM831X_SOFTWARE_SCRATCH   0x4009
 
#define WM831X_OTP_CONTROL   0x400A
 
#define WM831X_GPIO_LEVEL   0x400C
 
#define WM831X_SYSTEM_STATUS   0x400D
 
#define WM831X_ON_SOURCE   0x400E
 
#define WM831X_OFF_SOURCE   0x400F
 
#define WM831X_SYSTEM_INTERRUPTS   0x4010
 
#define WM831X_INTERRUPT_STATUS_1   0x4011
 
#define WM831X_INTERRUPT_STATUS_2   0x4012
 
#define WM831X_INTERRUPT_STATUS_3   0x4013
 
#define WM831X_INTERRUPT_STATUS_4   0x4014
 
#define WM831X_INTERRUPT_STATUS_5   0x4015
 
#define WM831X_IRQ_CONFIG   0x4017
 
#define WM831X_SYSTEM_INTERRUPTS_MASK   0x4018
 
#define WM831X_INTERRUPT_STATUS_1_MASK   0x4019
 
#define WM831X_INTERRUPT_STATUS_2_MASK   0x401A
 
#define WM831X_INTERRUPT_STATUS_3_MASK   0x401B
 
#define WM831X_INTERRUPT_STATUS_4_MASK   0x401C
 
#define WM831X_INTERRUPT_STATUS_5_MASK   0x401D
 
#define WM831X_RTC_WRITE_COUNTER   0x4020
 
#define WM831X_RTC_TIME_1   0x4021
 
#define WM831X_RTC_TIME_2   0x4022
 
#define WM831X_RTC_ALARM_1   0x4023
 
#define WM831X_RTC_ALARM_2   0x4024
 
#define WM831X_RTC_CONTROL   0x4025
 
#define WM831X_RTC_TRIM   0x4026
 
#define WM831X_TOUCH_CONTROL_1   0x4028
 
#define WM831X_TOUCH_CONTROL_2   0x4029
 
#define WM831X_TOUCH_DATA_X   0x402A
 
#define WM831X_TOUCH_DATA_Y   0x402B
 
#define WM831X_TOUCH_DATA_Z   0x402C
 
#define WM831X_AUXADC_DATA   0x402D
 
#define WM831X_AUXADC_CONTROL   0x402E
 
#define WM831X_AUXADC_SOURCE   0x402F
 
#define WM831X_COMPARATOR_CONTROL   0x4030
 
#define WM831X_COMPARATOR_1   0x4031
 
#define WM831X_COMPARATOR_2   0x4032
 
#define WM831X_COMPARATOR_3   0x4033
 
#define WM831X_COMPARATOR_4   0x4034
 
#define WM831X_GPIO1_CONTROL   0x4038
 
#define WM831X_GPIO2_CONTROL   0x4039
 
#define WM831X_GPIO3_CONTROL   0x403A
 
#define WM831X_GPIO4_CONTROL   0x403B
 
#define WM831X_GPIO5_CONTROL   0x403C
 
#define WM831X_GPIO6_CONTROL   0x403D
 
#define WM831X_GPIO7_CONTROL   0x403E
 
#define WM831X_GPIO8_CONTROL   0x403F
 
#define WM831X_GPIO9_CONTROL   0x4040
 
#define WM831X_GPIO10_CONTROL   0x4041
 
#define WM831X_GPIO11_CONTROL   0x4042
 
#define WM831X_GPIO12_CONTROL   0x4043
 
#define WM831X_GPIO13_CONTROL   0x4044
 
#define WM831X_GPIO14_CONTROL   0x4045
 
#define WM831X_GPIO15_CONTROL   0x4046
 
#define WM831X_GPIO16_CONTROL   0x4047
 
#define WM831X_CHARGER_CONTROL_1   0x4048
 
#define WM831X_CHARGER_CONTROL_2   0x4049
 
#define WM831X_CHARGER_STATUS   0x404A
 
#define WM831X_BACKUP_CHARGER_CONTROL   0x404B
 
#define WM831X_STATUS_LED_1   0x404C
 
#define WM831X_STATUS_LED_2   0x404D
 
#define WM831X_CURRENT_SINK_1   0x404E
 
#define WM831X_CURRENT_SINK_2   0x404F
 
#define WM831X_DCDC_ENABLE   0x4050
 
#define WM831X_LDO_ENABLE   0x4051
 
#define WM831X_DCDC_STATUS   0x4052
 
#define WM831X_LDO_STATUS   0x4053
 
#define WM831X_DCDC_UV_STATUS   0x4054
 
#define WM831X_LDO_UV_STATUS   0x4055
 
#define WM831X_DC1_CONTROL_1   0x4056
 
#define WM831X_DC1_CONTROL_2   0x4057
 
#define WM831X_DC1_ON_CONFIG   0x4058
 
#define WM831X_DC1_SLEEP_CONTROL   0x4059
 
#define WM831X_DC1_DVS_CONTROL   0x405A
 
#define WM831X_DC2_CONTROL_1   0x405B
 
#define WM831X_DC2_CONTROL_2   0x405C
 
#define WM831X_DC2_ON_CONFIG   0x405D
 
#define WM831X_DC2_SLEEP_CONTROL   0x405E
 
#define WM831X_DC2_DVS_CONTROL   0x405F
 
#define WM831X_DC3_CONTROL_1   0x4060
 
#define WM831X_DC3_CONTROL_2   0x4061
 
#define WM831X_DC3_ON_CONFIG   0x4062
 
#define WM831X_DC3_SLEEP_CONTROL   0x4063
 
#define WM831X_DC4_CONTROL   0x4064
 
#define WM831X_DC4_SLEEP_CONTROL   0x4065
 
#define WM832X_DC4_SLEEP_CONTROL   0x4067
 
#define WM831X_EPE1_CONTROL   0x4066
 
#define WM831X_EPE2_CONTROL   0x4067
 
#define WM831X_LDO1_CONTROL   0x4068
 
#define WM831X_LDO1_ON_CONTROL   0x4069
 
#define WM831X_LDO1_SLEEP_CONTROL   0x406A
 
#define WM831X_LDO2_CONTROL   0x406B
 
#define WM831X_LDO2_ON_CONTROL   0x406C
 
#define WM831X_LDO2_SLEEP_CONTROL   0x406D
 
#define WM831X_LDO3_CONTROL   0x406E
 
#define WM831X_LDO3_ON_CONTROL   0x406F
 
#define WM831X_LDO3_SLEEP_CONTROL   0x4070
 
#define WM831X_LDO4_CONTROL   0x4071
 
#define WM831X_LDO4_ON_CONTROL   0x4072
 
#define WM831X_LDO4_SLEEP_CONTROL   0x4073
 
#define WM831X_LDO5_CONTROL   0x4074
 
#define WM831X_LDO5_ON_CONTROL   0x4075
 
#define WM831X_LDO5_SLEEP_CONTROL   0x4076
 
#define WM831X_LDO6_CONTROL   0x4077
 
#define WM831X_LDO6_ON_CONTROL   0x4078
 
#define WM831X_LDO6_SLEEP_CONTROL   0x4079
 
#define WM831X_LDO7_CONTROL   0x407A
 
#define WM831X_LDO7_ON_CONTROL   0x407B
 
#define WM831X_LDO7_SLEEP_CONTROL   0x407C
 
#define WM831X_LDO8_CONTROL   0x407D
 
#define WM831X_LDO8_ON_CONTROL   0x407E
 
#define WM831X_LDO8_SLEEP_CONTROL   0x407F
 
#define WM831X_LDO9_CONTROL   0x4080
 
#define WM831X_LDO9_ON_CONTROL   0x4081
 
#define WM831X_LDO9_SLEEP_CONTROL   0x4082
 
#define WM831X_LDO10_CONTROL   0x4083
 
#define WM831X_LDO10_ON_CONTROL   0x4084
 
#define WM831X_LDO10_SLEEP_CONTROL   0x4085
 
#define WM831X_LDO11_ON_CONTROL   0x4087
 
#define WM831X_LDO11_SLEEP_CONTROL   0x4088
 
#define WM831X_POWER_GOOD_SOURCE_1   0x408E
 
#define WM831X_POWER_GOOD_SOURCE_2   0x408F
 
#define WM831X_CLOCK_CONTROL_1   0x4090
 
#define WM831X_CLOCK_CONTROL_2   0x4091
 
#define WM831X_FLL_CONTROL_1   0x4092
 
#define WM831X_FLL_CONTROL_2   0x4093
 
#define WM831X_FLL_CONTROL_3   0x4094
 
#define WM831X_FLL_CONTROL_4   0x4095
 
#define WM831X_FLL_CONTROL_5   0x4096
 
#define WM831X_UNIQUE_ID_1   0x7800
 
#define WM831X_UNIQUE_ID_2   0x7801
 
#define WM831X_UNIQUE_ID_3   0x7802
 
#define WM831X_UNIQUE_ID_4   0x7803
 
#define WM831X_UNIQUE_ID_5   0x7804
 
#define WM831X_UNIQUE_ID_6   0x7805
 
#define WM831X_UNIQUE_ID_7   0x7806
 
#define WM831X_UNIQUE_ID_8   0x7807
 
#define WM831X_FACTORY_OTP_ID   0x7808
 
#define WM831X_FACTORY_OTP_1   0x7809
 
#define WM831X_FACTORY_OTP_2   0x780A
 
#define WM831X_FACTORY_OTP_3   0x780B
 
#define WM831X_FACTORY_OTP_4   0x780C
 
#define WM831X_FACTORY_OTP_5   0x780D
 
#define WM831X_CUSTOMER_OTP_ID   0x7810
 
#define WM831X_DC1_OTP_CONTROL   0x7811
 
#define WM831X_DC2_OTP_CONTROL   0x7812
 
#define WM831X_DC3_OTP_CONTROL   0x7813
 
#define WM831X_LDO1_2_OTP_CONTROL   0x7814
 
#define WM831X_LDO3_4_OTP_CONTROL   0x7815
 
#define WM831X_LDO5_6_OTP_CONTROL   0x7816
 
#define WM831X_LDO7_8_OTP_CONTROL   0x7817
 
#define WM831X_LDO9_10_OTP_CONTROL   0x7818
 
#define WM831X_LDO11_EPE_CONTROL   0x7819
 
#define WM831X_GPIO1_OTP_CONTROL   0x781A
 
#define WM831X_GPIO2_OTP_CONTROL   0x781B
 
#define WM831X_GPIO3_OTP_CONTROL   0x781C
 
#define WM831X_GPIO4_OTP_CONTROL   0x781D
 
#define WM831X_GPIO5_OTP_CONTROL   0x781E
 
#define WM831X_GPIO6_OTP_CONTROL   0x781F
 
#define WM831X_DBE_CHECK_DATA   0x7827
 
#define WM831X_CHIP_ID_MASK   0xFFFF /* CHIP_ID - [15:0] */
 
#define WM831X_CHIP_ID_SHIFT   0 /* CHIP_ID - [15:0] */
 
#define WM831X_CHIP_ID_WIDTH   16 /* CHIP_ID - [15:0] */
 
#define WM831X_PARENT_REV_MASK   0xFF00 /* PARENT_REV - [15:8] */
 
#define WM831X_PARENT_REV_SHIFT   8 /* PARENT_REV - [15:8] */
 
#define WM831X_PARENT_REV_WIDTH   8 /* PARENT_REV - [15:8] */
 
#define WM831X_CHILD_REV_MASK   0x00FF /* CHILD_REV - [7:0] */
 
#define WM831X_CHILD_REV_SHIFT   0 /* CHILD_REV - [7:0] */
 
#define WM831X_CHILD_REV_WIDTH   8 /* CHILD_REV - [7:0] */
 
#define WM831X_PARENT_ID_MASK   0xFFFF /* PARENT_ID - [15:0] */
 
#define WM831X_PARENT_ID_SHIFT   0 /* PARENT_ID - [15:0] */
 
#define WM831X_PARENT_ID_WIDTH   16 /* PARENT_ID - [15:0] */
 
#define WM831X_ON_PIN_SECACT_MASK   0x0300 /* ON_PIN_SECACT - [9:8] */
 
#define WM831X_ON_PIN_SECACT_SHIFT   8 /* ON_PIN_SECACT - [9:8] */
 
#define WM831X_ON_PIN_SECACT_WIDTH   2 /* ON_PIN_SECACT - [9:8] */
 
#define WM831X_ON_PIN_PRIMACT_MASK   0x0030 /* ON_PIN_PRIMACT - [5:4] */
 
#define WM831X_ON_PIN_PRIMACT_SHIFT   4 /* ON_PIN_PRIMACT - [5:4] */
 
#define WM831X_ON_PIN_PRIMACT_WIDTH   2 /* ON_PIN_PRIMACT - [5:4] */
 
#define WM831X_ON_PIN_STS   0x0008 /* ON_PIN_STS */
 
#define WM831X_ON_PIN_STS_MASK   0x0008 /* ON_PIN_STS */
 
#define WM831X_ON_PIN_STS_SHIFT   3 /* ON_PIN_STS */
 
#define WM831X_ON_PIN_STS_WIDTH   1 /* ON_PIN_STS */
 
#define WM831X_ON_PIN_TO_MASK   0x0003 /* ON_PIN_TO - [1:0] */
 
#define WM831X_ON_PIN_TO_SHIFT   0 /* ON_PIN_TO - [1:0] */
 
#define WM831X_ON_PIN_TO_WIDTH   2 /* ON_PIN_TO - [1:0] */
 
#define WM831X_CLKOUT_ENA   0x8000 /* CLKOUT_ENA */
 
#define WM831X_CLKOUT_ENA_MASK   0x8000 /* CLKOUT_ENA */
 
#define WM831X_CLKOUT_ENA_SHIFT   15 /* CLKOUT_ENA */
 
#define WM831X_CLKOUT_ENA_WIDTH   1 /* CLKOUT_ENA */
 
#define WM831X_CLKOUT_OD   0x2000 /* CLKOUT_OD */
 
#define WM831X_CLKOUT_OD_MASK   0x2000 /* CLKOUT_OD */
 
#define WM831X_CLKOUT_OD_SHIFT   13 /* CLKOUT_OD */
 
#define WM831X_CLKOUT_OD_WIDTH   1 /* CLKOUT_OD */
 
#define WM831X_CLKOUT_SLOT_MASK   0x0700 /* CLKOUT_SLOT - [10:8] */
 
#define WM831X_CLKOUT_SLOT_SHIFT   8 /* CLKOUT_SLOT - [10:8] */
 
#define WM831X_CLKOUT_SLOT_WIDTH   3 /* CLKOUT_SLOT - [10:8] */
 
#define WM831X_CLKOUT_SLPSLOT_MASK   0x0070 /* CLKOUT_SLPSLOT - [6:4] */
 
#define WM831X_CLKOUT_SLPSLOT_SHIFT   4 /* CLKOUT_SLPSLOT - [6:4] */
 
#define WM831X_CLKOUT_SLPSLOT_WIDTH   3 /* CLKOUT_SLPSLOT - [6:4] */
 
#define WM831X_CLKOUT_SRC   0x0001 /* CLKOUT_SRC */
 
#define WM831X_CLKOUT_SRC_MASK   0x0001 /* CLKOUT_SRC */
 
#define WM831X_CLKOUT_SRC_SHIFT   0 /* CLKOUT_SRC */
 
#define WM831X_CLKOUT_SRC_WIDTH   1 /* CLKOUT_SRC */
 
#define WM831X_XTAL_INH   0x8000 /* XTAL_INH */
 
#define WM831X_XTAL_INH_MASK   0x8000 /* XTAL_INH */
 
#define WM831X_XTAL_INH_SHIFT   15 /* XTAL_INH */
 
#define WM831X_XTAL_INH_WIDTH   1 /* XTAL_INH */
 
#define WM831X_XTAL_ENA   0x2000 /* XTAL_ENA */
 
#define WM831X_XTAL_ENA_MASK   0x2000 /* XTAL_ENA */
 
#define WM831X_XTAL_ENA_SHIFT   13 /* XTAL_ENA */
 
#define WM831X_XTAL_ENA_WIDTH   1 /* XTAL_ENA */
 
#define WM831X_XTAL_BKUPENA   0x1000 /* XTAL_BKUPENA */
 
#define WM831X_XTAL_BKUPENA_MASK   0x1000 /* XTAL_BKUPENA */
 
#define WM831X_XTAL_BKUPENA_SHIFT   12 /* XTAL_BKUPENA */
 
#define WM831X_XTAL_BKUPENA_WIDTH   1 /* XTAL_BKUPENA */
 
#define WM831X_FLL_AUTO   0x0080 /* FLL_AUTO */
 
#define WM831X_FLL_AUTO_MASK   0x0080 /* FLL_AUTO */
 
#define WM831X_FLL_AUTO_SHIFT   7 /* FLL_AUTO */
 
#define WM831X_FLL_AUTO_WIDTH   1 /* FLL_AUTO */
 
#define WM831X_FLL_AUTO_FREQ_MASK   0x0007 /* FLL_AUTO_FREQ - [2:0] */
 
#define WM831X_FLL_AUTO_FREQ_SHIFT   0 /* FLL_AUTO_FREQ - [2:0] */
 
#define WM831X_FLL_AUTO_FREQ_WIDTH   3 /* FLL_AUTO_FREQ - [2:0] */
 
#define WM831X_FLL_FRAC   0x0004 /* FLL_FRAC */
 
#define WM831X_FLL_FRAC_MASK   0x0004 /* FLL_FRAC */
 
#define WM831X_FLL_FRAC_SHIFT   2 /* FLL_FRAC */
 
#define WM831X_FLL_FRAC_WIDTH   1 /* FLL_FRAC */
 
#define WM831X_FLL_OSC_ENA   0x0002 /* FLL_OSC_ENA */
 
#define WM831X_FLL_OSC_ENA_MASK   0x0002 /* FLL_OSC_ENA */
 
#define WM831X_FLL_OSC_ENA_SHIFT   1 /* FLL_OSC_ENA */
 
#define WM831X_FLL_OSC_ENA_WIDTH   1 /* FLL_OSC_ENA */
 
#define WM831X_FLL_ENA   0x0001 /* FLL_ENA */
 
#define WM831X_FLL_ENA_MASK   0x0001 /* FLL_ENA */
 
#define WM831X_FLL_ENA_SHIFT   0 /* FLL_ENA */
 
#define WM831X_FLL_ENA_WIDTH   1 /* FLL_ENA */
 
#define WM831X_FLL_OUTDIV_MASK   0x3F00 /* FLL_OUTDIV - [13:8] */
 
#define WM831X_FLL_OUTDIV_SHIFT   8 /* FLL_OUTDIV - [13:8] */
 
#define WM831X_FLL_OUTDIV_WIDTH   6 /* FLL_OUTDIV - [13:8] */
 
#define WM831X_FLL_CTRL_RATE_MASK   0x0070 /* FLL_CTRL_RATE - [6:4] */
 
#define WM831X_FLL_CTRL_RATE_SHIFT   4 /* FLL_CTRL_RATE - [6:4] */
 
#define WM831X_FLL_CTRL_RATE_WIDTH   3 /* FLL_CTRL_RATE - [6:4] */
 
#define WM831X_FLL_FRATIO_MASK   0x0007 /* FLL_FRATIO - [2:0] */
 
#define WM831X_FLL_FRATIO_SHIFT   0 /* FLL_FRATIO - [2:0] */
 
#define WM831X_FLL_FRATIO_WIDTH   3 /* FLL_FRATIO - [2:0] */
 
#define WM831X_FLL_K_MASK   0xFFFF /* FLL_K - [15:0] */
 
#define WM831X_FLL_K_SHIFT   0 /* FLL_K - [15:0] */
 
#define WM831X_FLL_K_WIDTH   16 /* FLL_K - [15:0] */
 
#define WM831X_FLL_N_MASK   0x7FE0 /* FLL_N - [14:5] */
 
#define WM831X_FLL_N_SHIFT   5 /* FLL_N - [14:5] */
 
#define WM831X_FLL_N_WIDTH   10 /* FLL_N - [14:5] */
 
#define WM831X_FLL_GAIN_MASK   0x000F /* FLL_GAIN - [3:0] */
 
#define WM831X_FLL_GAIN_SHIFT   0 /* FLL_GAIN - [3:0] */
 
#define WM831X_FLL_GAIN_WIDTH   4 /* FLL_GAIN - [3:0] */
 
#define WM831X_FLL_CLK_REF_DIV_MASK   0x0018 /* FLL_CLK_REF_DIV - [4:3] */
 
#define WM831X_FLL_CLK_REF_DIV_SHIFT   3 /* FLL_CLK_REF_DIV - [4:3] */
 
#define WM831X_FLL_CLK_REF_DIV_WIDTH   2 /* FLL_CLK_REF_DIV - [4:3] */
 
#define WM831X_FLL_CLK_SRC_MASK   0x0003 /* FLL_CLK_SRC - [1:0] */
 
#define WM831X_FLL_CLK_SRC_SHIFT   0 /* FLL_CLK_SRC - [1:0] */
 
#define WM831X_FLL_CLK_SRC_WIDTH   2 /* FLL_CLK_SRC - [1:0] */
 
#define WM831X_NUM_IRQ_REGS   5
 
#define WM831X_NUM_GPIO_REGS   16
 

Typedefs

typedef int(* wm831x_auxadc_read_fn )(struct wm831x *wm831x, enum wm831x_auxadc input)
 

Enumerations

enum  wm831x_parent {
  WM8310 = 0x8310, WM8311 = 0x8311, WM8312 = 0x8312, WM8320 = 0x8320,
  WM8321 = 0x8321, WM8325 = 0x8325, WM8326 = 0x8326
}
 

Functions

int wm831x_reg_read (struct wm831x *wm831x, unsigned short reg)
 
int wm831x_reg_write (struct wm831x *wm831x, unsigned short reg, unsigned short val)
 
void wm831x_reg_lock (struct wm831x *wm831x)
 
int wm831x_reg_unlock (struct wm831x *wm831x)
 
int wm831x_set_bits (struct wm831x *wm831x, unsigned short reg, unsigned short mask, unsigned short val)
 
int wm831x_bulk_read (struct wm831x *wm831x, unsigned short reg, int count, u16 *buf)
 
int wm831x_device_init (struct wm831x *wm831x, unsigned long id, int irq)
 
void wm831x_device_exit (struct wm831x *wm831x)
 
int wm831x_device_suspend (struct wm831x *wm831x)
 
void wm831x_device_shutdown (struct wm831x *wm831x)
 
int wm831x_irq_init (struct wm831x *wm831x, int irq)
 
void wm831x_irq_exit (struct wm831x *wm831x)
 
void wm831x_auxadc_init (struct wm831x *wm831x)
 

Variables

struct regmap_config wm831x_regmap_config
 

Macro Definition Documentation

#define WM831X_AUXADC_CONTROL   0x402E

Definition at line 70 of file core.h.

#define WM831X_AUXADC_DATA   0x402D

Definition at line 69 of file core.h.

#define WM831X_AUXADC_SOURCE   0x402F

Definition at line 71 of file core.h.

#define WM831X_BACKUP_CHARGER_CONTROL   0x404B

Definition at line 96 of file core.h.

#define WM831X_CHARGER_CONTROL_1   0x4048

Definition at line 93 of file core.h.

#define WM831X_CHARGER_CONTROL_2   0x4049

Definition at line 94 of file core.h.

#define WM831X_CHARGER_STATUS   0x404A

Definition at line 95 of file core.h.

#define WM831X_CHILD_REV_MASK   0x00FF /* CHILD_REV - [7:0] */

Definition at line 212 of file core.h.

#define WM831X_CHILD_REV_SHIFT   0 /* CHILD_REV - [7:0] */

Definition at line 213 of file core.h.

#define WM831X_CHILD_REV_WIDTH   8 /* CHILD_REV - [7:0] */

Definition at line 214 of file core.h.

#define WM831X_CHIP_ID_MASK   0xFFFF /* CHIP_ID - [15:0] */

Definition at line 202 of file core.h.

#define WM831X_CHIP_ID_SHIFT   0 /* CHIP_ID - [15:0] */

Definition at line 203 of file core.h.

#define WM831X_CHIP_ID_WIDTH   16 /* CHIP_ID - [15:0] */

Definition at line 204 of file core.h.

#define WM831X_CLKOUT_ENA   0x8000 /* CLKOUT_ENA */

Definition at line 243 of file core.h.

#define WM831X_CLKOUT_ENA_MASK   0x8000 /* CLKOUT_ENA */

Definition at line 244 of file core.h.

#define WM831X_CLKOUT_ENA_SHIFT   15 /* CLKOUT_ENA */

Definition at line 245 of file core.h.

#define WM831X_CLKOUT_ENA_WIDTH   1 /* CLKOUT_ENA */

Definition at line 246 of file core.h.

#define WM831X_CLKOUT_OD   0x2000 /* CLKOUT_OD */

Definition at line 247 of file core.h.

#define WM831X_CLKOUT_OD_MASK   0x2000 /* CLKOUT_OD */

Definition at line 248 of file core.h.

#define WM831X_CLKOUT_OD_SHIFT   13 /* CLKOUT_OD */

Definition at line 249 of file core.h.

#define WM831X_CLKOUT_OD_WIDTH   1 /* CLKOUT_OD */

Definition at line 250 of file core.h.

#define WM831X_CLKOUT_SLOT_MASK   0x0700 /* CLKOUT_SLOT - [10:8] */

Definition at line 251 of file core.h.

#define WM831X_CLKOUT_SLOT_SHIFT   8 /* CLKOUT_SLOT - [10:8] */

Definition at line 252 of file core.h.

#define WM831X_CLKOUT_SLOT_WIDTH   3 /* CLKOUT_SLOT - [10:8] */

Definition at line 253 of file core.h.

#define WM831X_CLKOUT_SLPSLOT_MASK   0x0070 /* CLKOUT_SLPSLOT - [6:4] */

Definition at line 254 of file core.h.

#define WM831X_CLKOUT_SLPSLOT_SHIFT   4 /* CLKOUT_SLPSLOT - [6:4] */

Definition at line 255 of file core.h.

#define WM831X_CLKOUT_SLPSLOT_WIDTH   3 /* CLKOUT_SLPSLOT - [6:4] */

Definition at line 256 of file core.h.

#define WM831X_CLKOUT_SRC   0x0001 /* CLKOUT_SRC */

Definition at line 257 of file core.h.

#define WM831X_CLKOUT_SRC_MASK   0x0001 /* CLKOUT_SRC */

Definition at line 258 of file core.h.

#define WM831X_CLKOUT_SRC_SHIFT   0 /* CLKOUT_SRC */

Definition at line 259 of file core.h.

#define WM831X_CLKOUT_SRC_WIDTH   1 /* CLKOUT_SRC */

Definition at line 260 of file core.h.

#define WM831X_CLOCK_CONTROL_1   0x4090

Definition at line 160 of file core.h.

#define WM831X_CLOCK_CONTROL_2   0x4091

Definition at line 161 of file core.h.

#define WM831X_COMPARATOR_1   0x4031

Definition at line 73 of file core.h.

#define WM831X_COMPARATOR_2   0x4032

Definition at line 74 of file core.h.

#define WM831X_COMPARATOR_3   0x4033

Definition at line 75 of file core.h.

#define WM831X_COMPARATOR_4   0x4034

Definition at line 76 of file core.h.

#define WM831X_COMPARATOR_CONTROL   0x4030

Definition at line 72 of file core.h.

#define WM831X_CONTROL_INTERFACE   0x4007

Definition at line 36 of file core.h.

#define WM831X_CURRENT_SINK_1   0x404E

Definition at line 99 of file core.h.

#define WM831X_CURRENT_SINK_2   0x404F

Definition at line 100 of file core.h.

#define WM831X_CUSTOMER_OTP_ID   0x7810

Definition at line 181 of file core.h.

#define WM831X_DBE_CHECK_DATA   0x7827

Definition at line 197 of file core.h.

#define WM831X_DC1_CONTROL_1   0x4056

Definition at line 107 of file core.h.

#define WM831X_DC1_CONTROL_2   0x4057

Definition at line 108 of file core.h.

#define WM831X_DC1_DVS_CONTROL   0x405A

Definition at line 111 of file core.h.

#define WM831X_DC1_ON_CONFIG   0x4058

Definition at line 109 of file core.h.

#define WM831X_DC1_OTP_CONTROL   0x7811

Definition at line 182 of file core.h.

#define WM831X_DC1_SLEEP_CONTROL   0x4059

Definition at line 110 of file core.h.

#define WM831X_DC2_CONTROL_1   0x405B

Definition at line 112 of file core.h.

#define WM831X_DC2_CONTROL_2   0x405C

Definition at line 113 of file core.h.

#define WM831X_DC2_DVS_CONTROL   0x405F

Definition at line 116 of file core.h.

#define WM831X_DC2_ON_CONFIG   0x405D

Definition at line 114 of file core.h.

#define WM831X_DC2_OTP_CONTROL   0x7812

Definition at line 183 of file core.h.

#define WM831X_DC2_SLEEP_CONTROL   0x405E

Definition at line 115 of file core.h.

#define WM831X_DC3_CONTROL_1   0x4060

Definition at line 117 of file core.h.

#define WM831X_DC3_CONTROL_2   0x4061

Definition at line 118 of file core.h.

#define WM831X_DC3_ON_CONFIG   0x4062

Definition at line 119 of file core.h.

#define WM831X_DC3_OTP_CONTROL   0x7813

Definition at line 184 of file core.h.

#define WM831X_DC3_SLEEP_CONTROL   0x4063

Definition at line 120 of file core.h.

#define WM831X_DC4_CONTROL   0x4064

Definition at line 121 of file core.h.

#define WM831X_DC4_SLEEP_CONTROL   0x4065

Definition at line 122 of file core.h.

#define WM831X_DCDC_ENABLE   0x4050

Definition at line 101 of file core.h.

#define WM831X_DCDC_STATUS   0x4052

Definition at line 103 of file core.h.

#define WM831X_DCDC_UV_STATUS   0x4054

Definition at line 105 of file core.h.

#define WM831X_EPE1_CONTROL   0x4066

Definition at line 124 of file core.h.

#define WM831X_EPE2_CONTROL   0x4067

Definition at line 125 of file core.h.

#define WM831X_FACTORY_OTP_1   0x7809

Definition at line 176 of file core.h.

#define WM831X_FACTORY_OTP_2   0x780A

Definition at line 177 of file core.h.

#define WM831X_FACTORY_OTP_3   0x780B

Definition at line 178 of file core.h.

#define WM831X_FACTORY_OTP_4   0x780C

Definition at line 179 of file core.h.

#define WM831X_FACTORY_OTP_5   0x780D

Definition at line 180 of file core.h.

#define WM831X_FACTORY_OTP_ID   0x7808

Definition at line 175 of file core.h.

#define WM831X_FLL_AUTO   0x0080 /* FLL_AUTO */

Definition at line 277 of file core.h.

#define WM831X_FLL_AUTO_FREQ_MASK   0x0007 /* FLL_AUTO_FREQ - [2:0] */

Definition at line 281 of file core.h.

#define WM831X_FLL_AUTO_FREQ_SHIFT   0 /* FLL_AUTO_FREQ - [2:0] */

Definition at line 282 of file core.h.

#define WM831X_FLL_AUTO_FREQ_WIDTH   3 /* FLL_AUTO_FREQ - [2:0] */

Definition at line 283 of file core.h.

#define WM831X_FLL_AUTO_MASK   0x0080 /* FLL_AUTO */

Definition at line 278 of file core.h.

#define WM831X_FLL_AUTO_SHIFT   7 /* FLL_AUTO */

Definition at line 279 of file core.h.

#define WM831X_FLL_AUTO_WIDTH   1 /* FLL_AUTO */

Definition at line 280 of file core.h.

#define WM831X_FLL_CLK_REF_DIV_MASK   0x0018 /* FLL_CLK_REF_DIV - [4:3] */

Definition at line 334 of file core.h.

#define WM831X_FLL_CLK_REF_DIV_SHIFT   3 /* FLL_CLK_REF_DIV - [4:3] */

Definition at line 335 of file core.h.

#define WM831X_FLL_CLK_REF_DIV_WIDTH   2 /* FLL_CLK_REF_DIV - [4:3] */

Definition at line 336 of file core.h.

#define WM831X_FLL_CLK_SRC_MASK   0x0003 /* FLL_CLK_SRC - [1:0] */

Definition at line 337 of file core.h.

#define WM831X_FLL_CLK_SRC_SHIFT   0 /* FLL_CLK_SRC - [1:0] */

Definition at line 338 of file core.h.

#define WM831X_FLL_CLK_SRC_WIDTH   2 /* FLL_CLK_SRC - [1:0] */

Definition at line 339 of file core.h.

#define WM831X_FLL_CONTROL_1   0x4092

Definition at line 162 of file core.h.

#define WM831X_FLL_CONTROL_2   0x4093

Definition at line 163 of file core.h.

#define WM831X_FLL_CONTROL_3   0x4094

Definition at line 164 of file core.h.

#define WM831X_FLL_CONTROL_4   0x4095

Definition at line 165 of file core.h.

#define WM831X_FLL_CONTROL_5   0x4096

Definition at line 166 of file core.h.

#define WM831X_FLL_CTRL_RATE_MASK   0x0070 /* FLL_CTRL_RATE - [6:4] */

Definition at line 307 of file core.h.

#define WM831X_FLL_CTRL_RATE_SHIFT   4 /* FLL_CTRL_RATE - [6:4] */

Definition at line 308 of file core.h.

#define WM831X_FLL_CTRL_RATE_WIDTH   3 /* FLL_CTRL_RATE - [6:4] */

Definition at line 309 of file core.h.

#define WM831X_FLL_ENA   0x0001 /* FLL_ENA */

Definition at line 296 of file core.h.

#define WM831X_FLL_ENA_MASK   0x0001 /* FLL_ENA */

Definition at line 297 of file core.h.

#define WM831X_FLL_ENA_SHIFT   0 /* FLL_ENA */

Definition at line 298 of file core.h.

#define WM831X_FLL_ENA_WIDTH   1 /* FLL_ENA */

Definition at line 299 of file core.h.

#define WM831X_FLL_FRAC   0x0004 /* FLL_FRAC */

Definition at line 288 of file core.h.

#define WM831X_FLL_FRAC_MASK   0x0004 /* FLL_FRAC */

Definition at line 289 of file core.h.

#define WM831X_FLL_FRAC_SHIFT   2 /* FLL_FRAC */

Definition at line 290 of file core.h.

#define WM831X_FLL_FRAC_WIDTH   1 /* FLL_FRAC */

Definition at line 291 of file core.h.

#define WM831X_FLL_FRATIO_MASK   0x0007 /* FLL_FRATIO - [2:0] */

Definition at line 310 of file core.h.

#define WM831X_FLL_FRATIO_SHIFT   0 /* FLL_FRATIO - [2:0] */

Definition at line 311 of file core.h.

#define WM831X_FLL_FRATIO_WIDTH   3 /* FLL_FRATIO - [2:0] */

Definition at line 312 of file core.h.

#define WM831X_FLL_GAIN_MASK   0x000F /* FLL_GAIN - [3:0] */

Definition at line 327 of file core.h.

#define WM831X_FLL_GAIN_SHIFT   0 /* FLL_GAIN - [3:0] */

Definition at line 328 of file core.h.

#define WM831X_FLL_GAIN_WIDTH   4 /* FLL_GAIN - [3:0] */

Definition at line 329 of file core.h.

#define WM831X_FLL_K_MASK   0xFFFF /* FLL_K - [15:0] */

Definition at line 317 of file core.h.

#define WM831X_FLL_K_SHIFT   0 /* FLL_K - [15:0] */

Definition at line 318 of file core.h.

#define WM831X_FLL_K_WIDTH   16 /* FLL_K - [15:0] */

Definition at line 319 of file core.h.

#define WM831X_FLL_N_MASK   0x7FE0 /* FLL_N - [14:5] */

Definition at line 324 of file core.h.

#define WM831X_FLL_N_SHIFT   5 /* FLL_N - [14:5] */

Definition at line 325 of file core.h.

#define WM831X_FLL_N_WIDTH   10 /* FLL_N - [14:5] */

Definition at line 326 of file core.h.

#define WM831X_FLL_OSC_ENA   0x0002 /* FLL_OSC_ENA */

Definition at line 292 of file core.h.

#define WM831X_FLL_OSC_ENA_MASK   0x0002 /* FLL_OSC_ENA */

Definition at line 293 of file core.h.

#define WM831X_FLL_OSC_ENA_SHIFT   1 /* FLL_OSC_ENA */

Definition at line 294 of file core.h.

#define WM831X_FLL_OSC_ENA_WIDTH   1 /* FLL_OSC_ENA */

Definition at line 295 of file core.h.

#define WM831X_FLL_OUTDIV_MASK   0x3F00 /* FLL_OUTDIV - [13:8] */

Definition at line 304 of file core.h.

#define WM831X_FLL_OUTDIV_SHIFT   8 /* FLL_OUTDIV - [13:8] */

Definition at line 305 of file core.h.

#define WM831X_FLL_OUTDIV_WIDTH   6 /* FLL_OUTDIV - [13:8] */

Definition at line 306 of file core.h.

#define WM831X_GPIO10_CONTROL   0x4041

Definition at line 86 of file core.h.

#define WM831X_GPIO11_CONTROL   0x4042

Definition at line 87 of file core.h.

#define WM831X_GPIO12_CONTROL   0x4043

Definition at line 88 of file core.h.

#define WM831X_GPIO13_CONTROL   0x4044

Definition at line 89 of file core.h.

#define WM831X_GPIO14_CONTROL   0x4045

Definition at line 90 of file core.h.

#define WM831X_GPIO15_CONTROL   0x4046

Definition at line 91 of file core.h.

#define WM831X_GPIO16_CONTROL   0x4047

Definition at line 92 of file core.h.

#define WM831X_GPIO1_CONTROL   0x4038

Definition at line 77 of file core.h.

#define WM831X_GPIO1_OTP_CONTROL   0x781A

Definition at line 191 of file core.h.

#define WM831X_GPIO2_CONTROL   0x4039

Definition at line 78 of file core.h.

#define WM831X_GPIO2_OTP_CONTROL   0x781B

Definition at line 192 of file core.h.

#define WM831X_GPIO3_CONTROL   0x403A

Definition at line 79 of file core.h.

#define WM831X_GPIO3_OTP_CONTROL   0x781C

Definition at line 193 of file core.h.

#define WM831X_GPIO4_CONTROL   0x403B

Definition at line 80 of file core.h.

#define WM831X_GPIO4_OTP_CONTROL   0x781D

Definition at line 194 of file core.h.

#define WM831X_GPIO5_CONTROL   0x403C

Definition at line 81 of file core.h.

#define WM831X_GPIO5_OTP_CONTROL   0x781E

Definition at line 195 of file core.h.

#define WM831X_GPIO6_CONTROL   0x403D

Definition at line 82 of file core.h.

#define WM831X_GPIO6_OTP_CONTROL   0x781F

Definition at line 196 of file core.h.

#define WM831X_GPIO7_CONTROL   0x403E

Definition at line 83 of file core.h.

#define WM831X_GPIO8_CONTROL   0x403F

Definition at line 84 of file core.h.

#define WM831X_GPIO9_CONTROL   0x4040

Definition at line 85 of file core.h.

#define WM831X_GPIO_LEVEL   0x400C

Definition at line 40 of file core.h.

#define WM831X_INTERRUPT_STATUS_1   0x4011

Definition at line 45 of file core.h.

#define WM831X_INTERRUPT_STATUS_1_MASK   0x4019

Definition at line 52 of file core.h.

#define WM831X_INTERRUPT_STATUS_2   0x4012

Definition at line 46 of file core.h.

#define WM831X_INTERRUPT_STATUS_2_MASK   0x401A

Definition at line 53 of file core.h.

#define WM831X_INTERRUPT_STATUS_3   0x4013

Definition at line 47 of file core.h.

#define WM831X_INTERRUPT_STATUS_3_MASK   0x401B

Definition at line 54 of file core.h.

#define WM831X_INTERRUPT_STATUS_4   0x4014

Definition at line 48 of file core.h.

#define WM831X_INTERRUPT_STATUS_4_MASK   0x401C

Definition at line 55 of file core.h.

#define WM831X_INTERRUPT_STATUS_5   0x4015

Definition at line 49 of file core.h.

#define WM831X_INTERRUPT_STATUS_5_MASK   0x401D

Definition at line 56 of file core.h.

#define WM831X_IRQ_CONFIG   0x4017

Definition at line 50 of file core.h.

#define WM831X_LDO10_CONTROL   0x4083

Definition at line 153 of file core.h.

#define WM831X_LDO10_ON_CONTROL   0x4084

Definition at line 154 of file core.h.

#define WM831X_LDO10_SLEEP_CONTROL   0x4085

Definition at line 155 of file core.h.

#define WM831X_LDO11_EPE_CONTROL   0x7819

Definition at line 190 of file core.h.

#define WM831X_LDO11_ON_CONTROL   0x4087

Definition at line 156 of file core.h.

#define WM831X_LDO11_SLEEP_CONTROL   0x4088

Definition at line 157 of file core.h.

#define WM831X_LDO1_2_OTP_CONTROL   0x7814

Definition at line 185 of file core.h.

#define WM831X_LDO1_CONTROL   0x4068

Definition at line 126 of file core.h.

#define WM831X_LDO1_ON_CONTROL   0x4069

Definition at line 127 of file core.h.

#define WM831X_LDO1_SLEEP_CONTROL   0x406A

Definition at line 128 of file core.h.

#define WM831X_LDO2_CONTROL   0x406B

Definition at line 129 of file core.h.

#define WM831X_LDO2_ON_CONTROL   0x406C

Definition at line 130 of file core.h.

#define WM831X_LDO2_SLEEP_CONTROL   0x406D

Definition at line 131 of file core.h.

#define WM831X_LDO3_4_OTP_CONTROL   0x7815

Definition at line 186 of file core.h.

#define WM831X_LDO3_CONTROL   0x406E

Definition at line 132 of file core.h.

#define WM831X_LDO3_ON_CONTROL   0x406F

Definition at line 133 of file core.h.

#define WM831X_LDO3_SLEEP_CONTROL   0x4070

Definition at line 134 of file core.h.

#define WM831X_LDO4_CONTROL   0x4071

Definition at line 135 of file core.h.

#define WM831X_LDO4_ON_CONTROL   0x4072

Definition at line 136 of file core.h.

#define WM831X_LDO4_SLEEP_CONTROL   0x4073

Definition at line 137 of file core.h.

#define WM831X_LDO5_6_OTP_CONTROL   0x7816

Definition at line 187 of file core.h.

#define WM831X_LDO5_CONTROL   0x4074

Definition at line 138 of file core.h.

#define WM831X_LDO5_ON_CONTROL   0x4075

Definition at line 139 of file core.h.

#define WM831X_LDO5_SLEEP_CONTROL   0x4076

Definition at line 140 of file core.h.

#define WM831X_LDO6_CONTROL   0x4077

Definition at line 141 of file core.h.

#define WM831X_LDO6_ON_CONTROL   0x4078

Definition at line 142 of file core.h.

#define WM831X_LDO6_SLEEP_CONTROL   0x4079

Definition at line 143 of file core.h.

#define WM831X_LDO7_8_OTP_CONTROL   0x7817

Definition at line 188 of file core.h.

#define WM831X_LDO7_CONTROL   0x407A

Definition at line 144 of file core.h.

#define WM831X_LDO7_ON_CONTROL   0x407B

Definition at line 145 of file core.h.

#define WM831X_LDO7_SLEEP_CONTROL   0x407C

Definition at line 146 of file core.h.

#define WM831X_LDO8_CONTROL   0x407D

Definition at line 147 of file core.h.

#define WM831X_LDO8_ON_CONTROL   0x407E

Definition at line 148 of file core.h.

#define WM831X_LDO8_SLEEP_CONTROL   0x407F

Definition at line 149 of file core.h.

#define WM831X_LDO9_10_OTP_CONTROL   0x7818

Definition at line 189 of file core.h.

#define WM831X_LDO9_CONTROL   0x4080

Definition at line 150 of file core.h.

#define WM831X_LDO9_ON_CONTROL   0x4081

Definition at line 151 of file core.h.

#define WM831X_LDO9_SLEEP_CONTROL   0x4082

Definition at line 152 of file core.h.

#define WM831X_LDO_ENABLE   0x4051

Definition at line 102 of file core.h.

#define WM831X_LDO_STATUS   0x4053

Definition at line 104 of file core.h.

#define WM831X_LDO_UV_STATUS   0x4055

Definition at line 106 of file core.h.

#define WM831X_NUM_GPIO_REGS   16

Definition at line 345 of file core.h.

#define WM831X_NUM_IRQ_REGS   5

Definition at line 344 of file core.h.

#define WM831X_OFF_SOURCE   0x400F

Definition at line 43 of file core.h.

#define WM831X_ON_PIN_CONTROL   0x4005

Definition at line 34 of file core.h.

#define WM831X_ON_PIN_PRIMACT_MASK   0x0030 /* ON_PIN_PRIMACT - [5:4] */

Definition at line 229 of file core.h.

#define WM831X_ON_PIN_PRIMACT_SHIFT   4 /* ON_PIN_PRIMACT - [5:4] */

Definition at line 230 of file core.h.

#define WM831X_ON_PIN_PRIMACT_WIDTH   2 /* ON_PIN_PRIMACT - [5:4] */

Definition at line 231 of file core.h.

#define WM831X_ON_PIN_SECACT_MASK   0x0300 /* ON_PIN_SECACT - [9:8] */

Definition at line 226 of file core.h.

#define WM831X_ON_PIN_SECACT_SHIFT   8 /* ON_PIN_SECACT - [9:8] */

Definition at line 227 of file core.h.

#define WM831X_ON_PIN_SECACT_WIDTH   2 /* ON_PIN_SECACT - [9:8] */

Definition at line 228 of file core.h.

#define WM831X_ON_PIN_STS   0x0008 /* ON_PIN_STS */

Definition at line 232 of file core.h.

#define WM831X_ON_PIN_STS_MASK   0x0008 /* ON_PIN_STS */

Definition at line 233 of file core.h.

#define WM831X_ON_PIN_STS_SHIFT   3 /* ON_PIN_STS */

Definition at line 234 of file core.h.

#define WM831X_ON_PIN_STS_WIDTH   1 /* ON_PIN_STS */

Definition at line 235 of file core.h.

#define WM831X_ON_PIN_TO_MASK   0x0003 /* ON_PIN_TO - [1:0] */

Definition at line 236 of file core.h.

#define WM831X_ON_PIN_TO_SHIFT   0 /* ON_PIN_TO - [1:0] */

Definition at line 237 of file core.h.

#define WM831X_ON_PIN_TO_WIDTH   2 /* ON_PIN_TO - [1:0] */

Definition at line 238 of file core.h.

#define WM831X_ON_SOURCE   0x400E

Definition at line 42 of file core.h.

#define WM831X_OTP_CONTROL   0x400A

Definition at line 39 of file core.h.

#define WM831X_PARENT_ID   0x4000

Definition at line 29 of file core.h.

#define WM831X_PARENT_ID_MASK   0xFFFF /* PARENT_ID - [15:0] */

Definition at line 219 of file core.h.

#define WM831X_PARENT_ID_SHIFT   0 /* PARENT_ID - [15:0] */

Definition at line 220 of file core.h.

#define WM831X_PARENT_ID_WIDTH   16 /* PARENT_ID - [15:0] */

Definition at line 221 of file core.h.

#define WM831X_PARENT_REV_MASK   0xFF00 /* PARENT_REV - [15:8] */

Definition at line 209 of file core.h.

#define WM831X_PARENT_REV_SHIFT   8 /* PARENT_REV - [15:8] */

Definition at line 210 of file core.h.

#define WM831X_PARENT_REV_WIDTH   8 /* PARENT_REV - [15:8] */

Definition at line 211 of file core.h.

#define WM831X_POWER_GOOD_SOURCE_1   0x408E

Definition at line 158 of file core.h.

#define WM831X_POWER_GOOD_SOURCE_2   0x408F

Definition at line 159 of file core.h.

#define WM831X_POWER_STATE   0x4003

Definition at line 32 of file core.h.

#define WM831X_RESET_CONTROL   0x4006

Definition at line 35 of file core.h.

#define WM831X_RESET_ID   0x00

Definition at line 27 of file core.h.

#define WM831X_REVISION   0x01

Definition at line 28 of file core.h.

#define WM831X_RTC_ALARM_1   0x4023

Definition at line 60 of file core.h.

#define WM831X_RTC_ALARM_2   0x4024

Definition at line 61 of file core.h.

#define WM831X_RTC_CONTROL   0x4025

Definition at line 62 of file core.h.

#define WM831X_RTC_TIME_1   0x4021

Definition at line 58 of file core.h.

#define WM831X_RTC_TIME_2   0x4022

Definition at line 59 of file core.h.

#define WM831X_RTC_TRIM   0x4026

Definition at line 63 of file core.h.

#define WM831X_RTC_WRITE_COUNTER   0x4020

Definition at line 57 of file core.h.

#define WM831X_SECURITY_KEY   0x4008

Definition at line 37 of file core.h.

#define WM831X_SOFTWARE_SCRATCH   0x4009

Definition at line 38 of file core.h.

#define WM831X_STATUS_LED_1   0x404C

Definition at line 97 of file core.h.

#define WM831X_STATUS_LED_2   0x404D

Definition at line 98 of file core.h.

#define WM831X_SYSTEM_INTERRUPTS   0x4010

Definition at line 44 of file core.h.

#define WM831X_SYSTEM_INTERRUPTS_MASK   0x4018

Definition at line 51 of file core.h.

#define WM831X_SYSTEM_STATUS   0x400D

Definition at line 41 of file core.h.

#define WM831X_SYSVDD_CONTROL   0x4001

Definition at line 30 of file core.h.

#define WM831X_THERMAL_MONITORING   0x4002

Definition at line 31 of file core.h.

#define WM831X_TOUCH_CONTROL_1   0x4028

Definition at line 64 of file core.h.

#define WM831X_TOUCH_CONTROL_2   0x4029

Definition at line 65 of file core.h.

#define WM831X_TOUCH_DATA_X   0x402A

Definition at line 66 of file core.h.

#define WM831X_TOUCH_DATA_Y   0x402B

Definition at line 67 of file core.h.

#define WM831X_TOUCH_DATA_Z   0x402C

Definition at line 68 of file core.h.

#define WM831X_UNIQUE_ID_1   0x7800

Definition at line 167 of file core.h.

#define WM831X_UNIQUE_ID_2   0x7801

Definition at line 168 of file core.h.

#define WM831X_UNIQUE_ID_3   0x7802

Definition at line 169 of file core.h.

#define WM831X_UNIQUE_ID_4   0x7803

Definition at line 170 of file core.h.

#define WM831X_UNIQUE_ID_5   0x7804

Definition at line 171 of file core.h.

#define WM831X_UNIQUE_ID_6   0x7805

Definition at line 172 of file core.h.

#define WM831X_UNIQUE_ID_7   0x7806

Definition at line 173 of file core.h.

#define WM831X_UNIQUE_ID_8   0x7807

Definition at line 174 of file core.h.

#define WM831X_WATCHDOG   0x4004

Definition at line 33 of file core.h.

#define WM831X_XTAL_BKUPENA   0x1000 /* XTAL_BKUPENA */

Definition at line 273 of file core.h.

#define WM831X_XTAL_BKUPENA_MASK   0x1000 /* XTAL_BKUPENA */

Definition at line 274 of file core.h.

#define WM831X_XTAL_BKUPENA_SHIFT   12 /* XTAL_BKUPENA */

Definition at line 275 of file core.h.

#define WM831X_XTAL_BKUPENA_WIDTH   1 /* XTAL_BKUPENA */

Definition at line 276 of file core.h.

#define WM831X_XTAL_ENA   0x2000 /* XTAL_ENA */

Definition at line 269 of file core.h.

#define WM831X_XTAL_ENA_MASK   0x2000 /* XTAL_ENA */

Definition at line 270 of file core.h.

#define WM831X_XTAL_ENA_SHIFT   13 /* XTAL_ENA */

Definition at line 271 of file core.h.

#define WM831X_XTAL_ENA_WIDTH   1 /* XTAL_ENA */

Definition at line 272 of file core.h.

#define WM831X_XTAL_INH   0x8000 /* XTAL_INH */

Definition at line 265 of file core.h.

#define WM831X_XTAL_INH_MASK   0x8000 /* XTAL_INH */

Definition at line 266 of file core.h.

#define WM831X_XTAL_INH_SHIFT   15 /* XTAL_INH */

Definition at line 267 of file core.h.

#define WM831X_XTAL_INH_WIDTH   1 /* XTAL_INH */

Definition at line 268 of file core.h.

#define WM832X_DC4_SLEEP_CONTROL   0x4067

Definition at line 123 of file core.h.

Typedef Documentation

typedef int(* wm831x_auxadc_read_fn)(struct wm831x *wm831x, enum wm831x_auxadc input)

Definition at line 360 of file core.h.

Enumeration Type Documentation

Enumerator:
WM8310 
WM8311 
WM8312 
WM8320 
WM8321 
WM8325 
WM8326 

Definition at line 347 of file core.h.

Function Documentation

void wm831x_auxadc_init ( struct wm831x wm831x)

Definition at line 276 of file wm831x-auxadc.c.

int wm831x_bulk_read ( struct wm831x wm831x,
unsigned short  reg,
int  count,
u16 buf 
)

wm831x_bulk_read: Read multiple WM831x registers

: Device to read from : First register : Number of registers : Buffer to fill.

Definition at line 539 of file wm831x-core.c.

void wm831x_device_exit ( struct wm831x wm831x)

Definition at line 1882 of file wm831x-core.c.

int wm831x_device_init ( struct wm831x wm831x,
unsigned long  id,
int  irq 
)

Definition at line 1619 of file wm831x-core.c.

void wm831x_device_shutdown ( struct wm831x wm831x)

Definition at line 1926 of file wm831x-core.c.

int wm831x_device_suspend ( struct wm831x wm831x)

Definition at line 1890 of file wm831x-core.c.

void wm831x_irq_exit ( struct wm831x wm831x)

Definition at line 661 of file wm831x-irq.c.

int wm831x_irq_init ( struct wm831x wm831x,
int  irq 
)

Definition at line 572 of file wm831x-irq.c.

void wm831x_reg_lock ( struct wm831x wm831x)

wm831x_reg_unlock: Unlock user keyed registers

The WM831x has a user key preventing writes to particularly critical registers. This function locks those registers, allowing writes to them.

Definition at line 120 of file wm831x-core.c.

int wm831x_reg_read ( struct wm831x wm831x,
unsigned short  reg 
)

wm831x_reg_read: Read a single WM831x register.

: Device to read from. : Register to read.

Definition at line 517 of file wm831x-core.c.

int wm831x_reg_unlock ( struct wm831x wm831x)

wm831x_reg_unlock: Unlock user keyed registers

The WM831x has a user key preventing writes to particularly critical registers. This function locks those registers, preventing spurious writes.

Definition at line 146 of file wm831x-core.c.

int wm831x_reg_write ( struct wm831x wm831x,
unsigned short  reg,
unsigned short  val 
)

wm831x_reg_write: Write a single WM831x register.

: Device to write to. : Register to write to. : Value to write.

Definition at line 576 of file wm831x-core.c.

int wm831x_set_bits ( struct wm831x wm831x,
unsigned short  reg,
unsigned short  mask,
unsigned short  val 
)

wm831x_set_bits: Set the value of a bitfield in a WM831x register

: Device to write to. : Register to write to. : Mask of bits to set. : Value to set (unshifted)

Definition at line 599 of file wm831x-core.c.

Variable Documentation

struct regmap_config wm831x_regmap_config

Definition at line 1603 of file wm831x-core.c.