Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: "'Heiko Stübner'" <heiko@sntech.de>
Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org
Subject: RE: [PATCH 3/5] ARM: S3C24XX: move plat-s3c24xx/dev-uart.c into common.c
Date: Tue, 08 May 2012 14:38:23 +0900	[thread overview]
Message-ID: <017801cd2cdc$ca6ef8f0$5f4cead0$%kim@samsung.com> (raw)
In-Reply-To: <201205071942.12082.heiko@sntech.de>

Heiko Stübner wrote:
> 
> The uart devices are used on all s3c24xx machines, so they can reside
> in the common code for all machines.
> 
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>  arch/arm/mach-s3c24xx/common.c   |   73 +++++++++++++++++++++++++++
>  arch/arm/plat-s3c24xx/Makefile   |    1 -
>  arch/arm/plat-s3c24xx/dev-uart.c |  100 ---------------------------------
> -----
>  3 files changed, 73 insertions(+), 101 deletions(-)
>  delete mode 100644 arch/arm/plat-s3c24xx/dev-uart.c
> 
> diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-
> s3c24xx/common.c
> index 755d5f1..bf1cd36 100644
> --- a/arch/arm/mach-s3c24xx/common.c
> +++ b/arch/arm/mach-s3c24xx/common.c
> @@ -876,3 +876,76 @@ struct syscore_ops s3c24xx_irq_syscore_ops = {
>  	.suspend	= s3c24xx_irq_suspend,
>  	.resume		= s3c24xx_irq_resume,
>  };
> +
> +/* Serial port registrations */
> +
> +static struct resource s3c2410_uart0_resource[] = {
> +	[0] = {
> +		.start = S3C2410_PA_UART0,
> +		.end   = S3C2410_PA_UART0 + 0x3fff,
> +		.flags = IORESOURCE_MEM,
> +	},
> +	[1] = {
> +		.start = IRQ_S3CUART_RX0,
> +		.end   = IRQ_S3CUART_ERR0,
> +		.flags = IORESOURCE_IRQ,
> +	}

+	[0] = DEFINE_RES_MEM(S3C2410_PA_UART0, SZ_16K),
+	[1] = DEFINE_RES_NAMED(IRQ_S3CUART_RX0, \
+			IRQ_S3CUART_ERR0 - IRQ_S3CUART_RX0 + 1, \
+			NULL, IORESOURCE_IRQ)

Note, Tushar's patch updated so I will update when apply this.

[...]

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

  reply	other threads:[~2012-05-08  5:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07 17:39 [PATCH 0/5] ARM: S3C24XX: move the easy parts to mach-s3c24xx from plat-s3c24xx Heiko Stübner
2012-05-07 17:40 ` [PATCH 1/5] ARM: S3C24XX: move plat-s3c24xx/cpu.c Heiko Stübner
2012-05-07 17:41 ` [PATCH 2/5] ARM: S3C24XX: move plat-s3c24xx/irq.c into common.c Heiko Stübner
2012-05-07 19:59   ` Arnd Bergmann
2012-05-07 20:30     ` Heiko Stübner
2012-05-08  5:38       ` Kukjin Kim
2012-05-07 17:42 ` [PATCH 3/5] ARM: S3C24XX: move plat-s3c24xx/dev-uart.c " Heiko Stübner
2012-05-08  5:38   ` Kukjin Kim [this message]
2012-05-07 17:43 ` [PATCH 4/5] ARM: S3C24XX: move common power-management code to mach-s3c24xx Heiko Stübner
2012-05-07 17:44 ` [PATCH 5/5] ARM: S3C24XX: move common clock init into common.c Heiko Stübner

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='017801cd2cdc$ca6ef8f0$5f4cead0$%kim@samsung.com' \
    --to=kgene.kim@samsung.com \
    --cc=heiko@sntech.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --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