From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] mx31smartbot: change the config of a gpio
Date: Thu, 6 May 2010 08:38:59 +0200 [thread overview]
Message-ID: <20100506063859.GL31199@pengutronix.de> (raw)
In-Reply-To: <1273052061-17147-1-git-send-email-valentin.longchamp@epfl.ch>
On Wed, May 05, 2010 at 11:34:21AM +0200, Valentin Longchamp wrote:
> Since it is finally used on the handbot as a configuration input for
> the translator.
>
> Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Ok, added to mxc-master.
Sascha
> ---
> arch/arm/mach-mx3/mx31moboard-smartbot.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/mach-mx3/mx31moboard-smartbot.c b/arch/arm/mach-mx3/mx31moboard-smartbot.c
> index 52a69fc..83d2b9f 100644
> --- a/arch/arm/mach-mx3/mx31moboard-smartbot.c
> +++ b/arch/arm/mach-mx3/mx31moboard-smartbot.c
> @@ -119,7 +119,7 @@ static int __init smartbot_cam_init(void)
> #define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1)
> #define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1)
> #define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1)
> -#define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)
> +#define TRSLAT_SRC_CHOICE IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)
>
> static void smartbot_resets_init(void)
> {
> @@ -138,9 +138,9 @@ static void smartbot_resets_init(void)
> gpio_export(TRSLAT_RST_B, false);
> }
>
> - if (!gpio_request(SEL3, "sel3")) {
> - gpio_direction_input(SEL3);
> - gpio_export(SEL3, true);
> + if (!gpio_request(TRSLAT_SRC_CHOICE, "translator-src-choice")) {
> + gpio_direction_output(TRSLAT_SRC_CHOICE, 0);
> + gpio_export(TRSLAT_SRC_CHOICE, false);
> }
> }
> /*
> --
> 1.7.0.4
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2010-05-06 6:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 9:34 [PATCH 1/1] mx31smartbot: change the config of a gpio Valentin Longchamp
2010-05-06 6:38 ` Sascha Hauer [this message]
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=20100506063859.GL31199@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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).