diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmz72.c')
-rw-r--r-- | arch/arm/mach-pxa/palmz72.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index 3a7925ca3944..b78c6b4625e8 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/pda_power.h> | 27 | #include <linux/pda_power.h> |
28 | #include <linux/pwm_backlight.h> | 28 | #include <linux/pwm_backlight.h> |
29 | #include <linux/gpio.h> | 29 | #include <linux/gpio.h> |
30 | #include <linux/wm97xx_batt.h> | 30 | #include <linux/wm97xx.h> |
31 | #include <linux/power_supply.h> | 31 | #include <linux/power_supply.h> |
32 | #include <linux/usb/gpio_vbus.h> | 32 | #include <linux/usb/gpio_vbus.h> |
33 | 33 | ||
@@ -325,9 +325,9 @@ static struct platform_device power_supply = { | |||
325 | }; | 325 | }; |
326 | 326 | ||
327 | /****************************************************************************** | 327 | /****************************************************************************** |
328 | * WM97xx battery | 328 | * WM97xx audio, battery |
329 | ******************************************************************************/ | 329 | ******************************************************************************/ |
330 | static struct wm97xx_batt_info wm97xx_batt_pdata = { | 330 | static struct wm97xx_batt_pdata palmz72_batt_pdata = { |
331 | .batt_aux = WM97XX_AUX_ID3, | 331 | .batt_aux = WM97XX_AUX_ID3, |
332 | .temp_aux = WM97XX_AUX_ID2, | 332 | .temp_aux = WM97XX_AUX_ID2, |
333 | .charge_gpio = -1, | 333 | .charge_gpio = -1, |
@@ -341,9 +341,14 @@ static struct wm97xx_batt_info wm97xx_batt_pdata = { | |||
341 | .batt_name = "main-batt", | 341 | .batt_name = "main-batt", |
342 | }; | 342 | }; |
343 | 343 | ||
344 | /****************************************************************************** | 344 | static struct wm97xx_pdata palmz72_wm97xx_pdata = { |
345 | * aSoC audio | 345 | .batt_pdata = &palmz72_batt_pdata, |
346 | ******************************************************************************/ | 346 | }; |
347 | |||
348 | static pxa2xx_audio_ops_t palmz72_ac97_pdata = { | ||
349 | .codec_pdata = { &palmz72_wm97xx_pdata, }, | ||
350 | }; | ||
351 | |||
347 | static struct platform_device palmz72_asoc = { | 352 | static struct platform_device palmz72_asoc = { |
348 | .name = "palm27x-asoc", | 353 | .name = "palm27x-asoc", |
349 | .id = -1, | 354 | .id = -1, |
@@ -480,10 +485,9 @@ static void __init palmz72_init(void) | |||
480 | set_pxa_fb_info(&palmz72_lcd_screen); | 485 | set_pxa_fb_info(&palmz72_lcd_screen); |
481 | pxa_set_mci_info(&palmz72_mci_platform_data); | 486 | pxa_set_mci_info(&palmz72_mci_platform_data); |
482 | palmz72_udc_init(); | 487 | palmz72_udc_init(); |
483 | pxa_set_ac97_info(NULL); | 488 | pxa_set_ac97_info(&palmz72_ac97_pdata); |
484 | pxa_set_ficp_info(&palmz72_ficp_platform_data); | 489 | pxa_set_ficp_info(&palmz72_ficp_platform_data); |
485 | pxa_set_keypad_info(&palmz72_keypad_platform_data); | 490 | pxa_set_keypad_info(&palmz72_keypad_platform_data); |
486 | wm97xx_bat_set_pdata(&wm97xx_batt_pdata); | ||
487 | 491 | ||
488 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 492 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
489 | } | 493 | } |