From df4bd0697d2925266df6af52c1247bf60a854db4 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 8 May 2008 08:03:08 +0000 Subject: Gigabeat S: Add ATA/IDE power management. Fix parameter order of regmod32 as it was intended (had some things mixed up :P). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17409 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c') diff --git a/firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c b/firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c index c8a04ce20e..a88571ee14 100644 --- a/firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c @@ -39,10 +39,12 @@ static struct i2c_node wm8978_i2c_node = void audiohw_init(void) { /* USB PLL = 338.688MHz, /30 = 11.2896MHz = 256Fs */ - imx31_regmod32(&CLKCTL_PDR1, PDR1_SSI1_PODF | PDR1_SSI2_PODF, - PDR1_SSI1_PODFw(64-1) | PDR1_SSI2_PODFw(5-1)); - imx31_regmod32(&CLKCTL_PDR1, PDR1_SSI1_PRE_PODF | PDR1_SSI2_PRE_PODF, - PDR1_SSI1_PRE_PODFw(4-1) | PDR1_SSI2_PRE_PODFw(1-1)); + imx31_regmod32(&CLKCTL_PDR1, + PDR1_SSI1_PODFw(64-1) | PDR1_SSI2_PODFw(5-1), + PDR1_SSI1_PODF | PDR1_SSI2_PODF); + imx31_regmod32(&CLKCTL_PDR1, + PDR1_SSI1_PRE_PODFw(4-1) | PDR1_SSI2_PRE_PODFw(1-1), + PDR1_SSI1_PRE_PODF | PDR1_SSI2_PRE_PODF); i2c_enable_node(&wm8978_i2c_node, true); audiohw_preinit(); -- cgit v1.2.3