Skip to contentSkip to conversation

thermal: tegra: split tegra_soctherm driver

PATCH Superseded Wei Ni 1 participant 1 message Jan 25, 2016

Subsystems (2)

v4 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Wei Ni

author
#0 lore raw

PATCH v4 4/11 thermal: tegra: split tegra_soctherm driver

Split most of the Tegra124 data and code into a Tegra124-specific file.
Split most of the fuse-related code into a fuse-related source file. This is in preparation for adding a Tegra210-specific driver in a future patch.

Beyond the maintainability improvements, this is intended to separate chip-specific ATE and characterization-related hacks into chip-specific files, in the hopes that they won't pollute code for other chips.

---
 drivers/thermal/tegra/Kconfig             |   2 +-
 drivers/thermal/tegra/Makefile            |   3 +
 drivers/thermal/tegra/soctherm-fuse.c     | 158 ++++++++
 drivers/thermal/tegra/soctherm.c          | 321 +++++++++++++++++
 drivers/thermal/tegra/soctherm.h          | 110 ++++++
 drivers/thermal/tegra/tegra-soctherm.c    | 579 ------------------------------
 drivers/thermal/tegra/tegra124-soctherm.c | 172 +++++++++
 7 files changed, 765 insertions(+), 580 deletions(-)
 create mode 100644 drivers/thermal/tegra/soctherm-fuse.c
 create mode 100644 drivers/thermal/tegra/soctherm.c
 create mode 100644 drivers/thermal/tegra/soctherm.h
 delete mode 100644 drivers/thermal/tegra/tegra-soctherm.c
 create mode 100644 drivers/thermal/tegra/tegra124-soctherm.c
drivers/thermal/tegra/Kconfig +1 -1
index 0b719d8b629b..fc8a6769b70d 100644
@@ -5,7 +5,7 @@ config TEGRA_SOCTHERM
 	depends on ARCH_TEGRA
 	help
 	  Enable this option for integrated thermal management support on NVIDIA
-	  Tegra124 systems-on-chip. The driver supports four thermal zones
+	  Tegra systems-on-chip. The driver supports four thermal zones
 	  (CPU, GPU, MEM, PLLX). Cooling devices can be bound to the thermal
 	  zones to manage temperatures. This option is also required for the
 	  emergency thermal reset (thermtrip) feature to function.
drivers/thermal/tegra/Makefile +3 -0
index d4dc4e7f279e..d5fb15377b97 100644
@@ -1 +1,4 @@
 obj-$(CONFIG_TEGRA_SOCTHERM)	+= tegra-soctherm.o
+
+tegra-soctherm-y				:= soctherm.o soctherm-fuse.o
+tegra-soctherm-$(CONFIG_ARCH_TEGRA_124_SOC)	+= tegra124-soctherm.o
drivers/thermal/tegra/soctherm-fuse.c new file +158 -0

158 lines not on this page · raw message

drivers/thermal/tegra/soctherm.c new file +321 -0

321 lines not on this page · raw message

drivers/thermal/tegra/soctherm.h new file +110 -0

110 lines not on this page · raw message

drivers/thermal/tegra/tegra-soctherm.c deleted +0 -579

579 lines not on this page · raw message

drivers/thermal/tegra/tegra124-soctherm.c new file +172 -0

172 lines not on this page · raw message

Signature · 1 line
1.9.1