amd - Add family 19h temperature sensor support, fix 17h support
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 7 Jan 2023 18:42:38 +0000 (10:42 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 Jan 2023 06:46:26 +0000 (22:46 -0800)
commitd24e8fa25e309568d16e2480c576f5c930b67283
treeb866c5a0c1d3019a2e43f9f5bfb9a83818af7f15
parent13adf822935e1f33cf15a7d95300bfdf3aa8dc58
amd - Add family 19h temperature sensor support, fix 17h support

* Add family 19h temperature sensor support.  Note that the
  CCD address offset for models 0x60-0x6f and 0x70-0x7f is
  0x308, not 0x154.

* Fix temperature sensor address base for CCD temps for
  some 17h models.  0x10-0x1f, 0x40-4f, and 0x10-1f models
  use an offset of 0x300, not 0x154.

* Address offset corrections obtained from linux
sys/dev/powermng/amdsmn/amdsmn.c
sys/dev/powermng/amdtemp/amdtemp.c