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>
32 #define IMR 0xFFFFF304
38 #include "bootlogo.rh"
42 /*****************************************************************************/
47 * Set up the usable of RAM stuff. Size of RAM is determined then
48 * an initial stack set up at the end.
69 .byte 0x4e, 0xfa, 0x00, 0x0a /* Jmp +X bytes */
70 .byte 'b', 'o', 'o', 't'
77 movew %d0, 0xfffff618 /* Watchdog off */
78 movel #0x00011f07, 0xfffff114 /* CS A1 Mask */
80 movew #0x0800, 0xfffff906 /* Ignore CTS */
81 movew #0x010b, 0xfffff902 /* BAUD to 9600 */
83 movew #0x2410, 0xfffff200 /* PLLCR */
84 movew #0x123, 0xfffff202 /* PLLFSR */
87 moveb #0, 0xfffffA27 /* LCKCON */
88 movel #_start, 0xfffffA00 /* LSSA */
89 moveb #0xa, 0xfffffA05 /* LVPW */
90 movew #0x9f, 0xFFFFFa08 /* LXMAX */
91 movew #0x9f, 0xFFFFFa0a /* LYMAX */
92 moveb #9, 0xfffffa29 /* LBAR */
93 moveb #0, 0xfffffa25 /* LPXCD */
94 moveb #0x04, 0xFFFFFa20 /* LPICF */
95 moveb #0x58, 0xfffffA27 /* LCKCON */
96 moveb #0x85, 0xfffff429 /* PFDATA */
97 moveb #0xd8, 0xfffffA27 /* LCKCON */
98 moveb #0xc5, 0xfffff429 /* PFDATA */
99 moveb #0xd5, 0xfffff429 /* PFDATA */
101 moveal #0x00100000, %a3
102 moveal #0x100ffc00, %a4
103 #endif /* CONFIG_PILOT */
105 #endif /* CONFIG_M68328 */
115 movew #16384, %d0 /* PLL settle wait loop */
122 /* Copy command line from beginning of RAM (+16) to end of bss */
123 movel #CONFIG_VECTORBASE, %d7
131 /* Copy %a0 to %a1 until %a1 == %a2 */
138 /* Copy data+init segment from ROM to RAM */
141 moveal #__init_end, %a2
145 /* Copy %a0 to %a1 until %a1 == %a2 */
157 /* Copy 0 to %a0 until %a0 == %a1 */
165 /* Copy command line from end of bss to command line */
167 moveal #command_line, %a1
172 /* Copy %a0 to %a1 until %a1 == %a2 */
185 subl #4096, %d0 /* Reserve 4K of stack */
190 movel %d0, rom_length
200 movel #penguin_bits, 0xFFFFFA00
201 moveb #10, 0xFFFFFA05
202 movew #160, 0xFFFFFA08
203 movew #160, 0xFFFFFA0A
204 #endif /* CONFIG_PILOT */
208 lea init_thread_union, %a0