blob: 4909a2a5c4bfed2ee5916c2a30a70db6e5f1e618 [file] [log] [blame]
Googlere00b8eb2019-07-08 16:37:07 -07001/*
2 * (C) Copyright 2003
3 * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
4 *
Googler695f9d92023-09-11 15:38:29 +08005 * SPDX-License-Identifier: GPL-2.0+
6 *
Googlere00b8eb2019-07-08 16:37:07 -07007 ********************************************************************
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 ********************************************************************
13 */
14
15#ifndef _U_BOOT_H_
16#define _U_BOOT_H_ 1
17
Googler695f9d92023-09-11 15:38:29 +080018#ifdef CONFIG_SYS_GENERIC_BOARD
19
Googlere00b8eb2019-07-08 16:37:07 -070020/* Use the generic board which requires a unified bd_info */
21#include <asm-generic/u-boot.h>
Googler695f9d92023-09-11 15:38:29 +080022
23#else /* !CONFIG_SYS_GENERIC_BOARD */
24
25typedef struct bd_info {
26 unsigned long bi_arch_number; /* unique id for this board */
27 unsigned long bi_boot_params; /* where this board expects params */
28 unsigned long bi_memstart; /* start of DRAM memory */
29 phys_size_t bi_memsize; /* size of DRAM memory in bytes */
30 unsigned long bi_flashstart; /* start of FLASH memory */
31 unsigned long bi_flashsize; /* size of FLASH memory */
32 unsigned long bi_flashoffset; /* reserved area for startup monitor */
33} bd_t;
34
35#endif /* !CONFIG_SYS_GENERIC_BOARD */
Googlere00b8eb2019-07-08 16:37:07 -070036
37/* For image.h:image_check_target_arch() */
38#define IH_ARCH_DEFAULT IH_ARCH_MIPS
39
40#endif /* _U_BOOT_H_ */