Dynamically attach agtimer(4). Since agtimer(4) also provides the delay()
authorkettenis <kettenis@openbsd.org>
Wed, 10 Aug 2016 06:51:57 +0000 (06:51 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 10 Aug 2016 06:51:57 +0000 (06:51 +0000)
commit24e5cb751a4799c7949b6c79b6c5e543ab2e0a02
treebdacdb7dcc16078cfba70c52c8f51fd0bb1fb90d
parent237556f18ab36d00259d04acca0b2684b5b0ba04
Dynamically attach agtimer(4).  Since agtimer(4) also provides the delay()
function for platforms that have it, rework the code a bit such that it can
be used before agtimer(4) attaches.  Introduce a new agtimer_init()
function that checks whether the CPU implements the Generic Timer feature
and switches to agtimer_delay() if that feature is present.  Call this
function from the generic platform initialization code.

ok jsg@
sys/arch/arm/cortex/agtimer.c
sys/arch/arm/cortex/files.cortex
sys/arch/armv7/armv7/platform.c
sys/arch/armv7/conf/GENERIC