mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
ARM: S3C64XX: Use common macro to define resources on dev-uart.c
Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
c6d884c206
commit
99c7165c2f
@ -31,55 +31,23 @@
|
|||||||
/* 64xx uarts are closer together */
|
/* 64xx uarts are closer together */
|
||||||
|
|
||||||
static struct resource s3c64xx_uart0_resource[] = {
|
static struct resource s3c64xx_uart0_resource[] = {
|
||||||
[0] = {
|
[0] = DEFINE_RES_MEM(S3C_PA_UART0, SZ_256),
|
||||||
.start = S3C_PA_UART0,
|
[1] = DEFINE_RES_IRQ(IRQ_UART0),
|
||||||
.end = S3C_PA_UART0 + 0x100,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
[1] = {
|
|
||||||
.start = IRQ_UART0,
|
|
||||||
.end = IRQ_UART0,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource s3c64xx_uart1_resource[] = {
|
static struct resource s3c64xx_uart1_resource[] = {
|
||||||
[0] = {
|
[0] = DEFINE_RES_MEM(S3C_PA_UART1, SZ_256),
|
||||||
.start = S3C_PA_UART1,
|
[1] = DEFINE_RES_IRQ(IRQ_UART1),
|
||||||
.end = S3C_PA_UART1 + 0x100,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
[1] = {
|
|
||||||
.start = IRQ_UART1,
|
|
||||||
.end = IRQ_UART1,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource s3c6xx_uart2_resource[] = {
|
static struct resource s3c6xx_uart2_resource[] = {
|
||||||
[0] = {
|
[0] = DEFINE_RES_MEM(S3C_PA_UART2, SZ_256),
|
||||||
.start = S3C_PA_UART2,
|
[1] = DEFINE_RES_IRQ(IRQ_UART2),
|
||||||
.end = S3C_PA_UART2 + 0x100,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
[1] = {
|
|
||||||
.start = IRQ_UART2,
|
|
||||||
.end = IRQ_UART2,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource s3c64xx_uart3_resource[] = {
|
static struct resource s3c64xx_uart3_resource[] = {
|
||||||
[0] = {
|
[0] = DEFINE_RES_MEM(S3C_PA_UART3, SZ_256),
|
||||||
.start = S3C_PA_UART3,
|
[1] = DEFINE_RES_IRQ(IRQ_UART3),
|
||||||
.end = S3C_PA_UART3 + 0x100,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
[1] = {
|
|
||||||
.start = IRQ_UART3,
|
|
||||||
.end = IRQ_UART3,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user