summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/tosa.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-07-02 13:54:46 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-07-12 21:43:45 +0100
commit0fc3ff31f1f0fa023bb61e9336a7aa3591f2dffe (patch)
treeb79db8f3e7e1d063115ba62f8ab2a03633a50ae7 /arch/arm/mach-pxa/tosa.c
parent5a58d4bb66b1d68e4b9319dd5b89078bad2a7f64 (diff)
[ARM] 5146/1: pxa2xx: convert all boards to call pxa2xx_transceiver_mode helper
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/tosa.c')
-rw-r--r--arch/arm/mach-pxa/tosa.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
index 2d49de572ba..fea17ce6b55 100644
--- a/arch/arm/mach-pxa/tosa.c
+++ b/arch/arm/mach-pxa/tosa.c
@@ -149,19 +149,12 @@ static unsigned long tosa_pin_config[] = {
GPIO81_SSP2_CLK_OUT,
GPIO82_SSP2_FRM_OUT,
GPIO83_SSP2_TXD,
-};
-
-static unsigned long tosa_pin_irda_off[] = {
- GPIO46_STUART_RXD,
- GPIO47_GPIO | MFP_LPM_DRIVE_LOW,
-};
-static unsigned long tosa_pin_irda_on[] = {
- GPIO46_STUART_RXD,
- GPIO47_STUART_TXD,
+ /* IrDA is managed in other way */
+ GPIO46_GPIO,
+ GPIO47_GPIO,
};
-
/*
* SCOOP Device
*/
@@ -360,10 +353,10 @@ static void tosa_irda_transceiver_mode(struct device *dev, int mode)
{
if (mode & IR_OFF) {
gpio_set_value(TOSA_GPIO_IR_POWERDWN, 0);
- pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_irda_off));
+ pxa2xx_transceiver_mode(dev, mode);
gpio_direction_output(TOSA_GPIO_IRDA_TX, 0);
} else {
- pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_irda_on));
+ pxa2xx_transceiver_mode(dev, mode);
gpio_set_value(TOSA_GPIO_IR_POWERDWN, 1);
}
}
@@ -775,7 +768,6 @@ static void __init tosa_init(void)
int dummy;
pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_config));
- pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_irda_off));
gpio_set_wake(MFP_PIN_GPIO1, 1);
/* We can't pass to gpio-keys since it will drop the Reset altfunc */