diff options
Diffstat (limited to 'arch/arm/plat-s5p/dev-uart.c')
-rw-r--r-- | arch/arm/plat-s5p/dev-uart.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/dev-uart.c b/arch/arm/plat-s5p/dev-uart.c index a89331ef4ae1..6a7342886171 100644 --- a/arch/arm/plat-s5p/dev-uart.c +++ b/arch/arm/plat-s5p/dev-uart.c | |||
@@ -119,6 +119,56 @@ static struct resource s5p_uart3_resource[] = { | |||
119 | #endif | 119 | #endif |
120 | }; | 120 | }; |
121 | 121 | ||
122 | static struct resource s5p_uart4_resource[] = { | ||
123 | #if CONFIG_SERIAL_SAMSUNG_UARTS > 4 | ||
124 | [0] = { | ||
125 | .start = S5P_PA_UART4, | ||
126 | .end = S5P_PA_UART4 + S5P_SZ_UART, | ||
127 | .flags = IORESOURCE_MEM, | ||
128 | }, | ||
129 | [1] = { | ||
130 | .start = IRQ_S5P_UART_RX4, | ||
131 | .end = IRQ_S5P_UART_RX4, | ||
132 | .flags = IORESOURCE_IRQ, | ||
133 | }, | ||
134 | [2] = { | ||
135 | .start = IRQ_S5P_UART_TX4, | ||
136 | .end = IRQ_S5P_UART_TX4, | ||
137 | .flags = IORESOURCE_IRQ, | ||
138 | }, | ||
139 | [3] = { | ||
140 | .start = IRQ_S5P_UART_ERR4, | ||
141 | .end = IRQ_S5P_UART_ERR4, | ||
142 | .flags = IORESOURCE_IRQ, | ||
143 | }, | ||
144 | #endif | ||
145 | }; | ||
146 | |||
147 | static struct resource s5p_uart5_resource[] = { | ||
148 | #if CONFIG_SERIAL_SAMSUNG_UARTS > 5 | ||
149 | [0] = { | ||
150 | .start = S5P_PA_UART5, | ||
151 | .end = S5P_PA_UART5 + S5P_SZ_UART, | ||
152 | .flags = IORESOURCE_MEM, | ||
153 | }, | ||
154 | [1] = { | ||
155 | .start = IRQ_S5P_UART_RX5, | ||
156 | .end = IRQ_S5P_UART_RX5, | ||
157 | .flags = IORESOURCE_IRQ, | ||
158 | }, | ||
159 | [2] = { | ||
160 | .start = IRQ_S5P_UART_TX5, | ||
161 | .end = IRQ_S5P_UART_TX5, | ||
162 | .flags = IORESOURCE_IRQ, | ||
163 | }, | ||
164 | [3] = { | ||
165 | .start = IRQ_S5P_UART_ERR5, | ||
166 | .end = IRQ_S5P_UART_ERR5, | ||
167 | .flags = IORESOURCE_IRQ, | ||
168 | }, | ||
169 | #endif | ||
170 | }; | ||
171 | |||
122 | struct s3c24xx_uart_resources s5p_uart_resources[] __initdata = { | 172 | struct s3c24xx_uart_resources s5p_uart_resources[] __initdata = { |
123 | [0] = { | 173 | [0] = { |
124 | .resources = s5p_uart0_resource, | 174 | .resources = s5p_uart0_resource, |
@@ -136,4 +186,12 @@ struct s3c24xx_uart_resources s5p_uart_resources[] __initdata = { | |||
136 | .resources = s5p_uart3_resource, | 186 | .resources = s5p_uart3_resource, |
137 | .nr_resources = ARRAY_SIZE(s5p_uart3_resource), | 187 | .nr_resources = ARRAY_SIZE(s5p_uart3_resource), |
138 | }, | 188 | }, |
189 | [4] = { | ||
190 | .resources = s5p_uart4_resource, | ||
191 | .nr_resources = ARRAY_SIZE(s5p_uart4_resource), | ||
192 | }, | ||
193 | [5] = { | ||
194 | .resources = s5p_uart5_resource, | ||
195 | .nr_resources = ARRAY_SIZE(s5p_uart5_resource), | ||
196 | }, | ||
139 | }; | 197 | }; |