1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * This interface is used for compatibility with old U-boots *ONLY*. 4*4882a593Smuzhiyun * Please do not imitate or extend this. 5*4882a593Smuzhiyun */ 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun /* 8*4882a593Smuzhiyun * Unfortunately, the ESTeem Hotfoot board uses a mangled version of 9*4882a593Smuzhiyun * ppcboot.h for historical reasons, and in the interest of having a 10*4882a593Smuzhiyun * mainline kernel boot on the production board+bootloader, this was the 11*4882a593Smuzhiyun * least-offensive solution. Please direct all flames to: 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * Solomon Peachy <solomon@linux-wlan.com> 14*4882a593Smuzhiyun * 15*4882a593Smuzhiyun * (This header is identical to ppcboot.h except for the 16*4882a593Smuzhiyun * TARGET_HOTFOOT bits) 17*4882a593Smuzhiyun */ 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun /* 20*4882a593Smuzhiyun * (C) Copyright 2000, 2001 21*4882a593Smuzhiyun * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #ifndef __PPCBOOT_H__ 25*4882a593Smuzhiyun #define __PPCBOOT_H__ 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun /* 28*4882a593Smuzhiyun * Board information passed to kernel from PPCBoot 29*4882a593Smuzhiyun * 30*4882a593Smuzhiyun * include/asm-ppc/ppcboot.h 31*4882a593Smuzhiyun */ 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun #include "types.h" 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun typedef struct bd_info { 36*4882a593Smuzhiyun unsigned long bi_memstart; /* start of DRAM memory */ 37*4882a593Smuzhiyun unsigned long bi_memsize; /* size of DRAM memory in bytes */ 38*4882a593Smuzhiyun unsigned long bi_flashstart; /* start of FLASH memory */ 39*4882a593Smuzhiyun unsigned long bi_flashsize; /* size of FLASH memory */ 40*4882a593Smuzhiyun unsigned long bi_flashoffset; /* reserved area for startup monitor */ 41*4882a593Smuzhiyun unsigned long bi_sramstart; /* start of SRAM memory */ 42*4882a593Smuzhiyun unsigned long bi_sramsize; /* size of SRAM memory */ 43*4882a593Smuzhiyun #if defined(TARGET_8xx) || defined(TARGET_CPM2) || defined(TARGET_85xx) ||\ 44*4882a593Smuzhiyun defined(TARGET_83xx) 45*4882a593Smuzhiyun unsigned long bi_immr_base; /* base of IMMR register */ 46*4882a593Smuzhiyun #endif 47*4882a593Smuzhiyun #if defined(TARGET_PPC_MPC52xx) 48*4882a593Smuzhiyun unsigned long bi_mbar_base; /* base of internal registers */ 49*4882a593Smuzhiyun #endif 50*4882a593Smuzhiyun unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */ 51*4882a593Smuzhiyun unsigned long bi_ip_addr; /* IP Address */ 52*4882a593Smuzhiyun unsigned char bi_enetaddr[6]; /* Ethernet address */ 53*4882a593Smuzhiyun #if defined(TARGET_HOTFOOT) 54*4882a593Smuzhiyun /* second onboard ethernet port */ 55*4882a593Smuzhiyun unsigned char bi_enet1addr[6]; 56*4882a593Smuzhiyun #define HAVE_ENET1ADDR 57*4882a593Smuzhiyun #endif /* TARGET_HOOTFOOT */ 58*4882a593Smuzhiyun unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ 59*4882a593Smuzhiyun unsigned long bi_intfreq; /* Internal Freq, in MHz */ 60*4882a593Smuzhiyun unsigned long bi_busfreq; /* Bus Freq, in MHz */ 61*4882a593Smuzhiyun #if defined(TARGET_CPM2) 62*4882a593Smuzhiyun unsigned long bi_cpmfreq; /* CPM_CLK Freq, in MHz */ 63*4882a593Smuzhiyun unsigned long bi_brgfreq; /* BRG_CLK Freq, in MHz */ 64*4882a593Smuzhiyun unsigned long bi_sccfreq; /* SCC_CLK Freq, in MHz */ 65*4882a593Smuzhiyun unsigned long bi_vco; /* VCO Out from PLL, in MHz */ 66*4882a593Smuzhiyun #endif 67*4882a593Smuzhiyun #if defined(TARGET_PPC_MPC52xx) 68*4882a593Smuzhiyun unsigned long bi_ipbfreq; /* IPB Bus Freq, in MHz */ 69*4882a593Smuzhiyun unsigned long bi_pcifreq; /* PCI Bus Freq, in MHz */ 70*4882a593Smuzhiyun #endif 71*4882a593Smuzhiyun unsigned long bi_baudrate; /* Console Baudrate */ 72*4882a593Smuzhiyun #if defined(TARGET_4xx) 73*4882a593Smuzhiyun unsigned char bi_s_version[4]; /* Version of this structure */ 74*4882a593Smuzhiyun unsigned char bi_r_version[32]; /* Version of the ROM (IBM) */ 75*4882a593Smuzhiyun unsigned int bi_procfreq; /* CPU (Internal) Freq, in Hz */ 76*4882a593Smuzhiyun unsigned int bi_plb_busfreq; /* PLB Bus speed, in Hz */ 77*4882a593Smuzhiyun unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */ 78*4882a593Smuzhiyun unsigned char bi_pci_enetaddr[6]; /* PCI Ethernet MAC address */ 79*4882a593Smuzhiyun #endif 80*4882a593Smuzhiyun #if defined(TARGET_HOTFOOT) 81*4882a593Smuzhiyun unsigned int bi_pllouta_freq; /* PLL OUTA speed, in Hz */ 82*4882a593Smuzhiyun #endif 83*4882a593Smuzhiyun #if defined(TARGET_HYMOD) 84*4882a593Smuzhiyun hymod_conf_t bi_hymod_conf; /* hymod configuration information */ 85*4882a593Smuzhiyun #endif 86*4882a593Smuzhiyun #if defined(TARGET_EVB64260) || defined(TARGET_405EP) || defined(TARGET_44x) || \ 87*4882a593Smuzhiyun defined(TARGET_85xx) || defined(TARGET_83xx) || defined(TARGET_HAS_ETH1) 88*4882a593Smuzhiyun /* second onboard ethernet port */ 89*4882a593Smuzhiyun unsigned char bi_enet1addr[6]; 90*4882a593Smuzhiyun #define HAVE_ENET1ADDR 91*4882a593Smuzhiyun #endif 92*4882a593Smuzhiyun #if defined(TARGET_EVB64260) || defined(TARGET_440GX) || \ 93*4882a593Smuzhiyun defined(TARGET_85xx) || defined(TARGET_HAS_ETH2) 94*4882a593Smuzhiyun /* third onboard ethernet ports */ 95*4882a593Smuzhiyun unsigned char bi_enet2addr[6]; 96*4882a593Smuzhiyun #define HAVE_ENET2ADDR 97*4882a593Smuzhiyun #endif 98*4882a593Smuzhiyun #if defined(TARGET_440GX) || defined(TARGET_HAS_ETH3) 99*4882a593Smuzhiyun /* fourth onboard ethernet ports */ 100*4882a593Smuzhiyun unsigned char bi_enet3addr[6]; 101*4882a593Smuzhiyun #define HAVE_ENET3ADDR 102*4882a593Smuzhiyun #endif 103*4882a593Smuzhiyun #if defined(TARGET_HOTFOOT) 104*4882a593Smuzhiyun int bi_phynum[2]; /* Determines phy mapping */ 105*4882a593Smuzhiyun int bi_phymode[2]; /* Determines phy mode */ 106*4882a593Smuzhiyun #endif 107*4882a593Smuzhiyun #if defined(TARGET_4xx) 108*4882a593Smuzhiyun unsigned int bi_opbfreq; /* OB clock in Hz */ 109*4882a593Smuzhiyun int bi_iic_fast[2]; /* Use fast i2c mode */ 110*4882a593Smuzhiyun #endif 111*4882a593Smuzhiyun #if defined(TARGET_440GX) 112*4882a593Smuzhiyun int bi_phynum[4]; /* phy mapping */ 113*4882a593Smuzhiyun int bi_phymode[4]; /* phy mode */ 114*4882a593Smuzhiyun #endif 115*4882a593Smuzhiyun } bd_t; 116*4882a593Smuzhiyun 117*4882a593Smuzhiyun #define bi_tbfreq bi_intfreq 118*4882a593Smuzhiyun 119*4882a593Smuzhiyun #endif /* __PPCBOOT_H__ */ 120