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