xref: /rk3399_rockchip-uboot/arch/nds32/include/asm/u-boot.h (revision e8d4fa9057c4d121d3c4c9f2f49cf07e22fb9ee2)
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 
23*e8d4fa90SSimon Glass #include <asm/u-boot-nds32.h>
24*e8d4fa90SSimon Glass 
2500f892fcSMacpaul Lin #include <environment.h>
2600f892fcSMacpaul Lin 
2700f892fcSMacpaul Lin typedef struct bd_info {
2800f892fcSMacpaul Lin 	unsigned long	bi_arch_number;	/* unique id for this board */
2900f892fcSMacpaul Lin 	unsigned long	bi_boot_params;	/* where this board expects params */
3000f892fcSMacpaul Lin 	unsigned long	bi_memstart;	/* start of DRAM memory */
3100f892fcSMacpaul Lin 	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
3200f892fcSMacpaul Lin 	unsigned long	bi_flashstart;	/* start of FLASH memory */
3300f892fcSMacpaul Lin 	unsigned long	bi_flashsize;	/* size	 of FLASH memory */
3400f892fcSMacpaul Lin 	unsigned long	bi_flashoffset; /* reserved area for startup monitor */
352e88bb28SKun-Hua Huang 	unsigned char	bi_enetaddr[6];
3600f892fcSMacpaul Lin 
3700f892fcSMacpaul Lin 	struct				/* RAM configuration */
3800f892fcSMacpaul Lin 	{
3900f892fcSMacpaul Lin 		unsigned long start;
4000f892fcSMacpaul Lin 		unsigned long size;
4100f892fcSMacpaul Lin 	} bi_dram[CONFIG_NR_DRAM_BANKS];
4200f892fcSMacpaul Lin } bd_t;
4300f892fcSMacpaul Lin 
4400f892fcSMacpaul Lin /* For image.h:image_check_target_arch() */
4500f892fcSMacpaul Lin #define IH_ARCH_DEFAULT IH_ARCH_NDS32
4600f892fcSMacpaul Lin 
4700f892fcSMacpaul Lin #endif	/* _U_BOOT_H_ */
48