xref: /rk3399_rockchip-uboot/arch/nds32/include/asm/u-boot.h (revision 2e88bb28d8061286d2f1cabcac224df15b941b82)
100f892fcSMacpaul Lin /*
200f892fcSMacpaul Lin  * (C) Copyright 2002
300f892fcSMacpaul Lin  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
400f892fcSMacpaul Lin  * Marius Groeger <mgroeger@sysgo.de>
500f892fcSMacpaul Lin  *
600f892fcSMacpaul Lin  * Copyright (C) 2011 Andes Technology Corporation
700f892fcSMacpaul Lin  * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com)
800f892fcSMacpaul Lin  * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com)
900f892fcSMacpaul Lin  *
101a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
1100f892fcSMacpaul Lin  *
1200f892fcSMacpaul Lin  ********************************************************************
1300f892fcSMacpaul Lin  * NOTE: This header file defines an interface to U-Boot. Including
1400f892fcSMacpaul Lin  * this (unmodified) header file in another file is considered normal
1500f892fcSMacpaul Lin  * use of U-Boot, and does *not* fall under the heading of "derived
1600f892fcSMacpaul Lin  * work".
1700f892fcSMacpaul Lin  ********************************************************************
1800f892fcSMacpaul Lin  */
1900f892fcSMacpaul Lin 
2000f892fcSMacpaul Lin #ifndef _U_BOOT_H_
2100f892fcSMacpaul Lin #define _U_BOOT_H_	1
2200f892fcSMacpaul Lin 
2300f892fcSMacpaul Lin #include <environment.h>
2400f892fcSMacpaul Lin 
2500f892fcSMacpaul Lin typedef struct bd_info {
2600f892fcSMacpaul Lin 	unsigned long	bi_arch_number;	/* unique id for this board */
2700f892fcSMacpaul Lin 	unsigned long	bi_boot_params;	/* where this board expects params */
2800f892fcSMacpaul Lin 	unsigned long	bi_memstart;	/* start of DRAM memory */
2900f892fcSMacpaul Lin 	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
3000f892fcSMacpaul Lin 	unsigned long	bi_flashstart;	/* start of FLASH memory */
3100f892fcSMacpaul Lin 	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
3200f892fcSMacpaul Lin 	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
33*2e88bb28SKun-Hua Huang 	unsigned char	bi_enetaddr[6];
3400f892fcSMacpaul Lin 
3500f892fcSMacpaul Lin 	struct				/* RAM configuration */
3600f892fcSMacpaul Lin 	{
3700f892fcSMacpaul Lin 		unsigned long start;
3800f892fcSMacpaul Lin 		unsigned long size;
3900f892fcSMacpaul Lin 	} bi_dram[CONFIG_NR_DRAM_BANKS];
4000f892fcSMacpaul Lin } bd_t;
4100f892fcSMacpaul Lin 
4200f892fcSMacpaul Lin /* For image.h:image_check_target_arch() */
4300f892fcSMacpaul Lin #define IH_ARCH_DEFAULT IH_ARCH_NDS32
4400f892fcSMacpaul Lin 
4500f892fcSMacpaul Lin #endif	/* _U_BOOT_H_ */
46