diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2009-07-17 06:50:43 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-09-10 06:49:39 -0400 |
commit | c4bd01727380ce666aba987b3d7c0e838cb99bbe (patch) | |
tree | 5ee425da3645c1371b154bc47d1ae7ab3c81041b /arch/arm/mach-pxa/palmtx.c | |
parent | 2a23ec3679d84ac243add761fa3d3872cf6dcb11 (diff) |
[ARM] pxa: add gpio_pwdown(_inverted) into pxaficp_ir.c
and convert PXA-based devices to gpio_pwdown where possible.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/palmtx.c')
-rw-r--r-- | arch/arm/mach-pxa/palmtx.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index c0aca18b71bb..76a2b37eaf30 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -303,35 +303,9 @@ static struct platform_device palmtx_backlight = { | |||
303 | /****************************************************************************** | 303 | /****************************************************************************** |
304 | * IrDA | 304 | * IrDA |
305 | ******************************************************************************/ | 305 | ******************************************************************************/ |
306 | static int palmtx_irda_startup(struct device *dev) | ||
307 | { | ||
308 | int err; | ||
309 | err = gpio_request(GPIO_NR_PALMTX_IR_DISABLE, "IR DISABLE"); | ||
310 | if (err) | ||
311 | goto err; | ||
312 | err = gpio_direction_output(GPIO_NR_PALMTX_IR_DISABLE, 1); | ||
313 | if (err) | ||
314 | gpio_free(GPIO_NR_PALMTX_IR_DISABLE); | ||
315 | err: | ||
316 | return err; | ||
317 | } | ||
318 | |||
319 | static void palmtx_irda_shutdown(struct device *dev) | ||
320 | { | ||
321 | gpio_free(GPIO_NR_PALMTX_IR_DISABLE); | ||
322 | } | ||
323 | |||
324 | static void palmtx_irda_transceiver_mode(struct device *dev, int mode) | ||
325 | { | ||
326 | gpio_set_value(GPIO_NR_PALMTX_IR_DISABLE, mode & IR_OFF); | ||
327 | pxa2xx_transceiver_mode(dev, mode); | ||
328 | } | ||
329 | |||
330 | static struct pxaficp_platform_data palmtx_ficp_platform_data = { | 306 | static struct pxaficp_platform_data palmtx_ficp_platform_data = { |
331 | .startup = palmtx_irda_startup, | 307 | .gpio_pwdown = GPIO_NR_PALMTX_IR_DISABLE, |
332 | .shutdown = palmtx_irda_shutdown, | 308 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
333 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
334 | .transceiver_mode = palmtx_irda_transceiver_mode, | ||
335 | }; | 309 | }; |
336 | 310 | ||
337 | /****************************************************************************** | 311 | /****************************************************************************** |