diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-06-13 12:40:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-06-13 12:40:31 +0000 |
commit | 4414f27f76d3dde5c991c6114523d835347ee583 (patch) | |
tree | 95635ccb5c130dd2e169102826ee85c0909c6643 /sys/arch | |
parent | 6d453f7f90115343f24b15791eeb09367ac97249 (diff) |
Fix compatible strings to match the official device tree binding.
ok patrick@, dlg@, jsg@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/dev/aplsart.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/arm64/dev/aplsart.c b/sys/arch/arm64/dev/aplsart.c index 975ee9f4c17..15e07264d9a 100644 --- a/sys/arch/arm64/dev/aplsart.c +++ b/sys/arch/arm64/dev/aplsart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aplsart.c,v 1.1 2022/06/12 16:00:12 kettenis Exp $ */ +/* $OpenBSD: aplsart.c,v 1.2 2022/06/13 12:40:30 kettenis Exp $ */ /* * Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org> * @@ -73,8 +73,8 @@ aplsart_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "apple,sart2") || - OF_is_compatible(faa->fa_node, "apple,sart3"); + return OF_is_compatible(faa->fa_node, "apple,t6000-sart") || + OF_is_compatible(faa->fa_node, "apple,t8103-sart"); } void @@ -97,9 +97,9 @@ aplsart_attach(struct device *parent, struct device *self, void *aux) sc->sc_phandle = OF_getpropint(faa->fa_node, "phandle", 0); - if (OF_is_compatible(faa->fa_node, "apple,sart2")) + if (OF_is_compatible(faa->fa_node, "apple,t8103-sart")) sc->sc_version = 2; - if (OF_is_compatible(faa->fa_node, "apple,sart3")) + if (OF_is_compatible(faa->fa_node, "apple,t6000-sart")) sc->sc_version = 3; printf("\n"); |