Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ab3100.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/mfd/ab3100.h>
#include <linux/mfd/abx500.h>

Go to the source code of this file.

Data Structures

struct  ab3100_regulator
 

Macros

#define AB3100_LDO_A   0x40
 
#define AB3100_LDO_C   0x41
 
#define AB3100_LDO_D   0x42
 
#define AB3100_LDO_E   0x43
 
#define AB3100_LDO_E_SLEEP   0x44
 
#define AB3100_LDO_F   0x45
 
#define AB3100_LDO_G   0x46
 
#define AB3100_LDO_H   0x47
 
#define AB3100_LDO_H_SLEEP_MODE   0
 
#define AB3100_LDO_H_SLEEP_EN   2
 
#define AB3100_LDO_ON   4
 
#define AB3100_LDO_H_VSEL_AC   5
 
#define AB3100_LDO_K   0x48
 
#define AB3100_LDO_EXT   0x49
 
#define AB3100_BUCK   0x4A
 
#define AB3100_BUCK_SLEEP   0x4B
 
#define AB3100_REG_ON_MASK   0x10
 
#define LDO_A_VOLTAGE   2750000
 
#define LDO_C_VOLTAGE   2650000
 
#define LDO_D_VOLTAGE   2650000
 

Functions

 subsys_initcall (ab3100_regulators_init)
 
 module_exit (ab3100_regulators_exit)
 
 MODULE_AUTHOR ("Mattias Wallin <[email protected]>")
 
 MODULE_DESCRIPTION ("AB3100 Regulator driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:ab3100-regulators")
 

Macro Definition Documentation

#define AB3100_BUCK   0x4A

Definition at line 36 of file ab3100.c.

#define AB3100_BUCK_SLEEP   0x4B

Definition at line 37 of file ab3100.c.

#define AB3100_LDO_A   0x40

Definition at line 22 of file ab3100.c.

#define AB3100_LDO_C   0x41

Definition at line 23 of file ab3100.c.

#define AB3100_LDO_D   0x42

Definition at line 24 of file ab3100.c.

#define AB3100_LDO_E   0x43

Definition at line 25 of file ab3100.c.

#define AB3100_LDO_E_SLEEP   0x44

Definition at line 26 of file ab3100.c.

#define AB3100_LDO_EXT   0x49

Definition at line 35 of file ab3100.c.

#define AB3100_LDO_F   0x45

Definition at line 27 of file ab3100.c.

#define AB3100_LDO_G   0x46

Definition at line 28 of file ab3100.c.

#define AB3100_LDO_H   0x47

Definition at line 29 of file ab3100.c.

#define AB3100_LDO_H_SLEEP_EN   2

Definition at line 31 of file ab3100.c.

#define AB3100_LDO_H_SLEEP_MODE   0

Definition at line 30 of file ab3100.c.

#define AB3100_LDO_H_VSEL_AC   5

Definition at line 33 of file ab3100.c.

#define AB3100_LDO_K   0x48

Definition at line 34 of file ab3100.c.

#define AB3100_LDO_ON   4

Definition at line 32 of file ab3100.c.

#define AB3100_REG_ON_MASK   0x10

Definition at line 38 of file ab3100.c.

#define LDO_A_VOLTAGE   2750000

Definition at line 72 of file ab3100.c.

#define LDO_C_VOLTAGE   2650000

Definition at line 73 of file ab3100.c.

#define LDO_D_VOLTAGE   2650000

Definition at line 74 of file ab3100.c.

Function Documentation

MODULE_ALIAS ( "platform:ab3100-regulators"  )
MODULE_AUTHOR ( "Mattias Wallin <[email protected]>"  )
MODULE_DESCRIPTION ( "AB3100 Regulator driver )
module_exit ( ab3100_regulators_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( ab3100_regulators_init  )