global_data.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * (C) Copyright 2002-2010
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __ASM_GBL_DATA_H
  8. #define __ASM_GBL_DATA_H
  9. #ifdef CONFIG_OMAP
  10. #include <asm/omap_boot.h>
  11. #endif
  12. /* Architecture-specific global data */
  13. struct arch_global_data {
  14. #if defined(CONFIG_FSL_ESDHC)
  15. u32 sdhc_clk;
  16. #endif
  17. #ifdef CONFIG_AT91FAMILY
  18. /* "static data" needed by at91's clock.c */
  19. unsigned long cpu_clk_rate_hz;
  20. unsigned long main_clk_rate_hz;
  21. unsigned long mck_rate_hz;
  22. unsigned long plla_rate_hz;
  23. unsigned long pllb_rate_hz;
  24. unsigned long at91_pllb_usb_init;
  25. #endif
  26. /* "static data" needed by most of timer.c on ARM platforms */
  27. unsigned long timer_rate_hz;
  28. unsigned long tbu;
  29. unsigned long tbl;
  30. unsigned long lastinc;
  31. unsigned long long timer_reset_value;
  32. #ifdef CONFIG_IXP425
  33. unsigned long timestamp;
  34. #endif
  35. #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
  36. unsigned long tlb_addr;
  37. unsigned long tlb_size;
  38. #endif
  39. #ifdef CONFIG_OMAP
  40. struct omap_boot_parameters omap_boot_params;
  41. #endif
  42. };
  43. #include <asm-generic/global_data.h>
  44. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
  45. #endif /* __ASM_GBL_DATA_H */