blob: a3dba8db7993cdcd5230ef193b1ae893b7988c45 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Chris Zankel1387dab2016-08-10 18:36:44 +03002/*
3 * (C) Copyright 2007, Tensilica Inc.
4 *
Chris Zankel1387dab2016-08-10 18:36:44 +03005 ********************************************************************
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__
22typedef 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 */