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
This commit is contained in:
Andrew Turner 2014-11-28 11:49:26 +00:00
parent 56f0c37e9f
commit 15eb3a7427
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275208

View File

@ -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)