This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / ppc / boot / simple / misc-chestnut.S
1 /*
2  * arch/ppc/boot/simple/misc-chestnut.S
3  *
4  * Setup for the IBM Chestnut (ibm-750fxgx_eval)
5  *
6  * Author: <source@mvista.com>
7  *
8  * <2004> (c) MontaVista Software, Inc. This file is licensed under
9  * the terms of the GNU General Public License version 2. This program
10  * is licensed "as is" without any warranty of any kind, whether express
11  * or implied.
12  */
13
14
15 #include <asm/ppc_asm.h>
16 #include <asm/mv64x60_defs.h>
17 #include <platforms/chestnut.h>
18
19         .globl  mv64x60_board_init
20 mv64x60_board_init:
21         /*
22          * move UART to 0xffc00000
23          */
24
25         li      r23,16
26
27         addis   r25,0,CONFIG_MV64X60_BASE@h
28         ori     r25,r25,MV64x60_CPU2DEV_2_BASE
29         addis   r26,0,CHESTNUT_UART_BASE@h
30         srw     r26,r26,r23
31         stwbrx  r26,0,(r25)
32         sync
33
34         addis   r25,0,CONFIG_MV64X60_BASE@h
35         ori     r25,r25,MV64x60_CPU2DEV_2_SIZE
36         addis   r26,0,0x00100000@h
37         srw     r26,r26,r23
38         stwbrx  r26,0,(r25)
39         sync
40
41         blr