xref: /openbmc/linux/arch/powerpc/boot/ppcboot.h (revision 61d3b949)
19b1c59e2SScott Wood /*
29b1c59e2SScott Wood  * This interface is used for compatibility with old U-boots *ONLY*.
39b1c59e2SScott Wood  * Please do not imitate or extend this.
49b1c59e2SScott Wood  */
59b1c59e2SScott Wood 
69b1c59e2SScott Wood /*
79b1c59e2SScott Wood  * (C) Copyright 2000, 2001
89b1c59e2SScott Wood  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
99b1c59e2SScott Wood  *
109b1c59e2SScott Wood  * This program is free software; you can redistribute it and/or
119b1c59e2SScott Wood  * modify it under the terms of the GNU General Public License as
129b1c59e2SScott Wood  * published by the Free Software Foundation; either version 2 of
139b1c59e2SScott Wood  * the License, or (at your option) any later version.
149b1c59e2SScott Wood  *
159b1c59e2SScott Wood  * This program is distributed in the hope that it will be useful,
169b1c59e2SScott Wood  * but WITHOUT ANY WARRANTY; without even the implied warranty of
179b1c59e2SScott Wood  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
189b1c59e2SScott Wood  * GNU General Public License for more details.
199b1c59e2SScott Wood  *
209b1c59e2SScott Wood  * You should have received a copy of the GNU General Public License
219b1c59e2SScott Wood  * along with this program; if not, write to the Free Software
229b1c59e2SScott Wood  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
239b1c59e2SScott Wood  * MA 02111-1307 USA
249b1c59e2SScott Wood  */
259b1c59e2SScott Wood 
269b1c59e2SScott Wood #ifndef __PPCBOOT_H__
279b1c59e2SScott Wood #define __PPCBOOT_H__
289b1c59e2SScott Wood 
299b1c59e2SScott Wood /*
309b1c59e2SScott Wood  * Board information passed to kernel from PPCBoot
319b1c59e2SScott Wood  *
329b1c59e2SScott Wood  * include/asm-ppc/ppcboot.h
339b1c59e2SScott Wood  */
349b1c59e2SScott Wood 
359b1c59e2SScott Wood #include "types.h"
369b1c59e2SScott Wood 
379b1c59e2SScott Wood typedef struct bd_info {
389b1c59e2SScott Wood 	unsigned long	bi_memstart;	/* start of DRAM memory */
399b1c59e2SScott Wood 	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
409b1c59e2SScott Wood 	unsigned long	bi_flashstart;	/* start of FLASH memory */
419b1c59e2SScott Wood 	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
429b1c59e2SScott Wood 	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
439b1c59e2SScott Wood 	unsigned long	bi_sramstart;	/* start of SRAM memory */
449b1c59e2SScott Wood 	unsigned long	bi_sramsize;	/* size	 of SRAM memory */
459b1c59e2SScott Wood #if defined(TARGET_8xx) || defined(TARGET_CPM2) || defined(TARGET_85xx) ||\
469b1c59e2SScott Wood 	defined(TARGET_83xx)
479b1c59e2SScott Wood 	unsigned long	bi_immr_base;	/* base of IMMR register */
489b1c59e2SScott Wood #endif
499b1c59e2SScott Wood #if defined(TARGET_PPC_MPC52xx)
509b1c59e2SScott Wood 	unsigned long   bi_mbar_base;   /* base of internal registers */
519b1c59e2SScott Wood #endif
529b1c59e2SScott Wood 	unsigned long	bi_bootflags;	/* boot / reboot flag (for LynxOS) */
539b1c59e2SScott Wood 	unsigned long	bi_ip_addr;	/* IP Address */
549b1c59e2SScott Wood 	unsigned char	bi_enetaddr[6];	/* Ethernet address */
559b1c59e2SScott Wood 	unsigned short	bi_ethspeed;	/* Ethernet speed in Mbps */
569b1c59e2SScott Wood 	unsigned long	bi_intfreq;	/* Internal Freq, in MHz */
579b1c59e2SScott Wood 	unsigned long	bi_busfreq;	/* Bus Freq, in MHz */
589b1c59e2SScott Wood #if defined(TARGET_CPM2)
599b1c59e2SScott Wood 	unsigned long	bi_cpmfreq;	/* CPM_CLK Freq, in MHz */
609b1c59e2SScott Wood 	unsigned long	bi_brgfreq;	/* BRG_CLK Freq, in MHz */
619b1c59e2SScott Wood 	unsigned long	bi_sccfreq;	/* SCC_CLK Freq, in MHz */
629b1c59e2SScott Wood 	unsigned long	bi_vco;		/* VCO Out from PLL, in MHz */
639b1c59e2SScott Wood #endif
649b1c59e2SScott Wood #if defined(TARGET_PPC_MPC52xx)
659b1c59e2SScott Wood 	unsigned long   bi_ipbfreq;     /* IPB Bus Freq, in MHz */
669b1c59e2SScott Wood 	unsigned long   bi_pcifreq;     /* PCI Bus Freq, in MHz */
679b1c59e2SScott Wood #endif
689b1c59e2SScott Wood 	unsigned long	bi_baudrate;	/* Console Baudrate */
699b1c59e2SScott Wood #if defined(TARGET_4xx)
709b1c59e2SScott Wood 	unsigned char	bi_s_version[4];	/* Version of this structure */
719b1c59e2SScott Wood 	unsigned char	bi_r_version[32];	/* Version of the ROM (IBM) */
729b1c59e2SScott Wood 	unsigned int	bi_procfreq;	/* CPU (Internal) Freq, in Hz */
739b1c59e2SScott Wood 	unsigned int	bi_plb_busfreq;	/* PLB Bus speed, in Hz */
749b1c59e2SScott Wood 	unsigned int	bi_pci_busfreq;	/* PCI Bus speed, in Hz */
759b1c59e2SScott Wood 	unsigned char	bi_pci_enetaddr[6];	/* PCI Ethernet MAC address */
769b1c59e2SScott Wood #endif
779b1c59e2SScott Wood #if defined(TARGET_HYMOD)
789b1c59e2SScott Wood 	hymod_conf_t	bi_hymod_conf;	/* hymod configuration information */
799b1c59e2SScott Wood #endif
809b1c59e2SScott Wood #if defined(TARGET_EVB64260) || defined(TARGET_405EP) || defined(TARGET_44x) || \
8161d3b949SScott Wood 	defined(TARGET_85xx) ||	defined(TARGET_83xx) || defined(TARGET_HAS_ETH1)
829b1c59e2SScott Wood 	/* second onboard ethernet port */
839b1c59e2SScott Wood 	unsigned char	bi_enet1addr[6];
849b1c59e2SScott Wood #define HAVE_ENET1ADDR
859b1c59e2SScott Wood #endif
8661d3b949SScott Wood #if defined(TARGET_EVB64260) || defined(TARGET_440GX) || \
8761d3b949SScott Wood     defined(TARGET_85xx) || defined(TARGET_HAS_ETH2)
889b1c59e2SScott Wood 	/* third onboard ethernet ports */
899b1c59e2SScott Wood 	unsigned char	bi_enet2addr[6];
909b1c59e2SScott Wood #define HAVE_ENET2ADDR
919b1c59e2SScott Wood #endif
9261d3b949SScott Wood #if defined(TARGET_440GX) || defined(TARGET_HAS_ETH3)
939b1c59e2SScott Wood 	/* fourth onboard ethernet ports */
949b1c59e2SScott Wood 	unsigned char	bi_enet3addr[6];
959b1c59e2SScott Wood #define HAVE_ENET3ADDR
969b1c59e2SScott Wood #endif
979b1c59e2SScott Wood #if defined(TARGET_4xx)
989b1c59e2SScott Wood 	unsigned int	bi_opbfreq;		/* OB clock in Hz */
999b1c59e2SScott Wood 	int		bi_iic_fast[2];		/* Use fast i2c mode */
1009b1c59e2SScott Wood #endif
1019b1c59e2SScott Wood #if defined(TARGET_440GX)
1029b1c59e2SScott Wood 	int		bi_phynum[4];		/* phy mapping */
1039b1c59e2SScott Wood 	int		bi_phymode[4];		/* phy mode */
1049b1c59e2SScott Wood #endif
1059b1c59e2SScott Wood } bd_t;
1069b1c59e2SScott Wood 
1079b1c59e2SScott Wood #define bi_tbfreq	bi_intfreq
1089b1c59e2SScott Wood 
1099b1c59e2SScott Wood #endif	/* __PPCBOOT_H__ */
110