summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx31ads.c
diff options
context:
space:
mode:
authorMark Brown2010-02-23 12:05:11 +0100
committerSascha Hauer2010-02-24 10:23:42 +0100
commitcd6eb9808ce54caeea779e785e19a9b9bea97e43 (patch)
tree2bd9e9253907ea8071de7e587281fb4875756e65 /arch/arm/mach-mx3/mach-mx31ads.c
parentmx25pdk: add LCD support (diff)
downloadkernel-qcow2-linux-cd6eb9808ce54caeea779e785e19a9b9bea97e43.tar.gz
kernel-qcow2-linux-cd6eb9808ce54caeea779e785e19a9b9bea97e43.tar.xz
kernel-qcow2-linux-cd6eb9808ce54caeea779e785e19a9b9bea97e43.zip
mx31ads: Configure SSI5 pins in IOMUX for PMIC module audio support
SSI5 on the CPU is connected to the PMIC module to provide audio support so unconditionally configure the relevant pins on the CPU to route out the signals. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31ads.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx31ads.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c
index 2f02df212b66..b3d1a1895c20 100644
--- a/arch/arm/mach-mx3/mach-mx31ads.c
+++ b/arch/arm/mach-mx3/mach-mx31ads.c
@@ -483,6 +483,19 @@ static void mxc_init_i2c(void)
}
#endif
+static unsigned int ssi_pins[] = {
+ MX31_PIN_SFS5__SFS5,
+ MX31_PIN_SCK5__SCK5,
+ MX31_PIN_SRXD5__SRXD5,
+ MX31_PIN_STXD5__STXD5,
+};
+
+static void mxc_init_audio(void)
+{
+ mxc_register_device(&imx_ssi_device0, NULL);
+ mxc_iomux_setup_multiple_pins(ssi_pins, ARRAY_SIZE(ssi_pins), "ssi");
+}
+
/*!
* This structure defines static mappings for the i.MX31ADS board.
*/
@@ -518,6 +531,7 @@ static void __init mxc_board_init(void)
mxc_init_extuart();
mxc_init_imx_uart();
mxc_init_i2c();
+ mxc_init_audio();
}
static void __init mx31ads_timer_init(void)