xref: /rk3399_rockchip-uboot/arch/nios2/include/asm/global_data.h (revision 1ce61cbbe7b351041b31c59cf7c5d8b056a199ec)
1819833afSPeter Tyser /*
2819833afSPeter Tyser  * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
3819833afSPeter Tyser  * Scott McNutt <smcnutt@psyent.com>
4819833afSPeter Tyser  *
51a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
6819833afSPeter Tyser  */
7819833afSPeter Tyser #ifndef	__ASM_NIOS2_GLOBALDATA_H_
8819833afSPeter Tyser #define __ASM_NIOS2_GLOBALDATA_H_
9819833afSPeter Tyser 
105cb48582SSimon Glass /* Architecture-specific global data */
115cb48582SSimon Glass struct arch_global_data {
12bcae80e9SThomas Chou 	u32 dcache_line_size;
13bcae80e9SThomas Chou 	u32 icache_line_size;
14bcae80e9SThomas Chou 	u32 dcache_size;
15bcae80e9SThomas Chou 	u32 icache_size;
16bcae80e9SThomas Chou 	u32 reset_addr;
17bcae80e9SThomas Chou 	u32 exception_addr;
18bcae80e9SThomas Chou 	int has_initda;
19bcae80e9SThomas Chou 	int has_mmu;
20bcae80e9SThomas Chou 	u32 io_region_base;
21*1ce61cbbSThomas Chou 	u32 mem_region_base;
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