[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/18] hw/sd: sdhci: Make sdhci_poweron_reset() internal visible
From: |
Bin Meng |
Subject: |
[PATCH 09/18] hw/sd: sdhci: Make sdhci_poweron_reset() internal visible |
Date: |
Sat, 15 Aug 2020 00:40:47 +0800 |
From: Bin Meng <bin.meng@windriver.com>
sdhci_poweron_reset() might be needed for any SDHCI compatible
device that is built on top of the generic SDHCI device.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
hw/sd/sdhci-internal.h | 1 +
hw/sd/sdhci.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/sd/sdhci-internal.h b/hw/sd/sdhci-internal.h
index e8c753d..b587e8e 100644
--- a/hw/sd/sdhci-internal.h
+++ b/hw/sd/sdhci-internal.h
@@ -342,5 +342,6 @@ void sdhci_uninitfn(SDHCIState *s);
void sdhci_common_realize(SDHCIState *s, Error **errp);
void sdhci_common_unrealize(SDHCIState *s);
void sdhci_common_class_init(ObjectClass *klass, void *data);
+void sdhci_poweron_reset(DeviceState *dev);
#endif
diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
index deac181..20f2fe0 100644
--- a/hw/sd/sdhci.c
+++ b/hw/sd/sdhci.c
@@ -294,7 +294,7 @@ static void sdhci_reset(SDHCIState *s)
s->pending_insert_state = false;
}
-static void sdhci_poweron_reset(DeviceState *dev)
+void sdhci_poweron_reset(DeviceState *dev)
{
/* QOM (ie power-on) reset. This is identical to reset
* commanded via device register apart from handling of the
--
2.7.4
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, (continued)
[PATCH 08/18] hw/sd: sd: Correctly set the high capacity bit, Bin Meng, 2020/08/14
[PATCH 09/18] hw/sd: sdhci: Make sdhci_poweron_reset() internal visible,
Bin Meng <=
Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Anup Patel, 2020/08/14
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Bin Meng, 2020/08/17
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Cyril.Jean, 2020/08/17
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Alistair Francis, 2020/08/17
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Cyril.Jean, 2020/08/17
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Anup Patel, 2020/08/18
- Re: [PATCH 00/18] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support, Cyril.Jean, 2020/08/18