u-boot.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * (C) Copyright 2000 - 2003
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  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 __U_BOOT_H__
  14. #define __U_BOOT_H__
  15. /*
  16. * Board information passed to Linux kernel from U-Boot
  17. *
  18. * include/asm-ppc/u-boot.h
  19. */
  20. #ifndef __ASSEMBLY__
  21. typedef struct bd_info {
  22. unsigned long bi_memstart; /* start of DRAM memory */
  23. phys_size_t bi_memsize; /* size of DRAM memory in bytes */
  24. unsigned long bi_flashstart; /* start of FLASH memory */
  25. unsigned long bi_flashsize; /* size of FLASH memory */
  26. unsigned long bi_flashoffset; /* reserved area for startup monitor */
  27. unsigned long bi_sramstart; /* start of SRAM memory */
  28. unsigned long bi_sramsize; /* size of SRAM memory */
  29. unsigned long bi_mbar_base; /* base of internal registers */
  30. unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
  31. unsigned long bi_boot_params; /* where this board expects params */
  32. unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
  33. unsigned long bi_intfreq; /* Internal Freq, in MHz */
  34. unsigned long bi_busfreq; /* Bus Freq, in MHz */
  35. #ifdef CONFIG_PCI
  36. unsigned long bi_pcifreq; /* pci Freq in MHz */
  37. #endif
  38. #ifdef CONFIG_EXTRA_CLOCK
  39. unsigned long bi_inpfreq; /* input Freq in MHz */
  40. unsigned long bi_vcofreq; /* vco Freq in MHz */
  41. unsigned long bi_flbfreq; /* Flexbus Freq in MHz */
  42. #endif
  43. } bd_t;
  44. #endif /* __ASSEMBLY__ */
  45. /* For image.h:image_check_target_arch() */
  46. #define IH_ARCH_DEFAULT IH_ARCH_M68K
  47. #endif /* __U_BOOT_H__ */