Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 1 | /* |
| 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 Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 9 | ******************************************************************** |
| 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 | |
Francois Retief | e17c520 | 2015-10-28 14:29:32 +0200 | [diff] [blame^] | 20 | #ifdef CONFIG_SYS_GENERIC_BOARD |
| 21 | /* Use the generic board which requires a unified bd_info */ |
| 22 | #include <asm-generic/u-boot.h> |
| 23 | #else |
| 24 | |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 25 | /* |
| 26 | * Currently, this Board information is not passed to |
| 27 | * Linux kernel from U-Boot, but may be passed to other |
| 28 | * Operating systems. This is because U-boot emulates |
| 29 | * a SUN PROM loader (from Linux point of view). |
| 30 | * |
| 31 | * include/asm-sparc/u-boot.h |
| 32 | */ |
| 33 | |
| 34 | #ifndef __ASSEMBLY__ |
| 35 | |
| 36 | typedef struct bd_info { |
| 37 | unsigned long bi_memstart; /* start of DRAM memory */ |
Becky Bruce | b57ca3e | 2008-06-09 20:37:16 -0500 | [diff] [blame] | 38 | phys_size_t bi_memsize; /* size of DRAM memory in bytes */ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 39 | unsigned long bi_flashstart; /* start of FLASH memory */ |
| 40 | unsigned long bi_flashsize; /* size of FLASH memory */ |
| 41 | unsigned long bi_flashoffset; /* reserved area for startup monitor */ |
| 42 | unsigned long bi_sramstart; /* start of SRAM memory */ |
| 43 | unsigned long bi_sramsize; /* size of SRAM memory */ |
| 44 | unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 45 | unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ |
| 46 | unsigned long bi_intfreq; /* Internal Freq, in MHz */ |
| 47 | unsigned long bi_busfreq; /* Bus Freq, in MHz */ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 48 | } bd_t; |
| 49 | |
| 50 | #endif /* __ASSEMBLY__ */ |
Mike Frysinger | 476af29 | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 51 | |
Francois Retief | e17c520 | 2015-10-28 14:29:32 +0200 | [diff] [blame^] | 52 | #endif /* !CONFIG_SYS_GENERIC_BOARD */ |
| 53 | |
Mike Frysinger | 476af29 | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 54 | /* For image.h:image_check_target_arch() */ |
| 55 | #define IH_ARCH_DEFAULT IH_ARCH_SPARC |
| 56 | |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 57 | #endif /* __U_BOOT_H__ */ |