From: Yingjoe Chen <yingjoe.chen@mediatek.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Paul Bolle <pebolle@tiscali.nl>, Arnd Bergmann <arnd@arndb.de>
Cc: srv_heupstream@mediatek.com,
Hongzhou Yang <hongzhou.yang@mediatek.com>,
Catalin Marinas <catalin.marinas@arm.com>,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-mediatek@lists.infradead.org,
Matthias Brugger <matthias.bgg@gmail.com>,
Yingjoe Chen <yingjoe.chen@mediatek.com>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
Date: Fri, 13 Mar 2015 22:40:52 +0800 [thread overview]
Message-ID: <1426257652-16779-1-git-send-email-yingjoe.chen@mediatek.com> (raw)
In-Reply-To: <1425623091-30478-2-git-send-email-yingjoe.chen@mediatek.com>
Hi Linus,
Yet another version. Changed based on Arnd's suggestion to make config
options for PINCTRL_MT8135 & PINCTRL_MT8173 more consist. This is based
on mtk-staging in your tree. If you think this is OK, please applied or
squash this into previous change. Thanks.
Old patch can be found at:
http://lists.infradead.org/pipermail/linux-mediatek/2015-March/000057.html
Joe.C
8<-------------------------------------------------------
ARM64 maintainer doesn't want to add MACH_* for each SoC.
Adjust mt8173 pinctrl kconfig entry so user can manually select it.
Also make PINCTRL_MT8135 selectable when COMPILE_TEST is enabled.
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
---
drivers/pinctrl/mediatek/Kconfig | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig
index 49b8649..5983cf5 100644
--- a/drivers/pinctrl/mediatek/Kconfig
+++ b/drivers/pinctrl/mediatek/Kconfig
@@ -1,4 +1,4 @@
-if ARCH_MEDIATEK
+if ARCH_MEDIATEK || COMPILE_TEST
config PINCTRL_MTK_COMMON
bool
@@ -7,12 +7,17 @@ config PINCTRL_MTK_COMMON
select GPIOLIB
select OF_GPIO
+# For ARMv7 SoCs
config PINCTRL_MT8135
- def_bool MACH_MT8135
+ bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
+ default MACH_MT8135
select PINCTRL_MTK_COMMON
+# For ARMv8 SoCs
config PINCTRL_MT8173
- def_bool MACH_MT8173
+ bool "Mediatek MT8173 pin control"
+ depends on ARM64 || COMPILE_TEST
+ default ARM64 && ARCH_MEDIATEK
select PINCTRL_MTK_COMMON
endif
--
1.8.1.1.dirty
next prev parent reply other threads:[~2015-03-13 14:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 6:24 [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Yingjoe Chen
2015-03-06 6:24 ` [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig Yingjoe Chen
2015-03-06 11:05 ` Paul Bolle
2015-03-09 8:26 ` Yingjoe Chen
2015-03-09 8:13 ` [PATCH] " Yingjoe Chen
2015-03-09 20:36 ` [PATCH 2/2] " Arnd Bergmann
2015-03-13 6:46 ` Yingjoe Chen
2015-03-13 10:08 ` Arnd Bergmann
2015-03-13 14:40 ` Yingjoe Chen [this message]
2015-03-18 12:01 ` [PATCH v3] " Linus Walleij
2015-03-06 13:18 ` [PATCH 1/2] arm64: mediatek: Select PINCTRL for Mediatek platform Matthias Brugger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426257652-16779-1-git-send-email-yingjoe.chen@mediatek.com \
--to=yingjoe.chen@mediatek.com \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=hongzhou.yang@mediatek.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=pebolle@tiscali.nl \
--cc=srv_heupstream@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).