xref: /openbmc/u-boot/arch/xtensa/include/asm/u-boot.h (revision 730d2544)
1 /*
2  * (C) Copyright 2007, Tensilica Inc.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  *
6  ********************************************************************
7  * NOTE: This header file defines an interface to U-Boot. Including
8  * this (unmodified) header file in another file is considered normal
9  * use of U-Boot, and does *not* fall under the heading of "derived
10  * work".
11  ********************************************************************
12  */
13 
14 #ifndef _XTENSA_U_BOOT_H
15 #define _XTENSA_U_BOOT_H
16 
17 #ifdef CONFIG_SYS_GENERIC_BOARD
18 /* Use the generic board which requires a unified bd_info */
19 #include <asm-generic/u-boot.h>
20 #else
21 
22 #ifndef __ASSEMBLY__
23 typedef struct bd_info {
24 	int		bi_baudrate;	/* serial console baudrate */
25 	unsigned long	bi_ip_addr;	/* IP Address */
26 	unsigned char	bi_enetaddr[6];	/* Ethernet adress */
27 	unsigned long	bi_boot_params;	/* where this board expects params */
28 	unsigned long	bi_memstart;	/* start of DRAM memory VA */
29 	unsigned long	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;	/* offset to skip UBoot image */
33 } bd_t;
34 #endif	/* __ ASSEMBLY__ */
35 
36 #endif	/* CONFIG_SYS_GENERIC_BOARD */
37 
38 /* For image.h:image_check_target_arch() */
39 #define IH_ARCH_DEFAULT IH_ARCH_XTENSA
40 
41 #endif	/* _XTENSA_U_BOOT_H */
42