Skip to contentSkip to conversation

thermal: enable broadcom menu for arm64 bcm2835

PATCH Superseded Allen Wild 1 participant 2 messages Aug 31, 2017 Thermal

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Allen Wild

author
#0 lore raw

PATCH 1/2 thermal: enable broadcom menu for arm64 bcm2835

The bcm2835 thermal driver works for arm64 (Raspberry Pi 3), but the Broadcom thermal Kconfig menu depends on the 32-bit ARCH_BCM config so the driver can't be enabled.

Fix this by enabling the Broadcom thermal menu for ARCH_BCM2835 or ARCH_BCM

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index b5b5facb8747..962620925878 100644
@@ -408,7 +408,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
 
Signature · 1 line
2.14.1
author
#1 lore raw

PATCH 2/2 arm64: defconfig: enable BCM2835_THERMAL

After fixing the thermal Kconfig to allow enabling the bcm2835 thermal driver for arm64, turn it back on in the defconfig.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index b4ca115b3be1..d3d3f427755d 100644
@@ -304,6 +304,7 @@ CONFIG_SENSORS_INA2XX=m
 CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
 CONFIG_CPU_THERMAL=y
 CONFIG_THERMAL_EMULATION=y
+CONFIG_BCM2835_THERMAL=y
 CONFIG_EXYNOS_THERMAL=y
 CONFIG_ROCKCHIP_THERMAL=m
 CONFIG_WATCHDOG=y
Signature · 1 line
2.14.1