summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/power-imx31.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/power-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/power-imx31.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c
index 07e6462bfb..17008cec4b 100644
--- a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c
@@ -63,7 +63,7 @@ void ide_power_enable(bool on)
63 if (!on) 63 if (!on)
64 { 64 {
65 /* Bus must be isolated before power off */ 65 /* Bus must be isolated before power off */
66 imx31_regmod32(&GPIO2_DR, (1 << 16), (1 << 16)); 66 imx31_regset32(&GPIO2_DR, (1 << 16));
67 } 67 }
68 68
69 /* HD power switch */ 69 /* HD power switch */
@@ -73,7 +73,7 @@ void ide_power_enable(bool on)
73 { 73 {
74 /* Bus switch may be turned on after powerup */ 74 /* Bus switch may be turned on after powerup */
75 sleep(HZ/10); 75 sleep(HZ/10);
76 imx31_regmod32(&GPIO2_DR, 0, (1 << 16)); 76 imx31_regclr32(&GPIO2_DR, (1 << 16));
77 } 77 }
78} 78}
79 79
@@ -91,7 +91,7 @@ bool tuner_power(bool status)
91 we can diable the i2c module when not in use */ 91 we can diable the i2c module when not in use */
92 i2c_enable_node(&si4700_i2c_node, true); 92 i2c_enable_node(&si4700_i2c_node, true);
93 /* enable the fm chip */ 93 /* enable the fm chip */
94 imx31_regmod32(&GPIO1_DR, (1 << 26), (1 << 26)); 94 imx31_regset32(&GPIO1_DR, (1 << 26));
95 /* enable CLK32KMCU clock */ 95 /* enable CLK32KMCU clock */
96 mc13783_set(MC13783_POWER_CONTROL0, MC13783_CLK32KMCUEN); 96 mc13783_set(MC13783_POWER_CONTROL0, MC13783_CLK32KMCUEN);
97 } 97 }
@@ -101,7 +101,7 @@ bool tuner_power(bool status)
101 we can diable the i2c module when not in use */ 101 we can diable the i2c module when not in use */
102 i2c_enable_node(&si4700_i2c_node, false); 102 i2c_enable_node(&si4700_i2c_node, false);
103 /* disable the fm chip */ 103 /* disable the fm chip */
104 imx31_regmod32(&GPIO1_DR, 0, (1 << 26)); 104 imx31_regclr32(&GPIO1_DR, (1 << 26));
105 /* disable CLK32KMCU clock */ 105 /* disable CLK32KMCU clock */
106 mc13783_clear(MC13783_POWER_CONTROL0, MC13783_CLK32KMCUEN); 106 mc13783_clear(MC13783_POWER_CONTROL0, MC13783_CLK32KMCUEN);
107 } 107 }