diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2004-11-17 21:24:21 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2004-11-17 21:24:21 +0000 |
| commit | 605cf4c779f214c8a6f413d401e14a192352e62d (patch) | |
| tree | cbe2190c310d94addb3823177ce6351f6627b055 | |
| parent | 2cf1a895603e538de0276033db8334f51758e881 (diff) | |
| download | rockbox-605cf4c779f214c8a6f413d401e14a192352e62d.zip rockbox-605cf4c779f214c8a6f413d401e14a192352e62d.tar.gz rockbox-605cf4c779f214c8a6f413d401e14a192352e62d.tar.bz2 rockbox-605cf4c779f214c8a6f413d401e14a192352e62d.tar.xz | |
Fix: my previous adjustments broke access to external MMC on newer Ondio models (mask bit 2 == 1). Xor operator works bitwise, so both operators need to be logical values here
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5422 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/ata_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 897f59b..a61d28c 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c @@ -143,7 +143,7 @@ void mmc_select_clock(int card_no) { /* set clock gate for external card / reset for internal card if the * MMC clock polarity bit is 0, vice versa if it is 1 */ - if ((card_no != 0) ^ (read_hw_mask() & MMC_CLOCK_POLARITY)) + if ((card_no != 0) ^ ((read_hw_mask() & MMC_CLOCK_POLARITY) != 0)) or_b(0x10, &PADRH); /* set clock gate PA12 */ else and_b(~0x10, &PADRH); /* clear clock gate PA12 */ |