u-boot.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * (C) Copyright 2002
  3. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  4. * Marius Groeger <mgroeger@sysgo.de>
  5. *
  6. * (C) Copyright 2002
  7. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  8. * Alex Zuepke <azu@sysgo.de>
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. *
  12. ********************************************************************
  13. * NOTE: This header file defines an interface to U-Boot. Including
  14. * this (unmodified) header file in another file is considered normal
  15. * use of U-Boot, and does *not* fall under the heading of "derived
  16. * work".
  17. ********************************************************************
  18. */
  19. #ifndef _U_BOOT_H_
  20. #define _U_BOOT_H_ 1
  21. #ifdef CONFIG_SYS_GENERIC_BOARD
  22. /* Use the generic board which requires a unified bd_info */
  23. #include <asm-generic/u-boot.h>
  24. #else
  25. #ifndef __ASSEMBLY__
  26. typedef struct bd_info {
  27. ulong bi_arch_number; /* unique id for this board */
  28. ulong bi_boot_params; /* where this board expects params */
  29. unsigned long bi_arm_freq; /* arm frequency */
  30. unsigned long bi_dsp_freq; /* dsp core frequency */
  31. unsigned long bi_ddr_freq; /* ddr frequency */
  32. struct /* RAM configuration */
  33. {
  34. ulong start;
  35. ulong size;
  36. } bi_dram[CONFIG_NR_DRAM_BANKS];
  37. } bd_t;
  38. #endif
  39. #endif /* !CONFIG_SYS_GENERIC_BOARD */
  40. /* For image.h:image_check_target_arch() */
  41. #ifndef CONFIG_ARM64
  42. #define IH_ARCH_DEFAULT IH_ARCH_ARM
  43. #else
  44. #define IH_ARCH_DEFAULT IH_ARCH_ARM64
  45. #endif
  46. #endif /* _U_BOOT_H_ */