Page MenuHomeFreeBSD

Make Marvell AmadaXP timer driver more generic
ClosedPublic

Authored by mkm_semihalf.com on Mar 19 2018, 5:35 PM.
Tags
Referenced Files
F139370728: D14741.id40452.diff
Thu, Dec 11, 9:01 AM
F139370727: D14741.id40541.diff
Thu, Dec 11, 9:01 AM
F139370726: D14741.id41067.diff
Thu, Dec 11, 9:01 AM
F139370646: D14741.diff
Thu, Dec 11, 9:00 AM
Unknown Object (File)
Fri, Dec 5, 4:58 PM
Unknown Object (File)
Sat, Nov 29, 2:04 AM
Unknown Object (File)
Wed, Nov 26, 11:28 PM
Unknown Object (File)
Tue, Nov 25, 4:10 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Ok for the dts part.

This revision is now accepted and ready to land.Mar 21 2018, 9:47 AM
sys/arm/mv/timer.c
305

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.

mkm_semihalf.com marked an inline comment as done.
This revision now requires review to proceed.Mar 21 2018, 3:33 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 3 2018, 10:21 PM
This revision was automatically updated to reflect the committed changes.