Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/leds.h>
#include <linux/mfd/core.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/mfd/lm3533.h>
Go to the source code of this file.
Data Structures | |
struct | lm3533_led |
Functions | |
module_platform_driver (lm3533_led_driver) | |
MODULE_AUTHOR ("Johan Hovold <[email protected]>") | |
MODULE_DESCRIPTION ("LM3533 LED driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:lm3533-leds") | |
#define LM3533_ALS_CHANNEL_LV_MAX 2 |
Definition at line 31 of file leds-lm3533.c.
#define LM3533_ALS_CHANNEL_LV_MIN 1 |
Definition at line 30 of file leds-lm3533.c.
#define LM3533_LED_DELAY1_TMAX 999424U |
Definition at line 178 of file leds-lm3533.c.
#define LM3533_LED_DELAY1_TMIN 16384U |
Definition at line 174 of file leds-lm3533.c.
#define LM3533_LED_DELAY1_TSTEP 16384 |
Definition at line 183 of file leds-lm3533.c.
#define LM3533_LED_DELAY1_VMAX (LM3533_LED_DELAY2_VMIN - 1) |
Definition at line 170 of file leds-lm3533.c.
#define LM3533_LED_DELAY1_VMIN 0x00 |
Definition at line 166 of file leds-lm3533.c.
#define LM3533_LED_DELAY2_TMAX 9781248U |
Definition at line 179 of file leds-lm3533.c.
#define LM3533_LED_DELAY2_TMIN 1130496U |
Definition at line 175 of file leds-lm3533.c.
#define LM3533_LED_DELAY2_TSTEP 131072 |
Definition at line 184 of file leds-lm3533.c.
#define LM3533_LED_DELAY2_VMAX (LM3533_LED_DELAY3_VMIN - 1) |
Definition at line 171 of file leds-lm3533.c.
#define LM3533_LED_DELAY2_VMIN 0x3d |
Definition at line 167 of file leds-lm3533.c.
#define LM3533_LED_DELAY3_TMAX 76890112U |
Definition at line 180 of file leds-lm3533.c.
#define LM3533_LED_DELAY3_TMIN 10305536U |
Definition at line 176 of file leds-lm3533.c.
#define LM3533_LED_DELAY3_TSTEP 524288 |
Definition at line 185 of file leds-lm3533.c.
#define LM3533_LED_DELAY3_VMAX 0xff |
Definition at line 172 of file leds-lm3533.c.
#define LM3533_LED_DELAY3_VMIN 0x80 |
Definition at line 168 of file leds-lm3533.c.
#define LM3533_LED_DELAY_OFF_MAX ((LM3533_LED_DELAY3_TMAX + LM3533_LED_DELAY3_TSTEP / 2) / 1000) |
Definition at line 190 of file leds-lm3533.c.
#define LM3533_LED_DELAY_ON_MAX ((LM3533_LED_DELAY2_TMAX + LM3533_LED_DELAY2_TSTEP / 2) / 1000) |
Definition at line 188 of file leds-lm3533.c.
#define LM3533_LED_FLAG_PATTERN_ENABLE 1 |
Definition at line 46 of file leds-lm3533.c.
#define LM3533_LVCTRLBANK_COUNT 4 |
Definition at line 28 of file leds-lm3533.c.
#define LM3533_LVCTRLBANK_MAX 5 |
Definition at line 27 of file leds-lm3533.c.
#define LM3533_LVCTRLBANK_MIN 2 |
Definition at line 26 of file leds-lm3533.c.
#define LM3533_REG_CTRLBANK_BCONF_ALS_CHANNEL_MASK 0x01 |
Definition at line 44 of file leds-lm3533.c.
#define LM3533_REG_CTRLBANK_BCONF_ALS_EN_MASK 0x02 |
Definition at line 43 of file leds-lm3533.c.
#define LM3533_REG_CTRLBANK_BCONF_BASE 0x1b |
Definition at line 33 of file leds-lm3533.c.
#define LM3533_REG_CTRLBANK_BCONF_MAPPING_MASK 0x04 |
Definition at line 42 of file leds-lm3533.c.
#define LM3533_REG_PATTERN_ENABLE 0x28 |
Definition at line 34 of file leds-lm3533.c.
#define LM3533_REG_PATTERN_FALLTIME_BASE 0x75 |
Definition at line 38 of file leds-lm3533.c.
#define LM3533_REG_PATTERN_HIGH_TIME_BASE 0x72 |
Definition at line 36 of file leds-lm3533.c.
#define LM3533_REG_PATTERN_LOW_TIME_BASE 0x71 |
Definition at line 35 of file leds-lm3533.c.
#define LM3533_REG_PATTERN_RISETIME_BASE 0x74 |
Definition at line 37 of file leds-lm3533.c.
#define LM3533_REG_PATTERN_STEP 0x10 |
Definition at line 40 of file leds-lm3533.c.
#define LM3533_RISEFALLTIME_MAX 7 |
Definition at line 29 of file leds-lm3533.c.
MODULE_ALIAS | ( | "platform:lm3533-leds" | ) |
MODULE_AUTHOR | ( | "Johan Hovold <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | lm3533_led_driver | ) |