summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-19 15:30:30 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-19 15:30:30 +0000
commitac5059b1b562bfbaf20c4646b6158b23345495a8 (patch)
tree0c7f58127b2cefb1d94eb97fd1b8d8b1a996a8c6 /firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
parent2b4290cc128a412e50922e8650d94d70c99926f3 (diff)
downloadrockbox-ac5059b1b562bfbaf20c4646b6158b23345495a8.tar.gz
rockbox-ac5059b1b562bfbaf20c4646b6158b23345495a8.tar.bz2
rockbox-ac5059b1b562bfbaf20c4646b6158b23345495a8.zip
Use set/clr instead of mod functions where applicable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19486 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/usb-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/usb-imx31.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c b/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
index cdc41cd43b..382bc326b7 100644
--- a/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
@@ -38,16 +38,16 @@ static void enable_transceiver(bool enable)
{
if (GPIO1_DR & (1 << 30))
{
- imx31_regmod32(&GPIO3_DR, 0, (1 << 16)); /* Reset ISP1504 */
+ imx31_regclr32(&GPIO3_DR, (1 << 16)); /* Reset ISP1504 */
sleep(HZ/100);
- imx31_regmod32(&GPIO3_DR, (1 << 16), (1 << 16));
+ imx31_regset32(&GPIO3_DR, (1 << 16));
sleep(HZ/10);
- imx31_regmod32(&GPIO1_DR, 0, (1 << 30)); /* Select ISP1504 */
+ imx31_regclr32(&GPIO1_DR, (1 << 30)); /* Select ISP1504 */
}
}
else
{
- imx31_regmod32(&GPIO1_DR, (1 << 30), (1 << 30)); /* Deselect ISP1504 */
+ imx31_regset32(&GPIO1_DR, (1 << 30)); /* Deselect ISP1504 */
}
}