summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-02-25 09:29:36 +0800
committerFabio Estevam <[email protected]>2026-02-28 15:31:59 -0300
commit85d55a610ea14693faa41487002df944658cbb22 (patch)
tree94a80def142786568f2b04423a12db856798c09d
parentce4f470eb41143c0f7e258ebc3ae318eda07f982 (diff)
pinctrl: nxp: imx9: Guard pinctrl match table with CONFIG_IMX9[X]
The i.MX9 pinctrl match table currently lists all SoC compatibles unconditionally, which may lead to unused entries being included when building for specific SoC variants. Guard each compatible entry with the corresponding CONFIG_IMX9[X] option so only the required SoC entries are compiled in, which reduces unnecessary data. Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--drivers/pinctrl/nxp/pinctrl-imx9.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pinctrl/nxp/pinctrl-imx9.c b/drivers/pinctrl/nxp/pinctrl-imx9.c
index 1b7e43901af..de22e29e953 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx9.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx9.c
@@ -17,8 +17,12 @@ static struct imx_pinctrl_soc_info imx9_pinctrl_soc_info __section(".data") = {
};
static const struct udevice_id imx9_pinctrl_match[] = {
+#if IS_ENABLED(CONFIG_IMX93)
{ .compatible = "fsl,imx93-iomuxc", .data = (ulong)&imx9_pinctrl_soc_info },
+#endif
+#if IS_ENABLED(CONFIG_IMX91)
{ .compatible = "fsl,imx91-iomuxc", .data = (ulong)&imx9_pinctrl_soc_info },
+#endif
{ /* sentinel */ }
};