Skip to contentSkip to conversation

thermal: tegra: split tegra_soctherm driver

PATCH Superseded Wei Ni 1 participant 1 message Mar 29, 2016

Subsystems (2)
lore
Share & tools
lore

Wei Ni

author
#0 lore raw

PATCH v9 4/14 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          | 310 ++++++++++++++++
 drivers/thermal/tegra/soctherm.h          | 110 ++++++
 drivers/thermal/tegra/tegra-soctherm.c    | 565 ------------------------------
 drivers/thermal/tegra/tegra124-soctherm.c | 172 +++++++++
 7 files changed, 754 insertions(+), 566 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 bed898858d02..cec586ec7e4b 100644
@@ -5,7 +5,7 @@ config TEGRA_SOCTHERM
 	tristate "Tegra SOCTHERM thermal management"
 	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 +310 -0

310 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 -565

565 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