diff options
Diffstat (limited to 'arch/arm/mach-pxa/pcm027.c')
-rw-r--r-- | arch/arm/mach-pxa/pcm027.c | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/pcm027.c b/arch/arm/mach-pxa/pcm027.c index 730b9f6ede1d..36135a02fdc7 100644 --- a/arch/arm/mach-pxa/pcm027.c +++ b/arch/arm/mach-pxa/pcm027.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
32 | #include <mach/hardware.h> | 32 | #include <mach/hardware.h> |
33 | #include <mach/pxa-regs.h> | 33 | #include <mach/pxa-regs.h> |
34 | #include <mach/pxa2xx-gpio.h> | 34 | #include <mach/mfp-pxa27x.h> |
35 | #include <mach/pxa2xx-regs.h> | 35 | #include <mach/pxa2xx-regs.h> |
36 | #include <mach/pxa2xx_spi.h> | 36 | #include <mach/pxa2xx_spi.h> |
37 | #include <mach/pcm027.h> | 37 | #include <mach/pcm027.h> |
@@ -86,6 +86,28 @@ | |||
86 | * *) CPU internal use only | 86 | * *) CPU internal use only |
87 | */ | 87 | */ |
88 | 88 | ||
89 | static unsigned long pcm027_pin_config[] __initdata = { | ||
90 | /* Chip Selects */ | ||
91 | GPIO20_nSDCS_2, | ||
92 | GPIO21_nSDCS_3, | ||
93 | GPIO15_nCS_1, | ||
94 | GPIO78_nCS_2, | ||
95 | GPIO80_nCS_4, | ||
96 | GPIO33_nCS_5, /* Ethernet */ | ||
97 | |||
98 | /* I2C */ | ||
99 | GPIO117_I2C_SCL, | ||
100 | GPIO118_I2C_SDA, | ||
101 | |||
102 | /* GPIO */ | ||
103 | GPIO52_GPIO, /* IRQ from network controller */ | ||
104 | #ifdef CONFIG_LEDS_GPIO | ||
105 | GPIO90_GPIO, /* PCM027_LED_CPU */ | ||
106 | GPIO91_GPIO, /* PCM027_LED_HEART_BEAT */ | ||
107 | #endif | ||
108 | GPIO114_GPIO, /* IRQ from CAN controller */ | ||
109 | }; | ||
110 | |||
89 | /* | 111 | /* |
90 | * SMC91x network controller specific stuff | 112 | * SMC91x network controller specific stuff |
91 | */ | 113 | */ |
@@ -206,13 +228,9 @@ static void __init pcm027_init(void) | |||
206 | */ | 228 | */ |
207 | ARB_CNTRL = ARB_CORE_PARK | 0x234; | 229 | ARB_CNTRL = ARB_CORE_PARK | 0x234; |
208 | 230 | ||
209 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 231 | pxa2xx_mfp_config(pcm027_pin_config, ARRAY_SIZE(pcm027_pin_config)); |
210 | 232 | ||
211 | /* LEDs (on demand only) */ | 233 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
212 | #ifdef CONFIG_LEDS_GPIO | ||
213 | pxa_gpio_mode(PCM027_LED_CPU | GPIO_OUT); | ||
214 | pxa_gpio_mode(PCM027_LED_HEARD_BEAT | GPIO_OUT); | ||
215 | #endif /* CONFIG_LEDS_GPIO */ | ||
216 | 234 | ||
217 | /* at last call the baseboard to initialize itself */ | 235 | /* at last call the baseboard to initialize itself */ |
218 | #ifdef CONFIG_MACH_PCM990_BASEBOARD | 236 | #ifdef CONFIG_MACH_PCM990_BASEBOARD |