diff options
author | Eric Bénard <eric@eukrea.com> | 2012-05-08 03:20:22 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-08 11:31:24 -0400 |
commit | 932d67d4c8367fa753c55d922cefafcdcdcf18c3 (patch) | |
tree | fb8708e2c4488814027a31a78caf64326c4afb3e /arch/arm | |
parent | f5c85d922c8407315d6a5b100ddb89db26938914 (diff) |
ARM: imx: eukrea_mbimxsd: add audio support
Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 96b1c771c784..18399d10d170 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -707,6 +707,7 @@ choice | |||
707 | config MACH_EUKREA_MBIMXSD51_BASEBOARD | 707 | config MACH_EUKREA_MBIMXSD51_BASEBOARD |
708 | prompt "Eukrea MBIMXSD development board" | 708 | prompt "Eukrea MBIMXSD development board" |
709 | bool | 709 | bool |
710 | select IMX_HAVE_PLATFORM_IMX_SSI | ||
710 | select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX | 711 | select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX |
711 | select LEDS_GPIO_REGISTER | 712 | select LEDS_GPIO_REGISTER |
712 | help | 713 | help |
diff --git a/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c index aaa592fdb9ce..bc89bb6430e8 100644 --- a/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c | |||
@@ -66,6 +66,11 @@ static iomux_v3_cfg_t eukrea_mbimxsd_pads[] = { | |||
66 | NEW_PAD_CTRL(MX51_PAD_GPIO1_0__SD1_CD, PAD_CTL_PUS_22K_UP | | 66 | NEW_PAD_CTRL(MX51_PAD_GPIO1_0__SD1_CD, PAD_CTL_PUS_22K_UP | |
67 | PAD_CTL_PKE | PAD_CTL_SRE_FAST | | 67 | PAD_CTL_PKE | PAD_CTL_SRE_FAST | |
68 | PAD_CTL_DSE_HIGH | PAD_CTL_PUE | PAD_CTL_HYS), | 68 | PAD_CTL_DSE_HIGH | PAD_CTL_PUE | PAD_CTL_HYS), |
69 | /* SSI */ | ||
70 | MX51_PAD_AUD3_BB_TXD__AUD3_TXD, | ||
71 | MX51_PAD_AUD3_BB_RXD__AUD3_RXD, | ||
72 | MX51_PAD_AUD3_BB_CK__AUD3_TXC, | ||
73 | MX51_PAD_AUD3_BB_FS__AUD3_TXFS, | ||
69 | }; | 74 | }; |
70 | 75 | ||
71 | #define GPIO_LED1 IMX_GPIO_NR(3, 30) | 76 | #define GPIO_LED1 IMX_GPIO_NR(3, 30) |
@@ -112,6 +117,11 @@ static struct i2c_board_info eukrea_mbimxsd_i2c_devices[] = { | |||
112 | }, | 117 | }, |
113 | }; | 118 | }; |
114 | 119 | ||
120 | static const | ||
121 | struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata __initconst = { | ||
122 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, | ||
123 | }; | ||
124 | |||
115 | /* | 125 | /* |
116 | * system init for baseboard usage. Will be called by cpuimx51sd init. | 126 | * system init for baseboard usage. Will be called by cpuimx51sd init. |
117 | * | 127 | * |
@@ -129,6 +139,8 @@ void __init eukrea_mbimxsd51_baseboard_init(void) | |||
129 | 139 | ||
130 | imx51_add_sdhci_esdhc_imx(0, NULL); | 140 | imx51_add_sdhci_esdhc_imx(0, NULL); |
131 | 141 | ||
142 | imx51_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); | ||
143 | |||
132 | gpio_request(GPIO_LED1, "LED1"); | 144 | gpio_request(GPIO_LED1, "LED1"); |
133 | gpio_direction_output(GPIO_LED1, 1); | 145 | gpio_direction_output(GPIO_LED1, 1); |
134 | gpio_free(GPIO_LED1); | 146 | gpio_free(GPIO_LED1); |