u-boot.h 1.3 KB

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