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