RE: [PATCH 3/5] ARM: S3C24XX: move plat-s3c24xx/dev-uart.c into common.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> ---
>  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@xxxxxxxxxxx>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux