3 * Daniel Engström, Omicron Ceti AB <daniel@omicron.se>.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * 16bit initialization code.
26 * This code have to map the area of the boot flash
27 * that is used by U-boot to its final destination.
31 .section .start16, "ax"
35 /* Alias MMCR to 0xdf000 */
37 movl $0x800df0cb, %eax
40 /* Set ds to point to MMCR alias */
44 /* Map the entire flash at 0x38000000
45 * (with BOOTCS and PAR14, use 0xabfff800 for ROMCS1) */
47 movl $0x8bfff800, %eax
50 /* Disable SDRAM write buffer */
55 /* Disabe MMCR alias */
57 movl $0x000000cb, %eax
60 /* the return address is tored in bp */
68 /* Alias MMCR to 0xdf000 */
70 movl $0x800df0cb, %eax
73 /* Set ds to point to MMCR alias */
77 /* issue software reset thorugh MMCR */