ARM: S5P: Add 3 UART SoC support
Subsystems (3)
PATCH 1/1 ARM: S5P: Add 3 UART SoC support
This patch adds 3 UART S5P SoC support. It has UART0, UART1, and UART2.
Signed-off-by Kukjin Kim <[email protected]>
--- arch/arm/plat-s5p/dev-uart.c | 2 ++ arch/arm/plat-s5p/irq.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/plat-s5p/dev-uart.c +2 -0
@@ -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 = {
arch/arm/plat-s5p/irq.c +2 -0
@@ -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)
Signature · 1 line
1.6.2.5
Quoted 48 lines · Kukjin Kim
This patch adds 3 UART S5P SoC support. It has UART0, UART1, and UART2.
Signed-off-by Kukjin Kim <[email protected]>--- arch/arm/plat-s5p/dev-uart.c | 2 ++ arch/arm/plat-s5p/irq.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)arch/arm/plat-s5p/dev-uart.c +2
-0@@ -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 = {arch/arm/plat-s5p/irq.c +2
-0@@ -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)Signature · 1 line
1.6.2.5
Hmm, although not strictly speaking necessary, it isn't going to hurt.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.