[U-Boot] [PATCH v1 6/6] mmc: arm_pl180_mmci: Add "cd_inverted" DT property read

Patrice Chotard patrice.chotard at st.com
Fri Jul 20 07:44:17 UTC 2018


Add missing read of "cd_inverted" property in DT.

Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---

 drivers/mmc/arm_pl180_mmci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c
index 29a05ea0c39a..7341f2f78581 100644
--- a/drivers/mmc/arm_pl180_mmci.c
+++ b/drivers/mmc/arm_pl180_mmci.c
@@ -447,6 +447,7 @@ static int arm_pl180_mmc_probe(struct udevice *dev)
 			    SDI_CLKCR_HWFC_EN;
 	host->clock_in = clk_get_rate(&clk);
 	host->version2 = dev_get_driver_data(dev);
+	host->cd_inverted = dev_read_bool(dev, "cd-inverted");
 
 	cfg->name = dev->name;
 	cfg->voltages = VOLTAGE_WINDOW_SD;
-- 
1.9.1



More information about the U-Boot mailing list