|
@@ -281,3 +281,13 @@ static struct platform_device ek_button_device = {
|
|
|
};
|
|
|
|
|
|
static void __init ek_add_device_buttons(void)
|
|
|
+{
|
|
|
+ at91_set_gpio_input(AT91_PIN_PA30, 1); /* btn3 */
|
|
|
+ at91_set_deglitch(AT91_PIN_PA30, 1);
|
|
|
+ at91_set_gpio_input(AT91_PIN_PA31, 1); /* btn4 */
|
|
|
+ at91_set_deglitch(AT91_PIN_PA31, 1);
|
|
|
+
|
|
|
+ platform_device_register(&ek_button_device);
|
|
|
+}
|
|
|
+#else
|
|
|
+static void __init ek_add_device_buttons(void) {}
|