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 * Unfortunately, the ESTeem Hotfoot board uses a mangled version of
962306a36Sopenharmony_ci * ppcboot.h for historical reasons, and in the interest of having a
1062306a36Sopenharmony_ci * mainline kernel boot on the production board+bootloader, this was the
1162306a36Sopenharmony_ci * least-offensive solution.  Please direct all flames to:
1262306a36Sopenharmony_ci *
1362306a36Sopenharmony_ci *  Solomon Peachy <solomon@linux-wlan.com>
1462306a36Sopenharmony_ci *
1562306a36Sopenharmony_ci * (This header is identical to ppcboot.h except for the
1662306a36Sopenharmony_ci *  TARGET_HOTFOOT bits)
1762306a36Sopenharmony_ci */
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci/*
2062306a36Sopenharmony_ci * (C) Copyright 2000, 2001
2162306a36Sopenharmony_ci * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
2262306a36Sopenharmony_ci */
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#ifndef __PPCBOOT_H__
2562306a36Sopenharmony_ci#define __PPCBOOT_H__
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci/*
2862306a36Sopenharmony_ci * Board information passed to kernel from PPCBoot
2962306a36Sopenharmony_ci *
3062306a36Sopenharmony_ci * include/asm-ppc/ppcboot.h
3162306a36Sopenharmony_ci */
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci#include "types.h"
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_citypedef struct bd_info {
3662306a36Sopenharmony_ci	unsigned long	bi_memstart;	/* start of DRAM memory */
3762306a36Sopenharmony_ci	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
3862306a36Sopenharmony_ci	unsigned long	bi_flashstart;	/* start of FLASH memory */
3962306a36Sopenharmony_ci	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
4062306a36Sopenharmony_ci	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
4162306a36Sopenharmony_ci	unsigned long	bi_sramstart;	/* start of SRAM memory */
4262306a36Sopenharmony_ci	unsigned long	bi_sramsize;	/* size	 of SRAM memory */
4362306a36Sopenharmony_ci#if defined(TARGET_8xx) || defined(TARGET_CPM2) || defined(TARGET_85xx) ||\
4462306a36Sopenharmony_ci	defined(TARGET_83xx)
4562306a36Sopenharmony_ci	unsigned long	bi_immr_base;	/* base of IMMR register */
4662306a36Sopenharmony_ci#endif
4762306a36Sopenharmony_ci#if defined(TARGET_PPC_MPC52xx)
4862306a36Sopenharmony_ci	unsigned long   bi_mbar_base;   /* base of internal registers */
4962306a36Sopenharmony_ci#endif
5062306a36Sopenharmony_ci	unsigned long	bi_bootflags;	/* boot / reboot flag (for LynxOS) */
5162306a36Sopenharmony_ci	unsigned long	bi_ip_addr;	/* IP Address */
5262306a36Sopenharmony_ci	unsigned char	bi_enetaddr[6];	/* Ethernet address */
5362306a36Sopenharmony_ci#if defined(TARGET_HOTFOOT)
5462306a36Sopenharmony_ci	/* second onboard ethernet port */
5562306a36Sopenharmony_ci	unsigned char	bi_enet1addr[6];
5662306a36Sopenharmony_ci#define HAVE_ENET1ADDR
5762306a36Sopenharmony_ci#endif /* TARGET_HOOTFOOT */
5862306a36Sopenharmony_ci	unsigned short	bi_ethspeed;	/* Ethernet speed in Mbps */
5962306a36Sopenharmony_ci	unsigned long	bi_intfreq;	/* Internal Freq, in MHz */
6062306a36Sopenharmony_ci	unsigned long	bi_busfreq;	/* Bus Freq, in MHz */
6162306a36Sopenharmony_ci#if defined(TARGET_CPM2)
6262306a36Sopenharmony_ci	unsigned long	bi_cpmfreq;	/* CPM_CLK Freq, in MHz */
6362306a36Sopenharmony_ci	unsigned long	bi_brgfreq;	/* BRG_CLK Freq, in MHz */
6462306a36Sopenharmony_ci	unsigned long	bi_sccfreq;	/* SCC_CLK Freq, in MHz */
6562306a36Sopenharmony_ci	unsigned long	bi_vco;		/* VCO Out from PLL, in MHz */
6662306a36Sopenharmony_ci#endif
6762306a36Sopenharmony_ci#if defined(TARGET_PPC_MPC52xx)
6862306a36Sopenharmony_ci	unsigned long   bi_ipbfreq;     /* IPB Bus Freq, in MHz */
6962306a36Sopenharmony_ci	unsigned long   bi_pcifreq;     /* PCI Bus Freq, in MHz */
7062306a36Sopenharmony_ci#endif
7162306a36Sopenharmony_ci	unsigned long	bi_baudrate;	/* Console Baudrate */
7262306a36Sopenharmony_ci#if defined(TARGET_4xx)
7362306a36Sopenharmony_ci	unsigned char	bi_s_version[4];	/* Version of this structure */
7462306a36Sopenharmony_ci	unsigned char	bi_r_version[32];	/* Version of the ROM (IBM) */
7562306a36Sopenharmony_ci	unsigned int	bi_procfreq;	/* CPU (Internal) Freq, in Hz */
7662306a36Sopenharmony_ci	unsigned int	bi_plb_busfreq;	/* PLB Bus speed, in Hz */
7762306a36Sopenharmony_ci	unsigned int	bi_pci_busfreq;	/* PCI Bus speed, in Hz */
7862306a36Sopenharmony_ci	unsigned char	bi_pci_enetaddr[6];	/* PCI Ethernet MAC address */
7962306a36Sopenharmony_ci#endif
8062306a36Sopenharmony_ci#if defined(TARGET_HOTFOOT)
8162306a36Sopenharmony_ci	unsigned int     bi_pllouta_freq;       /* PLL OUTA speed, in Hz */
8262306a36Sopenharmony_ci#endif
8362306a36Sopenharmony_ci#if defined(TARGET_HYMOD)
8462306a36Sopenharmony_ci	hymod_conf_t	bi_hymod_conf;	/* hymod configuration information */
8562306a36Sopenharmony_ci#endif
8662306a36Sopenharmony_ci#if defined(TARGET_EVB64260) || defined(TARGET_405EP) || defined(TARGET_44x) || \
8762306a36Sopenharmony_ci	defined(TARGET_85xx) ||	defined(TARGET_83xx) || defined(TARGET_HAS_ETH1)
8862306a36Sopenharmony_ci	/* second onboard ethernet port */
8962306a36Sopenharmony_ci	unsigned char	bi_enet1addr[6];
9062306a36Sopenharmony_ci#define HAVE_ENET1ADDR
9162306a36Sopenharmony_ci#endif
9262306a36Sopenharmony_ci#if defined(TARGET_EVB64260) || defined(TARGET_440GX) || \
9362306a36Sopenharmony_ci    defined(TARGET_85xx) || defined(TARGET_HAS_ETH2)
9462306a36Sopenharmony_ci	/* third onboard ethernet ports */
9562306a36Sopenharmony_ci	unsigned char	bi_enet2addr[6];
9662306a36Sopenharmony_ci#define HAVE_ENET2ADDR
9762306a36Sopenharmony_ci#endif
9862306a36Sopenharmony_ci#if defined(TARGET_440GX) || defined(TARGET_HAS_ETH3)
9962306a36Sopenharmony_ci	/* fourth onboard ethernet ports */
10062306a36Sopenharmony_ci	unsigned char	bi_enet3addr[6];
10162306a36Sopenharmony_ci#define HAVE_ENET3ADDR
10262306a36Sopenharmony_ci#endif
10362306a36Sopenharmony_ci#if defined(TARGET_HOTFOOT)
10462306a36Sopenharmony_ci        int             bi_phynum[2];           /* Determines phy mapping */
10562306a36Sopenharmony_ci        int             bi_phymode[2];          /* Determines phy mode */
10662306a36Sopenharmony_ci#endif
10762306a36Sopenharmony_ci#if defined(TARGET_4xx)
10862306a36Sopenharmony_ci	unsigned int	bi_opbfreq;		/* OB clock in Hz */
10962306a36Sopenharmony_ci	int		bi_iic_fast[2];		/* Use fast i2c mode */
11062306a36Sopenharmony_ci#endif
11162306a36Sopenharmony_ci#if defined(TARGET_440GX)
11262306a36Sopenharmony_ci	int		bi_phynum[4];		/* phy mapping */
11362306a36Sopenharmony_ci	int		bi_phymode[4];		/* phy mode */
11462306a36Sopenharmony_ci#endif
11562306a36Sopenharmony_ci} bd_t;
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ci#define bi_tbfreq	bi_intfreq
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ci#endif	/* __PPCBOOT_H__ */
120