summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2022-04-03 20:23:15 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2022-04-03 20:23:15 +0000
commit04b6b5181ec059f61794dd9513661911f246aece (patch)
tree606298d8b926e03ba1f1c37d00e8840132cc10be /sys
parentc32deae883ed109e5f49ee688a2e1a4fd2795901 (diff)
Add support for the AP807 block found on Marvell CN9K SoCs. The fixed
clocks are the same as AP806, so we can use the same code. ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/mvclock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdt/mvclock.c b/sys/dev/fdt/mvclock.c
index 399a0bad423..a043df4413e 100644
--- a/sys/dev/fdt/mvclock.c
+++ b/sys/dev/fdt/mvclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mvclock.c,v 1.10 2022/01/09 05:42:37 jsg Exp $ */
+/* $OpenBSD: mvclock.c,v 1.11 2022/04/03 20:23:14 patrick Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -73,6 +73,7 @@ mvclock_match(struct device *parent, void *match, void *aux)
int node = faa->fa_node;
return (OF_is_compatible(node, "marvell,ap806-clock") ||
+ OF_is_compatible(node, "marvell,ap807-clock") ||
OF_is_compatible(node, "marvell,cp110-clock") ||
OF_is_compatible(node, "marvell,armada-3700-periph-clock-nb") ||
OF_is_compatible(node, "marvell,armada-3700-periph-clock-sb") ||
@@ -100,7 +101,8 @@ mvclock_attach(struct device *parent, struct device *self, void *aux)
sc->sc_cd.cd_node = node;
sc->sc_cd.cd_cookie = sc;
- if (OF_is_compatible(node, "marvell,ap806-clock")) {
+ if (OF_is_compatible(node, "marvell,ap806-clock") ||
+ OF_is_compatible(node, "marvell,ap807-clock")) {
sc->sc_cd.cd_get_frequency = ap806_get_frequency;
} else if (OF_is_compatible(node, "marvell,cp110-clock")) {
sc->sc_cd.cd_get_frequency = cp110_get_frequency;