diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmtx.c')
-rw-r--r-- | arch/arm/mach-pxa/palmtx.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index 14393d0ad8b8..e99a893c58a7 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <mach/irda.h> | 40 | #include <mach/irda.h> |
41 | #include <mach/pxa27x_keypad.h> | 41 | #include <mach/pxa27x_keypad.h> |
42 | #include <mach/udc.h> | 42 | #include <mach/udc.h> |
43 | #include <mach/palmasoc.h> | ||
43 | 44 | ||
44 | #include "generic.h" | 45 | #include "generic.h" |
45 | #include "devices.h" | 46 | #include "devices.h" |
@@ -64,6 +65,7 @@ static unsigned long palmtx_pin_config[] __initdata = { | |||
64 | GPIO29_AC97_SDATA_IN_0, | 65 | GPIO29_AC97_SDATA_IN_0, |
65 | GPIO30_AC97_SDATA_OUT, | 66 | GPIO30_AC97_SDATA_OUT, |
66 | GPIO31_AC97_SYNC, | 67 | GPIO31_AC97_SYNC, |
68 | GPIO89_AC97_SYSCLK, | ||
67 | GPIO95_AC97_nRESET, | 69 | GPIO95_AC97_nRESET, |
68 | 70 | ||
69 | /* IrDA */ | 71 | /* IrDA */ |
@@ -434,6 +436,25 @@ static struct wm97xx_batt_info wm97xx_batt_pdata = { | |||
434 | }; | 436 | }; |
435 | 437 | ||
436 | /****************************************************************************** | 438 | /****************************************************************************** |
439 | * aSoC audio | ||
440 | ******************************************************************************/ | ||
441 | static struct palm27x_asoc_info palmtx_asoc_pdata = { | ||
442 | .jack_gpio = GPIO_NR_PALMTX_EARPHONE_DETECT, | ||
443 | }; | ||
444 | |||
445 | static pxa2xx_audio_ops_t palmtx_ac97_pdata = { | ||
446 | .reset_gpio = 95, | ||
447 | }; | ||
448 | |||
449 | static struct platform_device palmtx_asoc = { | ||
450 | .name = "palm27x-asoc", | ||
451 | .id = -1, | ||
452 | .dev = { | ||
453 | .platform_data = &palmtx_asoc_pdata, | ||
454 | }, | ||
455 | }; | ||
456 | |||
457 | /****************************************************************************** | ||
437 | * Framebuffer | 458 | * Framebuffer |
438 | ******************************************************************************/ | 459 | ******************************************************************************/ |
439 | static struct pxafb_mode_info palmtx_lcd_modes[] = { | 460 | static struct pxafb_mode_info palmtx_lcd_modes[] = { |
@@ -495,6 +516,7 @@ static struct platform_device *devices[] __initdata = { | |||
495 | #endif | 516 | #endif |
496 | &palmtx_backlight, | 517 | &palmtx_backlight, |
497 | &power_supply, | 518 | &power_supply, |
519 | &palmtx_asoc, | ||
498 | }; | 520 | }; |
499 | 521 | ||
500 | static struct map_desc palmtx_io_desc[] __initdata = { | 522 | static struct map_desc palmtx_io_desc[] __initdata = { |
@@ -529,8 +551,8 @@ static void __init palmtx_init(void) | |||
529 | set_pxa_fb_info(&palmtx_lcd_screen); | 551 | set_pxa_fb_info(&palmtx_lcd_screen); |
530 | pxa_set_mci_info(&palmtx_mci_platform_data); | 552 | pxa_set_mci_info(&palmtx_mci_platform_data); |
531 | palmtx_udc_init(); | 553 | palmtx_udc_init(); |
554 | pxa_set_ac97_info(&palmtx_ac97_pdata); | ||
532 | pxa_set_udc_info(&palmtx_udc_info); | 555 | pxa_set_udc_info(&palmtx_udc_info); |
533 | pxa_set_ac97_info(NULL); | ||
534 | pxa_set_ficp_info(&palmtx_ficp_platform_data); | 556 | pxa_set_ficp_info(&palmtx_ficp_platform_data); |
535 | pxa_set_keypad_info(&palmtx_keypad_platform_data); | 557 | pxa_set_keypad_info(&palmtx_keypad_platform_data); |
536 | wm97xx_bat_set_pdata(&wm97xx_batt_pdata); | 558 | wm97xx_bat_set_pdata(&wm97xx_batt_pdata); |