u-boot.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * (C) Copyright 2000 - 2002
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * (C) Copyright 2007, From asm-ppc/u-boot.h
  6. * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. ********************************************************************
  10. * NOTE: This header file defines an interface to U-Boot. Including
  11. * this (unmodified) header file in another file is considered normal
  12. * use of U-Boot, and does *not* fall under the heading of "derived
  13. * work".
  14. ********************************************************************
  15. */
  16. #ifndef __U_BOOT_H__
  17. #define __U_BOOT_H__
  18. /*
  19. * Currently, this Board information is not passed to
  20. * Linux kernel from U-Boot, but may be passed to other
  21. * Operating systems. This is because U-boot emulates
  22. * a SUN PROM loader (from Linux point of view).
  23. *
  24. * include/asm-sparc/u-boot.h
  25. */
  26. #ifndef __ASSEMBLY__
  27. typedef struct bd_info {
  28. unsigned long bi_memstart; /* start of DRAM memory */
  29. phys_size_t bi_memsize; /* size of DRAM memory in bytes */
  30. unsigned long bi_flashstart; /* start of FLASH memory */
  31. unsigned long bi_flashsize; /* size of FLASH memory */
  32. unsigned long bi_flashoffset; /* reserved area for startup monitor */
  33. unsigned long bi_sramstart; /* start of SRAM memory */
  34. unsigned long bi_sramsize; /* size of SRAM memory */
  35. unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
  36. unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
  37. unsigned long bi_intfreq; /* Internal Freq, in MHz */
  38. unsigned long bi_busfreq; /* Bus Freq, in MHz */
  39. } bd_t;
  40. #endif /* __ASSEMBLY__ */
  41. /* For image.h:image_check_target_arch() */
  42. #define IH_ARCH_DEFAULT IH_ARCH_SPARC
  43. #endif /* __U_BOOT_H__ */