Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:53

0001 /*
0002  * (C) Copyright 2000 - 2002
0003  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
0004  *
0005  * This program is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU General Public License as
0007  * published by the Free Software Foundation; either version 2 of
0008  * the License, or (at your option) any later version.
0009  *
0010  * This program is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013  * GNU General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU General Public License
0016  * along with this program; if not, write to the Free Software
0017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
0018  * MA 02111-1307 USA
0019  *
0020  ********************************************************************
0021  * NOTE: This header file defines an interface to U-Boot. Including
0022  * this (unmodified) header file in another file is considered normal
0023  * use of U-Boot, and does *not* fall under the heading of "derived
0024  * work".
0025  ********************************************************************
0026  */
0027 
0028 #ifndef __U_BOOT_H__
0029 #define __U_BOOT_H__
0030 
0031 /*
0032  * Board information passed to Linux kernel from U-Boot
0033  *
0034  * include/asm-ppc/u-boot.h
0035  */
0036 
0037 #ifndef __ASSEMBLY__
0038 
0039 typedef struct bd_info {
0040     unsigned long   bi_memstart;    /* start of DRAM memory */
0041     phys_size_t bi_memsize; /* size  of DRAM memory in bytes */
0042     unsigned long   bi_flashstart;  /* start of FLASH memory */
0043     unsigned long   bi_flashsize;   /* size  of FLASH memory */
0044     unsigned long   bi_flashoffset; /* reserved area for startup monitor */
0045     unsigned long   bi_sramstart;   /* start of SRAM memory */
0046     unsigned long   bi_sramsize;    /* size  of SRAM memory */
0047 #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \
0048     || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
0049     unsigned long   bi_immr_base;   /* base of IMMR register */
0050 #endif
0051 #if defined(CONFIG_MPC5xxx)
0052     unsigned long   bi_mbar_base;   /* base of internal registers */
0053 #endif
0054 #if defined(CONFIG_MPC83xx)
0055     unsigned long   bi_immrbar;
0056 #endif
0057 #if defined(CONFIG_MPC8220)
0058     unsigned long   bi_mbar_base;   /* base of internal registers */
0059     unsigned long   bi_inpfreq;     /* Input Freq, In MHz */
0060     unsigned long   bi_pcifreq;     /* PCI Freq, in MHz */
0061     unsigned long   bi_pevfreq;     /* PEV Freq, in MHz */
0062     unsigned long   bi_flbfreq;     /* Flexbus Freq, in MHz */
0063     unsigned long   bi_vcofreq;     /* VCO Freq, in MHz */
0064 #endif
0065     unsigned long   bi_bootflags;   /* boot / reboot flag (Unused) */
0066     unsigned long   bi_ip_addr; /* IP Address */
0067     unsigned char   bi_enetaddr[6]; /* OLD: see README.enetaddr */
0068     unsigned short  bi_ethspeed;    /* Ethernet speed in Mbps */
0069     unsigned long   bi_intfreq; /* Internal Freq, in MHz */
0070     unsigned long   bi_busfreq; /* Bus Freq, in MHz */
0071 #if defined(CONFIG_CPM2)
0072     unsigned long   bi_cpmfreq; /* CPM_CLK Freq, in MHz */
0073     unsigned long   bi_brgfreq; /* BRG_CLK Freq, in MHz */
0074     unsigned long   bi_sccfreq; /* SCC_CLK Freq, in MHz */
0075     unsigned long   bi_vco;     /* VCO Out from PLL, in MHz */
0076 #endif
0077 #if defined(CONFIG_MPC512X)
0078     unsigned long   bi_ipsfreq; /* IPS Bus Freq, in MHz */
0079 #endif /* CONFIG_MPC512X */
0080 #if defined(CONFIG_MPC5xxx)
0081     unsigned long   bi_ipbfreq; /* IPB Bus Freq, in MHz */
0082     unsigned long   bi_pcifreq; /* PCI Bus Freq, in MHz */
0083 #endif
0084     unsigned long   bi_baudrate;    /* Console Baudrate */
0085 #if defined(CONFIG_405)   || \
0086     defined(CONFIG_405GP) || \
0087     defined(CONFIG_405CR) || \
0088     defined(CONFIG_405EP) || \
0089     defined(CONFIG_405EZ) || \
0090     defined(CONFIG_405EX) || \
0091     defined(CONFIG_440)
0092     unsigned char   bi_s_version[4];    /* Version of this structure */
0093     unsigned char   bi_r_version[32];   /* Version of the ROM (AMCC) */
0094     unsigned int    bi_procfreq;    /* CPU (Internal) Freq, in Hz */
0095     unsigned int    bi_plb_busfreq; /* PLB Bus speed, in Hz */
0096     unsigned int    bi_pci_busfreq; /* PCI Bus speed, in Hz */
0097     unsigned char   bi_pci_enetaddr[6]; /* PCI Ethernet MAC address */
0098 #endif
0099 #if defined(CONFIG_HYMOD)
0100     hymod_conf_t    bi_hymod_conf;  /* hymod configuration information */
0101 #endif
0102 
0103 #ifdef CONFIG_HAS_ETH1
0104     unsigned char   bi_enet1addr[6];    /* OLD: see README.enetaddr */
0105 #endif
0106 #ifdef CONFIG_HAS_ETH2
0107     unsigned char   bi_enet2addr[6];    /* OLD: see README.enetaddr */
0108 #endif
0109 #ifdef CONFIG_HAS_ETH3
0110     unsigned char   bi_enet3addr[6];    /* OLD: see README.enetaddr */
0111 #endif
0112 #ifdef CONFIG_HAS_ETH4
0113     unsigned char   bi_enet4addr[6];    /* OLD: see README.enetaddr */
0114 #endif
0115 #ifdef CONFIG_HAS_ETH5
0116     unsigned char   bi_enet5addr[6];    /* OLD: see README.enetaddr */
0117 #endif
0118 
0119 #if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \
0120     defined(CONFIG_405EZ) || defined(CONFIG_440GX) || \
0121     defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
0122     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
0123     defined(CONFIG_460EX) || defined(CONFIG_460GT)
0124     unsigned int    bi_opbfreq;     /* OPB clock in Hz */
0125     int     bi_iic_fast[2];     /* Use fast i2c mode */
0126 #endif
0127 #if defined(CONFIG_NX823)
0128     unsigned char   bi_sernum[8];
0129 #endif
0130 #if defined(CONFIG_4xx)
0131 #if defined(CONFIG_440GX) || \
0132     defined(CONFIG_460EX) || defined(CONFIG_460GT)
0133     int     bi_phynum[4];           /* Determines phy mapping */
0134     int     bi_phymode[4];          /* Determines phy mode */
0135 #elif defined(CONFIG_405EP) || defined(CONFIG_440)
0136     int     bi_phynum[2];           /* Determines phy mapping */
0137     int     bi_phymode[2];          /* Determines phy mode */
0138 #else
0139     int     bi_phynum[1];           /* Determines phy mapping */
0140     int     bi_phymode[1];          /* Determines phy mode */
0141 #endif
0142 #endif /* defined(CONFIG_4xx) */
0143 } bd_t;
0144 
0145 #endif /* __ASSEMBLY__ */
0146 #endif  /* __U_BOOT_H__ */