2 * arch/ppc/boot/simple/misc-ev64260.S
4 * Host bridge init code for the Marvell/Galileo EV-64260-BP evaluation board
5 * with a GT64260 onboard.
7 * Author: Mark Greer <mgreer@mvista.com>
9 * 2001 (c) MontaVista Software, Inc. This file is licensed under
10 * the terms of the GNU General Public License version 2. This program
11 * is licensed "as is" without any warranty of any kind, whether express
15 #include <asm/ppc_asm.h>
16 #include <asm/processor.h>
17 #include <asm/cache.h>
18 #include <asm/mv64x60_defs.h>
19 #include <platforms/ev64260.h>
21 .globl mv64x60_board_init
23 /* DINK doesn't enable 745x timebase, so enable here (Adrian Cox) */
26 cmplwi r25,(PVR_7450 >> 16)
29 oris r25,r25,(HID0_TBEN >> 16)
32 #if (CONFIG_MV64X60_NEW_BASE != CONFIG_MV64X60_BASE)
36 * Change the CS2 window for the UART so that the bootloader
37 * can do I/O thru the UARTs.
39 addis r25,0,CONFIG_MV64X60_NEW_BASE@h
40 ori r25,r25,MV64x60_CPU2DEV_2_BASE
41 addis r26,0,EV64260_UART_BASE@h
46 addis r25,0,CONFIG_MV64X60_NEW_BASE@h
47 ori r25,r25,MV64x60_CPU2DEV_2_SIZE
48 addis r26,0,EV64260_UART_END@h
55 #if defined(CONFIG_SERIAL_MPSC_CONSOLE)
57 .globl mv64x60_console_baud
59 .long EV64260_DEFAULT_BAUD
61 .globl mv64x60_mpsc_clk_src
63 .long EV64260_MPSC_CLK_SRC
65 .globl mv64x60_mpsc_clk_freq
66 mv64x60_mpsc_clk_freq:
67 .long EV64260_MPSC_CLK_FREQ