diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2009-04-23 05:27:11 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-06-04 22:41:54 -0400 |
commit | 37330efd4abb474b3fdfacea68beb37cf67564ed (patch) | |
tree | 520b3c8cc2f11bfb7cdc17b4c7b5d018728dcae3 | |
parent | 8768dc9b75efa43e612f6f520cf76a89bbab69d3 (diff) |
[ARM] pxa/palm: Add Palm27x aSoC driver to PalmTE2
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
-rw-r--r-- | arch/arm/mach-pxa/palmte2.c | 18 | ||||
-rw-r--r-- | sound/soc/pxa/Kconfig | 7 | ||||
-rw-r--r-- | sound/soc/pxa/palm27x.c | 2 |
3 files changed, 23 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index b09a9efeb77c..d823b09801df 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <mach/mfp-pxa25x.h> | 38 | #include <mach/mfp-pxa25x.h> |
39 | #include <mach/irda.h> | 39 | #include <mach/irda.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | #include <mach/palmasoc.h> | ||
41 | 42 | ||
42 | #include "generic.h" | 43 | #include "generic.h" |
43 | #include "devices.h" | 44 | #include "devices.h" |
@@ -108,6 +109,7 @@ static unsigned long palmte2_pin_config[] __initdata = { | |||
108 | GPIO1_RST, /* reset */ | 109 | GPIO1_RST, /* reset */ |
109 | GPIO4_GPIO, /* Hotsync button */ | 110 | GPIO4_GPIO, /* Hotsync button */ |
110 | GPIO9_GPIO, /* power detect */ | 111 | GPIO9_GPIO, /* power detect */ |
112 | GPIO15_GPIO, /* earphone detect */ | ||
111 | GPIO37_GPIO, /* LCD power */ | 113 | GPIO37_GPIO, /* LCD power */ |
112 | GPIO56_GPIO, /* Backlight power */ | 114 | GPIO56_GPIO, /* Backlight power */ |
113 | }; | 115 | }; |
@@ -403,6 +405,21 @@ static struct wm97xx_batt_info wm97xx_batt_pdata = { | |||
403 | }; | 405 | }; |
404 | 406 | ||
405 | /****************************************************************************** | 407 | /****************************************************************************** |
408 | * aSoC audio | ||
409 | ******************************************************************************/ | ||
410 | static struct palm27x_asoc_info palmte2_asoc_pdata = { | ||
411 | .jack_gpio = GPIO_NR_PALMTE2_EARPHONE_DETECT, | ||
412 | }; | ||
413 | |||
414 | static struct platform_device palmte2_asoc = { | ||
415 | .name = "palm27x-asoc", | ||
416 | .id = -1, | ||
417 | .dev = { | ||
418 | .platform_data = &palmte2_asoc_pdata, | ||
419 | }, | ||
420 | }; | ||
421 | |||
422 | /****************************************************************************** | ||
406 | * Framebuffer | 423 | * Framebuffer |
407 | ******************************************************************************/ | 424 | ******************************************************************************/ |
408 | static struct pxafb_mode_info palmte2_lcd_modes[] = { | 425 | static struct pxafb_mode_info palmte2_lcd_modes[] = { |
@@ -437,6 +454,7 @@ static struct platform_device *devices[] __initdata = { | |||
437 | #endif | 454 | #endif |
438 | &palmte2_backlight, | 455 | &palmte2_backlight, |
439 | &power_supply, | 456 | &power_supply, |
457 | &palmte2_asoc, | ||
440 | &palmte2_gpio_vbus, | 458 | &palmte2_gpio_vbus, |
441 | }; | 459 | }; |
442 | 460 | ||
diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index ad8a10fe6298..96b2699abf61 100644 --- a/sound/soc/pxa/Kconfig +++ b/sound/soc/pxa/Kconfig | |||
@@ -98,13 +98,14 @@ config SND_PXA2XX_SOC_EM_X270 | |||
98 | CompuLab EM-x270. | 98 | CompuLab EM-x270. |
99 | 99 | ||
100 | config SND_PXA2XX_SOC_PALM27X | 100 | config SND_PXA2XX_SOC_PALM27X |
101 | bool "SoC Audio support for Palm T|X, T5 and LifeDrive" | 101 | bool "SoC Audio support for Palm T|X, T5, E2 and LifeDrive" |
102 | depends on SND_PXA2XX_SOC && (MACH_PALMLD || MACH_PALMTX || MACH_PALMT5) | 102 | depends on SND_PXA2XX_SOC && (MACH_PALMLD || MACH_PALMTX || \ |
103 | MACH_PALMT5 || MACH_PALMTE2) | ||
103 | select SND_PXA2XX_SOC_AC97 | 104 | select SND_PXA2XX_SOC_AC97 |
104 | select SND_SOC_WM9712 | 105 | select SND_SOC_WM9712 |
105 | help | 106 | help |
106 | Say Y if you want to add support for SoC audio on | 107 | Say Y if you want to add support for SoC audio on |
107 | Palm T|X, T5 or LifeDrive handheld computer. | 108 | Palm T|X, T5, E2 or LifeDrive handheld computer. |
108 | 109 | ||
109 | config SND_SOC_ZYLONITE | 110 | config SND_SOC_ZYLONITE |
110 | tristate "SoC Audio support for Marvell Zylonite" | 111 | tristate "SoC Audio support for Marvell Zylonite" |
diff --git a/sound/soc/pxa/palm27x.c b/sound/soc/pxa/palm27x.c index 44fcc4e01e08..e6102fda0a7f 100644 --- a/sound/soc/pxa/palm27x.c +++ b/sound/soc/pxa/palm27x.c | |||
@@ -205,7 +205,7 @@ static int palm27x_asoc_probe(struct platform_device *pdev) | |||
205 | int ret; | 205 | int ret; |
206 | 206 | ||
207 | if (!(machine_is_palmtx() || machine_is_palmt5() || | 207 | if (!(machine_is_palmtx() || machine_is_palmt5() || |
208 | machine_is_palmld())) | 208 | machine_is_palmld() || machine_is_palmte2())) |
209 | return -ENODEV; | 209 | return -ENODEV; |
210 | 210 | ||
211 | if (pdev->dev.platform_data) | 211 | if (pdev->dev.platform_data) |