2002-11-03 00:07:02 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000 - 2002
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2005-11-25 15:38:03 +00:00
|
|
|
*
|
|
|
|
********************************************************************
|
|
|
|
* NOTE: This header file defines an interface to U-Boot. Including
|
|
|
|
* this (unmodified) header file in another file is considered normal
|
|
|
|
* use of U-Boot, and does *not* fall under the heading of "derived
|
|
|
|
* work".
|
|
|
|
********************************************************************
|
2002-11-03 00:07:02 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __U_BOOT_H__
|
|
|
|
#define __U_BOOT_H__
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Board information passed to Linux kernel from U-Boot
|
|
|
|
*
|
|
|
|
* include/asm-ppc/u-boot.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
typedef struct bd_info {
|
|
|
|
unsigned long bi_memstart; /* start of DRAM memory */
|
2008-06-10 01:37:16 +00:00
|
|
|
phys_size_t bi_memsize; /* size of DRAM memory in bytes */
|
2002-11-03 00:07:02 +00:00
|
|
|
unsigned long bi_flashstart; /* start of FLASH memory */
|
|
|
|
unsigned long bi_flashsize; /* size of FLASH memory */
|
|
|
|
unsigned long bi_flashoffset; /* reserved area for startup monitor */
|
|
|
|
unsigned long bi_sramstart; /* start of SRAM memory */
|
|
|
|
unsigned long bi_sramsize; /* size of SRAM memory */
|
2003-10-15 23:53:47 +00:00
|
|
|
#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \
|
2006-04-26 22:58:56 +00:00
|
|
|
|| defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
|
2002-11-03 00:07:02 +00:00
|
|
|
unsigned long bi_immr_base; /* base of IMMR register */
|
2003-07-16 21:53:01 +00:00
|
|
|
#endif
|
2004-02-24 02:00:03 +00:00
|
|
|
#if defined(CONFIG_MPC5xxx)
|
2003-07-16 21:53:01 +00:00
|
|
|
unsigned long bi_mbar_base; /* base of internal registers */
|
2004-10-28 00:09:35 +00:00
|
|
|
#endif
|
2005-07-28 15:08:46 +00:00
|
|
|
#if defined(CONFIG_MPC83XX)
|
|
|
|
unsigned long bi_immrbar;
|
|
|
|
#endif
|
2004-10-28 00:09:35 +00:00
|
|
|
#if defined(CONFIG_MPC8220)
|
|
|
|
unsigned long bi_mbar_base; /* base of internal registers */
|
|
|
|
unsigned long bi_inpfreq; /* Input Freq, In MHz */
|
|
|
|
unsigned long bi_pcifreq; /* PCI Freq, in MHz */
|
|
|
|
unsigned long bi_pevfreq; /* PEV Freq, in MHz */
|
|
|
|
unsigned long bi_flbfreq; /* Flexbus Freq, in MHz */
|
|
|
|
unsigned long bi_vcofreq; /* VCO Freq, in MHz */
|
2002-11-03 00:07:02 +00:00
|
|
|
#endif
|
|
|
|
unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
|
|
|
|
unsigned long bi_ip_addr; /* IP Address */
|
2009-02-12 01:07:19 +00:00
|
|
|
unsigned char bi_enetaddr[6]; /* OLD: see README.enetaddr */
|
2002-11-03 00:07:02 +00:00
|
|
|
unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
|
|
|
|
unsigned long bi_intfreq; /* Internal Freq, in MHz */
|
|
|
|
unsigned long bi_busfreq; /* Bus Freq, in MHz */
|
2005-07-23 15:37:35 +00:00
|
|
|
#if defined(CONFIG_CPM2)
|
2002-11-03 00:07:02 +00:00
|
|
|
unsigned long bi_cpmfreq; /* CPM_CLK Freq, in MHz */
|
|
|
|
unsigned long bi_brgfreq; /* BRG_CLK Freq, in MHz */
|
|
|
|
unsigned long bi_sccfreq; /* SCC_CLK Freq, in MHz */
|
|
|
|
unsigned long bi_vco; /* VCO Out from PLL, in MHz */
|
2003-07-16 21:53:01 +00:00
|
|
|
#endif
|
2008-01-08 16:16:15 +00:00
|
|
|
#if defined(CONFIG_MPC512X)
|
|
|
|
unsigned long bi_ipsfreq; /* IPS Bus Freq, in MHz */
|
|
|
|
#endif /* CONFIG_MPC512X */
|
2004-02-24 02:00:03 +00:00
|
|
|
#if defined(CONFIG_MPC5xxx)
|
2003-07-16 21:53:01 +00:00
|
|
|
unsigned long bi_ipbfreq; /* IPB Bus Freq, in MHz */
|
|
|
|
unsigned long bi_pcifreq; /* PCI Bus Freq, in MHz */
|
2002-11-03 00:07:02 +00:00
|
|
|
#endif
|
|
|
|
unsigned long bi_baudrate; /* Console Baudrate */
|
2003-09-02 22:48:03 +00:00
|
|
|
#if defined(CONFIG_405) || \
|
|
|
|
defined(CONFIG_405GP) || \
|
2002-11-03 00:07:02 +00:00
|
|
|
defined(CONFIG_405CR) || \
|
2003-09-02 22:48:03 +00:00
|
|
|
defined(CONFIG_405EP) || \
|
2007-03-21 12:38:59 +00:00
|
|
|
defined(CONFIG_405EZ) || \
|
2007-10-05 15:10:59 +00:00
|
|
|
defined(CONFIG_405EX) || \
|
2003-09-02 22:48:03 +00:00
|
|
|
defined(CONFIG_440)
|
2002-11-03 00:07:02 +00:00
|
|
|
unsigned char bi_s_version[4]; /* Version of this structure */
|
2005-09-23 09:05:55 +00:00
|
|
|
unsigned char bi_r_version[32]; /* Version of the ROM (AMCC) */
|
2002-11-03 00:07:02 +00:00
|
|
|
unsigned int bi_procfreq; /* CPU (Internal) Freq, in Hz */
|
|
|
|
unsigned int bi_plb_busfreq; /* PLB Bus speed, in Hz */
|
|
|
|
unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */
|
|
|
|
unsigned char bi_pci_enetaddr[6]; /* PCI Ethernet MAC address */
|
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_HYMOD)
|
|
|
|
hymod_conf_t bi_hymod_conf; /* hymod configuration information */
|
|
|
|
#endif
|
2004-10-10 21:21:55 +00:00
|
|
|
|
2004-12-31 09:32:47 +00:00
|
|
|
#ifdef CONFIG_HAS_ETH1
|
2009-02-12 01:07:19 +00:00
|
|
|
unsigned char bi_enet1addr[6]; /* OLD: see README.enetaddr */
|
2002-11-03 00:07:02 +00:00
|
|
|
#endif
|
2004-12-31 09:32:47 +00:00
|
|
|
#ifdef CONFIG_HAS_ETH2
|
2009-02-12 01:07:19 +00:00
|
|
|
unsigned char bi_enet2addr[6]; /* OLD: see README.enetaddr */
|
2002-11-03 00:07:02 +00:00
|
|
|
#endif
|
2004-12-31 09:32:47 +00:00
|
|
|
#ifdef CONFIG_HAS_ETH3
|
2009-02-12 01:07:19 +00:00
|
|
|
unsigned char bi_enet3addr[6]; /* OLD: see README.enetaddr */
|
2004-02-06 23:19:44 +00:00
|
|
|
#endif
|
2008-09-29 22:28:23 +00:00
|
|
|
#ifdef CONFIG_HAS_ETH4
|
2009-02-12 01:07:19 +00:00
|
|
|
unsigned char bi_enet4addr[6]; /* OLD: see README.enetaddr */
|
2008-09-29 22:28:23 +00:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_HAS_ETH5
|
2009-02-12 01:07:19 +00:00
|
|
|
unsigned char bi_enet5addr[6]; /* OLD: see README.enetaddr */
|
2008-09-29 22:28:23 +00:00
|
|
|
#endif
|
2004-10-10 21:21:55 +00:00
|
|
|
|
2007-03-21 12:38:59 +00:00
|
|
|
#if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \
|
|
|
|
defined(CONFIG_405EZ) || defined(CONFIG_440GX) || \
|
2006-09-07 09:51:23 +00:00
|
|
|
defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
|
2008-03-11 14:07:10 +00:00
|
|
|
defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
|
|
|
|
defined(CONFIG_460EX) || defined(CONFIG_460GT)
|
2003-11-17 21:14:37 +00:00
|
|
|
unsigned int bi_opbfreq; /* OPB clock in Hz */
|
|
|
|
int bi_iic_fast[2]; /* Use fast i2c mode */
|
|
|
|
#endif
|
2002-11-03 00:07:02 +00:00
|
|
|
#if defined(CONFIG_NX823)
|
|
|
|
unsigned char bi_sernum[8];
|
|
|
|
#endif
|
2005-08-16 16:18:00 +00:00
|
|
|
#if defined(CONFIG_4xx)
|
2008-03-11 14:07:10 +00:00
|
|
|
#if defined(CONFIG_440GX) || \
|
|
|
|
defined(CONFIG_460EX) || defined(CONFIG_460GT)
|
2008-05-20 14:00:29 +00:00
|
|
|
int bi_phynum[4]; /* Determines phy mapping */
|
|
|
|
int bi_phymode[4]; /* Determines phy mode */
|
2005-08-16 16:18:00 +00:00
|
|
|
#elif defined(CONFIG_405EP) || defined(CONFIG_440)
|
2008-05-20 14:00:29 +00:00
|
|
|
int bi_phynum[2]; /* Determines phy mapping */
|
|
|
|
int bi_phymode[2]; /* Determines phy mode */
|
2005-08-16 16:18:00 +00:00
|
|
|
#else
|
2008-05-20 14:00:29 +00:00
|
|
|
int bi_phynum[1]; /* Determines phy mapping */
|
|
|
|
int bi_phymode[1]; /* Determines phy mode */
|
2004-02-22 23:46:08 +00:00
|
|
|
#endif
|
2005-08-16 16:18:00 +00:00
|
|
|
#endif /* defined(CONFIG_4xx) */
|
2002-11-03 00:07:02 +00:00
|
|
|
} bd_t;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __U_BOOT_H__ */
|