[PATCH v3 16/22] firmware: ti_sci: Move the huge ti_sci file into its own directory
Beleswar Padhi
b-padhi at ti.com
Thu Oct 29 11:11:41 PDT 2026
From: Andrew Davis <afd at ti.com>
Move the huge ti_sci.c file and its header into its own "ti"
sub-directory. While at it, rename the file to ti_sci_core.c as this
file will be broken down into smaller files tied to operations as part
of future cleanups.
Signed-off-by: Andrew Davis <afd at ti.com>
Signed-off-by: Beleswar Padhi <b-padhi at ti.com>
---
v3: Changelog:
1. Rename ti_sci.c to ti_sci_core.c while refactoring the files.
[Andrew]
Link to v2:
https://lore.kernel.org/all/20260930160607.2674980-17-b-padhi@ti.com/
v2: Changelog:
1. None to this patch.
Link to v1:
https://lore.kernel.org/all/20260929201746.4078803-17-b-padhi@ti.com/
MAINTAINERS | 2 +-
drivers/firmware/Kconfig | 17 +----------------
drivers/firmware/Makefile | 2 +-
drivers/firmware/ti/Kconfig | 17 +++++++++++++++++
drivers/firmware/ti/Makefile | 4 ++++
drivers/firmware/{ => ti}/ti_sci.h | 0
drivers/firmware/{ti_sci.c => ti/ti_sci_core.c} | 0
7 files changed, 24 insertions(+), 18 deletions(-)
create mode 100644 drivers/firmware/ti/Kconfig
create mode 100644 drivers/firmware/ti/Makefile
rename drivers/firmware/{ => ti}/ti_sci.h (100%)
rename drivers/firmware/{ti_sci.c => ti/ti_sci_core.c} (100%)
diff --git a/MAINTAINERS b/MAINTAINERS
index e4ca41cdd8729..2ebc349551262 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -27774,7 +27774,7 @@ F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml
F: Documentation/devicetree/bindings/reset/ti,sci-reset.yaml
F: Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
F: drivers/clk/keystone/sci-clk.c
-F: drivers/firmware/ti_sci*
+F: drivers/firmware/ti/*
F: drivers/irqchip/irq-ti-sci-inta.c
F: drivers/irqchip/irq-ti-sci-intr.c
F: drivers/reset/reset-ti-sci.c
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 43e2e2a645945..aa9e0396605e7 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -236,22 +236,6 @@ config TH1520_AON_PROTOCOL
the kernel through the Always-On protocol, using hardware mailbox as a medium.
Say yes if you need such capabilities.
-config TI_SCI_PROTOCOL
- tristate "TI System Control Interface (TISCI) Message Protocol"
- depends on TI_MESSAGE_MANAGER
- default ARCH_K3
- help
- TI System Control Interface (TISCI) Message Protocol is used to manage
- compute systems such as ARM, DSP etc with the system controller in
- complex System on Chip(SoC) such as those found on certain keystone
- generation SoC from TI.
-
- System controller provides various facilities including power
- management function support.
-
- This protocol library is used by client drivers to use the features
- provided by the system controller.
-
config TRUSTED_FOUNDATIONS
bool "Trusted Foundations secure monitor support"
depends on ARM && CPU_V7
@@ -313,6 +297,7 @@ source "drivers/firmware/qcom/Kconfig"
source "drivers/firmware/samsung/Kconfig"
source "drivers/firmware/smccc/Kconfig"
source "drivers/firmware/tegra/Kconfig"
+source "drivers/firmware/ti/Kconfig"
source "drivers/firmware/xilinx/Kconfig"
endmenu
diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile
index 50b3383131522..d9e72ba2e4e01 100644
--- a/drivers/firmware/Makefile
+++ b/drivers/firmware/Makefile
@@ -21,7 +21,6 @@ obj-$(CONFIG_FW_ATTR_CLASS) += firmware_attributes_class.o
obj-$(CONFIG_SYSFB) += sysfb.o
obj-$(CONFIG_SYSFB_SIMPLEFB) += sysfb_simplefb.o
obj-$(CONFIG_TH1520_AON_PROTOCOL) += thead,th1520-aon.o
-obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o
obj-$(CONFIG_TRUSTED_FOUNDATIONS) += trusted_foundations.o
obj-$(CONFIG_TURRIS_MOX_RWTM) += turris-mox-rwtm.o
@@ -40,4 +39,5 @@ obj-y += qcom/
obj-y += samsung/
obj-y += smccc/
obj-y += tegra/
+obj-y += ti/
obj-y += xilinx/
diff --git a/drivers/firmware/ti/Kconfig b/drivers/firmware/ti/Kconfig
new file mode 100644
index 0000000000000..07d7968f9cc8f
--- /dev/null
+++ b/drivers/firmware/ti/Kconfig
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config TI_SCI_PROTOCOL
+ tristate "TI System Control Interface (TISCI) Message Protocol"
+ depends on TI_MESSAGE_MANAGER
+ default ARCH_K3
+ help
+ TI System Control Interface (TISCI) Message Protocol is used to manage
+ compute systems such as ARM, DSP etc with the system controller in
+ complex System on Chip(SoC) such as those found on certain keystone
+ generation SoC from TI.
+
+ System controller provides various facilities including power
+ management function support.
+
+ This protocol library is used by client drivers to use the features
+ provided by the system controller.
diff --git a/drivers/firmware/ti/Makefile b/drivers/firmware/ti/Makefile
new file mode 100644
index 0000000000000..ca54cd35eaef2
--- /dev/null
+++ b/drivers/firmware/ti/Makefile
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+ti_sci-y := ti_sci_core.o
+obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o
diff --git a/drivers/firmware/ti_sci.h b/drivers/firmware/ti/ti_sci.h
similarity index 100%
rename from drivers/firmware/ti_sci.h
rename to drivers/firmware/ti/ti_sci.h
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti/ti_sci_core.c
similarity index 100%
rename from drivers/firmware/ti_sci.c
rename to drivers/firmware/ti/ti_sci_core.c
--
2.34.1
More information about the linux-arm-kernel
mailing list