3 * Graeme Russ, graeme.russ@gmail.com.
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.
30 /* #include <asm/ic/sc520_defs.h> */
34 #include <asm/ic/sc520.h>
37 .section .start16, "ax"
41 /* Alias MMCR to 0xdf000 */
43 movl $0x800df0cb, %eax
46 /* Set ds to point to MMCR alias */
50 /* Map PAR for Boot Flash (BOOTCS, 512kB @ 0x380000000) */
51 movl $(SC520_PAR14 - SC520_MMCR_BASE), %edi
52 movl $CONFIG_SYS_SC520_BOOTCS_PAR, %eax
55 /* Map PAR for LED, Hex Switches (GPCS6, 20 Bytes @ 0x1000) */
56 movl $(SC520_PAR15 - SC520_MMCR_BASE), %edi
57 movl $CONFIG_SYS_SC520_LLIO_PAR, %eax
60 /* Disabe MMCR alias */
62 movl $0x000000cb, %eax
70 .hidden realmode_reset
71 .type realmode_reset, @function
73 /* Alias MMCR to 0xdf000 */
75 movl $0x800df0cb, %eax
78 /* Set ds to point to MMCR alias */
82 /* issue software reset thorugh MMCR */