sim: Thermal support for Linux
authorDavid Guillen Fandos <david.guillen@arm.com>
Wed, 13 May 2015 14:02:25 +0000 (15:02 +0100)
committerDavid Guillen Fandos <david.guillen@arm.com>
Wed, 13 May 2015 14:02:25 +0000 (15:02 +0100)
commit65ecd954861aa76532ca79453afcf66a837e1fa6
tree65a7eef6c12995b1215ce5b0622da7732fd87cea
parent75c82f1fe3e654ca7d472d8f824424ff450c01d1
sim: Thermal support for Linux

This patch enables Linux to read the temperature using hwmon infrastructure.
In order to use this in your gem5 you need to compile the kernel using the
following configs:

CONFIG_HWMON=y
CONFIG_SENSORS_VEXPRESS=y

And a proper dts file (containing an entry such as):

dcc {
 compatible = "arm,vexpress,config-bus";
 arm,vexpress,config-bridge = <&v2m_sysreg>;

  temp@0 {
   compatible = "arm,vexpress-temp";
   arm,vexpress-sysreg,func = <4 0>;
   label = "DCC";
  };
};
src/dev/arm/RealView.py
src/dev/arm/rv_ctrl.cc
src/dev/arm/rv_ctrl.hh