14 #include <linux/types.h>
15 #include <linux/kernel.h>
20 #include <asm/setup.h>
21 #include <asm/pgtable.h>
22 #include <asm/machdep.h>
32 #define MCU_PREEN ((unsigned short)(0x0001 << 13))
34 #if defined(CONFIG_UCQUICC)
35 #define OSCILLATOR (unsigned long int)33000000
56 return timer_interrupt(irq, dummy);
59 static struct irqaction m68360_timer_irq = {
67 unsigned char prescaler;
68 unsigned short tgcr_save;
90 (
unsigned short)((prescaler - 1) << 8);
104 tgcr_save = (pquicc->
timer_tgcr & 0xfff0) | 0x0001;
111 short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60;
113 tod->second1 = real_seconds / 10;
114 tod->second2 = real_seconds % 10;
115 tod->minute1 = real_minutes / 10;
116 tod->minute2 = real_minutes % 10;
125 "moveal #_start, %a0;\n"
126 "moveb #0, 0xFFFFF300;\n"
127 "moveal 0(%a0), %sp;\n"
128 "moveal 4(%a0), %a0;\n"
136 #if defined (CONFIG_UCQUICC)
137 _bsc0(
char *, getserialnum)
138 _bsc1(
unsigned char *, gethwaddr,
int,
a)
139 _bsc1(
char *, getbenv,
char *,
a)
151 unsigned int local_pllcr = (
unsigned int)(pquicc->
sim_pllcr);
166 #if defined(CONFIG_UCQUICC) && 0
170 p[0], p[1], p[2], p[3], p[4], p[5]);
172 p = getbenv(
"APPEND");