mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/sd/sdhci: Set reset value of interrupt registers
The interrupt enable registers are not reset to 0 on Freescale eSDHC but some bits are enabled on reset. At least some U-Boot versions seem to expect this and not initialise these registers before expecting interrupts. Use existing vendor property for Freescale eSDHC and set the reset value of the interrupt registers to match Freescale documentation. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-ID: <20250210160329.DDA7F4E600E@zero.eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
825b96dbce
commit
d060b2789f
3 changed files with 6 additions and 0 deletions
|
@ -307,6 +307,10 @@ static void sdhci_reset(SDHCIState *s)
|
|||
s->data_count = 0;
|
||||
s->stopped_state = sdhc_not_stopped;
|
||||
s->pending_insert_state = false;
|
||||
if (s->vendor == SDHCI_VENDOR_FSL) {
|
||||
s->norintstsen = 0x013f;
|
||||
s->errintstsen = 0x117f;
|
||||
}
|
||||
}
|
||||
|
||||
static void sdhci_poweron_reset(DeviceState *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue