From: Jaehoon Chung <jh80.chung@samsung.com>
Date: Fri, 30 Dec 2016 06:30:12 +0000 (+0900)
Subject: mmc: sdhci: add the get_cd callback function in sdhci_ops
X-Git-Tag: v2025.01-rc5-pxa1908~7760
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B?a=commitdiff_plain;h=309bf02cde07b36f61d82576db06cac7d2293580;p=u-boot.git

mmc: sdhci: add the get_cd callback function in sdhci_ops

Some SoCs can have their own card dect scheme.
Then they may use this get_cd callback function after implementing init
in their drivers.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---

diff --git a/include/sdhci.h b/include/sdhci.h
index 144570f2be..0c0f48f493 100644
--- a/include/sdhci.h
+++ b/include/sdhci.h
@@ -235,6 +235,7 @@ struct sdhci_ops {
 	void            (*write_w)(struct sdhci_host *host, u16 val, int reg);
 	void            (*write_b)(struct sdhci_host *host, u8 val, int reg);
 #endif
+	int		(*get_cd)(struct sdhci_host *host);
 };
 
 struct sdhci_host {