diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2020-09-08 01:29:05 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2020-09-08 01:29:05 +0000 |
commit | 0073bdb4ab321e0ad317670bbdcc53e92535669b (patch) | |
tree | e778996ebb295bc06caf6f75acb7ec279f3193ae /sys/dev/fdt | |
parent | e26556033eea02e655caf639a065f144f983a8a3 (diff) |
Add RK3328 PWM, also found in the RK3308.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/rkpwm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdt/rkpwm.c b/sys/dev/fdt/rkpwm.c index 0fac22f5e9c..1a8548df16f 100644 --- a/sys/dev/fdt/rkpwm.c +++ b/sys/dev/fdt/rkpwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpwm.c,v 1.1 2019/12/03 09:08:48 patrick Exp $ */ +/* $OpenBSD: rkpwm.c,v 1.2 2020/09/08 01:29:04 jmatthew Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se> @@ -78,7 +78,8 @@ rkpwm_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "rockchip,rk3288-pwm"); + return (OF_is_compatible(faa->fa_node, "rockchip,rk3288-pwm") || + OF_is_compatible(faa->fa_node, "rockchip,rk3328-pwm")); } void |