blob: 0078bbe1b851683795da30eb9ec5830305282e70 [file] [log] [blame]
wdenk4fc95692003-02-28 00:49:47 +00001/*
Wolfgang Denkf710efd2010-07-24 20:22:02 +02002 * (C) Copyright 2002-2010
wdenk4fc95692003-02-28 00:49:47 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk4fc95692003-02-28 00:49:47 +00006 */
7
8#ifndef __ASM_GBL_DATA_H
9#define __ASM_GBL_DATA_H
10
11#include <asm/regdef.h>
12
Simon Glass3ac47d72012-12-13 20:48:30 +000013/* Architecture-specific global data */
14struct arch_global_data {
Paul Burton8d6600b2016-01-29 13:54:52 +000015#ifdef CONFIG_DYNAMIC_IO_PORT_BASE
16 unsigned long io_port_base;
17#endif
Wills Wang833a1a82016-03-16 16:59:52 +080018#ifdef CONFIG_ARCH_ATH79
19 unsigned long id;
20 unsigned long soc;
21 unsigned long rev;
22 unsigned long ver;
23#endif
Paul Burtondc2037e2016-09-21 11:18:48 +010024#ifdef CONFIG_SYS_CACHE_SIZE_AUTO
25 unsigned short l1i_line_size;
26 unsigned short l1d_line_size;
27#endif
Paul Burton81560782016-09-21 11:18:54 +010028#ifdef CONFIG_MIPS_L2_CACHE
29 unsigned short l2_line_size;
30#endif
Simon Glass3ac47d72012-12-13 20:48:30 +000031};
32
Simon Glass9b9ba9a2012-12-13 20:49:19 +000033#include <asm-generic/global_data.h>
wdenk4fc95692003-02-28 00:49:47 +000034
wdenk874ac262003-07-24 23:38:38 +000035#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
wdenk4fc95692003-02-28 00:49:47 +000036
37#endif /* __ASM_GBL_DATA_H */