Path: blob/master/arch/powerpc/boot/cuboot-sam440ep.c
10817 views
/*1* Old U-boot compatibility for Sam440ep based off bamboo.c code2* original copyrights below3*4* Author: Josh Boyer <[email protected]>5*6* Copyright 2007 IBM Corporation7*8* Based on cuboot-ebony.c9*10* Modified from cuboot-bamboo.c for sam440ep:11* Copyright 2008 Giuseppe Coviello <[email protected]>12*13* This program is free software; you can redistribute it and/or modify it14* under the terms of the GNU General Public License version 2 as published15* by the Free Software Foundation.16*/1718#include "ops.h"19#include "stdio.h"20#include "44x.h"21#include "4xx.h"22#include "cuboot.h"2324#define TARGET_4xx25#define TARGET_44x26#include "ppcboot.h"2728static bd_t bd;2930static void sam440ep_fixups(void)31{32unsigned long sysclk = 66666666;3334ibm440ep_fixup_clocks(sysclk, 11059200, 25000000);35ibm4xx_sdram_fixup_memsize();36ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00);37dt_fixup_mac_addresses(&bd.bi_enetaddr, &bd.bi_enet1addr);38}3940void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,41unsigned long r6, unsigned long r7)42{43CUBOOT_INIT();44platform_ops.fixups = sam440ep_fixups;45platform_ops.exit = ibm44x_dbcr_reset;46fdt_init(_dtb_start);47serial_console_init();48}495051