// SPDX-License-Identifier: GPL-2.0-only1/*2* Old U-boot compatibility for AmigaOne3*4* Author: Gerhard Pircher ([email protected])5*6* Based on cuboot-83xx.c7* Copyright (c) 2007 Freescale Semiconductor, Inc.8*/910#include "ops.h"11#include "stdio.h"12#include "cuboot.h"1314#include "ppcboot.h"1516static bd_t bd;1718static void platform_fixups(void)19{20dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);21dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);22}2324void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,25unsigned long r6, unsigned long r7)26{27CUBOOT_INIT();28fdt_init(_dtb_start);29serial_console_init();30platform_ops.fixups = platform_fixups;31}323334