aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2007-05-21 06:09:25 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-21 12:50:22 -0400
commitc0fc525dcc407a516132fc11af82375319ebdadb (patch)
tree780ce2b81784bbb8b1aa6cd3dca6dfb23938458c /arch/blackfin/kernel
parent95e493c00ac0d2371c3f627fdb99d776d29a8166 (diff)
Blackfin arch: move board specific setup out of common init code and into the board specific init code
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r--arch/blackfin/kernel/setup.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
index c456ee5c1b4a..b6ac6f8067b8 100644
--- a/arch/blackfin/kernel/setup.c
+++ b/arch/blackfin/kernel/setup.c
@@ -383,35 +383,19 @@ void __init setup_arch(char **cmdline_p)
383 383
384 bf53x_cache_init(); 384 bf53x_cache_init();
385 385
386#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
387# if defined(CONFIG_BFIN_SHARED_FLASH_ENET) && defined(CONFIG_BFIN533_STAMP)
388 /* setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC */
389 bfin_write_FIO_DIR(bfin_read_FIO_DIR() | (1 << CONFIG_ENET_FLASH_PIN));
390 bfin_write_FIO_FLAG_S(1 << CONFIG_ENET_FLASH_PIN);
391 SSYNC();
392# endif
393# if defined (CONFIG_BFIN561_EZKIT)
394 bfin_write_FIO0_DIR(bfin_read_FIO0_DIR() | (1 << 12));
395 SSYNC();
396# endif /* defined (CONFIG_BFIN561_EZKIT) */
397#endif
398
399 printk(KERN_INFO "Hardware Trace Enabled\n"); 386 printk(KERN_INFO "Hardware Trace Enabled\n");
400 bfin_write_TBUFCTL(0x03); 387 bfin_write_TBUFCTL(0x03);
401} 388}
402 389
403#if defined(CONFIG_BF561)
404static struct cpu cpu[2];
405#else
406static struct cpu cpu[1];
407#endif
408static int __init topology_init(void) 390static int __init topology_init(void)
409{ 391{
410#if defined (CONFIG_BF561) 392#if defined (CONFIG_BF561)
393 static struct cpu cpu[2];
411 register_cpu(&cpu[0], 0); 394 register_cpu(&cpu[0], 0);
412 register_cpu(&cpu[1], 1); 395 register_cpu(&cpu[1], 1);
413 return 0; 396 return 0;
414#else 397#else
398 static struct cpu cpu[1];
415 return register_cpu(cpu, 0); 399 return register_cpu(cpu, 0);
416#endif 400#endif
417} 401}