0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <stdarg.h>
0016 #include <stddef.h>
0017 #include "types.h"
0018 #include "elf.h"
0019 #include "string.h"
0020 #include "stdio.h"
0021 #include "page.h"
0022 #include "ops.h"
0023 #include "dcr.h"
0024 #include "4xx.h"
0025 #include "44x.h"
0026 #include "cuboot.h"
0027
0028 #define TARGET_4xx
0029 #define TARGET_44x
0030 #include "ppcboot.h"
0031
0032 static bd_t bd;
0033
0034
0035 static void sequoia_fixups(void)
0036 {
0037 unsigned long sysclk = 33333333;
0038
0039 ibm440ep_fixup_clocks(sysclk, 11059200, 50000000);
0040 ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");
0041 ibm4xx_denali_fixup_memsize();
0042 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
0043 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
0044 }
0045
0046 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
0047 unsigned long r6, unsigned long r7)
0048 {
0049 CUBOOT_INIT();
0050 platform_ops.fixups = sequoia_fixups;
0051 platform_ops.exit = ibm44x_dbcr_reset;
0052 fdt_init(_dtb_start);
0053 serial_console_init();
0054 }