162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * This interface is used for compatibility with old U-boots *ONLY*.
462306a36Sopenharmony_ci * Please do not imitate or extend this.
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/*
862306a36Sopenharmony_ci * (C) Copyright 2000, 2001
962306a36Sopenharmony_ci * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
1062306a36Sopenharmony_ci */
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#ifndef __PPCBOOT_H__
1362306a36Sopenharmony_ci#define __PPCBOOT_H__
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci/*
1662306a36Sopenharmony_ci * Board information passed to kernel from PPCBoot
1762306a36Sopenharmony_ci *
1862306a36Sopenharmony_ci * include/asm-ppc/ppcboot.h
1962306a36Sopenharmony_ci */
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#include "types.h"
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_citypedef struct bd_info {
2462306a36Sopenharmony_ci	unsigned long	bi_memstart;	/* start of DRAM memory */
2562306a36Sopenharmony_ci	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
2662306a36Sopenharmony_ci	unsigned long	bi_flashstart;	/* start of FLASH memory */
2762306a36Sopenharmony_ci	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
2862306a36Sopenharmony_ci	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
2962306a36Sopenharmony_ci	unsigned long	bi_sramstart;	/* start of SRAM memory */
3062306a36Sopenharmony_ci	unsigned long	bi_sramsize;	/* size	 of SRAM memory */
3162306a36Sopenharmony_ci#if defined(TARGET_8xx) || defined(TARGET_CPM2) || defined(TARGET_85xx) ||\
3262306a36Sopenharmony_ci	defined(TARGET_83xx) || defined(TARGET_86xx)
3362306a36Sopenharmony_ci	unsigned long	bi_immr_base;	/* base of IMMR register */
3462306a36Sopenharmony_ci#endif
3562306a36Sopenharmony_ci#if defined(TARGET_PPC_MPC52xx)
3662306a36Sopenharmony_ci	unsigned long   bi_mbar_base;   /* base of internal registers */
3762306a36Sopenharmony_ci#endif
3862306a36Sopenharmony_ci	unsigned long	bi_bootflags;	/* boot / reboot flag (for LynxOS) */
3962306a36Sopenharmony_ci	unsigned long	bi_ip_addr;	/* IP Address */
4062306a36Sopenharmony_ci	unsigned char	bi_enetaddr[6];	/* Ethernet address */
4162306a36Sopenharmony_ci	unsigned short	bi_ethspeed;	/* Ethernet speed in Mbps */
4262306a36Sopenharmony_ci	unsigned long	bi_intfreq;	/* Internal Freq, in MHz */
4362306a36Sopenharmony_ci	unsigned long	bi_busfreq;	/* Bus Freq, in MHz */
4462306a36Sopenharmony_ci#if defined(TARGET_CPM2)
4562306a36Sopenharmony_ci	unsigned long	bi_cpmfreq;	/* CPM_CLK Freq, in MHz */
4662306a36Sopenharmony_ci	unsigned long	bi_brgfreq;	/* BRG_CLK Freq, in MHz */
4762306a36Sopenharmony_ci	unsigned long	bi_sccfreq;	/* SCC_CLK Freq, in MHz */
4862306a36Sopenharmony_ci	unsigned long	bi_vco;		/* VCO Out from PLL, in MHz */
4962306a36Sopenharmony_ci#endif
5062306a36Sopenharmony_ci#if defined(TARGET_PPC_MPC52xx)
5162306a36Sopenharmony_ci	unsigned long   bi_ipbfreq;     /* IPB Bus Freq, in MHz */
5262306a36Sopenharmony_ci	unsigned long   bi_pcifreq;     /* PCI Bus Freq, in MHz */
5362306a36Sopenharmony_ci#endif
5462306a36Sopenharmony_ci	unsigned long	bi_baudrate;	/* Console Baudrate */
5562306a36Sopenharmony_ci#if defined(TARGET_4xx)
5662306a36Sopenharmony_ci	unsigned char	bi_s_version[4];	/* Version of this structure */
5762306a36Sopenharmony_ci	unsigned char	bi_r_version[32];	/* Version of the ROM (IBM) */
5862306a36Sopenharmony_ci	unsigned int	bi_procfreq;	/* CPU (Internal) Freq, in Hz */
5962306a36Sopenharmony_ci	unsigned int	bi_plb_busfreq;	/* PLB Bus speed, in Hz */
6062306a36Sopenharmony_ci	unsigned int	bi_pci_busfreq;	/* PCI Bus speed, in Hz */
6162306a36Sopenharmony_ci	unsigned char	bi_pci_enetaddr[6];	/* PCI Ethernet MAC address */
6262306a36Sopenharmony_ci#endif
6362306a36Sopenharmony_ci#if defined(TARGET_HYMOD)
6462306a36Sopenharmony_ci	hymod_conf_t	bi_hymod_conf;	/* hymod configuration information */
6562306a36Sopenharmony_ci#endif
6662306a36Sopenharmony_ci#if defined(TARGET_EVB64260) || defined(TARGET_405EP) || defined(TARGET_44x) || \
6762306a36Sopenharmony_ci	defined(TARGET_85xx) ||	defined(TARGET_83xx) || defined(TARGET_HAS_ETH1)
6862306a36Sopenharmony_ci	/* second onboard ethernet port */
6962306a36Sopenharmony_ci	unsigned char	bi_enet1addr[6];
7062306a36Sopenharmony_ci#define HAVE_ENET1ADDR
7162306a36Sopenharmony_ci#endif
7262306a36Sopenharmony_ci#if defined(TARGET_EVB64260) || defined(TARGET_440GX) || \
7362306a36Sopenharmony_ci    defined(TARGET_85xx) || defined(TARGET_HAS_ETH2)
7462306a36Sopenharmony_ci	/* third onboard ethernet ports */
7562306a36Sopenharmony_ci	unsigned char	bi_enet2addr[6];
7662306a36Sopenharmony_ci#define HAVE_ENET2ADDR
7762306a36Sopenharmony_ci#endif
7862306a36Sopenharmony_ci#if defined(TARGET_440GX) || defined(TARGET_HAS_ETH3)
7962306a36Sopenharmony_ci	/* fourth onboard ethernet ports */
8062306a36Sopenharmony_ci	unsigned char	bi_enet3addr[6];
8162306a36Sopenharmony_ci#define HAVE_ENET3ADDR
8262306a36Sopenharmony_ci#endif
8362306a36Sopenharmony_ci#if defined(TARGET_4xx)
8462306a36Sopenharmony_ci	unsigned int	bi_opbfreq;		/* OB clock in Hz */
8562306a36Sopenharmony_ci	int		bi_iic_fast[2];		/* Use fast i2c mode */
8662306a36Sopenharmony_ci#endif
8762306a36Sopenharmony_ci#if defined(TARGET_440GX)
8862306a36Sopenharmony_ci	int		bi_phynum[4];		/* phy mapping */
8962306a36Sopenharmony_ci	int		bi_phymode[4];		/* phy mode */
9062306a36Sopenharmony_ci#endif
9162306a36Sopenharmony_ci} bd_t;
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ci#define bi_tbfreq	bi_intfreq
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci#endif	/* __PPCBOOT_H__ */
96