[PATCH 14/26] hw/sd: cadence: Advertise 64-bit system bus support

Bin Meng <[email protected]>
Newsgroups org.nongnu.qemu-arm,org.nongnu.qemu-devel
Message-ID <[email protected]>
PolarFire SoC software selects 64-bit ADMA descriptors for the Cadence
SDHCI controller. Advertise 64-bit system bus support so the existing
generic descriptor engine can execute those transfers.

Signed-off-by: Bin Meng <[email protected]>
---

 hw/sd/cadence_sdhci.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/sd/cadence_sdhci.c b/hw/sd/cadence_sdhci.c
index 8476baf67f..39c6e5d101 100644
--- a/hw/sd/cadence_sdhci.c
+++ b/hw/sd/cadence_sdhci.c
@@ -54,6 +54,9 @@ static void cadence_sdhci_instance_init(Object *obj)
 
     object_initialize_child(OBJECT(s), "generic-sdhci",
                             &s->sdhci, TYPE_SYSBUS_SDHCI);
+    object_property_set_uint(OBJECT(&s->sdhci), "capareg",
+                             SDHC_CAPAB_REG_DEFAULT |
+                             R_SDHC_CAPAB_BUS64BIT_MASK, &error_abort);
 }
 
 static void cadence_sdhci_reset(DeviceState *dev)
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.