diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-07-02 08:54:46 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-12 16:43:45 -0400 |
commit | 0fc3ff31f1f0fa023bb61e9336a7aa3591f2dffe (patch) | |
tree | b79db8f3e7e1d063115ba62f8ab2a03633a50ae7 /arch/arm | |
parent | 5a58d4bb66b1d68e4b9319dd5b89078bad2a7f64 (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')
-rw-r--r-- | arch/arm/mach-pxa/corgi.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/lubbock.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/mainstone.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 18 | ||||
-rw-r--r-- | arch/arm/mach-pxa/trizeps4.c | 1 |
8 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index b37671b71886..e58504edb140 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -465,6 +465,7 @@ static void corgi_irda_transceiver_mode(struct device *dev, int mode) | |||
465 | GPSR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); | 465 | GPSR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); |
466 | else | 466 | else |
467 | GPCR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); | 467 | GPCR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); |
468 | pxa2xx_transceiver_mode(dev, mode); | ||
468 | } | 469 | } |
469 | 470 | ||
470 | static struct pxaficp_platform_data corgi_ficp_platform_data = { | 471 | static struct pxaficp_platform_data corgi_ficp_platform_data = { |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index e041cceab16b..3daffbe7bb86 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -462,6 +462,7 @@ static void lubbock_irda_transceiver_mode(struct device *dev, int mode) | |||
462 | } else if (mode & IR_FIRMODE) { | 462 | } else if (mode & IR_FIRMODE) { |
463 | LUB_MISC_WR |= 1 << 4; | 463 | LUB_MISC_WR |= 1 << 4; |
464 | } | 464 | } |
465 | pxa2xx_transceiver_mode(dev, mode); | ||
465 | local_irq_restore(flags); | 466 | local_irq_restore(flags); |
466 | } | 467 | } |
467 | 468 | ||
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index bad5821be41a..c9d274f0048f 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -132,6 +132,7 @@ static unsigned long magician_pin_config[] __initdata = { | |||
132 | static void magician_irda_transceiver_mode(struct device *dev, int mode) | 132 | static void magician_irda_transceiver_mode(struct device *dev, int mode) |
133 | { | 133 | { |
134 | gpio_set_value(GPIO83_MAGICIAN_nIR_EN, mode & IR_OFF); | 134 | gpio_set_value(GPIO83_MAGICIAN_nIR_EN, mode & IR_OFF); |
135 | pxa2xx_transceiver_mode(dev, mode); | ||
135 | } | 136 | } |
136 | 137 | ||
137 | static struct pxaficp_platform_data magician_ficp_info = { | 138 | static struct pxaficp_platform_data magician_ficp_info = { |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index f2e9e7c4da8e..8cd3f81558cb 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -455,6 +455,7 @@ static void mainstone_irda_transceiver_mode(struct device *dev, int mode) | |||
455 | } else if (mode & IR_FIRMODE) { | 455 | } else if (mode & IR_FIRMODE) { |
456 | MST_MSCWR1 |= MST_MSCWR1_IRDA_FIR; | 456 | MST_MSCWR1 |= MST_MSCWR1_IRDA_FIR; |
457 | } | 457 | } |
458 | pxa2xx_transceiver_mode(dev, mode); | ||
458 | if (mode & IR_OFF) { | 459 | if (mode & IR_OFF) { |
459 | MST_MSCWR1 = (MST_MSCWR1 & ~MST_MSCWR1_IRDA_MASK) | MST_MSCWR1_IRDA_OFF; | 460 | MST_MSCWR1 = (MST_MSCWR1 & ~MST_MSCWR1_IRDA_MASK) | MST_MSCWR1_IRDA_OFF; |
460 | } else { | 461 | } else { |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index f81c10cafd48..39612cfa0b4d 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -267,6 +267,7 @@ static void poodle_irda_transceiver_mode(struct device *dev, int mode) | |||
267 | } else { | 267 | } else { |
268 | GPCR(POODLE_GPIO_IR_ON) = GPIO_bit(POODLE_GPIO_IR_ON); | 268 | GPCR(POODLE_GPIO_IR_ON) = GPIO_bit(POODLE_GPIO_IR_ON); |
269 | } | 269 | } |
270 | pxa2xx_transceiver_mode(dev, mode); | ||
270 | } | 271 | } |
271 | 272 | ||
272 | static struct pxaficp_platform_data poodle_ficp_platform_data = { | 273 | static struct pxaficp_platform_data poodle_ficp_platform_data = { |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index d58c3e906a93..762249c03ded 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -451,6 +451,7 @@ static void spitz_irda_transceiver_mode(struct device *dev, int mode) | |||
451 | set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); | 451 | set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); |
452 | else | 452 | else |
453 | reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); | 453 | reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); |
454 | pxa2xx_transceiver_mode(dev, mode); | ||
454 | } | 455 | } |
455 | 456 | ||
456 | #ifdef CONFIG_MACH_AKITA | 457 | #ifdef CONFIG_MACH_AKITA |
@@ -460,6 +461,7 @@ static void akita_irda_transceiver_mode(struct device *dev, int mode) | |||
460 | akita_set_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); | 461 | akita_set_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); |
461 | else | 462 | else |
462 | akita_reset_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); | 463 | akita_reset_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); |
464 | pxa2xx_transceiver_mode(dev, mode); | ||
463 | } | 465 | } |
464 | #endif | 466 | #endif |
465 | 467 | ||
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 2d49de572ba1..fea17ce6b55f 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[] = { | |||
149 | GPIO81_SSP2_CLK_OUT, | 149 | GPIO81_SSP2_CLK_OUT, |
150 | GPIO82_SSP2_FRM_OUT, | 150 | GPIO82_SSP2_FRM_OUT, |
151 | GPIO83_SSP2_TXD, | 151 | GPIO83_SSP2_TXD, |
152 | }; | ||
153 | |||
154 | static unsigned long tosa_pin_irda_off[] = { | ||
155 | GPIO46_STUART_RXD, | ||
156 | GPIO47_GPIO | MFP_LPM_DRIVE_LOW, | ||
157 | }; | ||
158 | 152 | ||
159 | static unsigned long tosa_pin_irda_on[] = { | 153 | /* IrDA is managed in other way */ |
160 | GPIO46_STUART_RXD, | 154 | GPIO46_GPIO, |
161 | GPIO47_STUART_TXD, | 155 | GPIO47_GPIO, |
162 | }; | 156 | }; |
163 | 157 | ||
164 | |||
165 | /* | 158 | /* |
166 | * SCOOP Device | 159 | * SCOOP Device |
167 | */ | 160 | */ |
@@ -360,10 +353,10 @@ static void tosa_irda_transceiver_mode(struct device *dev, int mode) | |||
360 | { | 353 | { |
361 | if (mode & IR_OFF) { | 354 | if (mode & IR_OFF) { |
362 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, 0); | 355 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, 0); |
363 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_irda_off)); | 356 | pxa2xx_transceiver_mode(dev, mode); |
364 | gpio_direction_output(TOSA_GPIO_IRDA_TX, 0); | 357 | gpio_direction_output(TOSA_GPIO_IRDA_TX, 0); |
365 | } else { | 358 | } else { |
366 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_irda_on)); | 359 | pxa2xx_transceiver_mode(dev, mode); |
367 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, 1); | 360 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, 1); |
368 | } | 361 | } |
369 | } | 362 | } |
@@ -775,7 +768,6 @@ static void __init tosa_init(void) | |||
775 | int dummy; | 768 | int dummy; |
776 | 769 | ||
777 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_config)); | 770 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_config)); |
778 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_irda_off)); | ||
779 | gpio_set_wake(MFP_PIN_GPIO1, 1); | 771 | gpio_set_wake(MFP_PIN_GPIO1, 1); |
780 | /* We can't pass to gpio-keys since it will drop the Reset altfunc */ | 772 | /* We can't pass to gpio-keys since it will drop the Reset altfunc */ |
781 | 773 | ||
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 61e244023089..dee7bf36f013 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -254,6 +254,7 @@ static void board_irda_mode(struct device *dev, int mode) | |||
254 | /* Fast mode */ | 254 | /* Fast mode */ |
255 | trizeps_conxs_ircr |= ConXS_IRCR_MODE; | 255 | trizeps_conxs_ircr |= ConXS_IRCR_MODE; |
256 | } | 256 | } |
257 | pxa2xx_transceiver_mode(dev, mode); | ||
257 | if (mode & IR_OFF) { | 258 | if (mode & IR_OFF) { |
258 | trizeps_conxs_ircr |= ConXS_IRCR_SD; | 259 | trizeps_conxs_ircr |= ConXS_IRCR_SD; |
259 | } else { | 260 | } else { |