u-boot.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * (C) Copyright 2003
  3. * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. *
  7. ********************************************************************
  8. * NOTE: This header file defines an interface to U-Boot. Including
  9. * this (unmodified) header file in another file is considered normal
  10. * use of U-Boot, and does *not* fall under the heading of "derived
  11. * work".
  12. ********************************************************************
  13. */
  14. #ifndef _U_BOOT_H_
  15. #define _U_BOOT_H_ 1
  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 /* !CONFIG_SYS_GENERIC_BOARD */
  20. typedef struct bd_info {
  21. unsigned int bi_baudrate; /* serial console baudrate */
  22. unsigned long bi_arch_number; /* unique id for this board */
  23. unsigned long bi_boot_params; /* where this board expects params */
  24. unsigned long bi_memstart; /* start of DRAM memory */
  25. phys_size_t 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; /* reserved area for startup monitor */
  29. } bd_t;
  30. #endif /* !CONFIG_SYS_GENERIC_BOARD */
  31. /* For image.h:image_check_target_arch() */
  32. #define IH_ARCH_DEFAULT IH_ARCH_MIPS
  33. #endif /* _U_BOOT_H_ */