Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
twl6040-core.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_gpio.h>
#include <linux/of_platform.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/mfd/core.h>
#include <linux/mfd/twl6040.h>
#include <linux/regulator/consumer.h>

Go to the source code of this file.

Macros

#define VIBRACTRL_MEMBER(reg)   ((reg == TWL6040_REG_VIBCTLL) ? 0 : 1)
 
#define TWL6040_NUM_SUPPLIES   (2)
 

Functions

int twl6040_reg_read (struct twl6040 *twl6040, unsigned int reg)
 
 EXPORT_SYMBOL (twl6040_reg_read)
 
int twl6040_reg_write (struct twl6040 *twl6040, unsigned int reg, u8 val)
 
 EXPORT_SYMBOL (twl6040_reg_write)
 
int twl6040_set_bits (struct twl6040 *twl6040, unsigned int reg, u8 mask)
 
 EXPORT_SYMBOL (twl6040_set_bits)
 
int twl6040_clear_bits (struct twl6040 *twl6040, unsigned int reg, u8 mask)
 
 EXPORT_SYMBOL (twl6040_clear_bits)
 
int twl6040_power (struct twl6040 *twl6040, int on)
 
 EXPORT_SYMBOL (twl6040_power)
 
int twl6040_set_pll (struct twl6040 *twl6040, int pll_id, unsigned int freq_in, unsigned int freq_out)
 
 EXPORT_SYMBOL (twl6040_set_pll)
 
int twl6040_get_pll (struct twl6040 *twl6040)
 
 EXPORT_SYMBOL (twl6040_get_pll)
 
unsigned int twl6040_get_sysclk (struct twl6040 *twl6040)
 
 EXPORT_SYMBOL (twl6040_get_sysclk)
 
int twl6040_get_vibralr_status (struct twl6040 *twl6040)
 
 EXPORT_SYMBOL (twl6040_get_vibralr_status)
 
 MODULE_DEVICE_TABLE (i2c, twl6040_i2c_id)
 
 module_i2c_driver (twl6040_driver)
 
 MODULE_DESCRIPTION ("TWL6040 MFD")
 
 MODULE_AUTHOR ("Misael Lopez Cruz <[email protected]>")
 
 MODULE_AUTHOR ("Jorge Eduardo Candelaria <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:twl6040")
 

Macro Definition Documentation

#define TWL6040_NUM_SUPPLIES   (2)

Definition at line 46 of file twl6040-core.c.

#define VIBRACTRL_MEMBER (   reg)    ((reg == TWL6040_REG_VIBCTLL) ? 0 : 1)

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

Function Documentation

EXPORT_SYMBOL ( twl6040_reg_read  )
EXPORT_SYMBOL ( twl6040_reg_write  )
EXPORT_SYMBOL ( twl6040_set_bits  )
EXPORT_SYMBOL ( twl6040_clear_bits  )
EXPORT_SYMBOL ( twl6040_power  )
EXPORT_SYMBOL ( twl6040_set_pll  )
EXPORT_SYMBOL ( twl6040_get_pll  )
EXPORT_SYMBOL ( twl6040_get_sysclk  )
EXPORT_SYMBOL ( twl6040_get_vibralr_status  )
MODULE_ALIAS ( "platform:twl6040"  )
MODULE_AUTHOR ( "Misael Lopez Cruz <[email protected]>"  )
MODULE_AUTHOR ( "Jorge Eduardo Candelaria <[email protected]>"  )
MODULE_DESCRIPTION ( "TWL6040 MFD )
MODULE_DEVICE_TABLE ( i2c  ,
twl6040_i2c_id   
)
module_i2c_driver ( twl6040_driver  )
MODULE_LICENSE ( "GPL"  )
int twl6040_clear_bits ( struct twl6040 twl6040,
unsigned int  reg,
u8  mask 
)

Definition at line 100 of file twl6040-core.c.

int twl6040_get_pll ( struct twl6040 twl6040)

Definition at line 451 of file twl6040-core.c.

unsigned int twl6040_get_sysclk ( struct twl6040 twl6040)

Definition at line 460 of file twl6040-core.c.

int twl6040_get_vibralr_status ( struct twl6040 twl6040)

Definition at line 467 of file twl6040-core.c.

int twl6040_power ( struct twl6040 twl6040,
int  on 
)

Definition at line 241 of file twl6040-core.c.

int twl6040_reg_read ( struct twl6040 twl6040,
unsigned int  reg 
)

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

int twl6040_reg_write ( struct twl6040 twl6040,
unsigned int  reg,
u8  val 
)

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

int twl6040_set_bits ( struct twl6040 twl6040,
unsigned int  reg,
u8  mask 
)

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

int twl6040_set_pll ( struct twl6040 twl6040,
int  pll_id,
unsigned int  freq_in,
unsigned int  freq_out 
)

Definition at line 311 of file twl6040-core.c.