Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / powerpc / boot / cuboot-taishan.c
blobc3cbf2eca740adc1d0b729338713bc067789d1c5
1 /*
2 * Old U-boot compatibility for Taishan
4 * Author: Hugh Blemings <hugh@au.ibm.com>
6 * Copyright 2007 Hugh Blemings, IBM Corporation.
7 * Based on cuboot-ebony.c which is:
8 * Copyright 2007 David Gibson, IBM Corporation.
9 * Based on cuboot-83xx.c, which is:
10 * Copyright (c) 2007 Freescale Semiconductor, Inc.
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License version 2 as published
14 * by the Free Software Foundation.
17 #include "ops.h"
18 #include "stdio.h"
19 #include "cuboot.h"
20 #include "reg.h"
21 #include "dcr.h"
22 #include "4xx.h"
24 <<<<<<< HEAD:arch/powerpc/boot/cuboot-taishan.c
25 =======
26 #define TARGET_4xx
27 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/cuboot-taishan.c
28 #define TARGET_44x
29 <<<<<<< HEAD:arch/powerpc/boot/cuboot-taishan.c
30 =======
31 #define TARGET_440GX
32 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/cuboot-taishan.c
33 #include "ppcboot.h"
35 static bd_t bd;
37 BSS_STACK(4096);
39 static void taishan_fixups(void)
41 /* FIXME: sysclk should be derived by reading the FPGA
42 registers */
43 unsigned long sysclk = 33000000;
45 ibm440gx_fixup_clocks(sysclk, 6 * 1843200, 25000000);
47 ibm4xx_sdram_fixup_memsize();
49 dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr);
51 ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");
54 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
55 unsigned long r6, unsigned long r7)
57 CUBOOT_INIT();
59 platform_ops.fixups = taishan_fixups;
60 fdt_init(_dtb_start);
61 serial_console_init();