1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2819833afSPeter Tyser /*
3819833afSPeter Tyser  * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
4819833afSPeter Tyser  * Scott McNutt <smcnutt@psyent.com>
5819833afSPeter Tyser  */
6819833afSPeter Tyser #ifndef	__ASM_NIOS2_GLOBALDATA_H_
7819833afSPeter Tyser #define __ASM_NIOS2_GLOBALDATA_H_
8819833afSPeter Tyser 
95cb48582SSimon Glass /* Architecture-specific global data */
105cb48582SSimon Glass struct arch_global_data {
11bcae80e9SThomas Chou 	u32 dcache_line_size;
12bcae80e9SThomas Chou 	u32 icache_line_size;
13bcae80e9SThomas Chou 	u32 dcache_size;
14bcae80e9SThomas Chou 	u32 icache_size;
15bcae80e9SThomas Chou 	u32 reset_addr;
16bcae80e9SThomas Chou 	u32 exception_addr;
17bcae80e9SThomas Chou 	int has_initda;
18bcae80e9SThomas Chou 	int has_mmu;
19bcae80e9SThomas Chou 	u32 io_region_base;
201ce61cbbSThomas Chou 	u32 mem_region_base;
212de4823dSThomas Chou 	u32 physaddr_mask;
225cb48582SSimon Glass };
235cb48582SSimon Glass 
241f7559ecSSimon Glass #include <asm-generic/global_data.h>
25819833afSPeter Tyser 
260df01fd3SThomas Chou #define DECLARE_GLOBAL_DATA_PTR     register gd_t *gd asm ("gp")
27819833afSPeter Tyser 
28819833afSPeter Tyser #endif /* __ASM_NIOS2_GLOBALDATA_H_ */
29