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)
35 { 35 {
36 mmc_enable_int_flash_clock(!mmc_detect()); 36 mmc_enable_int_flash_clock(!mmc_detect());
37 37
38 if (!(read_hw_mask() & MMC_CLOCK_POLARITY)) 38 if (!(HW_MASK & MMC_CLOCK_POLARITY))
39 and_b(~0x20, &PBDRH); /* old circuit needs SCK1 = low while on USB */ 39 and_b(~0x20, &PBDRH); /* old circuit needs SCK1 = low while on USB */
40 or_b(0x20, &PADRL); /* enable USB */ 40 or_b(0x20, &PADRL); /* enable USB */
41 and_b(~0x08, &PADRL); /* assert card detect */ 41 and_b(~0x08, &PADRL); /* assert card detect */
42 } 42 }
43 else 43 else
44 { 44 {
45 if (!(read_hw_mask() & MMC_CLOCK_POLARITY)) 45 if (!(HW_MASK & MMC_CLOCK_POLARITY))
46 or_b(0x20, &PBDRH); /* reset SCK1 = high for old circuit */ 46 or_b(0x20, &PBDRH); /* reset SCK1 = high for old circuit */
47 and_b(~0x20, &PADRL); /* disable USB */ 47 and_b(~0x20, &PADRL); /* disable USB */
48 or_b(0x08, &PADRL); /* deassert card detect */ 48 or_b(0x08, &PADRL); /* deassert card detect */