1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * Old U-boot compatibility for Ebony
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Author: David Gibson <david@gibson.dropbear.id.au>
6*4882a593Smuzhiyun *
7*4882a593Smuzhiyun * Copyright 2007 David Gibson, IBM Corporatio.
8*4882a593Smuzhiyun * Based on cuboot-83xx.c, which is:
9*4882a593Smuzhiyun * Copyright (c) 2007 Freescale Semiconductor, Inc.
10*4882a593Smuzhiyun */
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun #include "ops.h"
13*4882a593Smuzhiyun #include "stdio.h"
14*4882a593Smuzhiyun #include "44x.h"
15*4882a593Smuzhiyun #include "cuboot.h"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun #define TARGET_4xx
18*4882a593Smuzhiyun #define TARGET_44x
19*4882a593Smuzhiyun #include "ppcboot.h"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun static bd_t bd;
22*4882a593Smuzhiyun
platform_init(unsigned long r3,unsigned long r4,unsigned long r5,unsigned long r6,unsigned long r7)23*4882a593Smuzhiyun void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
24*4882a593Smuzhiyun unsigned long r6, unsigned long r7)
25*4882a593Smuzhiyun {
26*4882a593Smuzhiyun CUBOOT_INIT();
27*4882a593Smuzhiyun ebony_init(&bd.bi_enetaddr, &bd.bi_enet1addr);
28*4882a593Smuzhiyun }
29