xref: /OK3568_Linux_fs/u-boot/arch/nds32/include/asm/u-boot.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * (C) Copyright 2002
3*4882a593Smuzhiyun  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4*4882a593Smuzhiyun  * Marius Groeger <mgroeger@sysgo.de>
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 2011 Andes Technology Corporation
7*4882a593Smuzhiyun  * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com)
8*4882a593Smuzhiyun  * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com)
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * SPDX-License-Identifier:	GPL-2.0+
11*4882a593Smuzhiyun  *
12*4882a593Smuzhiyun  ********************************************************************
13*4882a593Smuzhiyun  * NOTE: This header file defines an interface to U-Boot. Including
14*4882a593Smuzhiyun  * this (unmodified) header file in another file is considered normal
15*4882a593Smuzhiyun  * use of U-Boot, and does *not* fall under the heading of "derived
16*4882a593Smuzhiyun  * work".
17*4882a593Smuzhiyun  ********************************************************************
18*4882a593Smuzhiyun  */
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #ifndef _U_BOOT_H_
21*4882a593Smuzhiyun #define _U_BOOT_H_	1
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #include <asm/u-boot-nds32.h>
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #include <environment.h>
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun typedef struct bd_info {
28*4882a593Smuzhiyun 	unsigned long	bi_arch_number;	/* unique id for this board */
29*4882a593Smuzhiyun 	unsigned long	bi_boot_params;	/* where this board expects params */
30*4882a593Smuzhiyun 	unsigned long	bi_memstart;	/* start of DRAM memory */
31*4882a593Smuzhiyun 	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
32*4882a593Smuzhiyun 	unsigned long	bi_flashstart;	/* start of FLASH memory */
33*4882a593Smuzhiyun 	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
34*4882a593Smuzhiyun 	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
35*4882a593Smuzhiyun 	unsigned char	bi_enetaddr[6];
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun 	struct				/* RAM configuration */
38*4882a593Smuzhiyun 	{
39*4882a593Smuzhiyun 		unsigned long start;
40*4882a593Smuzhiyun 		unsigned long size;
41*4882a593Smuzhiyun 	} bi_dram[CONFIG_NR_DRAM_BANKS];
42*4882a593Smuzhiyun } bd_t;
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun /* For image.h:image_check_target_arch() */
45*4882a593Smuzhiyun #define IH_ARCH_DEFAULT IH_ARCH_NDS32
46*4882a593Smuzhiyun 
47*4882a593Smuzhiyun #endif	/* _U_BOOT_H_ */
48