blob: 66cf4b023d6daa73cdf91a37a5a666315f21ab6d [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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01009 ********************************************************************
10 * NOTE: This header file defines an interface to U-Boot. Including
11 * this (unmodified) header file in another file is considered normal
12 * use of U-Boot, and does *not* fall under the heading of "derived
13 * work".
14 ********************************************************************
15 */
16
17#ifndef __U_BOOT_H__
18#define __U_BOOT_H__
19
20/*
21 * Currently, this Board information is not passed to
22 * Linux kernel from U-Boot, but may be passed to other
23 * Operating systems. This is because U-boot emulates
24 * a SUN PROM loader (from Linux point of view).
25 *
26 * include/asm-sparc/u-boot.h
27 */
28
29#ifndef __ASSEMBLY__
30
31typedef struct bd_info {
32 unsigned long bi_memstart; /* start of DRAM memory */
Becky Bruceb57ca3e2008-06-09 20:37:16 -050033 phys_size_t bi_memsize; /* size of DRAM memory in bytes */
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010034 unsigned long bi_flashstart; /* start of FLASH memory */
35 unsigned long bi_flashsize; /* size of FLASH memory */
36 unsigned long bi_flashoffset; /* reserved area for startup monitor */
37 unsigned long bi_sramstart; /* start of SRAM memory */
38 unsigned long bi_sramsize; /* size of SRAM memory */
39 unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010040 unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
41 unsigned long bi_intfreq; /* Internal Freq, in MHz */
42 unsigned long bi_busfreq; /* Bus Freq, in MHz */
Simon Glassa8f1f1c2012-10-12 14:21:15 +000043 unsigned int bi_baudrate; /* Console Baudrate */
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010044} bd_t;
45
46#endif /* __ASSEMBLY__ */
Mike Frysinger476af292011-10-03 14:50:33 +000047
48/* For image.h:image_check_target_arch() */
49#define IH_ARCH_DEFAULT IH_ARCH_SPARC
50
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010051#endif /* __U_BOOT_H__ */