[PATCH] thermal: use upstream bcm2835 thermal driver for arm64

Allen Wild allenwild93 at gmail.com
Wed Aug 30 18:04:48 PDT 2017


The downstream bcm2835-thermal driver (enabled with THERMAL_BCM2835)
doesn't work on the Pi3 in 64 bit mode, but the upstream driver (enabled
with BCM2835_THERMAL) can't be enabled for arm64 since the Broadcom
Kconfig menu depends on ARCH_BCM which is only for 32-bit ARM.

This patch enables the Broadcom thermal drivers Kconfigs for
ARCH_BCM2835 and updates the bcmrpi3_defconfig to use the upstream
bcm2835 thermal driver.
---
 arch/arm64/configs/bcmrpi3_defconfig | 3 ++-
 drivers/thermal/Kconfig              | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/configs/bcmrpi3_defconfig b/arch/arm64/configs/bcmrpi3_defconfig
index 9dcb58a519d0..2dc41aad3366 100644
--- a/arch/arm64/configs/bcmrpi3_defconfig
+++ b/arch/arm64/configs/bcmrpi3_defconfig
@@ -642,7 +642,8 @@ CONFIG_SENSORS_SHT21=m
 CONFIG_SENSORS_SHTC1=m
 CONFIG_SENSORS_INA2XX=m
 CONFIG_THERMAL=y
-CONFIG_THERMAL_BCM2835=y
+# CONFIG_THERMAL_BCM2835 is not set
+CONFIG_BCM2835_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_BCM2835_WDT=y
 CONFIG_UCB1400_CORE=m
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 257e2d59d1b0..61353fdcc995 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -415,7 +415,7 @@ config MTK_THERMAL
 	  controller present in Mediatek SoCs
 
 menu "Broadcom thermal drivers"
-depends on ARCH_BCM || COMPILE_TEST
+depends on ARCH_BCM || ARCH_BCM2835 || COMPILE_TEST
 source "drivers/thermal/broadcom/Kconfig"
 endmenu
 
-- 
2.14.1




More information about the linux-rpi-kernel mailing list