Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (c) 2008 PIKA Technologies
0004  *   Sean MacLennan <smaclennan@pikatech.com>
0005  */
0006 
0007 #include "ops.h"
0008 #include "4xx.h"
0009 #include "cuboot.h"
0010 #include "stdio.h"
0011 
0012 #define TARGET_4xx
0013 #define TARGET_44x
0014 #include "ppcboot.h"
0015 
0016 static bd_t bd;
0017 
0018 static void warp_fixups(void)
0019 {
0020     ibm440ep_fixup_clocks(66000000, 11059200, 50000000);
0021     ibm4xx_sdram_fixup_memsize();
0022     ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");
0023     dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
0024 }
0025 
0026 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
0027            unsigned long r6, unsigned long r7)
0028 {
0029     CUBOOT_INIT();
0030 
0031     platform_ops.fixups = warp_fixups;
0032     platform_ops.exit = ibm44x_dbcr_reset;
0033     fdt_init(_dtb_start);
0034     serial_console_init();
0035 }