1*69d59b47SSimon Glass /* 2*69d59b47SSimon Glass * Copyright (c) 2011 The Chromium OS Authors. 3*69d59b47SSimon Glass * 4*69d59b47SSimon Glass * (C) Copyright 2000 - 2002 5*69d59b47SSimon Glass * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 6*69d59b47SSimon Glass * 7*69d59b47SSimon Glass * This program is free software; you can redistribute it and/or 8*69d59b47SSimon Glass * modify it under the terms of the GNU General Public License as 9*69d59b47SSimon Glass * published by the Free Software Foundation; either version 2 of 10*69d59b47SSimon Glass * the License, or (at your option) any later version. 11*69d59b47SSimon Glass * 12*69d59b47SSimon Glass * This program is distributed in the hope that it will be useful, 13*69d59b47SSimon Glass * but WITHOUT ANY WARRANTY; without even the implied warranty of 14*69d59b47SSimon Glass * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*69d59b47SSimon Glass * GNU General Public License for more details. 16*69d59b47SSimon Glass * 17*69d59b47SSimon Glass * You should have received a copy of the GNU General Public License 18*69d59b47SSimon Glass * along with this program; if not, write to the Free Software 19*69d59b47SSimon Glass * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20*69d59b47SSimon Glass * MA 02111-1307 USA 21*69d59b47SSimon Glass * 22*69d59b47SSimon Glass ******************************************************************** 23*69d59b47SSimon Glass * NOTE: This header file defines an interface to U-Boot. Including 24*69d59b47SSimon Glass * this (unmodified) header file in another file is considered normal 25*69d59b47SSimon Glass * use of U-Boot, and does *not* fall under the heading of "derived 26*69d59b47SSimon Glass * work". 27*69d59b47SSimon Glass ******************************************************************** 28*69d59b47SSimon Glass */ 29*69d59b47SSimon Glass 30*69d59b47SSimon Glass #ifndef __ASM_GENERIC_U_BOOT_H__ 31*69d59b47SSimon Glass #define __ASM_GENERIC_U_BOOT_H__ 32*69d59b47SSimon Glass 33*69d59b47SSimon Glass /* 34*69d59b47SSimon Glass * Board information passed to Linux kernel from U-Boot 35*69d59b47SSimon Glass * 36*69d59b47SSimon Glass * include/asm-ppc/u-boot.h 37*69d59b47SSimon Glass */ 38*69d59b47SSimon Glass 39*69d59b47SSimon Glass #ifndef __ASSEMBLY__ 40*69d59b47SSimon Glass 41*69d59b47SSimon Glass typedef struct bd_info { 42*69d59b47SSimon Glass unsigned long bi_memstart; /* start of DRAM memory */ 43*69d59b47SSimon Glass phys_size_t bi_memsize; /* size of DRAM memory in bytes */ 44*69d59b47SSimon Glass unsigned long bi_flashstart; /* start of FLASH memory */ 45*69d59b47SSimon Glass unsigned long bi_flashsize; /* size of FLASH memory */ 46*69d59b47SSimon Glass unsigned long bi_flashoffset; /* reserved area for startup monitor */ 47*69d59b47SSimon Glass unsigned long bi_sramstart; /* start of SRAM memory */ 48*69d59b47SSimon Glass unsigned long bi_sramsize; /* size of SRAM memory */ 49*69d59b47SSimon Glass #ifdef CONFIG_ARM 50*69d59b47SSimon Glass unsigned long bi_arm_freq; /* arm frequency */ 51*69d59b47SSimon Glass unsigned long bi_dsp_freq; /* dsp core frequency */ 52*69d59b47SSimon Glass unsigned long bi_ddr_freq; /* ddr frequency */ 53*69d59b47SSimon Glass #endif 54*69d59b47SSimon Glass #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \ 55*69d59b47SSimon Glass || defined(CONFIG_E500) || defined(CONFIG_MPC86xx) 56*69d59b47SSimon Glass unsigned long bi_immr_base; /* base of IMMR register */ 57*69d59b47SSimon Glass #endif 58*69d59b47SSimon Glass #if defined(CONFIG_MPC5xxx) 59*69d59b47SSimon Glass unsigned long bi_mbar_base; /* base of internal registers */ 60*69d59b47SSimon Glass #endif 61*69d59b47SSimon Glass #if defined(CONFIG_MPC83xx) 62*69d59b47SSimon Glass unsigned long bi_immrbar; 63*69d59b47SSimon Glass #endif 64*69d59b47SSimon Glass #if defined(CONFIG_MPC8220) 65*69d59b47SSimon Glass unsigned long bi_mbar_base; /* base of internal registers */ 66*69d59b47SSimon Glass unsigned long bi_inpfreq; /* Input Freq, In MHz */ 67*69d59b47SSimon Glass unsigned long bi_pcifreq; /* PCI Freq, in MHz */ 68*69d59b47SSimon Glass unsigned long bi_pevfreq; /* PEV Freq, in MHz */ 69*69d59b47SSimon Glass unsigned long bi_flbfreq; /* Flexbus Freq, in MHz */ 70*69d59b47SSimon Glass unsigned long bi_vcofreq; /* VCO Freq, in MHz */ 71*69d59b47SSimon Glass #endif 72*69d59b47SSimon Glass unsigned long bi_bootflags; /* boot / reboot flag (Unused) */ 73*69d59b47SSimon Glass unsigned long bi_ip_addr; /* IP Address */ 74*69d59b47SSimon Glass unsigned char bi_enetaddr[6]; /* OLD: see README.enetaddr */ 75*69d59b47SSimon Glass unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ 76*69d59b47SSimon Glass unsigned long bi_intfreq; /* Internal Freq, in MHz */ 77*69d59b47SSimon Glass unsigned long bi_busfreq; /* Bus Freq, in MHz */ 78*69d59b47SSimon Glass #if defined(CONFIG_CPM2) 79*69d59b47SSimon Glass unsigned long bi_cpmfreq; /* CPM_CLK Freq, in MHz */ 80*69d59b47SSimon Glass unsigned long bi_brgfreq; /* BRG_CLK Freq, in MHz */ 81*69d59b47SSimon Glass unsigned long bi_sccfreq; /* SCC_CLK Freq, in MHz */ 82*69d59b47SSimon Glass unsigned long bi_vco; /* VCO Out from PLL, in MHz */ 83*69d59b47SSimon Glass #endif 84*69d59b47SSimon Glass #if defined(CONFIG_MPC512X) 85*69d59b47SSimon Glass unsigned long bi_ipsfreq; /* IPS Bus Freq, in MHz */ 86*69d59b47SSimon Glass #endif /* CONFIG_MPC512X */ 87*69d59b47SSimon Glass #if defined(CONFIG_MPC5xxx) 88*69d59b47SSimon Glass unsigned long bi_ipbfreq; /* IPB Bus Freq, in MHz */ 89*69d59b47SSimon Glass unsigned long bi_pcifreq; /* PCI Bus Freq, in MHz */ 90*69d59b47SSimon Glass #endif 91*69d59b47SSimon Glass unsigned int bi_baudrate; /* Console Baudrate */ 92*69d59b47SSimon Glass #if defined(CONFIG_405) || \ 93*69d59b47SSimon Glass defined(CONFIG_405GP) || \ 94*69d59b47SSimon Glass defined(CONFIG_405CR) || \ 95*69d59b47SSimon Glass defined(CONFIG_405EP) || \ 96*69d59b47SSimon Glass defined(CONFIG_405EZ) || \ 97*69d59b47SSimon Glass defined(CONFIG_405EX) || \ 98*69d59b47SSimon Glass defined(CONFIG_440) 99*69d59b47SSimon Glass unsigned char bi_s_version[4]; /* Version of this structure */ 100*69d59b47SSimon Glass unsigned char bi_r_version[32]; /* Version of the ROM (AMCC) */ 101*69d59b47SSimon Glass unsigned int bi_procfreq; /* CPU (Internal) Freq, in Hz */ 102*69d59b47SSimon Glass unsigned int bi_plb_busfreq; /* PLB Bus speed, in Hz */ 103*69d59b47SSimon Glass unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */ 104*69d59b47SSimon Glass unsigned char bi_pci_enetaddr[6]; /* PCI Ethernet MAC address */ 105*69d59b47SSimon Glass #endif 106*69d59b47SSimon Glass #if defined(CONFIG_HYMOD) 107*69d59b47SSimon Glass hymod_conf_t bi_hymod_conf; /* hymod configuration information */ 108*69d59b47SSimon Glass #endif 109*69d59b47SSimon Glass 110*69d59b47SSimon Glass #ifdef CONFIG_HAS_ETH1 111*69d59b47SSimon Glass unsigned char bi_enet1addr[6]; /* OLD: see README.enetaddr */ 112*69d59b47SSimon Glass #endif 113*69d59b47SSimon Glass #ifdef CONFIG_HAS_ETH2 114*69d59b47SSimon Glass unsigned char bi_enet2addr[6]; /* OLD: see README.enetaddr */ 115*69d59b47SSimon Glass #endif 116*69d59b47SSimon Glass #ifdef CONFIG_HAS_ETH3 117*69d59b47SSimon Glass unsigned char bi_enet3addr[6]; /* OLD: see README.enetaddr */ 118*69d59b47SSimon Glass #endif 119*69d59b47SSimon Glass #ifdef CONFIG_HAS_ETH4 120*69d59b47SSimon Glass unsigned char bi_enet4addr[6]; /* OLD: see README.enetaddr */ 121*69d59b47SSimon Glass #endif 122*69d59b47SSimon Glass #ifdef CONFIG_HAS_ETH5 123*69d59b47SSimon Glass unsigned char bi_enet5addr[6]; /* OLD: see README.enetaddr */ 124*69d59b47SSimon Glass #endif 125*69d59b47SSimon Glass 126*69d59b47SSimon Glass #if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \ 127*69d59b47SSimon Glass defined(CONFIG_405EZ) || defined(CONFIG_440GX) || \ 128*69d59b47SSimon Glass defined(CONFIG_440EP) || defined(CONFIG_440GR) || \ 129*69d59b47SSimon Glass defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \ 130*69d59b47SSimon Glass defined(CONFIG_460EX) || defined(CONFIG_460GT) 131*69d59b47SSimon Glass unsigned int bi_opbfreq; /* OPB clock in Hz */ 132*69d59b47SSimon Glass int bi_iic_fast[2]; /* Use fast i2c mode */ 133*69d59b47SSimon Glass #endif 134*69d59b47SSimon Glass #if defined(CONFIG_NX823) 135*69d59b47SSimon Glass unsigned char bi_sernum[8]; 136*69d59b47SSimon Glass #endif 137*69d59b47SSimon Glass #if defined(CONFIG_4xx) 138*69d59b47SSimon Glass #if defined(CONFIG_440GX) || \ 139*69d59b47SSimon Glass defined(CONFIG_460EX) || defined(CONFIG_460GT) 140*69d59b47SSimon Glass int bi_phynum[4]; /* Determines phy mapping */ 141*69d59b47SSimon Glass int bi_phymode[4]; /* Determines phy mode */ 142*69d59b47SSimon Glass #elif defined(CONFIG_405EP) || defined(CONFIG_405EX) || defined(CONFIG_440) 143*69d59b47SSimon Glass int bi_phynum[2]; /* Determines phy mapping */ 144*69d59b47SSimon Glass int bi_phymode[2]; /* Determines phy mode */ 145*69d59b47SSimon Glass #else 146*69d59b47SSimon Glass int bi_phynum[1]; /* Determines phy mapping */ 147*69d59b47SSimon Glass int bi_phymode[1]; /* Determines phy mode */ 148*69d59b47SSimon Glass #endif 149*69d59b47SSimon Glass #endif /* defined(CONFIG_4xx) */ 150*69d59b47SSimon Glass ulong bi_arch_number; /* unique id for this board */ 151*69d59b47SSimon Glass ulong bi_boot_params; /* where this board expects params */ 152*69d59b47SSimon Glass #ifdef CONFIG_NR_DRAM_BANKS 153*69d59b47SSimon Glass struct { /* RAM configuration */ 154*69d59b47SSimon Glass ulong start; 155*69d59b47SSimon Glass ulong size; 156*69d59b47SSimon Glass } bi_dram[CONFIG_NR_DRAM_BANKS]; 157*69d59b47SSimon Glass #endif /* CONFIG_NR_DRAM_BANKS */ 158*69d59b47SSimon Glass } bd_t; 159*69d59b47SSimon Glass 160*69d59b47SSimon Glass #endif /* __ASSEMBLY__ */ 161*69d59b47SSimon Glass 162*69d59b47SSimon Glass #endif /* __ASM_GENERIC_U_BOOT_H__ */ 163