lkml.org 
[lkml]   [2020]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] pinctrl: rockchip: new rockchip dir for pinctrl-rockchip
Date
Create a new direcoty "rockchip" under pinctrl for pinctrl-rockchip.

This is base patch which prepares for spliting driver by SoC types.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
---
drivers/pinctrl/Kconfig | 7 -------
drivers/pinctrl/rockchip/Kconfig | 12 ++++++++++++
drivers/pinctrl/rockchip/Makefile | 2 ++
drivers/pinctrl/{ => rockchip}/pinctrl-rockchip.c | 0
4 files changed, 14 insertions(+), 7 deletions(-)
create mode 100644 drivers/pinctrl/rockchip/Kconfig
create mode 100644 drivers/pinctrl/rockchip/Makefile
rename drivers/pinctrl/{ => rockchip}/pinctrl-rockchip.c (100%)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 3bfbf2ff6e2b..5a16020c733d 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -186,13 +186,6 @@ config PINCTRL_OXNAS
select GPIOLIB_IRQCHIP
select MFD_SYSCON

-config PINCTRL_ROCKCHIP
- bool
- select PINMUX
- select GENERIC_PINCONF
- select GENERIC_IRQ_CHIP
- select MFD_SYSCON
-
config PINCTRL_RZA1
bool "Renesas RZ/A1 gpio and pinctrl driver"
depends on OF
diff --git a/drivers/pinctrl/rockchip/Kconfig b/drivers/pinctrl/rockchip/Kconfig
new file mode 100644
index 000000000000..7a0077ca32dd
--- /dev/null
+++ b/drivers/pinctrl/rockchip/Kconfig
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0
+
+if (ARCH_ROCKCHIP || COMPILE_TEST)
+
+config PINCTRL_ROCKCHIP
+ bool
+ select PINMUX
+ select GENERIC_PINCONF
+ select GENERIC_IRQ_CHIP
+ select MFD_SYSCON
+
+endif
diff --git a/drivers/pinctrl/rockchip/Makefile b/drivers/pinctrl/rockchip/Makefile
new file mode 100644
index 000000000000..50568f4b6667
--- /dev/null
+++ b/drivers/pinctrl/rockchip/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_PINCTRL_ROCKCHIP) += pinctrl-rockchip.o
diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/rockchip/pinctrl-rockchip.c
similarity index 100%
rename from drivers/pinctrl/pinctrl-rockchip.c
rename to drivers/pinctrl/rockchip/pinctrl-rockchip.c
--
2.17.1


\
 
 \ /
  Last update: 2020-01-17 09:14    [W:0.090 / U:3.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site