2 * linux/arch/m68knommu/platform/68328/head-rom.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
18 #include <linux/config.h>
33 #define IMR 0xFFFFF304
39 #include "bootlogo.rh"
43 /*****************************************************************************/
48 * Set up the usable of RAM stuff. Size of RAM is determined then
49 * an initial stack set up at the end.
70 .byte 0x4e, 0xfa, 0x00, 0x0a /* Jmp +X bytes */
71 .byte 'b', 'o', 'o', 't'
78 movew %d0, 0xfffff618 /* Watchdog off */
79 movel #0x00011f07, 0xfffff114 /* CS A1 Mask */
81 movew #0x0800, 0xfffff906 /* Ignore CTS */
82 movew #0x010b, 0xfffff902 /* BAUD to 9600 */
84 movew #0x2410, 0xfffff200 /* PLLCR */
85 movew #0x123, 0xfffff202 /* PLLFSR */
88 moveb #0, 0xfffffA27 /* LCKCON */
89 movel #_start, 0xfffffA00 /* LSSA */
90 moveb #0xa, 0xfffffA05 /* LVPW */
91 movew #0x9f, 0xFFFFFa08 /* LXMAX */
92 movew #0x9f, 0xFFFFFa0a /* LYMAX */
93 moveb #9, 0xfffffa29 /* LBAR */
94 moveb #0, 0xfffffa25 /* LPXCD */
95 moveb #0x04, 0xFFFFFa20 /* LPICF */
96 moveb #0x58, 0xfffffA27 /* LCKCON */
97 moveb #0x85, 0xfffff429 /* PFDATA */
98 moveb #0xd8, 0xfffffA27 /* LCKCON */
99 moveb #0xc5, 0xfffff429 /* PFDATA */
100 moveb #0xd5, 0xfffff429 /* PFDATA */
102 moveal #0x00100000, %a3
103 moveal #0x100ffc00, %a4
104 #endif /* CONFIG_PILOT */
106 #endif /* CONFIG_M68328 */
116 movew #16384, %d0 /* PLL settle wait loop */
123 /* Copy command line from beginning of RAM (+16) to end of bss */
132 /* Copy %a0 to %a1 until %a1 == %a2 */
139 /* Copy data+init segment from ROM to RAM */
142 moveal #__init_end, %a2
146 /* Copy %a0 to %a1 until %a1 == %a2 */
158 /* Copy 0 to %a0 until %a0 == %a1 */
166 /* Copy command line from end of bss to command line */
168 moveal #command_line, %a1
173 /* Copy %a0 to %a1 until %a1 == %a2 */
186 subl #4096, %d0 /* Reserve 4K of stack */
191 movel %d0, rom_length
201 movel #penguin_bits, 0xFFFFFA00
202 moveb #10, 0xFFFFFA05
203 movew #160, 0xFFFFFA08
204 movew #160, 0xFFFFFA0A
205 #endif /* CONFIG_PILOT */
209 lea init_thread_union, %a0