Now only enable LEDs and SWs.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
bool "OMAP 2420 Apollon board"
depends on ARCH_OMAP2 && ARCH_OMAP24XX
+config MACH_OMAP_APOLLON_PLUS
+ bool "OMAP 2420 Apollon Plus board"
+ select MACH_OMAP_APOLLON
+ help
+ It contains more LEDs, SWs, and so on
+
+ Note that it is only tested with version 1.1 and more
+ We have to test the version 1.0
+
config MACH_OMAP_2430SDP
bool "OMAP 2430 SDP board"
depends on ARCH_OMAP2 && ARCH_OMAP24XX
#define SW_ENTER_GPIO16 16
#define SW_UP_GPIO17 17
#define SW_DOWN_GPIO58 58
+#define SW_LEFT_GPIO95 95
+#define SW_RIGHT_GPIO96 96
+#define SW_ESC_GPIO97 97
static struct gpio_keys_button apollon_gpio_keys_buttons[] = {
[0] = {
.gpio = SW_DOWN_GPIO58,
.desc = "down sw",
},
+#ifdef CONFIG_MACH_OMAP_APOLLON_PLUS
+ [3] = {
+ .code = KEY_LEFT,
+ .gpio = SW_LEFT_GPIO95,
+ .desc = "left sw",
+ },
+ [4] = {
+ .code = KEY_RIGHT,
+ .gpio = SW_RIGHT_GPIO96,
+ .desc = "right sw",
+ },
+ [5] = {
+ .code = KEY_ESC,
+ .gpio = SW_ESC_GPIO97,
+ .desc = "esc sw",
+ },
+#endif
};
static struct gpio_keys_platform_data apollon_gpio_keys = {
omap_cfg_reg(AA8_242X_GPIO58);
omap_request_gpio(SW_DOWN_GPIO58);
omap_set_gpio_direction(SW_DOWN_GPIO58, 1);
+#ifdef CONFIG_MACH_OMAP_APOLLON_PLUS
+ /* Left SW - P18 */
+ omap_cfg_reg(P18_24XX_GPIO95);
+ omap_request_gpio(SW_LEFT_GPIO95);
+ omap_set_gpio_direction(SW_LEFT_GPIO95, 1);
+ /* Right SW - M18 */
+ omap_cfg_reg(M18_24XX_GPIO96);
+ omap_request_gpio(SW_RIGHT_GPIO96);
+ omap_set_gpio_direction(SW_RIGHT_GPIO96, 1);
+ /* Esc SW - L14 */
+ omap_cfg_reg(L14_24XX_GPIO97);
+ omap_request_gpio(SW_ESC_GPIO97);
+ omap_set_gpio_direction(SW_ESC_GPIO97, 1);
+#endif
}
static int __init omap_apollon_keys_init(void)
#define LED0_GPIO13 13
#define LED1_GPIO14 14
#define LED2_GPIO15 15
+#define LED3_GPIO92 92
+#define LED4_GPIO93 93
#define APOLLON_FLASH_CS 0
#define APOLLON_ETH_CS 1
},
.gpio = LED2_GPIO15,
},
+#ifdef CONFIG_MACH_OMAP_APOLLON_PLUS
+ {
+ .cdev = {
+ .name = "apollon:led3",
+ },
+ .gpio = LED3_GPIO92,
+ },
+ {
+ .cdev = {
+ .name = "apollon:led4",
+ },
+ .gpio = LED4_GPIO93,
+ },
+#endif
};
static struct omap_led_platform_data apollon_led_data = {
omap_request_gpio(LED2_GPIO15);
omap_set_gpio_direction(LED2_GPIO15, 0);
omap_set_gpio_dataout(LED2_GPIO15, 0);
+#ifdef CONFIG_MACH_OMAP_APOLLON_PLUS
+ /* LED3 - M15 */
+ omap_cfg_reg(M15_24XX_GPIO92);
+ omap_request_gpio(LED3_GPIO92);
+ omap_set_gpio_direction(LED3_GPIO92, 0);
+ omap_set_gpio_dataout(LED3_GPIO92, 0);
+ /* LED4 - P20 */
+ omap_cfg_reg(P20_24XX_GPIO93);
+ omap_request_gpio(LED4_GPIO93);
+ omap_set_gpio_direction(LED4_GPIO93, 0);
+ omap_set_gpio_dataout(LED4_GPIO93, 0);
+#endif
}
static void __init apollon_usb_init(void)