]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: rockchip: allow to build for TPL
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 6 Nov 2024 11:29:41 +0000 (12:29 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 11 Nov 2024 07:14:14 +0000 (15:14 +0800)
A later commit will make use of the pinctrl driver in TPL so let's add
the ability to build the Rockchip pinctrl driver in TPL.

Reviewed-by: Paul Kocialkowski <paulk@sys-base.io>
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/pinctrl/Kconfig
drivers/pinctrl/rockchip/Kconfig

index a1d53cfbdbed5ef1030fff04715e1436f167554b..6ee7dc1cce8da08e13b898c541d047bad9e3c89b 100644 (file)
@@ -127,6 +127,14 @@ config SPL_PINCTRL_GENERIC
          This option is an SPL-variant of the PINCTRL_GENERIC option.
          See the help of PINCTRL_GENERIC for details.
 
+config TPL_PINCTRL_GENERIC
+       bool "Support generic pin controllers in TPL"
+       depends on TPL_PINCTRL_FULL
+       default y
+       help
+         This option is a TPL-variant of the PINCTRL_GENERIC option.
+         See the help of PINCTRL_GENERIC for details.
+
 config SPL_PINMUX
        bool "Support pin multiplexing controllers in SPL"
        depends on SPL_PINCTRL_GENERIC
index dc4ba34ae5d581be76786fd05d679d26397fd467..8aa9dcac35873d99f9dd28ed18232b52a9f4343a 100644 (file)
@@ -14,4 +14,11 @@ config SPL_PINCTRL_ROCKCHIP
        help
          This option is an SPL-variant of the PINCTRL_ROCKCHIP option.
 
+config TPL_PINCTRL_ROCKCHIP
+       bool "Support Rockchip pin controllers in TPL"
+       depends on ARCH_ROCKCHIP && TPL_PINCTRL_GENERIC
+       default y
+       help
+         This option is a TPL-variant of the PINCTRL_ROCKCHIP option.
+
 endif