Store pointers to SoC specific functions in mv_timer_config structure
and determine proper config at runtime based on compatible string from FDT.
Compatible string for ArmadaXP timers is changed to match Linux FDT.
Armada 38x uses generic Cortex-A9 timer and separate watchdog drivers, so
it does not need to be supported by timer driver.
Details
Details
- Reviewers
mw loos manu - Commits
- rS331961: Make Marvell AmadaXP timer driver more generic
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/arm/mv/timer.c | ||
---|---|---|
305 ↗ | (On Diff #40452) | You should split this out to a new function to just handle when the timers have been initialised. The PLATFORM code will perform the software loop in the early boot. Have a look at arm_tmr_do_delay in the generic timer driver for how it's done. |