mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/sd/sdhci: Remove need for SDHCI_VENDOR_IMX definition
All instances of TYPE_IMX_USDHC set vendor=SDHCI_VENDOR_IMX. No need to special-case it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Bernhard Beschow <shentey@gmail.com> Message-Id: <20250308213640.13138-3-philmd@linaro.org>
This commit is contained in:
parent
003d35ad6c
commit
7f2a5272ff
7 changed files with 4 additions and 21 deletions
|
@ -1735,16 +1735,10 @@ usdhc_write(void *opaque, hwaddr offset, uint64_t val, unsigned size)
|
|||
|
||||
case USDHC_VENDOR_SPEC:
|
||||
s->vendor_spec = value;
|
||||
switch (s->vendor) {
|
||||
case SDHCI_VENDOR_IMX:
|
||||
if (value & USDHC_IMX_FRC_SDCLK_ON) {
|
||||
s->prnsts &= ~SDHC_IMX_CLOCK_GATE_OFF;
|
||||
} else {
|
||||
s->prnsts |= SDHC_IMX_CLOCK_GATE_OFF;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
if (value & USDHC_IMX_FRC_SDCLK_ON) {
|
||||
s->prnsts &= ~SDHC_IMX_CLOCK_GATE_OFF;
|
||||
} else {
|
||||
s->prnsts |= SDHC_IMX_CLOCK_GATE_OFF;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue