diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-01-04 04:00:13 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-03-01 18:40:48 -0500 |
commit | c11b6a420b092a576e003bbb520392268338d97b (patch) | |
tree | c181d2b1b4539db3240c63ab9d7bc5b31b3f33e4 /arch/arm/mach-pxa/balloon3.c | |
parent | fb1bf8cd13bfa7ed0364ab0d82f717fc020d35f6 (diff) |
[ARM] pxa: add the missing AC97 pin configurations
Missing AC97 pin configurations are added where pxa_set_ac97_info() are
called for all pxa25x/pxa27x platforms. Where no exact configuration is
provided, use the default as in sound/arm/pxa2xx-ac97-lib.c
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/balloon3.c')
-rw-r--r-- | arch/arm/mach-pxa/balloon3.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index 6f813aa4c79c..f3b5ace815e5 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -132,6 +132,14 @@ static void __init balloon3_init_irq(void) | |||
132 | "enabled\n", __func__, BALLOON3_AUX_NIRQ); | 132 | "enabled\n", __func__, BALLOON3_AUX_NIRQ); |
133 | } | 133 | } |
134 | 134 | ||
135 | static unsigned long balloon3_ac97_pin_config[] = { | ||
136 | GPIO28_AC97_BITCLK, | ||
137 | GPIO29_AC97_SDATA_IN_0, | ||
138 | GPIO30_AC97_SDATA_OUT, | ||
139 | GPIO31_AC97_SYNC, | ||
140 | GPIO113_AC97_nRESET, | ||
141 | }; | ||
142 | |||
135 | static void balloon3_backlight_power(int on) | 143 | static void balloon3_backlight_power(int on) |
136 | { | 144 | { |
137 | pr_debug("%s: power is %s\n", __func__, on ? "on" : "off"); | 145 | pr_debug("%s: power is %s\n", __func__, on ? "on" : "off"); |
@@ -292,8 +300,10 @@ static void __init balloon3_init(void) | |||
292 | pxa_set_stuart_info(NULL); | 300 | pxa_set_stuart_info(NULL); |
293 | 301 | ||
294 | pxa_set_i2c_info(NULL); | 302 | pxa_set_i2c_info(NULL); |
295 | if (balloon3_has(BALLOON3_FEATURE_AUDIO)) | 303 | if (balloon3_has(BALLOON3_FEATURE_AUDIO)) { |
304 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_ac97_pin_config)); | ||
296 | pxa_set_ac97_info(NULL); | 305 | pxa_set_ac97_info(NULL); |
306 | } | ||
297 | 307 | ||
298 | if (balloon3_has(BALLOON3_FEATURE_TOPPOLY)) { | 308 | if (balloon3_has(BALLOON3_FEATURE_TOPPOLY)) { |
299 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_lcd_pin_config)); | 309 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_lcd_pin_config)); |