Path: blob/master/arch/powerpc/boot/cuboot-sequoia.c
10817 views
/*1* Old U-boot compatibility for Sequoia2*3* Valentine Barshak <[email protected]>4* Copyright 2007 MontaVista Software, Inc5*6* Based on Ebony code by David Gibson <[email protected]>7* Copyright IBM Corporation, 20078*9* Based on Bamboo code by Josh Boyer <[email protected]>10* Copyright IBM Corporation, 200711*12* This program is free software; you can redistribute it and/or13* modify it under the terms of the GNU General Public License14* as published by the Free Software Foundation; version 2 of the License15*/1617#include <stdarg.h>18#include <stddef.h>19#include "types.h"20#include "elf.h"21#include "string.h"22#include "stdio.h"23#include "page.h"24#include "ops.h"25#include "dcr.h"26#include "4xx.h"27#include "44x.h"28#include "cuboot.h"2930#define TARGET_4xx31#define TARGET_44x32#include "ppcboot.h"3334static bd_t bd;353637static void sequoia_fixups(void)38{39unsigned long sysclk = 33333333;4041ibm440ep_fixup_clocks(sysclk, 11059200, 50000000);42ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");43ibm4xx_denali_fixup_memsize();44dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);45dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);46}4748void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,49unsigned long r6, unsigned long r7)50{51CUBOOT_INIT();52platform_ops.fixups = sequoia_fixups;53platform_ops.exit = ibm44x_dbcr_reset;54fdt_init(_dtb_start);55serial_console_init();56}575859