diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2014-11-28 11:49:26 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2014-11-28 11:49:26 +0000 |
commit | 15eb3a74275b5911acd2a1645ccad333347294f5 (patch) | |
tree | 55445b1dc6d9b87323feaa89dfa19c0662b133a9 /sys/arm/arm | |
parent | 56f0c37e9fb9c933cd9fdf70965f5cc7c603442b (diff) | |
download | src-15eb3a74275b5911acd2a1645ccad333347294f5.tar.gz src-15eb3a74275b5911acd2a1645ccad333347294f5.zip |
Some device tree configurations place the generic timer under the root
of the tree and not under simplebus. Update the driver to handle this.
Submitted by: Julien Grall <julien.grall AT linaro.org>
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=275208
Diffstat (limited to 'sys/arm/arm')
-rw-r--r-- | sys/arm/arm/generic_timer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/arm/generic_timer.c b/sys/arm/arm/generic_timer.c index 5747b63f89e9..a447353c46c2 100644 --- a/sys/arm/arm/generic_timer.c +++ b/sys/arm/arm/generic_timer.c @@ -353,6 +353,8 @@ static devclass_t arm_tmr_devclass; EARLY_DRIVER_MODULE(timer, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0, BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(timer, ofwbus, arm_tmr_driver, arm_tmr_devclass, 0, 0, + BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE); void DELAY(int usec) |