global_data.h 690 B

123456789101112131415161718192021222324252627282930313233
  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. /* Architecture-specific global data */
  10. struct arch_global_data {
  11. #ifdef CONFIG_SYS_I2C_FSL
  12. unsigned long i2c1_clk;
  13. unsigned long i2c2_clk;
  14. #endif
  15. #ifdef CONFIG_EXTRA_CLOCK
  16. unsigned long inp_clk;
  17. unsigned long vco_clk;
  18. unsigned long flb_clk;
  19. #endif
  20. };
  21. #include <asm-generic/global_data.h>
  22. #if 0
  23. extern gd_t *global_data;
  24. #define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
  25. #else
  26. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
  27. #endif
  28. #endif /* __ASM_GBL_DATA_H */