Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
12#include <linux/kernel.h>
13#include <linux/param.h>
14#include <linux/init.h>
15#include <linux/io.h>
16#include <asm/machdep.h>
17#include <asm/coldfire.h>
18#include <asm/mcfsim.h>
19#include <asm/mcfgpio.h>
20#include <asm/mcfwdebug.h>
21
22/***************************************************************************/
23
24/*
25 * Some platforms need software versions of the GPIO data registers.
26 */
27unsigned short ppdata;
28unsigned char ledbank = 0xff;
29
30/***************************************************************************/
31
32struct mcf_gpio_chip mcf_gpio_chips[] = {
33 MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
34};
35
36unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
37
38/***************************************************************************/
39
40void __init config_BSP(char *commandp, int size)
41{
42#if defined(CONFIG_NETtel) || \
43 defined(CONFIG_SECUREEDGEMP3) || defined(CONFIG_CLEOPATRA)
44 /* Copy command line from FLASH to local buffer... */
45 memcpy(commandp, (char *) 0xf0004000, size);
46 commandp[size-1] = 0;
47#endif
48
49 mach_sched_init = hw_timer_init;
50
51 /* Only support the external interrupts on their primary level */
52 mcf_mapirq2imr(25, MCFINTC_EINT1);
53 mcf_mapirq2imr(27, MCFINTC_EINT3);
54 mcf_mapirq2imr(29, MCFINTC_EINT5);
55 mcf_mapirq2imr(31, MCFINTC_EINT7);
56
57#ifdef CONFIG_BDM_DISABLE
58 /*
59 * Disable the BDM clocking. This also turns off most of the rest of
60 * the BDM device. This is good for EMC reasons. This option is not
61 * incompatible with the memory protection option.
62 */
63 wdebug(MCFDEBUG_CSR, MCFDEBUG_CSR_PSTCLK);
64#endif
65}
66
67/***************************************************************************/