public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/14] MX5: efikamx: make use of GPIO framework
Date: Sun, 21 Aug 2011 13:54:18 +0200	[thread overview]
Message-ID: <201108211354.18969.marek.vasut@gmail.com> (raw)
In-Reply-To: <1313922509-10083-7-git-send-email-sbabic@denx.de>

On Sunday, August 21, 2011 12:28:22 PM Stefano Babic wrote:
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> CC: Marek Vasut <marek.vasut@gmail.com>
> ---
>  board/efikamx/efikamx.c |   62
> ++++++++++++++++++---------------------------- 1 files changed, 24
> insertions(+), 38 deletions(-)
> 
> diff --git a/board/efikamx/efikamx.c b/board/efikamx/efikamx.c
> index 4b36918..5be1f6c 100644
> --- a/board/efikamx/efikamx.c
> +++ b/board/efikamx/efikamx.c

[...]

> @@ -508,25 +495,24 @@ void setup_iomux_led(void)
>  {
>  	/* Blue LED */
>  	mxc_request_iomux(MX51_PIN_CSI1_D9, IOMUX_CONFIG_ALT3);
> -	mxc_gpio_direction(IOMUX_TO_GPIO(MX51_PIN_CSI1_D9),
> -				MXC_GPIO_DIRECTION_OUT);
> +	gpio_direction_output(IOMUX_TO_GPIO(MX51_PIN_CSI1_D9), 0);
> +
>  	/* Green LED */
>  	mxc_request_iomux(MX51_PIN_CSI1_VSYNC, IOMUX_CONFIG_ALT3);
> -	mxc_gpio_direction(IOMUX_TO_GPIO(MX51_PIN_CSI1_VSYNC),
> -				MXC_GPIO_DIRECTION_OUT);
> +	gpio_direction_output(IOMUX_TO_GPIO(MX51_PIN_CSI1_VSYNC), 0);
> +
>  	/* Red LED */
>  	mxc_request_iomux(MX51_PIN_CSI1_HSYNC, IOMUX_CONFIG_ALT3);
> -	mxc_gpio_direction(IOMUX_TO_GPIO(MX51_PIN_CSI1_HSYNC),
> -				MXC_GPIO_DIRECTION_OUT);
> +	gpio_direction_output(IOMUX_TO_GPIO(MX51_PIN_CSI1_HSYNC), 0);

I'd be careful about the LEDs here. Anyway, I'll try to test it sometimes soon 
(begining of next week is ok?). If you won't get any feedback, you can have my 
Ack.

>  }
> 
>  void efikamx_toggle_led(uint32_t mask)
>  {
> -	mxc_gpio_set(IOMUX_TO_GPIO(MX51_PIN_CSI1_D9),
> +	gpio_set_value(IOMUX_TO_GPIO(MX51_PIN_CSI1_D9),
>  			mask & EFIKAMX_LED_BLUE);
> -	mxc_gpio_set(IOMUX_TO_GPIO(MX51_PIN_CSI1_VSYNC),
> +	gpio_set_value(IOMUX_TO_GPIO(MX51_PIN_CSI1_VSYNC),
>  			mask & EFIKAMX_LED_GREEN);
> -	mxc_gpio_set(IOMUX_TO_GPIO(MX51_PIN_CSI1_HSYNC),
> +	gpio_set_value(IOMUX_TO_GPIO(MX51_PIN_CSI1_HSYNC),
>  			mask & EFIKAMX_LED_RED);
>  }

Thanks Stefano, this really helps.

Cheers

  reply	other threads:[~2011-08-21 11:54 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-21 10:28 [U-Boot] [PATCH 01/14] IMX: uniform GPIO interface using GPIO framework Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 02/14] MX25: make use of GPIO framework for MX25 processor Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 03/14] MX31: make use of GPIO framework for MX31 processor Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 04/14] MX5: make use of GPIO framework for MX5 processor Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 05/14] MX35: make use of GPIO framework for MX35 processor Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 06/14] MX31: QONG: make use of GPIO framework Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 07/14] MX5: efikamx: " Stefano Babic
2011-08-21 11:54   ` Marek Vasut [this message]
2011-08-22 11:15     ` Stefano Babic
2011-08-22 12:28       ` Marek Vasut
2011-08-21 10:28 ` [U-Boot] [PATCH 08/14] MX25: zmx25: " Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 09/14] MX5: mx53ard: " Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 10/14] MX5: mx53smd: " Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 11/14] MX5: vision2: " Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 12/14] MX5: mx53evk: " Stefano Babic
2011-08-21 12:24   ` Jason Liu
2011-08-21 10:28 ` [U-Boot] [PATCH 13/14] MX5: mx53loco: " Stefano Babic
2011-08-22  2:54   ` Jason Liu
2011-08-22  7:57     ` Stefano Babic
2011-08-21 10:28 ` [U-Boot] [PATCH 14/14] MX35: mx35pdk: " Stefano Babic
2011-08-21 16:37 ` [U-Boot] [PATCH 01/14] IMX: uniform GPIO interface using " Fabio Estevam
2011-08-22  7:54   ` Stefano Babic
2011-08-22  7:55 ` [U-Boot] [PATCH 15/15] MX5: mx51evk: make use of " Stefano Babic
2011-08-26 10:10 ` [U-Boot] [PATCH 16/17] MX31: mx31ads: " Stefano Babic
2011-08-26 10:10 ` [U-Boot] [PATCH 17/17] MX31: imx31_litekit: " Stefano Babic

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=201108211354.18969.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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