OSDN Git Service

sdhci: rename the SDHC_CAPAB register
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 16 Jan 2018 13:28:19 +0000 (13:28 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jan 2018 13:28:19 +0000 (13:28 +0000)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 20180115182436.2066-11-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/sdhci-internal.h
hw/sd/sdhci.c

index e941bc2..fc807f0 100644 (file)
 #define SDHC_ACMD12ERRSTS              0x3C
 
 /* HWInit Capabilities Register 0x05E80080 */
-#define SDHC_CAPAREG                   0x40
+#define SDHC_CAPAB                     0x40
 #define SDHC_CAN_DO_DMA                0x00400000
 #define SDHC_CAN_DO_ADMA2              0x00080000
 #define SDHC_CAN_DO_ADMA1              0x00100000
index 4265b6a..c4e486e 100644 (file)
@@ -898,7 +898,7 @@ static uint64_t sdhci_read(void *opaque, hwaddr offset, unsigned size)
     case SDHC_ACMD12ERRSTS:
         ret = s->acmd12errsts;
         break;
-    case SDHC_CAPAREG:
+    case SDHC_CAPAB:
         ret = s->capareg;
         break;
     case SDHC_MAXCURR: