aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/hx4700.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-03-10 12:15:30 -0500
committerOlof Johansson <olof@lixom.net>2012-03-10 12:15:30 -0500
commitc454f813501b94cd687bf3c5c0783f815a854905 (patch)
tree8b6e1719ba4470e478d719ca0cf935501370e237 /arch/arm/mach-pxa/hx4700.c
parent1ad4fb2f7cbc21db9cdbb53e25ce348d93bbd6e7 (diff)
parent63fc5f3bb3d0ca9ab4767a801b518aa6335f87ad (diff)
Merge branch 'board' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/boards
* 'board' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP: add minimal support for Nokia RM-696 ARM: OMAP: enable Bluetooth on the PandaBoard ARM: OMAP: pandora: add support for backlight and poweroff ARM: OMAP4: board-4430sdp: don't initialize value that is never used ARM: OMAP3: cm-t3517: add EMAC support ARM: OMAP: move generic EMAC init to separate file ARM: OMAP3: RX-51: add explicit mux configuration of tsc2005 control gpios ARM: OMAP: Add omap_reserve functionality (includes sync-up to 3.3-rc6)
Diffstat (limited to 'arch/arm/mach-pxa/hx4700.c')
-rw-r--r--arch/arm/mach-pxa/hx4700.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index f038da1e4196..f2c23ea3692d 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/arch/arm/mach-pxa/hx4700.c
@@ -45,6 +45,7 @@
45#include <mach/hx4700.h> 45#include <mach/hx4700.h>
46#include <mach/irda.h> 46#include <mach/irda.h>
47 47
48#include <sound/ak4641.h>
48#include <video/platform_lcd.h> 49#include <video/platform_lcd.h>
49#include <video/w100fb.h> 50#include <video/w100fb.h>
50 51
@@ -780,6 +781,28 @@ static struct i2c_board_info __initdata pi2c_board_info[] = {
780}; 781};
781 782
782/* 783/*
784 * Asahi Kasei AK4641 on I2C
785 */
786
787static struct ak4641_platform_data ak4641_info = {
788 .gpio_power = GPIO27_HX4700_CODEC_ON,
789 .gpio_npdn = GPIO109_HX4700_CODEC_nPDN,
790};
791
792static struct i2c_board_info i2c_board_info[] __initdata = {
793 {
794 I2C_BOARD_INFO("ak4641", 0x12),
795 .platform_data = &ak4641_info,
796 },
797};
798
799static struct platform_device audio = {
800 .name = "hx4700-audio",
801 .id = -1,
802};
803
804
805/*
783 * PCMCIA 806 * PCMCIA
784 */ 807 */
785 808
@@ -805,6 +828,7 @@ static struct platform_device *devices[] __initdata = {
805 &gpio_vbus, 828 &gpio_vbus,
806 &power_supply, 829 &power_supply,
807 &strataflash, 830 &strataflash,
831 &audio,
808 &pcmcia, 832 &pcmcia,
809}; 833};
810 834
@@ -842,6 +866,7 @@ static void __init hx4700_init(void)
842 pxa_set_ficp_info(&ficp_info); 866 pxa_set_ficp_info(&ficp_info);
843 pxa27x_set_i2c_power_info(NULL); 867 pxa27x_set_i2c_power_info(NULL);
844 pxa_set_i2c_info(NULL); 868 pxa_set_i2c_info(NULL);
869 i2c_register_board_info(0, ARRAY_AND_SIZE(i2c_board_info));
845 i2c_register_board_info(1, ARRAY_AND_SIZE(pi2c_board_info)); 870 i2c_register_board_info(1, ARRAY_AND_SIZE(pi2c_board_info));
846 pxa2xx_set_spi_info(2, &pxa_ssp2_master_info); 871 pxa2xx_set_spi_info(2, &pxa_ssp2_master_info);
847 spi_register_board_info(ARRAY_AND_SIZE(tsc2046_board_info)); 872 spi_register_board_info(ARRAY_AND_SIZE(tsc2046_board_info));