diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-12-24 14:09:39 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-12-24 14:09:39 +0000 |
commit | 2d4daa46fbbbee2808b6881d3a96f45eb2249f26 (patch) | |
tree | 04673fdf02c4676da28a19608432442c2dc37790 | |
parent | dd0dee95ae52c9f163733c4eb43e2e3e041d7d43 (diff) |
Extract clock frequency from _DSD properties.
ok kettenis@
-rw-r--r-- | sys/dev/acpi/sdhc_acpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpi/sdhc_acpi.c b/sys/dev/acpi/sdhc_acpi.c index 720fb496d0f..3b7df7cafb8 100644 --- a/sys/dev/acpi/sdhc_acpi.c +++ b/sys/dev/acpi/sdhc_acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc_acpi.c,v 1.16 2020/12/24 12:47:17 kettenis Exp $ */ +/* $OpenBSD: sdhc_acpi.c,v 1.17 2020/12/24 14:09:38 patrick Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -151,6 +151,8 @@ sdhc_acpi_attach(struct device *parent, struct device *self, void *aux) sc->sc.sc_host = &sc->sc_host; sc->sc.sc_dmat = aaa->aaa_dmat; + sc->sc.sc_clkbase = acpi_getpropint(sc->sc_node, + "clock-frequency", 0) / 1000; sdhc_host_found(&sc->sc, sc->sc_memt, sc->sc_memh, aaa->aaa_size[0], 1, cap); } |