Skip to content

Commit

Permalink
mx31ads: Configure SSI5 pins in IOMUX for PMIC module audio support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Sascha Hauer committed Feb 24, 2010
1 parent 0f547dc commit cd6eb98
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/arm/mach-mx3/mach-mx31ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cd6eb98

Please sign in to comment.