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

Go to the source code of this file.

Data Structures

struct  max8649_regulator_info
 

Macros

#define MAX8649_DCDC_VMIN   750000 /* uV */
 
#define MAX8649_DCDC_VMAX   1380000 /* uV */
 
#define MAX8649_DCDC_STEP   10000 /* uV */
 
#define MAX8649_VOL_MASK   0x3f
 
#define MAX8649_MODE0   0x00
 
#define MAX8649_MODE1   0x01
 
#define MAX8649_MODE2   0x02
 
#define MAX8649_MODE3   0x03
 
#define MAX8649_CONTROL   0x04
 
#define MAX8649_SYNC   0x05
 
#define MAX8649_RAMP   0x06
 
#define MAX8649_CHIP_ID1   0x08
 
#define MAX8649_CHIP_ID2   0x09
 
#define MAX8649_EN_PD   (1 << 7)
 
#define MAX8649_VID0_PD   (1 << 6)
 
#define MAX8649_VID1_PD   (1 << 5)
 
#define MAX8649_VID_MASK   (3 << 5)
 
#define MAX8649_FORCE_PWM   (1 << 7)
 
#define MAX8649_SYNC_EXTCLK   (1 << 6)
 
#define MAX8649_EXT_MASK   (3 << 6)
 
#define MAX8649_RAMP_MASK   (7 << 5)
 
#define MAX8649_RAMP_DOWN   (1 << 1)
 

Functions

 MODULE_DEVICE_TABLE (i2c, max8649_id)
 
 subsys_initcall (max8649_init)
 
 module_exit (max8649_exit)
 
 MODULE_DESCRIPTION ("MAXIM 8649 voltage regulator driver")
 
 MODULE_AUTHOR ("Haojian Zhuang <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX8649_CHIP_ID1   0x08

Definition at line 34 of file max8649.c.

#define MAX8649_CHIP_ID2   0x09

Definition at line 35 of file max8649.c.

#define MAX8649_CONTROL   0x04

Definition at line 31 of file max8649.c.

#define MAX8649_DCDC_STEP   10000 /* uV */

Definition at line 23 of file max8649.c.

#define MAX8649_DCDC_VMAX   1380000 /* uV */

Definition at line 22 of file max8649.c.

#define MAX8649_DCDC_VMIN   750000 /* uV */

Definition at line 21 of file max8649.c.

#define MAX8649_EN_PD   (1 << 7)

Definition at line 38 of file max8649.c.

#define MAX8649_EXT_MASK   (3 << 6)

Definition at line 46 of file max8649.c.

#define MAX8649_FORCE_PWM   (1 << 7)

Definition at line 43 of file max8649.c.

#define MAX8649_MODE0   0x00

Definition at line 27 of file max8649.c.

#define MAX8649_MODE1   0x01

Definition at line 28 of file max8649.c.

#define MAX8649_MODE2   0x02

Definition at line 29 of file max8649.c.

#define MAX8649_MODE3   0x03

Definition at line 30 of file max8649.c.

#define MAX8649_RAMP   0x06

Definition at line 33 of file max8649.c.

#define MAX8649_RAMP_DOWN   (1 << 1)

Definition at line 49 of file max8649.c.

#define MAX8649_RAMP_MASK   (7 << 5)

Definition at line 48 of file max8649.c.

#define MAX8649_SYNC   0x05

Definition at line 32 of file max8649.c.

#define MAX8649_SYNC_EXTCLK   (1 << 6)

Definition at line 44 of file max8649.c.

#define MAX8649_VID0_PD   (1 << 6)

Definition at line 39 of file max8649.c.

#define MAX8649_VID1_PD   (1 << 5)

Definition at line 40 of file max8649.c.

#define MAX8649_VID_MASK   (3 << 5)

Definition at line 41 of file max8649.c.

#define MAX8649_VOL_MASK   0x3f

Definition at line 24 of file max8649.c.

Function Documentation

MODULE_AUTHOR ( "Haojian Zhuang <[email protected]>"  )
MODULE_DESCRIPTION ( "MAXIM 8649 voltage regulator driver )
MODULE_DEVICE_TABLE ( i2c  ,
max8649_id   
)
module_exit ( max8649_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( max8649_init  )