global_data.h 654 B

1234567891011121314151617181920212223242526272829
  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. #include <asm/regdef.h>
  10. /* Architecture-specific global data */
  11. struct arch_global_data {
  12. #ifdef CONFIG_JZSOC
  13. /* There are other clocks in the jz4740 */
  14. unsigned long per_clk; /* Peripheral bus clock */
  15. unsigned long dev_clk; /* Device clock */
  16. unsigned long sys_clk;
  17. unsigned long tbl;
  18. unsigned long lastinc;
  19. #endif
  20. };
  21. #include <asm-generic/global_data.h>
  22. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
  23. #endif /* __ASM_GBL_DATA_H */