diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2007-06-23 18:25:41 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2007-06-23 18:25:41 +0000 |
commit | df437152e2a56f2c6e2932a311a475cbbcb15a96 (patch) | |
tree | eab1514911746236d4f1e47664e66a2c9d31f007 /firmware/target/arm | |
parent | c8899d775ffe2189f1b7cdb834e3253a6c1f8a50 (diff) |
only go into USB mode when the cradle is powered
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13695 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/usb-meg-fx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/usb-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/usb-meg-fx.c index 374fb21136..566d25eecb 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/usb-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/usb-meg-fx.c @@ -29,7 +29,7 @@ #define USB_VPLUS_PWR_DEASSERT GPBDAT &= ~(1 << 6) #define USB_UNIT_IS_PRESENT !(GPFDAT & 0x01) -#define USB_CRADLE_IS_PRESENT ((GPFDAT &0x02)&&!(GPGDAT&1<<14)) +#define USB_CRADLE_IS_PRESENT ((GPFDAT &0x02)&&((GPGDAT&(3<<13))==(1<<13))) #define USB_CRADLE_BUS_ENABLE GPHDAT |= (1 << 8) #define USB_CRADLE_BUS_DISABLE GPHDAT &= ~(1 << 8) |