wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2003 |
| 3 | * Wolfgang Denk, DENX Software Engineering, <wd@denx.de> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | f3f4518 | 2005-11-25 16:38:03 +0100 | [diff] [blame] | 6 | * |
| 7 | ******************************************************************** |
| 8 | * NOTE: This header file defines an interface to U-Boot. Including |
| 9 | * this (unmodified) header file in another file is considered normal |
| 10 | * use of U-Boot, and does *not* fall under the heading of "derived |
| 11 | * work". |
| 12 | ******************************************************************** |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _U_BOOT_H_ |
| 16 | #define _U_BOOT_H_ 1 |
| 17 | |
Paul Burton | d0120b0 | 2014-04-07 10:11:22 +0100 | [diff] [blame] | 18 | #ifdef CONFIG_SYS_GENERIC_BOARD |
| 19 | |
| 20 | /* Use the generic board which requires a unified bd_info */ |
| 21 | #include <asm-generic/u-boot.h> |
| 22 | |
| 23 | #else /* !CONFIG_SYS_GENERIC_BOARD */ |
| 24 | |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 25 | typedef struct bd_info { |
Simon Glass | c81b690 | 2012-10-12 14:21:18 +0000 | [diff] [blame] | 26 | unsigned int bi_baudrate; /* serial console baudrate */ |
wdenk | 2853603 | 2003-03-25 16:50:56 +0000 | [diff] [blame] | 27 | unsigned long bi_arch_number; /* unique id for this board */ |
| 28 | unsigned long bi_boot_params; /* where this board expects params */ |
| 29 | unsigned long bi_memstart; /* start of DRAM memory */ |
Becky Bruce | a36601e | 2008-06-09 20:37:16 -0500 | [diff] [blame] | 30 | phys_size_t bi_memsize; /* size of DRAM memory in bytes */ |
wdenk | 2853603 | 2003-03-25 16:50:56 +0000 | [diff] [blame] | 31 | unsigned long bi_flashstart; /* start of FLASH memory */ |
| 32 | unsigned long bi_flashsize; /* size of FLASH memory */ |
| 33 | unsigned long bi_flashoffset; /* reserved area for startup monitor */ |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 34 | } bd_t; |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 35 | |
Paul Burton | d0120b0 | 2014-04-07 10:11:22 +0100 | [diff] [blame] | 36 | #endif /* !CONFIG_SYS_GENERIC_BOARD */ |
| 37 | |
Mike Frysinger | 5da0bed | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 38 | /* For image.h:image_check_target_arch() */ |
| 39 | #define IH_ARCH_DEFAULT IH_ARCH_MIPS |
| 40 | |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 41 | #endif /* _U_BOOT_H_ */ |