diff options
| author | Philippe Rétornaz <philippe.retornaz@epfl.ch> | 2010-05-19 03:24:32 -0400 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-26 08:07:56 -0400 |
| commit | a7cca8aec9d08231207503e4823e7b47bfa7e596 (patch) | |
| tree | 31c2832ad5b26b634b16d9d5b301c3320ac00cc9 | |
| parent | 7fdcef8a414eaeb367b3696005b25283d62d195d (diff) | |
leds: Add mx31moboard MC13783 led support
Add two RGB led on mx31moboard using MC13783 led subsystem
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
| -rw-r--r-- | arch/arm/mach-mx3/mach-mx31moboard.c | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c index 33a8d35498a7..62b5e40165df 100644 --- a/arch/arm/mach-mx3/mach-mx31moboard.c +++ b/arch/arm/mach-mx3/mach-mx31moboard.c | |||
| @@ -220,11 +220,54 @@ static struct mc13783_regulator_init_data moboard_regulators[] = { | |||
| 220 | }, | 220 | }, |
| 221 | }; | 221 | }; |
| 222 | 222 | ||
| 223 | static struct mc13783_led_platform_data moboard_led[] = { | ||
| 224 | { | ||
| 225 | .id = MC13783_LED_R1, | ||
| 226 | .name = "coreboard-led-4:red", | ||
| 227 | .max_current = 2, | ||
| 228 | }, | ||
| 229 | { | ||
| 230 | .id = MC13783_LED_G1, | ||
| 231 | .name = "coreboard-led-4:green", | ||
| 232 | .max_current = 2, | ||
| 233 | }, | ||
| 234 | { | ||
| 235 | .id = MC13783_LED_B1, | ||
| 236 | .name = "coreboard-led-4:blue", | ||
| 237 | .max_current = 2, | ||
| 238 | }, | ||
| 239 | { | ||
| 240 | .id = MC13783_LED_R2, | ||
| 241 | .name = "coreboard-led-5:red", | ||
| 242 | .max_current = 3, | ||
| 243 | }, | ||
| 244 | { | ||
| 245 | .id = MC13783_LED_G2, | ||
| 246 | .name = "coreboard-led-5:green", | ||
| 247 | .max_current = 3, | ||
| 248 | }, | ||
| 249 | { | ||
| 250 | .id = MC13783_LED_B2, | ||
| 251 | .name = "coreboard-led-5:blue", | ||
| 252 | .max_current = 3, | ||
| 253 | }, | ||
| 254 | }; | ||
| 255 | |||
| 256 | static struct mc13783_leds_platform_data moboard_leds = { | ||
| 257 | .num_leds = ARRAY_SIZE(moboard_led), | ||
| 258 | .led = moboard_led, | ||
| 259 | .flags = MC13783_LED_SLEWLIMTC, | ||
| 260 | .abmode = MC13783_LED_AB_DISABLED, | ||
| 261 | .tc1_period = MC13783_LED_PERIOD_10MS, | ||
| 262 | .tc2_period = MC13783_LED_PERIOD_10MS, | ||
| 263 | }; | ||
| 264 | |||
| 223 | static struct mc13783_platform_data moboard_pmic = { | 265 | static struct mc13783_platform_data moboard_pmic = { |
| 224 | .regulators = moboard_regulators, | 266 | .regulators = moboard_regulators, |
| 225 | .num_regulators = ARRAY_SIZE(moboard_regulators), | 267 | .num_regulators = ARRAY_SIZE(moboard_regulators), |
| 268 | .leds = &moboard_leds, | ||
| 226 | .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC | | 269 | .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC | |
| 227 | MC13783_USE_ADC, | 270 | MC13783_USE_ADC | MC13783_USE_LED, |
| 228 | }; | 271 | }; |
| 229 | 272 | ||
| 230 | static struct spi_board_info moboard_spi_board_info[] __initdata = { | 273 | static struct spi_board_info moboard_spi_board_info[] __initdata = { |
