Add `SPL_PINCTRL_SPACEMIT_K1` to enable the SpacemiT K1
pinctrl driver during SPL initialization.

Depend on `SPL_PINCTRL`, `SPL_DM`, and `PINCTRL_GENERIC`,
and select `PINCTRL_SPACEMIT_K1` to reuse the existing
driver implementation.

This allows SPL to configure pin multiplexing for early
board initialization.

Cc: Dave Klotz <[email protected]>
Cc: Eric Chung <[email protected]>
Cc: Hung-Chun Tseng <[email protected]>
Cc: E Shattow <[email protected]>
Cc: Yixun Lan <[email protected]>
Signed-off-by: Anand Moon <[email protected]>
---
 drivers/pinctrl/spacemit/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/pinctrl/spacemit/Kconfig b/drivers/pinctrl/spacemit/Kconfig
index 87cba336923..5770e4865d9 100644
--- a/drivers/pinctrl/spacemit/Kconfig
+++ b/drivers/pinctrl/spacemit/Kconfig
@@ -7,3 +7,11 @@ config PINCTRL_SPACEMIT_K1
          The driver is controlled by a device tree node which contains both
          the GPIO definitions and pin control functions for each available
          multiplex function.
+
+config SPL_PINCTRL_SPACEMIT_K1
+       bool "Spacemit K1 pinctrl driver in SPL"
+       depends on SPL_PINCTRL && SPL_DM && PINCTRL_GENERIC
+       select PINCTRL_SPACEMIT_K1
+       help
+         Enable the Spacemit K1 pinctrl driver in SPL.
+         This allows SPL to configure pinctrl during early board 
initialization.
-- 
2.56.0

Reply via email to