diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-08-27 18:29:46 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-08-27 18:29:46 +0000 |
commit | b797069f2760463f65a24e0fad48b644e5d6654e (patch) | |
tree | 7ecab49006fad72e7e60550e6fd7648c425ebaf8 /sys/dev/fdt | |
parent | 603788b138b6fb2adad690192ddc5a3f4125d413 (diff) |
Fix HSET4 and HCLR4 macros; I shouldn't make last-minute changes without
actually testing them.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/amlclock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/amlclock.c b/sys/dev/fdt/amlclock.c index 4cdf9bd1f46..62fb98b40f3 100644 --- a/sys/dev/fdt/amlclock.c +++ b/sys/dev/fdt/amlclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlclock.c,v 1.1 2019/08/27 08:19:55 kettenis Exp $ */ +/* $OpenBSD: amlclock.c,v 1.2 2019/08/27 18:29:45 kettenis Exp $ */ /* * Copyright (c) 2019 Mark Kettenis <kettenis@openbsd.org> * @@ -44,9 +44,9 @@ #define HWRITE4(sc, reg, val) \ regmap_write_4((sc)->sc_rm, (reg) << 2, (val)) #define HSET4(sc, reg, bits) \ - HWRITE4((sc), (reg) << 2, HREAD4((sc), (reg) << 2) | (bits)) + HWRITE4((sc), (reg), HREAD4((sc), (reg)) | (bits)) #define HCLR4(sc, reg, bits) \ - HWRITE4((sc), (reg) << 2, HREAD4((sc), (reg) << 2) & ~(bits)) + HWRITE4((sc), (reg), HREAD4((sc), (reg)) & ~(bits)) struct amlclock_softc { struct device sc_dev; |