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>
Sat, 7 Jan 2023 18:42:38 +0000 (10:42 -0800)
commit4970ada57b6cc19fe689ea63ed5ec5e21cf4a22a
tree6c21c6a7854c876765c18ad000610813dd21e321
parent790cc7ef990d3764442abf0367fa3f1639982310
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