diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2014-08-22 05:06:18 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-26 03:15:43 -0400 |
commit | a0bc607208e295f70d0355fa4e632a0c8c27533b (patch) | |
tree | c81be289f8d82eecfa41b6faa75f94812a7e36da /include/linux/mfd/max77693.h | |
parent | 4b5c1f1e080f79c3c226596047a20ccd1c8a9486 (diff) |
mfd: max77693: Improve support for the flash cell
This patch improves support for the flash cell of
max77693 mfd by adding relevant of_compatible field
and a structure for caching related platform data.
Added are also FLASH registers related macro definitions.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/max77693.h')
-rw-r--r-- | include/linux/mfd/max77693.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/mfd/max77693.h b/include/linux/mfd/max77693.h index 3f3dc45f93ee..f0b6585cd874 100644 --- a/include/linux/mfd/max77693.h +++ b/include/linux/mfd/max77693.h | |||
@@ -63,6 +63,45 @@ struct max77693_muic_platform_data { | |||
63 | int path_uart; | 63 | int path_uart; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | /* MAX77693 led flash */ | ||
67 | |||
68 | /* triggers */ | ||
69 | enum max77693_led_trigger { | ||
70 | MAX77693_LED_TRIG_OFF, | ||
71 | MAX77693_LED_TRIG_FLASH, | ||
72 | MAX77693_LED_TRIG_TORCH, | ||
73 | MAX77693_LED_TRIG_EXT, | ||
74 | MAX77693_LED_TRIG_SOFT, | ||
75 | }; | ||
76 | |||
77 | /* trigger types */ | ||
78 | enum max77693_led_trigger_type { | ||
79 | MAX77693_LED_TRIG_TYPE_EDGE, | ||
80 | MAX77693_LED_TRIG_TYPE_LEVEL, | ||
81 | }; | ||
82 | |||
83 | /* boost modes */ | ||
84 | enum max77693_led_boost_mode { | ||
85 | MAX77693_LED_BOOST_NONE, | ||
86 | MAX77693_LED_BOOST_ADAPTIVE, | ||
87 | MAX77693_LED_BOOST_FIXED, | ||
88 | }; | ||
89 | |||
90 | struct max77693_led_platform_data { | ||
91 | u32 fleds[2]; | ||
92 | u32 iout_torch[2]; | ||
93 | u32 iout_flash[2]; | ||
94 | u32 trigger[2]; | ||
95 | u32 trigger_type[2]; | ||
96 | u32 num_leds; | ||
97 | u32 boost_mode; | ||
98 | u32 flash_timeout; | ||
99 | u32 boost_vout; | ||
100 | u32 low_vsys; | ||
101 | }; | ||
102 | |||
103 | /* MAX77693 */ | ||
104 | |||
66 | struct max77693_platform_data { | 105 | struct max77693_platform_data { |
67 | /* regulator data */ | 106 | /* regulator data */ |
68 | struct max77693_regulator_data *regulators; | 107 | struct max77693_regulator_data *regulators; |
@@ -70,5 +109,6 @@ struct max77693_platform_data { | |||
70 | 109 | ||
71 | /* muic data */ | 110 | /* muic data */ |
72 | struct max77693_muic_platform_data *muic_data; | 111 | struct max77693_muic_platform_data *muic_data; |
112 | struct max77693_led_platform_data *led_data; | ||
73 | }; | 113 | }; |
74 | #endif /* __LINUX_MFD_MAX77693_H */ | 114 | #endif /* __LINUX_MFD_MAX77693_H */ |