summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-05-08 08:03:08 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-05-08 08:03:08 +0000
commitdf4bd0697d2925266df6af52c1247bf60a854db4 (patch)
treea8c03adedc5450b8dbaad3f2a4cf1529d7ce5a44 /firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c
parentf18e4db81b5503c864c41505cf5e8122638c0089 (diff)
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
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/wmcodec-imx31.c10
1 files changed, 6 insertions, 4 deletions
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();