1 // SPDX-License-Identifier: GPL-2.0-only
3 * Old U-boot compatibility for PPC405EX. This image is already included
6 * Author: Tiejun Chen <tiejun.chen@windriver.com>
8 * Copyright (C) 2009 Wind River Systems, Inc.
23 #define KILAUEA_SYS_EXT_SERIAL_CLOCK 11059200 /* ext. 11.059MHz clk */
27 static void kilauea_fixups(void)
29 unsigned long sysclk = 33333333;
31 ibm405ex_fixup_clocks(sysclk, KILAUEA_SYS_EXT_SERIAL_CLOCK);
32 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
33 ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");
34 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
35 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
38 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
39 unsigned long r6, unsigned long r7)
42 platform_ops.fixups = kilauea_fixups;
43 platform_ops.exit = ibm40x_dbcr_reset;
45 serial_console_init();