summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-04-21 07:58:58 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-04-21 07:58:58 +0000
commit23fe510ac217bd354f1a45bc4df2561af0e84585 (patch)
treea37c832f0af7b24fcdba773b5e08471f9f9bc75a /sys/dev
parent59a9cc94ad93deb1dc3bdc72cdf162c951ea0712 (diff)
Add support for the additional SDHC controller found on the Raspberry Pi.
ok patrick@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/sdhc_fdt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/fdt/sdhc_fdt.c b/sys/dev/fdt/sdhc_fdt.c
index 859ed0d1bc1..997428110e6 100644
--- a/sys/dev/fdt/sdhc_fdt.c
+++ b/sys/dev/fdt/sdhc_fdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdhc_fdt.c,v 1.6 2020/04/19 16:17:03 kettenis Exp $ */
+/* $OpenBSD: sdhc_fdt.c,v 1.7 2020/04/21 07:58:57 kettenis Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
@@ -68,6 +68,7 @@ sdhc_fdt_match(struct device *parent, void *match, void *aux)
struct fdt_attach_args *faa = aux;
return (OF_is_compatible(faa->fa_node, "arasan,sdhci-5.1") ||
+ OF_is_compatible(faa->fa_node, "brcm,bcm2711-emmc2") ||
OF_is_compatible(faa->fa_node, "brcm,bcm2835-sdhci"));
}
@@ -158,6 +159,9 @@ sdhc_fdt_attach(struct device *parent, struct device *self, void *aux)
sc->sc.sc_flags |= SDHC_F_NODDR50;
}
+ if (OF_is_compatible(faa->fa_node, "brcm,bcm2711-emmc2"))
+ sc->sc.sc_flags |= SDHC_F_NOPWR0;
+
if (OF_is_compatible(faa->fa_node, "brcm,bcm2835-sdhci")) {
cap = SDHC_VOLTAGE_SUPP_3_3V | SDHC_HIGH_SPEED_SUPP;
cap |= SDHC_MAX_BLK_LEN_1024 << SDHC_MAX_BLK_LEN_SHIFT;