global_data.h 831 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2002-2010
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. */
  6. #ifndef __ASM_GBL_DATA_H
  7. #define __ASM_GBL_DATA_H
  8. #include <asm/regdef.h>
  9. /* Architecture-specific global data */
  10. struct arch_global_data {
  11. #ifdef CONFIG_DYNAMIC_IO_PORT_BASE
  12. unsigned long io_port_base;
  13. #endif
  14. #ifdef CONFIG_ARCH_ATH79
  15. unsigned long id;
  16. unsigned long soc;
  17. unsigned long rev;
  18. unsigned long ver;
  19. #endif
  20. #ifdef CONFIG_SYS_CACHE_SIZE_AUTO
  21. unsigned short l1i_line_size;
  22. unsigned short l1d_line_size;
  23. #endif
  24. #ifdef CONFIG_MIPS_L2_CACHE
  25. unsigned short l2_line_size;
  26. #endif
  27. #ifdef CONFIG_ARCH_MTMIPS
  28. unsigned long timer_freq;
  29. #endif
  30. };
  31. #include <asm-generic/global_data.h>
  32. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
  33. #endif /* __ASM_GBL_DATA_H */