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

Go to the source code of this file.

Data Structures

struct  tps_info
 
struct  tps65912_reg
 

Macros

#define TPS65912_REG_DCDC1   0
 
#define TPS65912_REG_DCDC2   1
 
#define TPS65912_REG_DCDC3   2
 
#define TPS65912_REG_DCDC4   3
 
#define TPS65912_REG_LDO1   4
 
#define TPS65912_REG_LDO2   5
 
#define TPS65912_REG_LDO3   6
 
#define TPS65912_REG_LDO4   7
 
#define TPS65912_REG_LDO5   8
 
#define TPS65912_REG_LDO6   9
 
#define TPS65912_REG_LDO7   10
 
#define TPS65912_REG_LDO8   11
 
#define TPS65912_REG_LDO9   12
 
#define TPS65912_REG_LDO10   13
 
#define TPS65912_NUM_DCDC   4
 
#define TPS65912_NUM_LDO   10
 
#define TPS65912_NUM_REGULATOR   (TPS65912_NUM_DCDC + TPS65912_NUM_LDO)
 
#define TPS65912_REG_ENABLED   0x80
 
#define OP_SELREG_MASK   0x40
 
#define OP_SELREG_SHIFT   6
 

Functions

 subsys_initcall (tps65912_init)
 
 module_exit (tps65912_cleanup)
 
 MODULE_AUTHOR ("Margarita Olaya Cabrera <[email protected]>")
 
 MODULE_DESCRIPTION ("TPS65912 voltage regulator driver")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:tps65912-pmic")
 

Macro Definition Documentation

#define OP_SELREG_MASK   0x40

Definition at line 55 of file tps65912-regulator.c.

#define OP_SELREG_SHIFT   6

Definition at line 56 of file tps65912-regulator.c.

#define TPS65912_NUM_DCDC   4

Definition at line 46 of file tps65912-regulator.c.

#define TPS65912_NUM_LDO   10

Definition at line 49 of file tps65912-regulator.c.

#define TPS65912_NUM_REGULATOR   (TPS65912_NUM_DCDC + TPS65912_NUM_LDO)

Definition at line 52 of file tps65912-regulator.c.

#define TPS65912_REG_DCDC1   0

Definition at line 28 of file tps65912-regulator.c.

#define TPS65912_REG_DCDC2   1

Definition at line 29 of file tps65912-regulator.c.

#define TPS65912_REG_DCDC3   2

Definition at line 30 of file tps65912-regulator.c.

#define TPS65912_REG_DCDC4   3

Definition at line 31 of file tps65912-regulator.c.

#define TPS65912_REG_ENABLED   0x80

Definition at line 54 of file tps65912-regulator.c.

#define TPS65912_REG_LDO1   4

Definition at line 34 of file tps65912-regulator.c.

#define TPS65912_REG_LDO10   13

Definition at line 43 of file tps65912-regulator.c.

#define TPS65912_REG_LDO2   5

Definition at line 35 of file tps65912-regulator.c.

#define TPS65912_REG_LDO3   6

Definition at line 36 of file tps65912-regulator.c.

#define TPS65912_REG_LDO4   7

Definition at line 37 of file tps65912-regulator.c.

#define TPS65912_REG_LDO5   8

Definition at line 38 of file tps65912-regulator.c.

#define TPS65912_REG_LDO6   9

Definition at line 39 of file tps65912-regulator.c.

#define TPS65912_REG_LDO7   10

Definition at line 40 of file tps65912-regulator.c.

#define TPS65912_REG_LDO8   11

Definition at line 41 of file tps65912-regulator.c.

#define TPS65912_REG_LDO9   12

Definition at line 42 of file tps65912-regulator.c.

Function Documentation

MODULE_ALIAS ( "platform:tps65912-pmic"  )
MODULE_AUTHOR ( "Margarita Olaya Cabrera <[email protected]>"  )
MODULE_DESCRIPTION ( "TPS65912 voltage regulator driver )
module_exit ( tps65912_cleanup  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( tps65912_init  )