2 * (C) Copyright 2002-2010
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __ASM_GBL_DATA_H
9 #define __ASM_GBL_DATA_H
11 #include <asm/regdef.h>
13 /* Architecture-specific global data */
14 struct arch_global_data {
15 #ifdef CONFIG_DYNAMIC_IO_PORT_BASE
16 unsigned long io_port_base;
19 /* There are other clocks in the jz4740 */
20 unsigned long per_clk; /* Peripheral bus clock */
21 unsigned long dev_clk; /* Device clock */
22 unsigned long sys_clk;
24 unsigned long lastinc;
26 #ifdef CONFIG_ARCH_ATH79
34 #include <asm-generic/global_data.h>
36 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
38 #endif /* __ASM_GBL_DATA_H */