global_data.h 690 B

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