diff options
-rw-r--r-- | arch/arm/mach-imx/mach-mx31moboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c index 8067f8196228..b459c60f9eb7 100644 --- a/arch/arm/mach-imx/mach-mx31moboard.c +++ b/arch/arm/mach-imx/mach-mx31moboard.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/spi/spi.h> | 28 | #include <linux/spi/spi.h> |
29 | #include <linux/types.h> | 29 | #include <linux/types.h> |
30 | #include <linux/memblock.h> | 30 | #include <linux/memblock.h> |
31 | #include <linux/input.h> | ||
31 | 32 | ||
32 | #include <linux/usb/otg.h> | 33 | #include <linux/usb/otg.h> |
33 | #include <linux/usb/ulpi.h> | 34 | #include <linux/usb/ulpi.h> |
@@ -264,12 +265,19 @@ static struct mc13783_leds_platform_data moboard_leds = { | |||
264 | .tc2_period = MC13783_LED_PERIOD_10MS, | 265 | .tc2_period = MC13783_LED_PERIOD_10MS, |
265 | }; | 266 | }; |
266 | 267 | ||
268 | static struct mc13783_buttons_platform_data moboard_buttons = { | ||
269 | .b1on_flags = MC13783_BUTTON_DBNC_750MS | MC13783_BUTTON_ENABLE | | ||
270 | MC13783_BUTTON_POL_INVERT, | ||
271 | .b1on_key = KEY_POWER, | ||
272 | }; | ||
273 | |||
267 | static struct mc13xxx_platform_data moboard_pmic = { | 274 | static struct mc13xxx_platform_data moboard_pmic = { |
268 | .regulators = { | 275 | .regulators = { |
269 | .regulators = moboard_regulators, | 276 | .regulators = moboard_regulators, |
270 | .num_regulators = ARRAY_SIZE(moboard_regulators), | 277 | .num_regulators = ARRAY_SIZE(moboard_regulators), |
271 | }, | 278 | }, |
272 | .leds = &moboard_leds, | 279 | .leds = &moboard_leds, |
280 | .buttons = &moboard_buttons, | ||
273 | .flags = MC13XXX_USE_RTC | MC13XXX_USE_ADC, | 281 | .flags = MC13XXX_USE_RTC | MC13XXX_USE_ADC, |
274 | }; | 282 | }; |
275 | 283 | ||