diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/H8606.c | 2 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/blackstamp.c | 25 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 10 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ezkit.c | 2 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ip0x.c | 11 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 30 |
6 files changed, 40 insertions, 40 deletions
diff --git a/arch/blackfin/mach-bf533/boards/H8606.c b/arch/blackfin/mach-bf533/boards/H8606.c index 2ce7b16faee1..d4bfcea56828 100644 --- a/arch/blackfin/mach-bf533/boards/H8606.c +++ b/arch/blackfin/mach-bf533/boards/H8606.c | |||
@@ -286,7 +286,7 @@ static struct resource bfin_uart0_resources[] = { | |||
286 | }, | 286 | }, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | unsigned short bfin_uart0_peripherals[] = { | 289 | static unsigned short bfin_uart0_peripherals[] = { |
290 | P_UART0_TX, P_UART0_RX, 0 | 290 | P_UART0_TX, P_UART0_RX, 0 |
291 | }; | 291 | }; |
292 | 292 | ||
diff --git a/arch/blackfin/mach-bf533/boards/blackstamp.c b/arch/blackfin/mach-bf533/boards/blackstamp.c index 20c102285bef..87b5af3693c1 100644 --- a/arch/blackfin/mach-bf533/boards/blackstamp.c +++ b/arch/blackfin/mach-bf533/boards/blackstamp.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <asm/bfin5xx_spi.h> | 25 | #include <asm/bfin5xx_spi.h> |
26 | #include <asm/portmux.h> | 26 | #include <asm/portmux.h> |
27 | #include <asm/dpmc.h> | 27 | #include <asm/dpmc.h> |
28 | #include <mach/fio_flag.h> | ||
29 | 28 | ||
30 | /* | 29 | /* |
31 | * Name the Board for the /proc/cpuinfo | 30 | * Name the Board for the /proc/cpuinfo |
@@ -225,7 +224,7 @@ static struct resource bfin_uart0_resources[] = { | |||
225 | }, | 224 | }, |
226 | }; | 225 | }; |
227 | 226 | ||
228 | unsigned short bfin_uart0_peripherals[] = { | 227 | static unsigned short bfin_uart0_peripherals[] = { |
229 | P_UART0_TX, P_UART0_RX, 0 | 228 | P_UART0_TX, P_UART0_RX, 0 |
230 | }; | 229 | }; |
231 | 230 | ||
@@ -290,9 +289,9 @@ static struct resource bfin_sport0_uart_resources[] = { | |||
290 | }, | 289 | }, |
291 | }; | 290 | }; |
292 | 291 | ||
293 | unsigned short bfin_sport0_peripherals[] = { | 292 | static unsigned short bfin_sport0_peripherals[] = { |
294 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | 293 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, |
295 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | 294 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0 |
296 | }; | 295 | }; |
297 | 296 | ||
298 | static struct platform_device bfin_sport0_uart_device = { | 297 | static struct platform_device bfin_sport0_uart_device = { |
@@ -324,9 +323,9 @@ static struct resource bfin_sport1_uart_resources[] = { | |||
324 | }, | 323 | }, |
325 | }; | 324 | }; |
326 | 325 | ||
327 | unsigned short bfin_sport1_peripherals[] = { | 326 | static unsigned short bfin_sport1_peripherals[] = { |
328 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | 327 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, |
329 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | 328 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, 0 |
330 | }; | 329 | }; |
331 | 330 | ||
332 | static struct platform_device bfin_sport1_uart_device = { | 331 | static struct platform_device bfin_sport1_uart_device = { |
@@ -476,10 +475,16 @@ static int __init blackstamp_init(void) | |||
476 | return ret; | 475 | return ret; |
477 | 476 | ||
478 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 477 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
479 | /* setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC */ | 478 | /* |
480 | bfin_write_FIO_DIR(bfin_read_FIO_DIR() | PF0); | 479 | * setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC. |
481 | bfin_write_FIO_FLAG_S(PF0); | 480 | * the bfin-async-map driver takes care of flipping between |
482 | SSYNC(); | 481 | * flash and ethernet when necessary. |
482 | */ | ||
483 | ret = gpio_request(GPIO_PF0, "enet_cpld"); | ||
484 | if (!ret) { | ||
485 | gpio_direction_output(GPIO_PF0, 1); | ||
486 | gpio_free(GPIO_PF0); | ||
487 | } | ||
483 | #endif | 488 | #endif |
484 | 489 | ||
485 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 490 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index adbe62a81e25..4d5604eaa7c2 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
@@ -271,7 +271,7 @@ static struct resource bfin_uart0_resources[] = { | |||
271 | }, | 271 | }, |
272 | }; | 272 | }; |
273 | 273 | ||
274 | unsigned short bfin_uart0_peripherals[] = { | 274 | static unsigned short bfin_uart0_peripherals[] = { |
275 | P_UART0_TX, P_UART0_RX, 0 | 275 | P_UART0_TX, P_UART0_RX, 0 |
276 | }; | 276 | }; |
277 | 277 | ||
@@ -336,9 +336,9 @@ static struct resource bfin_sport0_uart_resources[] = { | |||
336 | }, | 336 | }, |
337 | }; | 337 | }; |
338 | 338 | ||
339 | unsigned short bfin_sport0_peripherals[] = { | 339 | static unsigned short bfin_sport0_peripherals[] = { |
340 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | 340 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, |
341 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | 341 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0 |
342 | }; | 342 | }; |
343 | 343 | ||
344 | static struct platform_device bfin_sport0_uart_device = { | 344 | static struct platform_device bfin_sport0_uart_device = { |
@@ -370,9 +370,9 @@ static struct resource bfin_sport1_uart_resources[] = { | |||
370 | }, | 370 | }, |
371 | }; | 371 | }; |
372 | 372 | ||
373 | unsigned short bfin_sport1_peripherals[] = { | 373 | static unsigned short bfin_sport1_peripherals[] = { |
374 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | 374 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, |
375 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | 375 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, 0 |
376 | }; | 376 | }; |
377 | 377 | ||
378 | static struct platform_device bfin_sport1_uart_device = { | 378 | static struct platform_device bfin_sport1_uart_device = { |
diff --git a/arch/blackfin/mach-bf533/boards/ezkit.c b/arch/blackfin/mach-bf533/boards/ezkit.c index a1cb8e7c1010..b67b91d82242 100644 --- a/arch/blackfin/mach-bf533/boards/ezkit.c +++ b/arch/blackfin/mach-bf533/boards/ezkit.c | |||
@@ -349,7 +349,7 @@ static struct resource bfin_uart0_resources[] = { | |||
349 | }, | 349 | }, |
350 | }; | 350 | }; |
351 | 351 | ||
352 | unsigned short bfin_uart0_peripherals[] = { | 352 | static unsigned short bfin_uart0_peripherals[] = { |
353 | P_UART0_TX, P_UART0_RX, 0 | 353 | P_UART0_TX, P_UART0_RX, 0 |
354 | }; | 354 | }; |
355 | 355 | ||
diff --git a/arch/blackfin/mach-bf533/boards/ip0x.c b/arch/blackfin/mach-bf533/boards/ip0x.c index 5ba4b02a12eb..f869a3711480 100644 --- a/arch/blackfin/mach-bf533/boards/ip0x.c +++ b/arch/blackfin/mach-bf533/boards/ip0x.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <asm/dma.h> | 22 | #include <asm/dma.h> |
23 | #include <asm/bfin5xx_spi.h> | 23 | #include <asm/bfin5xx_spi.h> |
24 | #include <asm/portmux.h> | 24 | #include <asm/portmux.h> |
25 | #include <mach/fio_flag.h> | ||
26 | 25 | ||
27 | /* | 26 | /* |
28 | * Name the Board for the /proc/cpuinfo | 27 | * Name the Board for the /proc/cpuinfo |
@@ -174,7 +173,7 @@ static struct resource bfin_uart0_resources[] = { | |||
174 | }, | 173 | }, |
175 | }; | 174 | }; |
176 | 175 | ||
177 | unsigned short bfin_uart0_peripherals[] = { | 176 | static unsigned short bfin_uart0_peripherals[] = { |
178 | P_UART0_TX, P_UART0_RX, 0 | 177 | P_UART0_TX, P_UART0_RX, 0 |
179 | }; | 178 | }; |
180 | 179 | ||
@@ -295,15 +294,7 @@ static int __init ip0x_init(void) | |||
295 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | 294 | printk(KERN_INFO "%s(): registering device resources\n", __func__); |
296 | platform_add_devices(ip0x_devices, ARRAY_SIZE(ip0x_devices)); | 295 | platform_add_devices(ip0x_devices, ARRAY_SIZE(ip0x_devices)); |
297 | 296 | ||
298 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | ||
299 | for (i = 0; i < ARRAY_SIZE(bfin_spi_board_info); ++i) { | ||
300 | int j = 1 << bfin_spi_board_info[i].chip_select; | ||
301 | /* set spi cs to 1 */ | ||
302 | bfin_write_FIO_DIR(bfin_read_FIO_DIR() | j); | ||
303 | bfin_write_FIO_FLAG_S(j); | ||
304 | } | ||
305 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 297 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
306 | #endif | ||
307 | 298 | ||
308 | return 0; | 299 | return 0; |
309 | } | 300 | } |
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index b3b1cdea2703..43224ef00b8c 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <asm/reboot.h> | 24 | #include <asm/reboot.h> |
25 | #include <asm/portmux.h> | 25 | #include <asm/portmux.h> |
26 | #include <asm/dpmc.h> | 26 | #include <asm/dpmc.h> |
27 | #include <mach/fio_flag.h> | ||
28 | 27 | ||
29 | /* | 28 | /* |
30 | * Name the Board for the /proc/cpuinfo | 29 | * Name the Board for the /proc/cpuinfo |
@@ -354,7 +353,7 @@ static struct resource bfin_uart0_resources[] = { | |||
354 | }, | 353 | }, |
355 | }; | 354 | }; |
356 | 355 | ||
357 | unsigned short bfin_uart0_peripherals[] = { | 356 | static unsigned short bfin_uart0_peripherals[] = { |
358 | P_UART0_TX, P_UART0_RX, 0 | 357 | P_UART0_TX, P_UART0_RX, 0 |
359 | }; | 358 | }; |
360 | 359 | ||
@@ -419,9 +418,9 @@ static struct resource bfin_sport0_uart_resources[] = { | |||
419 | }, | 418 | }, |
420 | }; | 419 | }; |
421 | 420 | ||
422 | unsigned short bfin_sport0_peripherals[] = { | 421 | static unsigned short bfin_sport0_peripherals[] = { |
423 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | 422 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, |
424 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | 423 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0 |
425 | }; | 424 | }; |
426 | 425 | ||
427 | static struct platform_device bfin_sport0_uart_device = { | 426 | static struct platform_device bfin_sport0_uart_device = { |
@@ -453,9 +452,9 @@ static struct resource bfin_sport1_uart_resources[] = { | |||
453 | }, | 452 | }, |
454 | }; | 453 | }; |
455 | 454 | ||
456 | unsigned short bfin_sport1_peripherals[] = { | 455 | static unsigned short bfin_sport1_peripherals[] = { |
457 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | 456 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, |
458 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | 457 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, 0 |
459 | }; | 458 | }; |
460 | 459 | ||
461 | static struct platform_device bfin_sport1_uart_device = { | 460 | static struct platform_device bfin_sport1_uart_device = { |
@@ -674,10 +673,16 @@ static int __init stamp_init(void) | |||
674 | return ret; | 673 | return ret; |
675 | 674 | ||
676 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 675 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
677 | /* setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC */ | 676 | /* |
678 | bfin_write_FIO_DIR(bfin_read_FIO_DIR() | PF0); | 677 | * setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC. |
679 | bfin_write_FIO_FLAG_S(PF0); | 678 | * the bfin-async-map driver takes care of flipping between |
680 | SSYNC(); | 679 | * flash and ethernet when necessary. |
680 | */ | ||
681 | ret = gpio_request(GPIO_PF0, "enet_cpld"); | ||
682 | if (!ret) { | ||
683 | gpio_direction_output(GPIO_PF0, 1); | ||
684 | gpio_free(GPIO_PF0); | ||
685 | } | ||
681 | #endif | 686 | #endif |
682 | 687 | ||
683 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 688 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
@@ -713,7 +718,6 @@ void __init native_machine_early_platform_add_devices(void) | |||
713 | void native_machine_restart(char *cmd) | 718 | void native_machine_restart(char *cmd) |
714 | { | 719 | { |
715 | /* workaround pull up on cpld / flash pin not being strong enough */ | 720 | /* workaround pull up on cpld / flash pin not being strong enough */ |
716 | bfin_write_FIO_INEN(~PF0); | 721 | gpio_request(GPIO_PF0, "flash_cpld"); |
717 | bfin_write_FIO_DIR(PF0); | 722 | gpio_direction_output(GPIO_PF0, 0); |
718 | bfin_write_FIO_FLAG_C(PF0); | ||
719 | } | 723 | } |