[PATCH 3/5] ARM: S3C24XX: move plat-s3c24xx/dev-uart.c into common.c
Kukjin Kim
kgene.kim at samsung.com
Tue May 8 01:38:23 EDT 2012
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 at 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 at samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
More information about the linux-arm-kernel
mailing list