xref: /openbmc/u-boot/arch/x86/include/asm/u-boot.h (revision 476af299)
1fea25720SGraeme Russ /*
2fea25720SGraeme Russ  * (C) Copyright 2002
3fea25720SGraeme Russ  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4fea25720SGraeme Russ  * Marius Groeger <mgroeger@sysgo.de>
5fea25720SGraeme Russ  *
6fea25720SGraeme Russ  * (C) Copyright 2002
7fea25720SGraeme Russ  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8fea25720SGraeme Russ  * Alex Zuepke <azu@sysgo.de>
9fea25720SGraeme Russ  *
10fea25720SGraeme Russ  * See file CREDITS for list of people who contributed to this
11fea25720SGraeme Russ  * project.
12fea25720SGraeme Russ  *
13fea25720SGraeme Russ  * This program is free software; you can redistribute it and/or
14fea25720SGraeme Russ  * modify it under the terms of the GNU General Public License as
15fea25720SGraeme Russ  * published by the Free Software Foundation; either version 2 of
16fea25720SGraeme Russ  * the License, or (at your option) any later version.
17fea25720SGraeme Russ  *
18fea25720SGraeme Russ  * This program is distributed in the hope that it will be useful,
19fea25720SGraeme Russ  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20fea25720SGraeme Russ  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21fea25720SGraeme Russ  * GNU General Public License for more details.
22fea25720SGraeme Russ  *
23fea25720SGraeme Russ  * You should have received a copy of the GNU General Public License
24fea25720SGraeme Russ  * along with this program; if not, write to the Free Software
25fea25720SGraeme Russ  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26fea25720SGraeme Russ  * MA 02111-1307 USA
27fea25720SGraeme Russ  *
28fea25720SGraeme Russ  ********************************************************************
29fea25720SGraeme Russ  * NOTE: This header file defines an interface to U-Boot. Including
30fea25720SGraeme Russ  * this (unmodified) header file in another file is considered normal
31fea25720SGraeme Russ  * use of U-Boot, and does *not* fall under the heading of "derived
32fea25720SGraeme Russ  * work".
33fea25720SGraeme Russ  ********************************************************************
34fea25720SGraeme Russ  */
35fea25720SGraeme Russ 
36fea25720SGraeme Russ #ifndef _U_BOOT_H_
37fea25720SGraeme Russ #define _U_BOOT_H_	1
38fea25720SGraeme Russ 
39fea25720SGraeme Russ typedef struct bd_info {
40fea25720SGraeme Russ 	unsigned long	bi_memstart;	/* start of DRAM memory */
41fea25720SGraeme Russ 	phys_size_t	bi_memsize;	/* size	 of DRAM memory in bytes */
42fea25720SGraeme Russ 	unsigned long	bi_flashstart;	/* start of FLASH memory */
43fea25720SGraeme Russ 	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
44fea25720SGraeme Russ 	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
45fea25720SGraeme Russ 	unsigned long	bi_sramstart;	/* start of SRAM memory */
46fea25720SGraeme Russ 	unsigned long	bi_sramsize;	/* size	 of SRAM memory */
47fea25720SGraeme Russ 	unsigned long	bi_bootflags;	/* boot / reboot flag (for LynxOS) */
48fea25720SGraeme Russ 	unsigned long	bi_ip_addr;	/* IP Address */
49fea25720SGraeme Russ 	unsigned short	bi_ethspeed;	/* Ethernet speed in Mbps */
50fea25720SGraeme Russ 	unsigned long	bi_intfreq;	/* Internal Freq, in MHz */
51fea25720SGraeme Russ 	unsigned long	bi_busfreq;	/* Bus Freq, in MHz */
52fea25720SGraeme Russ 	unsigned int	bi_baudrate;	/* Console Baudrate */
53fea25720SGraeme Russ 	unsigned long   bi_boot_params;	/* where this board expects params */
54fea25720SGraeme Russ 	struct				/* RAM configuration */
55fea25720SGraeme Russ 	{
56fea25720SGraeme Russ 		ulong start;
57fea25720SGraeme Russ 		ulong size;
58fea25720SGraeme Russ 	}bi_dram[CONFIG_NR_DRAM_BANKS];
59fea25720SGraeme Russ } bd_t;
60fea25720SGraeme Russ 
61*476af299SMike Frysinger /* For image.h:image_check_target_arch() */
62*476af299SMike Frysinger #define IH_ARCH_DEFAULT IH_ARCH_I386
63*476af299SMike Frysinger 
64fea25720SGraeme Russ #endif	/* _U_BOOT_H_ */
65