Path: blob/master/arch/powerpc/boot/cuboot-katmai.c
10817 views
/*1* Old U-boot compatibility for Katmai2*3* Author: Hugh Blemings <[email protected]>4*5* Copyright 2007 Hugh Blemings, IBM Corporation.6* Based on cuboot-ebony.c which is:7* Copyright 2007 David Gibson, IBM Corporation.8* Based on cuboot-83xx.c, which is:9* Copyright (c) 2007 Freescale Semiconductor, Inc.10*11* This program is free software; you can redistribute it and/or modify it12* under the terms of the GNU General Public License version 2 as published13* by the Free Software Foundation.14*/1516#include "ops.h"17#include "stdio.h"18#include "reg.h"19#include "dcr.h"20#include "4xx.h"21#include "44x.h"22#include "cuboot.h"2324#define TARGET_4xx25#define TARGET_44x26#include "ppcboot.h"2728static bd_t bd;2930BSS_STACK(4096);3132static void katmai_fixups(void)33{34unsigned long sysclk = 33333000;3536/* 440SP Clock logic is all but identical to 440GX37* so we just use that code for now at least38*/39ibm440spe_fixup_clocks(sysclk, 6 * 1843200, 0);4041ibm440spe_fixup_memsize();4243dt_fixup_mac_address(0, bd.bi_enetaddr);4445ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");46}4748void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,49unsigned long r6, unsigned long r7)50{51CUBOOT_INIT();5253platform_ops.fixups = katmai_fixups;54fdt_init(_dtb_start);55serial_console_init();56}575859