diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-11-17 20:14:43 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-11-17 20:14:43 +0000 |
commit | 2cf1a895603e538de0276033db8334f51758e881 (patch) | |
tree | 273b9200161f378ab06fd3da4618d712a4838efd /firmware/drivers | |
parent | 6554417a0d3ccb1ef8a32031588a32c084fd6297 (diff) | |
download | rockbox-2cf1a895603e538de0276033db8334f51758e881.tar.gz rockbox-2cf1a895603e538de0276033db8334f51758e881.zip |
Ondio: adjustments for models with mask bit 2 == 0 (different MMC clock select circuitry)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata_mmc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index f927a1bdeb..897f59b8be 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c | |||
@@ -141,10 +141,12 @@ static void mmc_tick(void); | |||
141 | 141 | ||
142 | void mmc_select_clock(int card_no) | 142 | void mmc_select_clock(int card_no) |
143 | { | 143 | { |
144 | if (card_no == 0) /* internal */ | 144 | /* set clock gate for external card / reset for internal card if the |
145 | or_b(0x10, &PADRH); /* set clock gate PA12 CHECKME: mask? */ | 145 | * MMC clock polarity bit is 0, vice versa if it is 1 */ |
146 | else /* external */ | 146 | if ((card_no != 0) ^ (read_hw_mask() & MMC_CLOCK_POLARITY)) |
147 | and_b(~0x10, &PADRH); /* clear clock gate PA12 CHECKME: mask?*/ | 147 | or_b(0x10, &PADRH); /* set clock gate PA12 */ |
148 | else | ||
149 | and_b(~0x10, &PADRH); /* clear clock gate PA12 */ | ||
148 | } | 150 | } |
149 | 151 | ||
150 | static int select_card(int card_no) | 152 | static int select_card(int card_no) |