wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 - 2003 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | f08abe3 | 2005-11-25 16:38:03 +0100 | [diff] [blame] | 6 | ******************************************************************** |
| 7 | * NOTE: This header file defines an interface to U-Boot. Including |
| 8 | * this (unmodified) header file in another file is considered normal |
| 9 | * use of U-Boot, and does *not* fall under the heading of "derived |
| 10 | * work". |
| 11 | ******************************************************************** |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef __U_BOOT_H__ |
| 15 | #define __U_BOOT_H__ |
| 16 | |
| 17 | /* |
| 18 | * Board information passed to Linux kernel from U-Boot |
| 19 | * |
| 20 | * include/asm-ppc/u-boot.h |
| 21 | */ |
| 22 | |
angelo@sysam.it | e310b93 | 2015-02-12 01:40:17 +0100 | [diff] [blame] | 23 | #ifdef CONFIG_SYS_GENERIC_BOARD |
| 24 | /* Use the generic board which requires a unified bd_info */ |
| 25 | #include <asm-generic/u-boot.h> |
| 26 | #else |
| 27 | |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 28 | #ifndef __ASSEMBLY__ |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 29 | |
| 30 | typedef struct bd_info { |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 31 | unsigned long bi_memstart; /* start of DRAM memory */ |
Becky Bruce | b57ca3e | 2008-06-09 20:37:16 -0500 | [diff] [blame] | 32 | phys_size_t bi_memsize; /* size of DRAM memory in bytes */ |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 33 | unsigned long bi_flashstart; /* start of FLASH memory */ |
| 34 | unsigned long bi_flashsize; /* size of FLASH memory */ |
| 35 | unsigned long bi_flashoffset; /* reserved area for startup monitor */ |
| 36 | unsigned long bi_sramstart; /* start of SRAM memory */ |
| 37 | unsigned long bi_sramsize; /* size of SRAM memory */ |
| 38 | unsigned long bi_mbar_base; /* base of internal registers */ |
| 39 | unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */ |
| 40 | unsigned long bi_boot_params; /* where this board expects params */ |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 41 | unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ |
| 42 | unsigned long bi_intfreq; /* Internal Freq, in MHz */ |
| 43 | unsigned long bi_busfreq; /* Bus Freq, in MHz */ |
TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 44 | #ifdef CONFIG_PCI |
| 45 | unsigned long bi_pcifreq; /* pci Freq in MHz */ |
| 46 | #endif |
| 47 | #ifdef CONFIG_EXTRA_CLOCK |
| 48 | unsigned long bi_inpfreq; /* input Freq in MHz */ |
| 49 | unsigned long bi_vcofreq; /* vco Freq in MHz */ |
| 50 | unsigned long bi_flbfreq; /* Flexbus Freq in MHz */ |
| 51 | #endif |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 52 | } bd_t; |
| 53 | |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 54 | #endif /* __ASSEMBLY__ */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 55 | |
angelo@sysam.it | e310b93 | 2015-02-12 01:40:17 +0100 | [diff] [blame] | 56 | #endif /* !CONFIG_SYS_GENERIC_BOARD */ |
| 57 | |
| 58 | |
Mike Frysinger | 476af29 | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 59 | /* For image.h:image_check_target_arch() */ |
| 60 | #define IH_ARCH_DEFAULT IH_ARCH_M68K |
| 61 | |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 62 | #endif /* __U_BOOT_H__ */ |