Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171043112
D16686.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16686.diff
View Options
Index: sys/dev/sdhci/sdhci_fdt.c
===================================================================
--- sys/dev/sdhci/sdhci_fdt.c
+++ sys/dev/sdhci/sdhci_fdt.c
@@ -72,6 +72,7 @@
{ "sdhci_generic", SDHCI_FDT_GENERIC },
{ "qcom,sdhci-msm-v4", SDHCI_FDT_QUALCOMM },
{ "xlnx,zy7_sdhci", SDHCI_FDT_XLNX_ZY7 },
+ { "arasan,sdhci-8.9a", SDHCI_FDT_XLNX_ZY7 },
{ NULL, 0 }
};
@@ -88,6 +89,7 @@
struct resource *mem_res[MAX_SLOTS]; /* Memory resource */
bool wp_inverted; /* WP pin is inverted */
+ bool wp_disabled; /* disable WP altogether */
bool no_18v; /* No 1.8V support */
};
@@ -180,7 +182,8 @@
{
struct sdhci_fdt_softc *sc = device_get_softc(bus);
- return (sdhci_generic_get_ro(bus, dev) ^ sc->wp_inverted);
+ return (!sc->wp_disabled && (sdhci_generic_get_ro(bus, dev) ^
+ sc->wp_inverted));
}
static int
@@ -230,6 +233,8 @@
sc->no_18v = true;
if (OF_hasprop(node, "wp-inverted"))
sc->wp_inverted = true;
+ if (OF_hasprop(node, "disable-wp"))
+ sc->wp_disabled = true;
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 8:59 AM (2 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38575946
Default Alt Text
D16686.diff (1 KB)
Attached To
Mode
D16686: Add disable-wp property to sdhci_fdt.c
Attached
Detach File
Event Timeline
Log In to Comment