Linux Audio

Check our new training course

Loading...
v6.8
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 3 * Old U-boot compatibility for AmigaOne
 4 *
 5 * Author: Gerhard Pircher (gerhard_pircher@gmx.net)
 6 *
 7 *   Based on cuboot-83xx.c
 8 * Copyright (c) 2007 Freescale Semiconductor, Inc.
 
 
 
 
 9 */
10
11#include "ops.h"
12#include "stdio.h"
13#include "cuboot.h"
14
15#include "ppcboot.h"
16
17static bd_t bd;
18
19static void platform_fixups(void)
20{
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);
23}
24
25void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
26                   unsigned long r6, unsigned long r7)
27{
28	CUBOOT_INIT();
29	fdt_init(_dtb_start);
30	serial_console_init();
31	platform_ops.fixups = platform_fixups;
32}
v3.15
 
 1/*
 2 * Old U-boot compatibility for AmigaOne
 3 *
 4 * Author: Gerhard Pircher (gerhard_pircher@gmx.net)
 5 *
 6 *   Based on cuboot-83xx.c
 7 * Copyright (c) 2007 Freescale Semiconductor, Inc.
 8 *
 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.
12 */
13
14#include "ops.h"
15#include "stdio.h"
16#include "cuboot.h"
17
18#include "ppcboot.h"
19
20static bd_t bd;
21
22static void platform_fixups(void)
23{
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);
26}
27
28void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
29                   unsigned long r6, unsigned long r7)
30{
31	CUBOOT_INIT();
32	fdt_init(_dtb_start);
33	serial_console_init();
34	platform_ops.fixups = platform_fixups;
35}