mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
ramips: mtk-mmc: use "cd-inverted" to set CD line polarity
"cd-inverted" is an upstream documented property used to indicate the CD line is actived high. We will introduce a new upstream SDHC driver, and this change will make them compatible with each other. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
parent
c640f7b937
commit
a22bdf7c09
@ -171,5 +171,5 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-high;
|
||||
cd-inverted;
|
||||
};
|
||||
|
@ -132,7 +132,6 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-low;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -167,7 +167,7 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-high;
|
||||
cd-inverted;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -151,5 +151,5 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-high;
|
||||
cd-inverted;
|
||||
};
|
||||
|
@ -172,7 +172,6 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-low;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -175,7 +175,6 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-low;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -168,7 +168,7 @@
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
mediatek,cd-high;
|
||||
cd-inverted;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -2245,7 +2245,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
|
||||
//TODO: read this as bus-width from dt (via mmc_of_parse)
|
||||
mmc->caps |= MMC_CAP_4_BIT_DATA;
|
||||
|
||||
cd_active_low = !of_property_read_bool(pdev->dev.of_node, "mediatek,cd-high");
|
||||
cd_active_low = !of_property_read_bool(pdev->dev.of_node, "cd-inverted");
|
||||
|
||||
if (of_property_read_bool(pdev->dev.of_node, "mediatek,cd-poll"))
|
||||
mmc->caps |= MMC_CAP_NEEDS_POLL;
|
||||
|
Loading…
Reference in New Issue
Block a user