···11+/*22+ * Old U-boot compatibility for Yosemite33+ *44+ * Author: Josh Boyer <jwboyer@linux.vnet.ibm.com>55+ *66+ * Copyright 2008 IBM Corporation77+ *88+ * This program is free software; you can redistribute it and/or modify it99+ * under the terms of the GNU General Public License version 2 as published1010+ * by the Free Software Foundation.1111+ */1212+1313+#include "ops.h"1414+#include "stdio.h"1515+#include "4xx.h"1616+#include "44x.h"1717+#include "cuboot.h"1818+1919+#define TARGET_4xx2020+#define TARGET_44x2121+#include "ppcboot.h"2222+2323+static bd_t bd;2424+2525+static void yosemite_fixups(void)2626+{2727+ unsigned long sysclk = 66666666;2828+2929+ ibm440ep_fixup_clocks(sysclk, 11059200, 50000000);3030+ ibm4xx_sdram_fixup_memsize();3131+ ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00);3232+ dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);3333+ dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);3434+}3535+3636+void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,3737+ unsigned long r6, unsigned long r7)3838+{3939+ CUBOOT_INIT();4040+ platform_ops.fixups = yosemite_fixups;4141+ platform_ops.exit = ibm44x_dbcr_reset;4242+ fdt_init(_dtb_start);4343+ serial_console_init();4444+}