[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 13/32] hw/sd: Introduce a "sd-card" SPI variant model
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 13/32] hw/sd: Introduce a "sd-card" SPI variant model |
Date: |
Mon, 28 Aug 2023 19:11:28 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 |
On 3/7/23 15:24, Cédric Le Goater wrote:
and replace the SDState::spi attribute with a test checking the
SDProto array of commands.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
include/hw/sd/sd.h | 3 +++
hw/arm/stellaris.c | 3 +--
hw/riscv/sifive_u.c | 3 +--
hw/sd/sd.c | 52 +++++++++++++++++++++++++++++++++------------
4 files changed, 43 insertions(+), 18 deletions(-)
I'd rather TYPE_SD_CARD_SPI have a SSI parent bus, having
the realize() method create an internal TYPE_SSI_SD
SD <-> SPI bus bridge, and attaching the SD card on it.
Then we could even make TYPE_SSI_SD private.
Anyway, "can be done later" and "good enough for now"
I suppose, so:
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Thanks!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 13/32] hw/sd: Introduce a "sd-card" SPI variant model,
Philippe Mathieu-Daudé <=