blob: c42e93cbef494c925e003205d46fcacecc9d3be0 [file] [log] [blame]
Daniel Hellstrom9d7c6b22008-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 Brucea36601e2008-06-09 20:37:16 -050047 phys_size_t bi_memsize; /* size of DRAM memory in bytes */
Daniel Hellstrom9d7c6b22008-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 */
55 unsigned char bi_enetaddr[6]; /* Ethernet adress */
56 unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
57 unsigned long bi_intfreq; /* Internal Freq, in MHz */
58 unsigned long bi_busfreq; /* Bus Freq, in MHz */
59 unsigned long bi_baudrate; /* Console Baudrate */
60#ifdef CONFIG_HAS_ETH1
61 /* second onboard ethernet port */
62 unsigned char bi_enet1addr[6];
63#endif
64#ifdef CONFIG_HAS_ETH2
65 /* third onboard ethernet port */
66 unsigned char bi_enet2addr[6];
67#endif
68#ifdef CONFIG_HAS_ETH3
69 unsigned char bi_enet3addr[6];
70#endif
71} bd_t;
72
73#endif /* __ASSEMBLY__ */
74#endif /* __U_BOOT_H__ */