diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2013-06-17 04:29:59 -0400 |
---|---|---|
committer | Steven Miao <realmz6@gmail.com> | 2013-11-15 05:14:33 -0500 |
commit | eb06c06494c4fc5f493074cb082081a17a2d7a45 (patch) | |
tree | 00d8664ec009acb1927a51a8c1a0f90ed7ca20a9 /arch/blackfin/mach-bf548 | |
parent | 37035d62a4dfa7b8cba9b0c8ff6317dba56dd62d (diff) |
blackfin: serial: Add serial port_fer and port_mux early platform resources.
The serial driver sets up port function manually in early platform probe stage
if the ADI GPIO2 driver is used. Remove the bfin_sport_uart early platform
devices.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 984b3f9984cd..d495000b81a0 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -244,6 +244,13 @@ static struct resource bfin_uart0_resources[] = { | |||
244 | .end = UART0_RBR+2, | 244 | .end = UART0_RBR+2, |
245 | .flags = IORESOURCE_MEM, | 245 | .flags = IORESOURCE_MEM, |
246 | }, | 246 | }, |
247 | #ifdef CONFIG_EARLY_PRINTK | ||
248 | { | ||
249 | .start = PORTE_FER, | ||
250 | .end = PORTE_FER+2, | ||
251 | .flags = IORESOURCE_REG, | ||
252 | }, | ||
253 | #endif | ||
247 | { | 254 | { |
248 | .start = IRQ_UART0_TX, | 255 | .start = IRQ_UART0_TX, |
249 | .end = IRQ_UART0_TX, | 256 | .end = IRQ_UART0_TX, |
@@ -292,6 +299,13 @@ static struct resource bfin_uart1_resources[] = { | |||
292 | .end = UART1_RBR+2, | 299 | .end = UART1_RBR+2, |
293 | .flags = IORESOURCE_MEM, | 300 | .flags = IORESOURCE_MEM, |
294 | }, | 301 | }, |
302 | #ifdef CONFIG_EARLY_PRINTK | ||
303 | { | ||
304 | .start = PORTH_FER, | ||
305 | .end = PORTH_FER+2, | ||
306 | .flags = IORESOURCE_REG, | ||
307 | }, | ||
308 | #endif | ||
295 | { | 309 | { |
296 | .start = IRQ_UART1_TX, | 310 | .start = IRQ_UART1_TX, |
297 | .end = IRQ_UART1_TX, | 311 | .end = IRQ_UART1_TX, |
@@ -356,6 +370,13 @@ static struct resource bfin_uart2_resources[] = { | |||
356 | .end = UART2_RBR+2, | 370 | .end = UART2_RBR+2, |
357 | .flags = IORESOURCE_MEM, | 371 | .flags = IORESOURCE_MEM, |
358 | }, | 372 | }, |
373 | #ifdef CONFIG_EARLY_PRINTK | ||
374 | { | ||
375 | .start = PORTB_FER, | ||
376 | .end = PORTB_FER+2, | ||
377 | .flags = IORESOURCE_REG, | ||
378 | }, | ||
379 | #endif | ||
359 | { | 380 | { |
360 | .start = IRQ_UART2_TX, | 381 | .start = IRQ_UART2_TX, |
361 | .end = IRQ_UART2_TX, | 382 | .end = IRQ_UART2_TX, |
@@ -404,6 +425,13 @@ static struct resource bfin_uart3_resources[] = { | |||
404 | .end = UART3_RBR+2, | 425 | .end = UART3_RBR+2, |
405 | .flags = IORESOURCE_MEM, | 426 | .flags = IORESOURCE_MEM, |
406 | }, | 427 | }, |
428 | #ifdef CONFIG_EARLY_PRINTK | ||
429 | { | ||
430 | .start = PORTB_FER, | ||
431 | .end = PORTB_FER+2, | ||
432 | .flags = IORESOURCE_REG, | ||
433 | }, | ||
434 | #endif | ||
407 | { | 435 | { |
408 | .start = IRQ_UART3_TX, | 436 | .start = IRQ_UART3_TX, |
409 | .end = IRQ_UART3_TX, | 437 | .end = IRQ_UART3_TX, |
@@ -2160,21 +2188,6 @@ static struct platform_device *ezkit_early_devices[] __initdata = { | |||
2160 | &bfin_uart3_device, | 2188 | &bfin_uart3_device, |
2161 | #endif | 2189 | #endif |
2162 | #endif | 2190 | #endif |
2163 | |||
2164 | #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE) | ||
2165 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
2166 | &bfin_sport0_uart_device, | ||
2167 | #endif | ||
2168 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
2169 | &bfin_sport1_uart_device, | ||
2170 | #endif | ||
2171 | #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART | ||
2172 | &bfin_sport2_uart_device, | ||
2173 | #endif | ||
2174 | #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART | ||
2175 | &bfin_sport3_uart_device, | ||
2176 | #endif | ||
2177 | #endif | ||
2178 | }; | 2191 | }; |
2179 | 2192 | ||
2180 | void __init native_machine_early_platform_add_devices(void) | 2193 | void __init native_machine_early_platform_add_devices(void) |