]>
Commit | Line | Data |
---|---|---|
32abb478 SJ |
1 | /* |
2 | * Simple driver for Texas Instruments LM3556 LED Flash driver chip (Rev0x03) | |
3 | * Copyright (C) 2012 Texas Instruments | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License version 2 as | |
7 | * published by the Free Software Foundation. | |
8 | * | |
9 | */ | |
10 | ||
11 | #ifndef __LINUX_LM3556_H | |
12 | #define __LINUX_LM3556_H | |
13 | ||
14 | #define LM3556_NAME "leds-lm3556" | |
15 | ||
16 | enum lm3556_pin_polarity { | |
17 | PIN_LOW_ACTIVE = 0, | |
18 | PIN_HIGH_ACTIVE, | |
19 | }; | |
20 | ||
21 | enum lm3556_pin_enable { | |
22 | PIN_DISABLED = 0, | |
23 | PIN_ENABLED, | |
24 | }; | |
25 | ||
26 | enum lm3556_strobe_usuage { | |
27 | STROBE_EDGE_DETECT = 0, | |
28 | STROBE_LEVEL_DETECT, | |
29 | }; | |
30 | ||
31 | enum lm3556_indic_mode { | |
32 | INDIC_MODE_INTERNAL = 0, | |
33 | INDIC_MODE_EXTERNAL, | |
34 | }; | |
35 | ||
36 | struct lm3556_platform_data { | |
37 | enum lm3556_pin_enable torch_pin_en; | |
38 | enum lm3556_pin_polarity torch_pin_polarity; | |
39 | ||
40 | enum lm3556_strobe_usuage strobe_usuage; | |
41 | enum lm3556_pin_enable strobe_pin_en; | |
42 | enum lm3556_pin_polarity strobe_pin_polarity; | |
43 | ||
44 | enum lm3556_pin_enable tx_pin_en; | |
45 | enum lm3556_pin_polarity tx_pin_polarity; | |
46 | ||
47 | enum lm3556_indic_mode indicator_mode; | |
48 | }; | |
49 | ||
50 | #endif /* __LINUX_LM3556_H */ |