Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / powerpc / boot / cuboot-amigaone.c
blobf3b6d6236ca7c733c251e6a883e9a8857ca2cbcb
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Old U-boot compatibility for AmigaOne
5 * Author: Gerhard Pircher (gerhard_pircher@gmx.net)
7 * Based on cuboot-83xx.c
8 * Copyright (c) 2007 Freescale Semiconductor, Inc.
9 */
11 #include "ops.h"
12 #include "stdio.h"
13 #include "cuboot.h"
15 #include "ppcboot.h"
17 static bd_t bd;
19 static void platform_fixups(void)
21 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
22 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
25 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
26 unsigned long r6, unsigned long r7)
28 CUBOOT_INIT();
29 fdt_init(_dtb_start);
30 serial_console_init();
31 platform_ops.fixups = platform_fixups;