blob: 209873ffec86825be36dd95cfd8756d820d6688b [file] [log] [blame]
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01001/*
2 * (C) Copyright 2000 - 2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * (C) Copyright 2007, From asm-ppc/u-boot.h
6 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 *
23 ********************************************************************
24 * NOTE: This header file defines an interface to U-Boot. Including
25 * this (unmodified) header file in another file is considered normal
26 * use of U-Boot, and does *not* fall under the heading of "derived
27 * work".
28 ********************************************************************
29 */
30
31#ifndef __U_BOOT_H__
32#define __U_BOOT_H__
33
34/*
35 * Currently, this Board information is not passed to
36 * Linux kernel from U-Boot, but may be passed to other
37 * Operating systems. This is because U-boot emulates
38 * a SUN PROM loader (from Linux point of view).
39 *
40 * include/asm-sparc/u-boot.h
41 */
42
43#ifndef __ASSEMBLY__
44
45typedef struct bd_info {
46 unsigned long bi_memstart; /* start of DRAM memory */
Becky Bruceb57ca3e2008-06-09 20:37:16 -050047 phys_size_t bi_memsize; /* size of DRAM memory in bytes */
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010048 unsigned long bi_flashstart; /* start of FLASH memory */
49 unsigned long bi_flashsize; /* size of FLASH memory */
50 unsigned long bi_flashoffset; /* reserved area for startup monitor */
51 unsigned long bi_sramstart; /* start of SRAM memory */
52 unsigned long bi_sramsize; /* size of SRAM memory */
53 unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
54 unsigned long bi_ip_addr; /* IP Address */
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010055 unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
56 unsigned long bi_intfreq; /* Internal Freq, in MHz */
57 unsigned long bi_busfreq; /* Bus Freq, in MHz */
58 unsigned long bi_baudrate; /* Console Baudrate */
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010059} bd_t;
60
61#endif /* __ASSEMBLY__ */
62#endif /* __U_BOOT_H__ */