|
@@ -292,15 +292,6 @@ static struct platform_device h2_kp_device = {
|
|
|
|
|
|
#define H2_IRDA_FIRSEL_GPIO_PIN 17
|
|
|
|
|
|
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
|
|
|
-static int h2_transceiver_mode(struct device *dev, int state)
|
|
|
-{
|
|
|
- /* SIR when low, else MIR/FIR when HIGH */
|
|
|
- gpio_set_value(H2_IRDA_FIRSEL_GPIO_PIN, !(state & IR_SIRMODE));
|
|
|
- return 0;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
static struct omap_irda_config h2_irda_data = {
|
|
|
.transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,
|
|
|
.rx_channel = OMAP_DMA_UART3_RX,
|
|
@@ -450,15 +441,6 @@ static void __init h2_init(void)
|
|
|
omap_cfg_reg(E19_1610_KBR4);
|
|
|
omap_cfg_reg(N19_1610_KBR5);
|
|
|
|
|
|
- /* Irda */
|
|
|
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
|
|
|
- omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, FUNC_MUX_CTRL_A);
|
|
|
- if (gpio_request(H2_IRDA_FIRSEL_GPIO_PIN, "IRDA mode") < 0)
|
|
|
- BUG();
|
|
|
- gpio_direction_output(H2_IRDA_FIRSEL_GPIO_PIN, 0);
|
|
|
- h2_irda_data.transceiver_mode = h2_transceiver_mode;
|
|
|
-#endif
|
|
|
-
|
|
|
platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices));
|
|
|
omap_board_config = h2_config;
|
|
|
omap_board_config_size = ARRAY_SIZE(h2_config);
|