summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos/ondio/usb-ondio.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh/archos/ondio/usb-ondio.c')
-rw-r--r--firmware/target/sh/archos/ondio/usb-ondio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/sh/archos/ondio/usb-ondio.c b/firmware/target/sh/archos/ondio/usb-ondio.c
index 7c09bf3877..c856f3ae2c 100644
--- a/firmware/target/sh/archos/ondio/usb-ondio.c
+++ b/firmware/target/sh/archos/ondio/usb-ondio.c
@@ -35,14 +35,14 @@ void usb_enable(bool on)
{
mmc_enable_int_flash_clock(!mmc_detect());
- if (!(read_hw_mask() & MMC_CLOCK_POLARITY))
+ if (!(HW_MASK & MMC_CLOCK_POLARITY))
and_b(~0x20, &PBDRH); /* old circuit needs SCK1 = low while on USB */
or_b(0x20, &PADRL); /* enable USB */
and_b(~0x08, &PADRL); /* assert card detect */
}
else
{
- if (!(read_hw_mask() & MMC_CLOCK_POLARITY))
+ if (!(HW_MASK & MMC_CLOCK_POLARITY))
or_b(0x20, &PBDRH); /* reset SCK1 = high for old circuit */
and_b(~0x20, &PADRL); /* disable USB */
or_b(0x08, &PADRL); /* deassert card detect */