diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index acb4e77b39ef..16aebfb8a7ec 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -138,17 +138,14 @@ static struct lp5523_platform_data rx51_lp5523_platform_data = { | |||
138 | 138 | ||
139 | static struct omap2_mcspi_device_config wl1251_mcspi_config = { | 139 | static struct omap2_mcspi_device_config wl1251_mcspi_config = { |
140 | .turbo_mode = 0, | 140 | .turbo_mode = 0, |
141 | .single_channel = 1, | ||
142 | }; | 141 | }; |
143 | 142 | ||
144 | static struct omap2_mcspi_device_config mipid_mcspi_config = { | 143 | static struct omap2_mcspi_device_config mipid_mcspi_config = { |
145 | .turbo_mode = 0, | 144 | .turbo_mode = 0, |
146 | .single_channel = 1, | ||
147 | }; | 145 | }; |
148 | 146 | ||
149 | static struct omap2_mcspi_device_config tsc2005_mcspi_config = { | 147 | static struct omap2_mcspi_device_config tsc2005_mcspi_config = { |
150 | .turbo_mode = 0, | 148 | .turbo_mode = 0, |
151 | .single_channel = 1, | ||
152 | }; | 149 | }; |
153 | 150 | ||
154 | static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { | 151 | static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { |
@@ -1105,6 +1102,11 @@ static struct tsc2005_platform_data tsc2005_pdata = { | |||
1105 | .esd_timeout_ms = 8000, | 1102 | .esd_timeout_ms = 8000, |
1106 | }; | 1103 | }; |
1107 | 1104 | ||
1105 | static struct gpio rx51_tsc2005_gpios[] __initdata = { | ||
1106 | { RX51_TSC2005_IRQ_GPIO, GPIOF_IN, "tsc2005 IRQ" }, | ||
1107 | { RX51_TSC2005_RESET_GPIO, GPIOF_OUT_INIT_HIGH, "tsc2005 reset" }, | ||
1108 | }; | ||
1109 | |||
1108 | static void rx51_tsc2005_set_reset(bool enable) | 1110 | static void rx51_tsc2005_set_reset(bool enable) |
1109 | { | 1111 | { |
1110 | gpio_set_value(RX51_TSC2005_RESET_GPIO, enable); | 1112 | gpio_set_value(RX51_TSC2005_RESET_GPIO, enable); |
@@ -1114,20 +1116,18 @@ static void __init rx51_init_tsc2005(void) | |||
1114 | { | 1116 | { |
1115 | int r; | 1117 | int r; |
1116 | 1118 | ||
1117 | r = gpio_request_one(RX51_TSC2005_IRQ_GPIO, GPIOF_IN, "tsc2005 IRQ"); | 1119 | omap_mux_init_gpio(RX51_TSC2005_RESET_GPIO, OMAP_PIN_OUTPUT); |
1118 | if (r < 0) { | 1120 | omap_mux_init_gpio(RX51_TSC2005_IRQ_GPIO, OMAP_PIN_INPUT_PULLUP); |
1119 | printk(KERN_ERR "unable to get %s GPIO\n", "tsc2005 IRQ"); | ||
1120 | rx51_peripherals_spi_board_info[RX51_SPI_TSC2005].irq = 0; | ||
1121 | } | ||
1122 | 1121 | ||
1123 | r = gpio_request_one(RX51_TSC2005_RESET_GPIO, GPIOF_OUT_INIT_HIGH, | 1122 | r = gpio_request_array(rx51_tsc2005_gpios, |
1124 | "tsc2005 reset"); | 1123 | ARRAY_SIZE(rx51_tsc2005_gpios)); |
1125 | if (r >= 0) { | 1124 | if (r < 0) { |
1126 | tsc2005_pdata.set_reset = rx51_tsc2005_set_reset; | 1125 | printk(KERN_ERR "tsc2005 board initialization failed\n"); |
1127 | } else { | ||
1128 | printk(KERN_ERR "unable to get %s GPIO\n", "tsc2005 reset"); | ||
1129 | tsc2005_pdata.esd_timeout_ms = 0; | 1126 | tsc2005_pdata.esd_timeout_ms = 0; |
1127 | return; | ||
1130 | } | 1128 | } |
1129 | |||
1130 | tsc2005_pdata.set_reset = rx51_tsc2005_set_reset; | ||
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | void __init rx51_peripherals_init(void) | 1133 | void __init rx51_peripherals_init(void) |
@@ -1145,7 +1145,7 @@ void __init rx51_peripherals_init(void) | |||
1145 | 1145 | ||
1146 | partition = omap_mux_get("core"); | 1146 | partition = omap_mux_get("core"); |
1147 | if (partition) | 1147 | if (partition) |
1148 | omap2_hsmmc_init(mmc); | 1148 | omap_hsmmc_init(mmc); |
1149 | 1149 | ||
1150 | rx51_charger_init(); | 1150 | rx51_charger_init(); |
1151 | } | 1151 | } |