Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
core.h File Reference
#include <linux/interrupt.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/mfd/arizona/pdata.h>

Go to the source code of this file.

Data Structures

struct  arizona
 

Macros

#define ARIZONA_MAX_CORE_SUPPLIES   3
 
#define ARIZONA_IRQ_GP1   0
 
#define ARIZONA_IRQ_GP2   1
 
#define ARIZONA_IRQ_GP3   2
 
#define ARIZONA_IRQ_GP4   3
 
#define ARIZONA_IRQ_GP5_FALL   4
 
#define ARIZONA_IRQ_GP5_RISE   5
 
#define ARIZONA_IRQ_JD_FALL   6
 
#define ARIZONA_IRQ_JD_RISE   7
 
#define ARIZONA_IRQ_DSP1_RAM_RDY   8
 
#define ARIZONA_IRQ_DSP2_RAM_RDY   9
 
#define ARIZONA_IRQ_DSP3_RAM_RDY   10
 
#define ARIZONA_IRQ_DSP4_RAM_RDY   11
 
#define ARIZONA_IRQ_DSP_IRQ1   12
 
#define ARIZONA_IRQ_DSP_IRQ2   13
 
#define ARIZONA_IRQ_DSP_IRQ3   14
 
#define ARIZONA_IRQ_DSP_IRQ4   15
 
#define ARIZONA_IRQ_DSP_IRQ5   16
 
#define ARIZONA_IRQ_DSP_IRQ6   17
 
#define ARIZONA_IRQ_DSP_IRQ7   18
 
#define ARIZONA_IRQ_DSP_IRQ8   19
 
#define ARIZONA_IRQ_SPK_SHUTDOWN_WARN   20
 
#define ARIZONA_IRQ_SPK_SHUTDOWN   21
 
#define ARIZONA_IRQ_MICDET   22
 
#define ARIZONA_IRQ_HPDET   23
 
#define ARIZONA_IRQ_WSEQ_DONE   24
 
#define ARIZONA_IRQ_DRC2_SIG_DET   25
 
#define ARIZONA_IRQ_DRC1_SIG_DET   26
 
#define ARIZONA_IRQ_ASRC2_LOCK   27
 
#define ARIZONA_IRQ_ASRC1_LOCK   28
 
#define ARIZONA_IRQ_UNDERCLOCKED   29
 
#define ARIZONA_IRQ_OVERCLOCKED   30
 
#define ARIZONA_IRQ_FLL2_LOCK   31
 
#define ARIZONA_IRQ_FLL1_LOCK   32
 
#define ARIZONA_IRQ_CLKGEN_ERR   33
 
#define ARIZONA_IRQ_CLKGEN_ERR_ASYNC   34
 
#define ARIZONA_IRQ_ASRC_CFG_ERR   35
 
#define ARIZONA_IRQ_AIF3_ERR   36
 
#define ARIZONA_IRQ_AIF2_ERR   37
 
#define ARIZONA_IRQ_AIF1_ERR   38
 
#define ARIZONA_IRQ_CTRLIF_ERR   39
 
#define ARIZONA_IRQ_MIXER_DROPPED_SAMPLES   40
 
#define ARIZONA_IRQ_ASYNC_CLK_ENA_LOW   41
 
#define ARIZONA_IRQ_SYSCLK_ENA_LOW   42
 
#define ARIZONA_IRQ_ISRC1_CFG_ERR   43
 
#define ARIZONA_IRQ_ISRC2_CFG_ERR   44
 
#define ARIZONA_IRQ_BOOT_DONE   45
 
#define ARIZONA_IRQ_DCS_DAC_DONE   46
 
#define ARIZONA_IRQ_DCS_HP_DONE   47
 
#define ARIZONA_IRQ_FLL2_CLOCK_OK   48
 
#define ARIZONA_IRQ_FLL1_CLOCK_OK   49
 
#define ARIZONA_NUM_IRQ   50
 

Enumerations

enum  arizona_type { WM5102 = 1, WM5110 = 2 }
 

Functions

int arizona_clk32k_enable (struct arizona *arizona)
 
int arizona_clk32k_disable (struct arizona *arizona)
 
int arizona_request_irq (struct arizona *arizona, int irq, char *name, irq_handler_t handler, void *data)
 
void arizona_free_irq (struct arizona *arizona, int irq, void *data)
 
int arizona_set_irq_wake (struct arizona *arizona, int irq, int on)
 
int wm5102_patch (struct arizona *arizona)
 
int wm5110_patch (struct arizona *arizona)
 

Macro Definition Documentation

#define ARIZONA_IRQ_AIF1_ERR   38

Definition at line 66 of file core.h.

#define ARIZONA_IRQ_AIF2_ERR   37

Definition at line 65 of file core.h.

#define ARIZONA_IRQ_AIF3_ERR   36

Definition at line 64 of file core.h.

#define ARIZONA_IRQ_ASRC1_LOCK   28

Definition at line 56 of file core.h.

#define ARIZONA_IRQ_ASRC2_LOCK   27

Definition at line 55 of file core.h.

#define ARIZONA_IRQ_ASRC_CFG_ERR   35

Definition at line 63 of file core.h.

#define ARIZONA_IRQ_ASYNC_CLK_ENA_LOW   41

Definition at line 69 of file core.h.

#define ARIZONA_IRQ_BOOT_DONE   45

Definition at line 73 of file core.h.

#define ARIZONA_IRQ_CLKGEN_ERR   33

Definition at line 61 of file core.h.

#define ARIZONA_IRQ_CLKGEN_ERR_ASYNC   34

Definition at line 62 of file core.h.

#define ARIZONA_IRQ_CTRLIF_ERR   39

Definition at line 67 of file core.h.

#define ARIZONA_IRQ_DCS_DAC_DONE   46

Definition at line 74 of file core.h.

#define ARIZONA_IRQ_DCS_HP_DONE   47

Definition at line 75 of file core.h.

#define ARIZONA_IRQ_DRC1_SIG_DET   26

Definition at line 54 of file core.h.

#define ARIZONA_IRQ_DRC2_SIG_DET   25

Definition at line 53 of file core.h.

#define ARIZONA_IRQ_DSP1_RAM_RDY   8

Definition at line 36 of file core.h.

#define ARIZONA_IRQ_DSP2_RAM_RDY   9

Definition at line 37 of file core.h.

#define ARIZONA_IRQ_DSP3_RAM_RDY   10

Definition at line 38 of file core.h.

#define ARIZONA_IRQ_DSP4_RAM_RDY   11

Definition at line 39 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ1   12

Definition at line 40 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ2   13

Definition at line 41 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ3   14

Definition at line 42 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ4   15

Definition at line 43 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ5   16

Definition at line 44 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ6   17

Definition at line 45 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ7   18

Definition at line 46 of file core.h.

#define ARIZONA_IRQ_DSP_IRQ8   19

Definition at line 47 of file core.h.

#define ARIZONA_IRQ_FLL1_CLOCK_OK   49

Definition at line 77 of file core.h.

#define ARIZONA_IRQ_FLL1_LOCK   32

Definition at line 60 of file core.h.

#define ARIZONA_IRQ_FLL2_CLOCK_OK   48

Definition at line 76 of file core.h.

#define ARIZONA_IRQ_FLL2_LOCK   31

Definition at line 59 of file core.h.

#define ARIZONA_IRQ_GP1   0

Definition at line 28 of file core.h.

#define ARIZONA_IRQ_GP2   1

Definition at line 29 of file core.h.

#define ARIZONA_IRQ_GP3   2

Definition at line 30 of file core.h.

#define ARIZONA_IRQ_GP4   3

Definition at line 31 of file core.h.

#define ARIZONA_IRQ_GP5_FALL   4

Definition at line 32 of file core.h.

#define ARIZONA_IRQ_GP5_RISE   5

Definition at line 33 of file core.h.

#define ARIZONA_IRQ_HPDET   23

Definition at line 51 of file core.h.

#define ARIZONA_IRQ_ISRC1_CFG_ERR   43

Definition at line 71 of file core.h.

#define ARIZONA_IRQ_ISRC2_CFG_ERR   44

Definition at line 72 of file core.h.

#define ARIZONA_IRQ_JD_FALL   6

Definition at line 34 of file core.h.

#define ARIZONA_IRQ_JD_RISE   7

Definition at line 35 of file core.h.

#define ARIZONA_IRQ_MICDET   22

Definition at line 50 of file core.h.

#define ARIZONA_IRQ_MIXER_DROPPED_SAMPLES   40

Definition at line 68 of file core.h.

#define ARIZONA_IRQ_OVERCLOCKED   30

Definition at line 58 of file core.h.

#define ARIZONA_IRQ_SPK_SHUTDOWN   21

Definition at line 49 of file core.h.

#define ARIZONA_IRQ_SPK_SHUTDOWN_WARN   20

Definition at line 48 of file core.h.

#define ARIZONA_IRQ_SYSCLK_ENA_LOW   42

Definition at line 70 of file core.h.

#define ARIZONA_IRQ_UNDERCLOCKED   29

Definition at line 57 of file core.h.

#define ARIZONA_IRQ_WSEQ_DONE   24

Definition at line 52 of file core.h.

#define ARIZONA_MAX_CORE_SUPPLIES   3

Definition at line 21 of file core.h.

#define ARIZONA_NUM_IRQ   50

Definition at line 79 of file core.h.

Enumeration Type Documentation

Enumerator:
WM5102 
WM5110 

Definition at line 23 of file core.h.

Function Documentation

int arizona_clk32k_disable ( struct arizona arizona)

Definition at line 56 of file arizona-core.c.

int arizona_clk32k_enable ( struct arizona arizona)

Definition at line 34 of file arizona-core.c.

void arizona_free_irq ( struct arizona arizona,
int  irq,
void data 
)

Definition at line 52 of file arizona-irq.c.

int arizona_request_irq ( struct arizona arizona,
int  irq,
char name,
irq_handler_t  handler,
void data 
)

Definition at line 40 of file arizona-irq.c.

int arizona_set_irq_wake ( struct arizona arizona,
int  irq,
int  on 
)

Definition at line 62 of file arizona-irq.c.

int wm5102_patch ( struct arizona arizona)

Definition at line 60 of file wm5102-tables.c.

int wm5110_patch ( struct arizona arizona)

Definition at line 227 of file wm5110-tables.c.