!fixup sdhci: add DMA and 64-bit capabilities (Spec v2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
---
missed from patch 14/17 while rebasing :|
hw/sd/sdhci.c | 18 ------------------ 1 file changed, 18 deletions(-)
hw/sd/sdhci.c +0 -18
@@ -41,24 +41,6 @@#define TYPE_SDHCI_BUS "sdhci-bus"#define SDHCI_BUS (obj) OBJECT_CHECK(SDBus, (obj), TYPE_SDHCI_BUS) -/* Default SD/MMC host controller features information, which will be -* presented in CAPABILITIES register of generic SD host controller at reset. -* If not stated otherwise: -* 0 - not supported, 1 - supported, other - prohibited. -*/ -#define SDHC_CAPAB_64BITBUS 0ul/* 64-bit System Bus Support */ -#define SDHC_CAPAB_ADMA1 1ul/* ADMA1 support */ -#define SDHC_CAPAB_ADMA2 1ul/* ADMA2 support */ - -/* Now check all parameters and calculate CAPABILITIES REGISTER value */ -#if SDHC_CAPAB_64BITBUS >1 ||SDHC_CAPAB_ADMA2 >1 ||SDHC_CAPAB_ADMA1 >1 -#error Capabilities features can have value 0 or 1 only! -#endif - -#define SDHC_CAPAB_REG_DEFAULT \ - ((SDHC_CAPAB_64BITBUS << 28) | (SDHC_CAPAB_ADMA1 << 20) | \ - (SDHC_CAPAB_ADMA2 << 19)) -#define MASKED_WRITE (reg, mask, val) (reg = (reg & (mask)) | (val)) static void sdhci_check_capab_freq_range(SDHCIState *s, const char *desc,
Signature · 1 line
2.15.1