u-boot.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef _XTENSA_U_BOOT_H
  13. #define _XTENSA_U_BOOT_H
  14. #ifdef CONFIG_SYS_GENERIC_BOARD
  15. /* Use the generic board which requires a unified bd_info */
  16. #include <asm-generic/u-boot.h>
  17. #else
  18. #ifndef __ASSEMBLY__
  19. typedef struct bd_info {
  20. int bi_baudrate; /* serial console baudrate */
  21. unsigned long bi_ip_addr; /* IP Address */
  22. unsigned char bi_enetaddr[6]; /* Ethernet adress */
  23. unsigned long bi_boot_params; /* where this board expects params */
  24. unsigned long bi_memstart; /* start of DRAM memory VA */
  25. unsigned long bi_memsize; /* size of DRAM memory in bytes */
  26. unsigned long bi_flashstart; /* start of FLASH memory */
  27. unsigned long bi_flashsize; /* size of FLASH memory */
  28. unsigned long bi_flashoffset; /* offset to skip UBoot image */
  29. } bd_t;
  30. #endif /* __ ASSEMBLY__ */
  31. #endif /* CONFIG_SYS_GENERIC_BOARD */
  32. /* For image.h:image_check_target_arch() */
  33. #define IH_ARCH_DEFAULT IH_ARCH_XTENSA
  34. #endif /* _XTENSA_U_BOOT_H */