Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: Kukjin Kim <kgene.kim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, ben-linux@fluff.org
Subject: Re: [PATCH] ARM: S5P: Add 3 UART SoC support
Date: Mon, 25 Jan 2010 00:33:25 +0000	[thread overview]
Message-ID: <20100125003324.GO10014@trinity.fluff.org> (raw)
In-Reply-To: <1264376625-7147-1-git-send-email-kgene.kim@samsung.com>

On Mon, Jan 25, 2010 at 08:43:45AM +0900, Kukjin Kim wrote:
> This patch adds 3 UART S5P SoC support. It has UART0, UART1, and UART2.
> 
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> ---
>  arch/arm/plat-s5p/dev-uart.c |    2 ++
>  arch/arm/plat-s5p/irq.c      |    2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/plat-s5p/dev-uart.c b/arch/arm/plat-s5p/dev-uart.c
> index 23c7531..a89331e 100644
> --- a/arch/arm/plat-s5p/dev-uart.c
> +++ b/arch/arm/plat-s5p/dev-uart.c
> @@ -95,6 +95,7 @@ static struct resource s5p_uart2_resource[] = {
>  };
>  
>  static struct resource s5p_uart3_resource[] = {
> +#if CONFIG_SERIAL_SAMSUNG_UARTS > 3
>  	[0] = {
>  		.start	= S5P_PA_UART3,
>  		.end	= S5P_PA_UART3 + S5P_SZ_UART,
> @@ -115,6 +116,7 @@ static struct resource s5p_uart3_resource[] = {
>  		.end	= IRQ_S5P_UART_ERR3,
>  		.flags	= IORESOURCE_IRQ,
>  	},
> +#endif
>  };
>  
>  struct s3c24xx_uart_resources s5p_uart_resources[] __initdata = {
> diff --git a/arch/arm/plat-s5p/irq.c b/arch/arm/plat-s5p/irq.c
> index eada40d..9308f34 100644
> --- a/arch/arm/plat-s5p/irq.c
> +++ b/arch/arm/plat-s5p/irq.c
> @@ -48,11 +48,13 @@ static struct s3c_uart_irq uart_irqs[] = {
>  		.base_irq	= IRQ_S5P_UART_BASE2,
>  		.parent_irq	= IRQ_UART2,
>  	},
> +#if CONFIG_SERIAL_SAMSUNG_UARTS > 3
>  	[3] = {
>  		.regs		= S5P_VA_UART3,
>  		.base_irq	= IRQ_S5P_UART_BASE3,
>  		.parent_irq	= IRQ_UART3,
>  	},
> +#endif
>  };
>  
>  void __init s5p_init_irq(u32 *vic, u32 num_vic)
> -- 
> 1.6.2.5

Hmm, although not strictly speaking necessary, it isn't going to hurt.

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

      reply	other threads:[~2010-01-25  0:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-24 23:43 [PATCH] ARM: S5P: Add 3 UART SoC support Kukjin Kim
2010-01-25  0:33 ` Ben Dooks [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=20100125003324.GO10014@trinity.fluff.org \
    --to=ben-linux@fluff.org \
    --cc=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.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