Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | |
| 3 | /* |
| 4 | * linux/arch/m68knommu/platform/5307/config.c |
| 5 | * |
| 6 | * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com) |
| 7 | * Copyright (C) 2000, Lineo (www.lineo.com) |
| 8 | */ |
| 9 | |
| 10 | /***************************************************************************/ |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #include <linux/kernel.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <linux/param.h> |
| 14 | #include <linux/init.h> |
Greg Ungerer | 96db271 | 2008-02-01 17:34:55 +1000 | [diff] [blame] | 15 | #include <linux/io.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <asm/machdep.h> |
| 17 | #include <asm/coldfire.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include <asm/mcfsim.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #include <asm/mcfwdebug.h> |
| 20 | |
| 21 | /***************************************************************************/ |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | /* |
| 24 | * Some platforms need software versions of the GPIO data registers. |
| 25 | */ |
| 26 | unsigned short ppdata; |
| 27 | unsigned char ledbank = 0xff; |
| 28 | |
| 29 | /***************************************************************************/ |
| 30 | |
Greg Ungerer | 96db271 | 2008-02-01 17:34:55 +1000 | [diff] [blame] | 31 | void __init config_BSP(char *commandp, int size) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | { |
Adrian Bunk | 3947fca | 2009-01-13 14:20:01 +1000 | [diff] [blame] | 33 | #if defined(CONFIG_NETtel) || \ |
Greg Ungerer | cff28b5 | 2008-05-01 12:17:21 +1000 | [diff] [blame] | 34 | defined(CONFIG_SECUREEDGEMP3) || defined(CONFIG_CLEOPATRA) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | /* Copy command line from FLASH to local buffer... */ |
| 36 | memcpy(commandp, (char *) 0xf0004000, size); |
| 37 | commandp[size-1] = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | #endif |
| 39 | |
Greg Ungerer | 35aefb2 | 2012-01-23 15:34:58 +1000 | [diff] [blame] | 40 | mach_sched_init = hw_timer_init; |
Greg Ungerer | 39f0fb6 | 2009-05-22 13:33:35 +1000 | [diff] [blame] | 41 | |
| 42 | /* Only support the external interrupts on their primary level */ |
| 43 | mcf_mapirq2imr(25, MCFINTC_EINT1); |
| 44 | mcf_mapirq2imr(27, MCFINTC_EINT3); |
| 45 | mcf_mapirq2imr(29, MCFINTC_EINT5); |
| 46 | mcf_mapirq2imr(31, MCFINTC_EINT7); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | |
Greg Ungerer | 96db271 | 2008-02-01 17:34:55 +1000 | [diff] [blame] | 48 | #ifdef CONFIG_BDM_DISABLE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | /* |
| 50 | * Disable the BDM clocking. This also turns off most of the rest of |
| 51 | * the BDM device. This is good for EMC reasons. This option is not |
| 52 | * incompatible with the memory protection option. |
| 53 | */ |
| 54 | wdebug(MCFDEBUG_CSR, MCFDEBUG_CSR_PSTCLK); |
| 55 | #endif |
| 56 | } |
| 57 | |
| 58 | /***************************************************************************/ |