Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ab8500-core.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/mfd/core.h>
#include <linux/mfd/abx500.h>
#include <linux/mfd/abx500/ab8500.h>
#include <linux/mfd/dbx500-prcmu.h>
#include <linux/regulator/ab8500.h>
#include <linux/of.h>
#include <linux/of_device.h>

Go to the source code of this file.

Macros

#define AB8500_IT_SOURCE1_REG   0x00
 
#define AB8500_IT_SOURCE2_REG   0x01
 
#define AB8500_IT_SOURCE3_REG   0x02
 
#define AB8500_IT_SOURCE4_REG   0x03
 
#define AB8500_IT_SOURCE5_REG   0x04
 
#define AB8500_IT_SOURCE6_REG   0x05
 
#define AB8500_IT_SOURCE7_REG   0x06
 
#define AB8500_IT_SOURCE8_REG   0x07
 
#define AB9540_IT_SOURCE13_REG   0x0C
 
#define AB8500_IT_SOURCE19_REG   0x12
 
#define AB8500_IT_SOURCE20_REG   0x13
 
#define AB8500_IT_SOURCE21_REG   0x14
 
#define AB8500_IT_SOURCE22_REG   0x15
 
#define AB8500_IT_SOURCE23_REG   0x16
 
#define AB8500_IT_SOURCE24_REG   0x17
 
#define AB8500_IT_LATCH1_REG   0x20
 
#define AB8500_IT_LATCH2_REG   0x21
 
#define AB8500_IT_LATCH3_REG   0x22
 
#define AB8500_IT_LATCH4_REG   0x23
 
#define AB8500_IT_LATCH5_REG   0x24
 
#define AB8500_IT_LATCH6_REG   0x25
 
#define AB8500_IT_LATCH7_REG   0x26
 
#define AB8500_IT_LATCH8_REG   0x27
 
#define AB8500_IT_LATCH9_REG   0x28
 
#define AB8500_IT_LATCH10_REG   0x29
 
#define AB8500_IT_LATCH12_REG   0x2B
 
#define AB9540_IT_LATCH13_REG   0x2C
 
#define AB8500_IT_LATCH19_REG   0x32
 
#define AB8500_IT_LATCH20_REG   0x33
 
#define AB8500_IT_LATCH21_REG   0x34
 
#define AB8500_IT_LATCH22_REG   0x35
 
#define AB8500_IT_LATCH23_REG   0x36
 
#define AB8500_IT_LATCH24_REG   0x37
 
#define AB8500_IT_MASK1_REG   0x40
 
#define AB8500_IT_MASK2_REG   0x41
 
#define AB8500_IT_MASK3_REG   0x42
 
#define AB8500_IT_MASK4_REG   0x43
 
#define AB8500_IT_MASK5_REG   0x44
 
#define AB8500_IT_MASK6_REG   0x45
 
#define AB8500_IT_MASK7_REG   0x46
 
#define AB8500_IT_MASK8_REG   0x47
 
#define AB8500_IT_MASK9_REG   0x48
 
#define AB8500_IT_MASK10_REG   0x49
 
#define AB8500_IT_MASK11_REG   0x4A
 
#define AB8500_IT_MASK12_REG   0x4B
 
#define AB8500_IT_MASK13_REG   0x4C
 
#define AB8500_IT_MASK14_REG   0x4D
 
#define AB8500_IT_MASK15_REG   0x4E
 
#define AB8500_IT_MASK16_REG   0x4F
 
#define AB8500_IT_MASK17_REG   0x50
 
#define AB8500_IT_MASK18_REG   0x51
 
#define AB8500_IT_MASK19_REG   0x52
 
#define AB8500_IT_MASK20_REG   0x53
 
#define AB8500_IT_MASK21_REG   0x54
 
#define AB8500_IT_MASK22_REG   0x55
 
#define AB8500_IT_MASK23_REG   0x56
 
#define AB8500_IT_MASK24_REG   0x57
 
#define AB8500_IT_LATCHHIER1_REG   0x60
 
#define AB8500_IT_LATCHHIER2_REG   0x61
 
#define AB8500_IT_LATCHHIER3_REG   0x62
 
#define AB8500_IT_LATCHHIER_NUM   3
 
#define AB8500_REV_REG   0x80
 
#define AB8500_IC_NAME_REG   0x82
 
#define AB8500_SWITCH_OFF_STATUS   0x00
 
#define AB8500_TURN_ON_STATUS   0x00
 
#define AB9540_MODEM_CTRL2_REG   0x23
 
#define AB9540_MODEM_CTRL2_SWDBBRSTN_BIT   BIT(2)
 

Functions

 module_param (no_bm, bool, S_IRUGO)
 
int ab8500_suspend (struct ab8500 *ab8500)
 
 core_initcall (ab8500_core_init)
 
 module_exit (ab8500_core_exit)
 
 MODULE_AUTHOR ("Mattias Wallin, Srinidhi Kasagar, Rabin Vincent")
 
 MODULE_DESCRIPTION ("AB8500 MFD core")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define AB8500_IC_NAME_REG   0x82

Definition at line 108 of file ab8500-core.c.

#define AB8500_IT_LATCH10_REG   0x29

Definition at line 59 of file ab8500-core.c.

#define AB8500_IT_LATCH12_REG   0x2B

Definition at line 60 of file ab8500-core.c.

#define AB8500_IT_LATCH19_REG   0x32

Definition at line 62 of file ab8500-core.c.

#define AB8500_IT_LATCH1_REG   0x20

Definition at line 50 of file ab8500-core.c.

#define AB8500_IT_LATCH20_REG   0x33

Definition at line 63 of file ab8500-core.c.

#define AB8500_IT_LATCH21_REG   0x34

Definition at line 64 of file ab8500-core.c.

#define AB8500_IT_LATCH22_REG   0x35

Definition at line 65 of file ab8500-core.c.

#define AB8500_IT_LATCH23_REG   0x36

Definition at line 66 of file ab8500-core.c.

#define AB8500_IT_LATCH24_REG   0x37

Definition at line 67 of file ab8500-core.c.

#define AB8500_IT_LATCH2_REG   0x21

Definition at line 51 of file ab8500-core.c.

#define AB8500_IT_LATCH3_REG   0x22

Definition at line 52 of file ab8500-core.c.

#define AB8500_IT_LATCH4_REG   0x23

Definition at line 53 of file ab8500-core.c.

#define AB8500_IT_LATCH5_REG   0x24

Definition at line 54 of file ab8500-core.c.

#define AB8500_IT_LATCH6_REG   0x25

Definition at line 55 of file ab8500-core.c.

#define AB8500_IT_LATCH7_REG   0x26

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

#define AB8500_IT_LATCH8_REG   0x27

Definition at line 57 of file ab8500-core.c.

#define AB8500_IT_LATCH9_REG   0x28

Definition at line 58 of file ab8500-core.c.

#define AB8500_IT_LATCHHIER1_REG   0x60

Definition at line 101 of file ab8500-core.c.

#define AB8500_IT_LATCHHIER2_REG   0x61

Definition at line 102 of file ab8500-core.c.

#define AB8500_IT_LATCHHIER3_REG   0x62

Definition at line 103 of file ab8500-core.c.

#define AB8500_IT_LATCHHIER_NUM   3

Definition at line 105 of file ab8500-core.c.

#define AB8500_IT_MASK10_REG   0x49

Definition at line 82 of file ab8500-core.c.

#define AB8500_IT_MASK11_REG   0x4A

Definition at line 83 of file ab8500-core.c.

#define AB8500_IT_MASK12_REG   0x4B

Definition at line 84 of file ab8500-core.c.

#define AB8500_IT_MASK13_REG   0x4C

Definition at line 85 of file ab8500-core.c.

#define AB8500_IT_MASK14_REG   0x4D

Definition at line 86 of file ab8500-core.c.

#define AB8500_IT_MASK15_REG   0x4E

Definition at line 87 of file ab8500-core.c.

#define AB8500_IT_MASK16_REG   0x4F

Definition at line 88 of file ab8500-core.c.

#define AB8500_IT_MASK17_REG   0x50

Definition at line 89 of file ab8500-core.c.

#define AB8500_IT_MASK18_REG   0x51

Definition at line 90 of file ab8500-core.c.

#define AB8500_IT_MASK19_REG   0x52

Definition at line 91 of file ab8500-core.c.

#define AB8500_IT_MASK1_REG   0x40

Definition at line 73 of file ab8500-core.c.

#define AB8500_IT_MASK20_REG   0x53

Definition at line 92 of file ab8500-core.c.

#define AB8500_IT_MASK21_REG   0x54

Definition at line 93 of file ab8500-core.c.

#define AB8500_IT_MASK22_REG   0x55

Definition at line 94 of file ab8500-core.c.

#define AB8500_IT_MASK23_REG   0x56

Definition at line 95 of file ab8500-core.c.

#define AB8500_IT_MASK24_REG   0x57

Definition at line 96 of file ab8500-core.c.

#define AB8500_IT_MASK2_REG   0x41

Definition at line 74 of file ab8500-core.c.

#define AB8500_IT_MASK3_REG   0x42

Definition at line 75 of file ab8500-core.c.

#define AB8500_IT_MASK4_REG   0x43

Definition at line 76 of file ab8500-core.c.

#define AB8500_IT_MASK5_REG   0x44

Definition at line 77 of file ab8500-core.c.

#define AB8500_IT_MASK6_REG   0x45

Definition at line 78 of file ab8500-core.c.

#define AB8500_IT_MASK7_REG   0x46

Definition at line 79 of file ab8500-core.c.

#define AB8500_IT_MASK8_REG   0x47

Definition at line 80 of file ab8500-core.c.

#define AB8500_IT_MASK9_REG   0x48

Definition at line 81 of file ab8500-core.c.

#define AB8500_IT_SOURCE19_REG   0x12

Definition at line 40 of file ab8500-core.c.

#define AB8500_IT_SOURCE1_REG   0x00

Definition at line 31 of file ab8500-core.c.

#define AB8500_IT_SOURCE20_REG   0x13

Definition at line 41 of file ab8500-core.c.

#define AB8500_IT_SOURCE21_REG   0x14

Definition at line 42 of file ab8500-core.c.

#define AB8500_IT_SOURCE22_REG   0x15

Definition at line 43 of file ab8500-core.c.

#define AB8500_IT_SOURCE23_REG   0x16

Definition at line 44 of file ab8500-core.c.

#define AB8500_IT_SOURCE24_REG   0x17

Definition at line 45 of file ab8500-core.c.

#define AB8500_IT_SOURCE2_REG   0x01

Definition at line 32 of file ab8500-core.c.

#define AB8500_IT_SOURCE3_REG   0x02

Definition at line 33 of file ab8500-core.c.

#define AB8500_IT_SOURCE4_REG   0x03

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

#define AB8500_IT_SOURCE5_REG   0x04

Definition at line 35 of file ab8500-core.c.

#define AB8500_IT_SOURCE6_REG   0x05

Definition at line 36 of file ab8500-core.c.

#define AB8500_IT_SOURCE7_REG   0x06

Definition at line 37 of file ab8500-core.c.

#define AB8500_IT_SOURCE8_REG   0x07

Definition at line 38 of file ab8500-core.c.

#define AB8500_REV_REG   0x80

Definition at line 107 of file ab8500-core.c.

#define AB8500_SWITCH_OFF_STATUS   0x00

Definition at line 109 of file ab8500-core.c.

#define AB8500_TURN_ON_STATUS   0x00

Definition at line 111 of file ab8500-core.c.

#define AB9540_IT_LATCH13_REG   0x2C

Definition at line 61 of file ab8500-core.c.

#define AB9540_IT_SOURCE13_REG   0x0C

Definition at line 39 of file ab8500-core.c.

#define AB9540_MODEM_CTRL2_REG   0x23

Definition at line 116 of file ab8500-core.c.

#define AB9540_MODEM_CTRL2_SWDBBRSTN_BIT   BIT(2)

Definition at line 117 of file ab8500-core.c.

Function Documentation

int ab8500_suspend ( struct ab8500 ab8500)

Definition at line 586 of file ab8500-core.c.

core_initcall ( ab8500_core_init  )
MODULE_AUTHOR ( "Mattias  Wallin,
Srinidhi  Kasagar,
Rabin Vincent"   
)
MODULE_DESCRIPTION ( "AB8500 MFD core )
module_exit ( ab8500_core_exit  )
MODULE_LICENSE ( "GPL v2 )
module_param ( no_bm  ,
bool  ,
S_IRUGO   
)