diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-11-17 14:52:23 -0500 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-01-15 10:48:30 +0100 |
commit | 0240428c77498363f7e9fe648522ea54e032774b (patch) | |
tree | 808b6e8173560f98006819ddf46e06bfc90193c7 | |
parent | c0162368e1743b6206a39f970aa3d803e21b0b59 (diff) | |
download | seabios-0240428c77498363f7e9fe648522ea54e032774b.zip seabios-0240428c77498363f7e9fe648522ea54e032774b.tar.gz seabios-0240428c77498363f7e9fe648522ea54e032774b.tar.bz2 |
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>
(cherry picked from commit 460e9aac4e1ef88b14a7d44876c43ecfc94f8848)
-rw-r--r-- | src/hw/sdcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/sdcard.c b/src/hw/sdcard.c index be726d2..0617d24 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(®s->irq_enable, 0x01ff); writew(®s->irq_status, readw(®s->irq_status)); writew(®s->error_signal, 0); - writew(®s->error_irq_enable, 0x03ff); + writew(®s->error_irq_enable, 0x01ff); writew(®s->error_irq_status, readw(®s->error_irq_status)); writeb(®s->timeout_control, 0x0e); // Set to max timeout int volt = sdcard_set_power(regs); |