Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
leds-mc13783.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/workqueue.h>
#include <linux/mfd/mc13xxx.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  mc13783_led
 

Macros

#define MC13783_REG_LED_CONTROL_0   51
 
#define MC13783_LED_C0_ENABLE_BIT   (1 << 0)
 
#define MC13783_LED_C0_TRIODE_MD_BIT   (1 << 7)
 
#define MC13783_LED_C0_TRIODE_AD_BIT   (1 << 8)
 
#define MC13783_LED_C0_TRIODE_KP_BIT   (1 << 9)
 
#define MC13783_LED_C0_BOOST_BIT   (1 << 10)
 
#define MC13783_LED_C0_ABMODE_MASK   0x7
 
#define MC13783_LED_C0_ABMODE   11
 
#define MC13783_LED_C0_ABREF_MASK   0x3
 
#define MC13783_LED_C0_ABREF   14
 
#define MC13783_REG_LED_CONTROL_1   52
 
#define MC13783_LED_C1_TC1HALF_BIT   (1 << 18)
 
#define MC13783_REG_LED_CONTROL_2   53
 
#define MC13783_LED_C2_BL_P_MASK   0xf
 
#define MC13783_LED_C2_MD_P   9
 
#define MC13783_LED_C2_AD_P   13
 
#define MC13783_LED_C2_KP_P   17
 
#define MC13783_LED_C2_BL_C_MASK   0x7
 
#define MC13783_LED_C2_MD_C   0
 
#define MC13783_LED_C2_AD_C   3
 
#define MC13783_LED_C2_KP_C   6
 
#define MC13783_REG_LED_CONTROL_3   54
 
#define MC13783_LED_C3_TC_P   6
 
#define MC13783_LED_C3_TC_P_MASK   0x1f
 
#define MC13783_REG_LED_CONTROL_4   55
 
#define MC13783_REG_LED_CONTROL_5   56
 
#define MC13783_LED_Cx_PERIOD   21
 
#define MC13783_LED_Cx_PERIOD_MASK   0x3
 
#define MC13783_LED_Cx_SLEWLIM_BIT   (1 << 23)
 
#define MC13783_LED_Cx_TRIODE_TC_BIT   (1 << 23)
 
#define MC13783_LED_Cx_TC_C_MASK   0x3
 

Functions

 module_platform_driver (mc13783_led_driver)
 
 MODULE_DESCRIPTION ("LEDs driver for Freescale MC13783 PMIC")
 
 MODULE_AUTHOR ("Philippe Retornaz <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:mc13783-led")
 

Macro Definition Documentation

#define MC13783_LED_C0_ABMODE   11

Definition at line 42 of file leds-mc13783.c.

#define MC13783_LED_C0_ABMODE_MASK   0x7

Definition at line 41 of file leds-mc13783.c.

#define MC13783_LED_C0_ABREF   14

Definition at line 44 of file leds-mc13783.c.

#define MC13783_LED_C0_ABREF_MASK   0x3

Definition at line 43 of file leds-mc13783.c.

#define MC13783_LED_C0_BOOST_BIT   (1 << 10)

Definition at line 40 of file leds-mc13783.c.

#define MC13783_LED_C0_ENABLE_BIT   (1 << 0)

Definition at line 36 of file leds-mc13783.c.

#define MC13783_LED_C0_TRIODE_AD_BIT   (1 << 8)

Definition at line 38 of file leds-mc13783.c.

#define MC13783_LED_C0_TRIODE_KP_BIT   (1 << 9)

Definition at line 39 of file leds-mc13783.c.

#define MC13783_LED_C0_TRIODE_MD_BIT   (1 << 7)

Definition at line 37 of file leds-mc13783.c.

#define MC13783_LED_C1_TC1HALF_BIT   (1 << 18)

Definition at line 47 of file leds-mc13783.c.

#define MC13783_LED_C2_AD_C   3

Definition at line 56 of file leds-mc13783.c.

#define MC13783_LED_C2_AD_P   13

Definition at line 52 of file leds-mc13783.c.

#define MC13783_LED_C2_BL_C_MASK   0x7

Definition at line 54 of file leds-mc13783.c.

#define MC13783_LED_C2_BL_P_MASK   0xf

Definition at line 50 of file leds-mc13783.c.

#define MC13783_LED_C2_KP_C   6

Definition at line 57 of file leds-mc13783.c.

#define MC13783_LED_C2_KP_P   17

Definition at line 53 of file leds-mc13783.c.

#define MC13783_LED_C2_MD_C   0

Definition at line 55 of file leds-mc13783.c.

#define MC13783_LED_C2_MD_P   9

Definition at line 51 of file leds-mc13783.c.

#define MC13783_LED_C3_TC_P   6

Definition at line 60 of file leds-mc13783.c.

#define MC13783_LED_C3_TC_P_MASK   0x1f

Definition at line 61 of file leds-mc13783.c.

#define MC13783_LED_Cx_PERIOD   21

Definition at line 66 of file leds-mc13783.c.

#define MC13783_LED_Cx_PERIOD_MASK   0x3

Definition at line 67 of file leds-mc13783.c.

#define MC13783_LED_Cx_SLEWLIM_BIT   (1 << 23)

Definition at line 68 of file leds-mc13783.c.

#define MC13783_LED_Cx_TC_C_MASK   0x3

Definition at line 70 of file leds-mc13783.c.

#define MC13783_LED_Cx_TRIODE_TC_BIT   (1 << 23)

Definition at line 69 of file leds-mc13783.c.

#define MC13783_REG_LED_CONTROL_0   51

Definition at line 35 of file leds-mc13783.c.

#define MC13783_REG_LED_CONTROL_1   52

Definition at line 46 of file leds-mc13783.c.

#define MC13783_REG_LED_CONTROL_2   53

Definition at line 49 of file leds-mc13783.c.

#define MC13783_REG_LED_CONTROL_3   54

Definition at line 59 of file leds-mc13783.c.

#define MC13783_REG_LED_CONTROL_4   55

Definition at line 63 of file leds-mc13783.c.

#define MC13783_REG_LED_CONTROL_5   56

Definition at line 64 of file leds-mc13783.c.

Function Documentation

MODULE_ALIAS ( "platform:mc13783-led )
MODULE_AUTHOR ( "Philippe Retornaz <[email protected]>"  )
MODULE_DESCRIPTION ( "LEDs driver for Freescale MC13783 PMIC"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( mc13783_led_driver  )