aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-11-02 23:43:18 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-11-02 23:43:18 +0000
commite8f58f1fb8b68f9c610f1c6a895458a11643c734 (patch)
tree1133eaf4264de0bcac48a9a3e5c67817534c4a40 /sys/dev
parentea9e23edf392405750dd0bf886a038e8a5202e17 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sdhci/fsl_sdhci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sdhci/fsl_sdhci.c b/sys/dev/sdhci/fsl_sdhci.c
index b691756c8b7b..44694255b925 100644
--- a/sys/dev/sdhci/fsl_sdhci.c
+++ b/sys/dev/sdhci/fsl_sdhci.c
@@ -811,7 +811,9 @@ fsl_sdhci_attach(device_t dev)
struct fsl_sdhci_softc *sc = device_get_softc(dev);
int rid, err;
phandle_t node;
+#ifdef __powerpc__
uint32_t protctl;
+#endif
sc->dev = dev;
@@ -869,7 +871,7 @@ fsl_sdhci_attach(device_t dev)
*/
#ifdef __powerpc__
/* P1022 has the '*_BRST_LEN' fields as reserved, always reading 0x10 */
- if ((SVR_VER(mfspr(SPR_SVR)) & 0xfff6) == SVR_P1022 )
+ if (ofw_bus_is_compatible(dev, "fsl,p1022-esdhc"))
WR4(sc, SDHC_WTMK_LVL, 0x10801080);
else
#endif