Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pwm-twl6030.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/i2c/twl.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  twl6030_pwm_chip
 

Macros

#define LED_PWM_CTRL1   0xF4
 
#define LED_PWM_CTRL2   0xF5
 
#define PWM_CTRL1_MAX   255
 
#define PWM_CTRL2_DIS_PD   (1 << 6)
 
#define PWM_CTRL2_CURR_02   (2 << 4)
 
#define PWM_CTRL2_SRC_VAC   (1 << 2)
 
#define PWM_CTRL2_MODE_HW   (0 << 0)
 
#define PWM_CTRL2_MODE_SW   (1 << 0)
 
#define PWM_CTRL2_MODE_DIS   (2 << 0)
 
#define PWM_CTRL2_MODE_MASK   0x3
 

Functions

 module_platform_driver (twl6030_pwm_driver)
 
 MODULE_ALIAS ("platform:twl6030-pwm")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LED_PWM_CTRL1   0xF4

Definition at line 27 of file pwm-twl6030.c.

#define LED_PWM_CTRL2   0xF5

Definition at line 28 of file pwm-twl6030.c.

#define PWM_CTRL1_MAX   255

Definition at line 31 of file pwm-twl6030.c.

#define PWM_CTRL2_CURR_02   (2 << 4)

Definition at line 37 of file pwm-twl6030.c.

#define PWM_CTRL2_DIS_PD   (1 << 6)

Definition at line 34 of file pwm-twl6030.c.

#define PWM_CTRL2_MODE_DIS   (2 << 0)

Definition at line 45 of file pwm-twl6030.c.

#define PWM_CTRL2_MODE_HW   (0 << 0)

Definition at line 43 of file pwm-twl6030.c.

#define PWM_CTRL2_MODE_MASK   0x3

Definition at line 47 of file pwm-twl6030.c.

#define PWM_CTRL2_MODE_SW   (1 << 0)

Definition at line 44 of file pwm-twl6030.c.

#define PWM_CTRL2_SRC_VAC   (1 << 2)

Definition at line 40 of file pwm-twl6030.c.

Function Documentation

MODULE_ALIAS ( "platform:twl6030-pwm )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( twl6030_pwm_driver  )