Home
last modified time | relevance | path

Searched hist:"99 c641370b52348b2893b2cd19624bf9a416ccfa" (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/include/hw/misc/
H A Dbcm2835_thermal.h99c641370b52348b2893b2cd19624bf9a416ccfa Sat Oct 19 18:47:00 CDT 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> hw/misc/bcm2835_thermal: Add a dummy BCM2835 thermal sensor

We will soon implement the SYS_timer. This timer is used by Linux
in the thermal subsystem, so once available, the subsystem will be
enabled and poll the temperature sensors. We need to provide the
minimum required to keep Linux booting.

Add a dummy thermal sensor returning ~25°C based on:
https://github.com/raspberrypi/linux/blob/rpi-5.3.y/drivers/thermal/broadcom/bcm2835_thermal.c

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20191019234715.25750-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
/openbmc/qemu/hw/misc/
H A Dbcm2835_thermal.c99c641370b52348b2893b2cd19624bf9a416ccfa Sat Oct 19 18:47:00 CDT 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> hw/misc/bcm2835_thermal: Add a dummy BCM2835 thermal sensor

We will soon implement the SYS_timer. This timer is used by Linux
in the thermal subsystem, so once available, the subsystem will be
enabled and poll the temperature sensors. We need to provide the
minimum required to keep Linux booting.

Add a dummy thermal sensor returning ~25°C based on:
https://github.com/raspberrypi/linux/blob/rpi-5.3.y/drivers/thermal/broadcom/bcm2835_thermal.c

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20191019234715.25750-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>