Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / powerpc / boot / cuboot-amigaone.c
blobd5029674030b271a4a85c6cdd23185c4886a59a6
1 /*
2 * Old U-boot compatibility for AmigaOne
4 * Author: Gerhard Pircher (gerhard_pircher@gmx.net)
6 * Based on cuboot-83xx.c
7 * Copyright (c) 2007 Freescale Semiconductor, Inc.
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License version 2 as published
11 * by the Free Software Foundation.
14 #include "ops.h"
15 #include "stdio.h"
16 #include "cuboot.h"
18 #include "ppcboot.h"
20 static bd_t bd;
22 static void platform_fixups(void)
24 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
25 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
28 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
29 unsigned long r6, unsigned long r7)
31 CUBOOT_INIT();
32 fdt_init(_dtb_start);
33 serial_console_init();
34 platform_ops.fixups = platform_fixups;