summaryrefslogtreecommitdiff
path: root/board/synopsys/iot_devkit/iot_devkit.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/synopsys/iot_devkit/iot_devkit.c')
-rw-r--r--board/synopsys/iot_devkit/iot_devkit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c
index 40c29e79ba..f8838fb3ce 100644
--- a/board/synopsys/iot_devkit/iot_devkit.c
+++ b/board/synopsys/iot_devkit/iot_devkit.c
@@ -170,6 +170,13 @@ int board_mmc_init(bd_t *bis)
return 0;
}
+int board_mmc_getcd(struct mmc *mmc)
+{
+ struct dwmci_host *host = mmc->priv;
+
+ return !(dwmci_readl(host, DWMCI_CDETECT) & 1);
+}
+
#define IOTDK_RESET_SEQ 0x55AA6699
void reset_cpu(ulong addr)