freebsd-dev/sys/arm64/qoriq
Bjoern A. Zeeb fe88072dc6 arm64, qoriq_therm: fix handling sites on version 1 and 2
For version 2 extend the TMUV2_TMSAR() write loop over all site_ids
registered for a particular SoC and actually use the site_id rather
than always just the first [0] (which for the LX2080 would be a
problem given there is no site0).

Later, while version 2 adds the SITEs to enable to TMSR in bits 0..<n>,
version 1 (e.g., LS1028, LS1046, LS1088) add MSITEs to TMR
bits 16..31 or rather 15..0(16-<n>).  Adjust the loops to only enable
the site_ids listed for the particular SoC for monitoring.  This now
also deals with sparse site_ids (not starting at 0, or not being
contiguous).

MFC after:	1 week
Sponsored by:	Traverse Technologies (providing Ten64 HW for testing)
Reviewed by:	mmel
Differential Revision: https://reviews.freebsd.org/D35764
2022-07-18 11:51:03 +00:00
..
clk arm64: NXP add LS1088a clockgen support 2022-07-02 16:27:23 +00:00
qoriq_dw_pci.c arm64 qoriq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:45 -07:00
qoriq_gpio_pic.c arm64 qoriq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:45 -07:00
qoriq_therm_if.m Add basic support for Freescale LX2160A SoC. 2020-12-05 12:08:37 +00:00
qoriq_therm.c arm64, qoriq_therm: fix handling sites on version 1 and 2 2022-07-18 11:51:03 +00:00