* [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias
@ 2014-06-18 4:49 Andy Gross
2014-06-18 5:22 ` Bjorn Andersson
2014-07-07 14:21 ` Linus Walleij
0 siblings, 2 replies; 3+ messages in thread
From: Andy Gross @ 2014-06-18 4:49 UTC (permalink / raw)
To: Linus Walleij
Cc: Bjorn Andersson, linux-kernel, linux-arm-kernel, linux-arm-msm,
Andy Gross
This patch adds the BUS_HOLD (Keeper) bias option for pins.
Signed-off-by: Andy Gross <agross@codeaurora.org>
---
drivers/pinctrl/pinctrl-msm.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/pinctrl-msm.c b/drivers/pinctrl/pinctrl-msm.c
index e43fbce..9aa2839 100644
--- a/drivers/pinctrl/pinctrl-msm.c
+++ b/drivers/pinctrl/pinctrl-msm.c
@@ -206,6 +206,7 @@ static int msm_config_reg(struct msm_pinctrl *pctrl,
switch (param) {
case PIN_CONFIG_BIAS_DISABLE:
case PIN_CONFIG_BIAS_PULL_DOWN:
+ case PIN_CONFIG_BIAS_BUS_HOLD:
case PIN_CONFIG_BIAS_PULL_UP:
*bit = g->pull_bit;
*mask = 3;
@@ -243,6 +244,7 @@ static int msm_config_set(struct pinctrl_dev *pctldev, unsigned int pin,
#define MSM_NO_PULL 0
#define MSM_PULL_DOWN 1
+#define MSM_KEEPER 2
#define MSM_PULL_UP 3
static unsigned msm_regval_to_drive(u32 val)
@@ -280,6 +282,9 @@ static int msm_config_group_get(struct pinctrl_dev *pctldev,
case PIN_CONFIG_BIAS_PULL_DOWN:
arg = arg == MSM_PULL_DOWN;
break;
+ case PIN_CONFIG_BIAS_BUS_HOLD:
+ arg = arg == MSM_KEEPER;
+ break;
case PIN_CONFIG_BIAS_PULL_UP:
arg = arg == MSM_PULL_UP;
break;
@@ -339,6 +344,9 @@ static int msm_config_group_set(struct pinctrl_dev *pctldev,
case PIN_CONFIG_BIAS_PULL_DOWN:
arg = MSM_PULL_DOWN;
break;
+ case PIN_CONFIG_BIAS_BUS_HOLD:
+ arg = MSM_KEEPER;
+ break;
case PIN_CONFIG_BIAS_PULL_UP:
arg = MSM_PULL_UP;
break;
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias
2014-06-18 4:49 [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias Andy Gross
@ 2014-06-18 5:22 ` Bjorn Andersson
2014-07-07 14:21 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2014-06-18 5:22 UTC (permalink / raw)
To: Andy Gross
Cc: Linus Walleij, Bjorn Andersson, linux-kernel, linux-arm-kernel,
linux-arm-msm
On Tue, Jun 17, 2014 at 9:49 PM, Andy Gross <agross@codeaurora.org> wrote:
> This patch adds the BUS_HOLD (Keeper) bias option for pins.
>
> Signed-off-by: Andy Gross <agross@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias
2014-06-18 4:49 [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias Andy Gross
2014-06-18 5:22 ` Bjorn Andersson
@ 2014-07-07 14:21 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2014-07-07 14:21 UTC (permalink / raw)
To: Andy Gross; +Cc: Bjorn Andersson, linux-kernel, linux-arm-kernel, linux-arm-msm
On Wed, Jun 18, 2014 at 6:49 AM, Andy Gross <agross@codeaurora.org> wrote:
> This patch adds the BUS_HOLD (Keeper) bias option for pins.
>
> Signed-off-by: Andy Gross <agross@codeaurora.org>
Patch applied with Björn's ACK, thanks Andy.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-07 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18 4:49 [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias Andy Gross
2014-06-18 5:22 ` Bjorn Andersson
2014-07-07 14:21 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®