Path: blob/master/arch/powerpc/boot/cuboot-yosemite.c
10818 views
/*1* Old U-boot compatibility for Yosemite2*3* Author: Josh Boyer <[email protected]>4*5* Copyright 2008 IBM Corporation6*7* This program is free software; you can redistribute it and/or modify it8* under the terms of the GNU General Public License version 2 as published9* by the Free Software Foundation.10*/1112#include "ops.h"13#include "stdio.h"14#include "4xx.h"15#include "44x.h"16#include "cuboot.h"1718#define TARGET_4xx19#define TARGET_44x20#include "ppcboot.h"2122static bd_t bd;2324static void yosemite_fixups(void)25{26unsigned long sysclk = 66666666;2728ibm440ep_fixup_clocks(sysclk, 11059200, 50000000);29ibm4xx_sdram_fixup_memsize();30ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00);31dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);32dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);33}3435void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,36unsigned long r6, unsigned long r7)37{38CUBOOT_INIT();39platform_ops.fixups = yosemite_fixups;40platform_ops.exit = ibm44x_dbcr_reset;41fdt_init(_dtb_start);42serial_console_init();43}444546