From e286b0bbc04a34c181978efce19c6d0814e228c0 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 30 Jun 2010 02:02:46 +0000 Subject: Remove atomic register bit manipulation functions from i.MX and s3c target code and introduce generic functions for ARM (bitmod32, bitset32, and bitclr32). Multiprocessor support is possible but just not implemented at the moment, only interrupt lockout. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27188 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/usb-gigabeat-s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/usb-gigabeat-s.c') diff --git a/firmware/target/arm/imx31/gigabeat-s/usb-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/usb-gigabeat-s.c index d873c19ed3..016f24fc48 100644 --- a/firmware/target/arm/imx31/gigabeat-s/usb-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/usb-gigabeat-s.c @@ -40,16 +40,16 @@ static void enable_transceiver(bool enable) { if (GPIO1_DR & (1 << 30)) { - imx31_regclr32(&GPIO3_DR, (1 << 16)); /* Reset ISP1504 */ + bitclr32(&GPIO3_DR, (1 << 16)); /* Reset ISP1504 */ sleep(HZ/100); - imx31_regset32(&GPIO3_DR, (1 << 16)); + bitset32(&GPIO3_DR, (1 << 16)); sleep(HZ/10); - imx31_regclr32(&GPIO1_DR, (1 << 30)); /* Select ISP1504 */ + bitclr32(&GPIO1_DR, (1 << 30)); /* Select ISP1504 */ } } else { - imx31_regset32(&GPIO1_DR, (1 << 30)); /* Deselect ISP1504 */ + bitset32(&GPIO1_DR, (1 << 30)); /* Deselect ISP1504 */ } } -- cgit v1.2.3