2 * linux/arch/m68knommu/platform/68328/head-pilot.S
3 * - A startup file for the MC68328
5 * Copyright (C) 1998 D. Jeff Dionne <jeff@ryeham.ee.ryerson.ca>,
6 * Kenneth Albanowski <kjahds@kjahds.com>,
7 * The Silver Hammer Group, Ltd.
9 * (c) 1995, Dionne & Associates
10 * (c) 1995, DKG Display Tech.
16 #define DBG_PUTC(x) moveb IMMED x, 0xfffff907
31 #define IMR 0xFFFFF304
37 #include "bootlogo.rh"
41 /*****************************************************************************/
46 * Set up the usable of RAM stuff. Size of RAM is determined then
47 * an initial stack set up at the end.
68 .byte 0x4e, 0xfa, 0x00, 0x0a /* Jmp +X bytes */
69 .byte 'b', 'o', 'o', 't'
76 movew %d0, 0xfffff618 /* Watchdog off */
77 movel #0x00011f07, 0xfffff114 /* CS A1 Mask */
79 movew #0x0800, 0xfffff906 /* Ignore CTS */
80 movew #0x010b, 0xfffff902 /* BAUD to 9600 */
82 movew #0x2410, 0xfffff200 /* PLLCR */
83 movew #0x123, 0xfffff202 /* PLLFSR */
86 moveb #0, 0xfffffA27 /* LCKCON */
87 movel #_start, 0xfffffA00 /* LSSA */
88 moveb #0xa, 0xfffffA05 /* LVPW */
89 movew #0x9f, 0xFFFFFa08 /* LXMAX */
90 movew #0x9f, 0xFFFFFa0a /* LYMAX */
91 moveb #9, 0xfffffa29 /* LBAR */
92 moveb #0, 0xfffffa25 /* LPXCD */
93 moveb #0x04, 0xFFFFFa20 /* LPICF */
94 moveb #0x58, 0xfffffA27 /* LCKCON */
95 moveb #0x85, 0xfffff429 /* PFDATA */
96 moveb #0xd8, 0xfffffA27 /* LCKCON */
97 moveb #0xc5, 0xfffff429 /* PFDATA */
98 moveb #0xd5, 0xfffff429 /* PFDATA */
100 moveal #0x00100000, %a3
101 moveal #0x100ffc00, %a4
102 #endif /* CONFIG_PILOT */
104 #endif /* CONFIG_M68328 */
114 movew #16384, %d0 /* PLL settle wait loop */
121 /* Copy command line from beginning of RAM (+16) to end of bss */
122 movel #CONFIG_VECTORBASE, %d7
130 /* Copy %a0 to %a1 until %a1 == %a2 */
137 /* Copy data+init segment from ROM to RAM */
140 moveal #__init_end, %a2
144 /* Copy %a0 to %a1 until %a1 == %a2 */
156 /* Copy 0 to %a0 until %a0 == %a1 */
164 /* Copy command line from end of bss to command line */
166 moveal #command_line, %a1
171 /* Copy %a0 to %a1 until %a1 == %a2 */
184 subl #4096, %d0 /* Reserve 4K of stack */
189 movel %d0, rom_length
199 movel #penguin_bits, 0xFFFFFA00
200 moveb #10, 0xFFFFFA05
201 movew #160, 0xFFFFFA08
202 movew #160, 0xFFFFFA0A
203 #endif /* CONFIG_PILOT */
207 lea init_thread_union, %a0