aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/sdcard.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-11-17 14:52:23 -0500
committerKevin O'Connor <kevin@koconnor.net>2015-11-19 08:48:34 -0500
commit460e9aac4e1ef88b14a7d44876c43ecfc94f8848 (patch)
tree0357f1e7261d33d2fb86ae35d50fc3bc5e61d980 /src/hw/sdcard.c
parentaa34e4e52fb65abb4ef8539660f05b4d52fb1f6f (diff)
downloadseabios-460e9aac4e1ef88b14a7d44876c43ecfc94f8848.tar.gz
sdcard: Only enable error_irq_enable for bits defined in SDHCI v1 spec
The SDHCI v1 spec only defines the first 9 error_irq_enable bits and reserves other bits in the field. Don't enable the 10th bit (which was defined in the v2 spec) as it's not needed anyway. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/sdcard.c')
-rw-r--r--src/hw/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/sdcard.c b/src/hw/sdcard.c
index be726d25..0617d24b 100644
--- a/src/hw/sdcard.c
+++ b/src/hw/sdcard.c
@@ -493,7 +493,7 @@ sdcard_controller_setup(struct sdhci_s *regs, int prio)
writew(&regs->irq_enable, 0x01ff);
writew(&regs->irq_status, readw(&regs->irq_status));
writew(&regs->error_signal, 0);
- writew(&regs->error_irq_enable, 0x03ff);
+ writew(&regs->error_irq_enable, 0x01ff);
writew(&regs->error_irq_status, readw(&regs->error_irq_status));
writeb(&regs->timeout_control, 0x0e); // Set to max timeout
int volt = sdcard_set_power(regs);