19 #include <linux/kernel.h>
20 #include <linux/sched.h>
24 #include <linux/module.h>
27 #include <linux/errno.h>
28 #include <linux/string.h>
34 #include <linux/rtc.h>
36 #include <asm/setup.h>
38 #include <asm/machdep.h>
39 #include <asm/pgtable.h>
40 #include <asm/sections.h>
61 #define CPU_NAME "MC68328"
63 #ifdef CONFIG_M68EZ328
64 #define CPU_NAME "MC68EZ328"
66 #ifdef CONFIG_M68VZ328
67 #define CPU_NAME "MC68VZ328"
70 #define CPU_NAME "MC68360"
73 #define CPU_NAME "UNKNOWN"
82 #ifndef CPU_INSTR_PER_JIFFY
83 #define CPU_INSTR_PER_JIFFY 16
86 #if defined(CONFIG_UBOOT)
118 void parse_uboot_commandline(
char *commandp,
int size)
120 extern unsigned long _init_sp;
122 unsigned long uboot_kbd;
123 unsigned long uboot_initrd_start, uboot_initrd_end;
124 unsigned long uboot_cmd_start, uboot_cmd_end;
127 sp = (
unsigned long *)_init_sp;
129 uboot_initrd_start = sp[2];
130 uboot_initrd_end = sp[3];
131 uboot_cmd_start = sp[4];
132 uboot_cmd_end = sp[5];
134 if (uboot_cmd_start && uboot_cmd_end)
135 strncpy(commandp, (
const char *)uboot_cmd_start, size);
136 #if defined(CONFIG_BLK_DEV_INITRD)
137 if (uboot_initrd_start && uboot_initrd_end &&
138 (uboot_initrd_end > uboot_initrd_start)) {
163 #if defined(CONFIG_BOOTPARAM)
168 #if defined(CONFIG_UBOOT)
170 #if defined(CONFIG_BOOTPARAM)
174 parse_uboot_commandline(
175 &command_line[(
strlen(CONFIG_BOOTPARAM_STRING)+1)],
176 (
sizeof(command_line) -
177 (
strlen(CONFIG_BOOTPARAM_STRING)+1)));
180 parse_uboot_commandline(&command_line[0],
sizeof(command_line));
182 command_line[
sizeof(command_line) - 1] = 0;
190 #ifdef CONFIG_M68VZ328
193 #ifdef CONFIG_COLDFIRE
202 printk(
KERN_INFO "Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne\n");
204 #if defined( CONFIG_PILOT ) && defined( CONFIG_M68328 )
207 #if defined( CONFIG_PILOT ) && defined( CONFIG_M68EZ328 )
210 #if defined (CONFIG_M68360)
214 #ifdef CONFIG_DRAGEN2
217 #ifdef CONFIG_M5235EVB
218 printk(
KERN_INFO "Motorola M5235EVB support (C)2005 Syn-tech Systems, Inc. (Jate Sujjavanich)\n");
221 pr_debug(
"KERNEL -> TEXT=0x%p-0x%p DATA=0x%p-0x%p BSS=0x%p-0x%p\n",
223 pr_debug(
"MEMORY -> ROMFS=0x%p-0x%06lx MEM=0x%06lx-0x%06lx\n ",
227 *cmdline_p = &command_line[0];
231 #if defined(CONFIG_FRAMEBUFFER_CONSOLE) && defined(CONFIG_DUMMY_CONSOLE)
251 #if defined(CONFIG_UBOOT) && defined(CONFIG_BLK_DEV_INITRD)
280 "Clocking:\t%lu.%1luMHz\n"
281 "BogoMips:\t%lu.%02lu\n"
282 "Calibration:\t%lu loops\n",
285 (clockfreq / 100000) % 10,
295 return *pos <
NR_CPUS ? ((
void *) 0x12345678) :
NULL;
298 static void *c_next(
struct seq_file *m,
void *v, loff_t *
pos)
304 static void c_stop(
struct seq_file *m,
void *v)