aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmld.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/palmld.c')
-rw-r--r--arch/arm/mach-pxa/palmld.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/palmld.c b/arch/arm/mach-pxa/palmld.c
index 1963819dba98..83a1a552cce4 100644
--- a/arch/arm/mach-pxa/palmld.c
+++ b/arch/arm/mach-pxa/palmld.c
@@ -22,7 +22,7 @@
22#include <linux/pda_power.h> 22#include <linux/pda_power.h>
23#include <linux/pwm_backlight.h> 23#include <linux/pwm_backlight.h>
24#include <linux/gpio.h> 24#include <linux/gpio.h>
25#include <linux/wm97xx_batt.h> 25#include <linux/wm97xx.h>
26#include <linux/power_supply.h> 26#include <linux/power_supply.h>
27#include <linux/sysdev.h> 27#include <linux/sysdev.h>
28#include <linux/mtd/mtd.h> 28#include <linux/mtd/mtd.h>
@@ -387,9 +387,9 @@ static struct platform_device power_supply = {
387}; 387};
388 388
389/****************************************************************************** 389/******************************************************************************
390 * WM97xx battery 390 * WM97xx audio, battery
391 ******************************************************************************/ 391 ******************************************************************************/
392static struct wm97xx_batt_info wm97xx_batt_pdata = { 392static struct wm97xx_batt_pdata palmld_batt_pdata = {
393 .batt_aux = WM97XX_AUX_ID3, 393 .batt_aux = WM97XX_AUX_ID3,
394 .temp_aux = WM97XX_AUX_ID2, 394 .temp_aux = WM97XX_AUX_ID2,
395 .charge_gpio = -1, 395 .charge_gpio = -1,
@@ -403,15 +403,17 @@ static struct wm97xx_batt_info wm97xx_batt_pdata = {
403 .batt_name = "main-batt", 403 .batt_name = "main-batt",
404}; 404};
405 405
406/****************************************************************************** 406static struct wm97xx_pdata palmld_wm97xx_pdata = {
407 * aSoC audio 407 .batt_pdata = &palmld_batt_pdata,
408 ******************************************************************************/
409static struct palm27x_asoc_info palmld_asoc_pdata = {
410 .jack_gpio = GPIO_NR_PALMLD_EARPHONE_DETECT,
411}; 408};
412 409
413static pxa2xx_audio_ops_t palmld_ac97_pdata = { 410static pxa2xx_audio_ops_t palmld_ac97_pdata = {
414 .reset_gpio = 95, 411 .reset_gpio = 95,
412 .codec_pdata = { &palmld_wm97xx_pdata, },
413};
414
415static struct palm27x_asoc_info palmld_asoc_pdata = {
416 .jack_gpio = GPIO_NR_PALMLD_EARPHONE_DETECT,
415}; 417};
416 418
417static struct platform_device palmld_asoc = { 419static struct platform_device palmld_asoc = {
@@ -521,7 +523,6 @@ static void __init palmld_init(void)
521 pxa_set_ac97_info(&palmld_ac97_pdata); 523 pxa_set_ac97_info(&palmld_ac97_pdata);
522 pxa_set_ficp_info(&palmld_ficp_platform_data); 524 pxa_set_ficp_info(&palmld_ficp_platform_data);
523 pxa_set_keypad_info(&palmld_keypad_platform_data); 525 pxa_set_keypad_info(&palmld_keypad_platform_data);
524 wm97xx_bat_set_pdata(&wm97xx_batt_pdata);
525 526
526 platform_add_devices(devices, ARRAY_SIZE(devices)); 527 platform_add_devices(devices, ARRAY_SIZE(devices));
527} 528}