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
29 /*****************************************************************************/
34 * Set up the usable of RAM stuff. Size of RAM is determined then
35 * an initial stack set up at the end.
56 .byte 0x4e, 0xfa, 0x00, 0x0a /* Jmp +X bytes */
57 .byte 'b', 'o', 'o', 't'
64 movew %d0, 0xfffff618 /* Watchdog off */
65 movel #0x00011f07, 0xfffff114 /* CS A1 Mask */
67 movew #0x0800, 0xfffff906 /* Ignore CTS */
68 movew #0x010b, 0xfffff902 /* BAUD to 9600 */
70 movew #0x2410, 0xfffff200 /* PLLCR */
71 movew #0x123, 0xfffff202 /* PLLFSR */
74 moveb #0, 0xfffffA27 /* LCKCON */
75 movel #_start, 0xfffffA00 /* LSSA */
76 moveb #0xa, 0xfffffA05 /* LVPW */
77 movew #0x9f, 0xFFFFFa08 /* LXMAX */
78 movew #0x9f, 0xFFFFFa0a /* LYMAX */
79 moveb #9, 0xfffffa29 /* LBAR */
80 moveb #0, 0xfffffa25 /* LPXCD */
81 moveb #0x04, 0xFFFFFa20 /* LPICF */
82 moveb #0x58, 0xfffffA27 /* LCKCON */
83 moveb #0x85, 0xfffff429 /* PFDATA */
84 moveb #0xd8, 0xfffffA27 /* LCKCON */
85 moveb #0xc5, 0xfffff429 /* PFDATA */
86 moveb #0xd5, 0xfffff429 /* PFDATA */
88 moveal #0x00100000, %a3
89 moveal #0x100ffc00, %a4
90 #endif /* CONFIG_PILOT */
92 #endif /* CONFIG_M68328 */
102 movew #16384, %d0 /* PLL settle wait loop */
109 /* Copy command line from beginning of RAM (+16) to end of bss */
110 movel #CONFIG_VECTORBASE, %d7
118 /* Copy %a0 to %a1 until %a1 == %a2 */
125 /* Copy data+init segment from ROM to RAM */
128 moveal #__init_end, %a2
132 /* Copy %a0 to %a1 until %a1 == %a2 */
144 /* Copy 0 to %a0 until %a0 == %a1 */
152 /* Copy command line from end of bss to command line */
154 moveal #command_line, %a1
159 /* Copy %a0 to %a1 until %a1 == %a2 */
172 subl #4096, %d0 /* Reserve 4K of stack */
184 movel #bootlogo_bits, 0xFFFFFA00
185 moveb #10, 0xFFFFFA05
186 movew #160, 0xFFFFFA08
187 movew #160, 0xFFFFFA0A
188 #endif /* CONFIG_PILOT */
192 lea init_thread_union, %a0