Path: blob/master/arch/powerpc/boot/cuboot-amigaone.c
10817 views
/*1* Old U-boot compatibility for AmigaOne2*3* Author: Gerhard Pircher ([email protected])4*5* Based on cuboot-83xx.c6* Copyright (c) 2007 Freescale Semiconductor, Inc.7*8* This program is free software; you can redistribute it and/or modify it9* under the terms of the GNU General Public License version 2 as published10* by the Free Software Foundation.11*/1213#include "ops.h"14#include "stdio.h"15#include "cuboot.h"1617#include "ppcboot.h"1819static bd_t bd;2021static void platform_fixups(void)22{23dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);24dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);25}2627void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,28unsigned long r6, unsigned long r7)29{30CUBOOT_INIT();31fdt_init(_dtb_start);32serial_console_init();33platform_ops.fixups = platform_fixups;34}353637