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] TRATS: Fix uart gpio config
Date: Wed, 25 Jan 2012 18:14:25 +0100	[thread overview]
Message-ID: <201201251814.25420.marek.vasut@gmail.com> (raw)
In-Reply-To: <1327469157-23608-1-git-send-email-chander.kashyap@linaro.org>

> It updates the missing gpio configuration of UART port.
> 
> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
> Cc: HeungJun, Kim <riverful.kim@samsung.com>
> ---
>  board/samsung/trats/trats.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
> index f795ff0..4c9773d 100644
> --- a/board/samsung/trats/trats.c
> +++ b/board/samsung/trats/trats.c
> @@ -337,7 +337,7 @@ static void board_uart_init(void)
>  	int i;
> 
>  	/* UART0-UART1 GPIOs (part1) : 0x22222222 */
> -	for (i = 0; i < 7; i++) {
> +	for (i = 0; i < 8; i++) {
>  		s5p_gpio_set_pull(&gpio1->a0, i, GPIO_PULL_NONE);
>  		s5p_gpio_cfg_pin(&gpio1->a0, i, GPIO_FUNC(0x2));
>  	}
> @@ -347,7 +347,7 @@ static void board_uart_init(void)
>  	 * GPA1CON[3] = I2C_3_SCL (3)
>  	 * GPA1CON[2] = I2C_3_SDA (3)
>  	 */
> -	for (i = 0; i < 5; i++) {
> +	for (i = 0; i < 6; i++) {
>  		s5p_gpio_set_pull(&gpio1->a1, i, GPIO_PULL_NONE);
>  		s5p_gpio_cfg_pin(&gpio1->a1, i,
>  				GPIO_FUNC((i == 2 || i == 3) ? 0x3 : 0x2));

Acked-by: Marek Vasut <marek.vasut@gmail.com>

  reply	other threads:[~2012-01-25 17:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-25  5:25 [U-Boot] [PATCH] TRATS: Fix uart gpio config Chander Kashyap
2012-01-25 17:14 ` Marek Vasut [this message]
2012-01-26  8:22 ` Minkyu Kang

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=201201251814.25420.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