thermal: tegra: split tegra_soctherm driver
Subsystems (2)
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.
Signed-off-by Wei Ni <[email protected]>
--- 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
@@ -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
@@ -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