xref: /rk3399_rockchip-uboot/arch/nios2/include/asm/global_data.h (revision bcae80e9551bc0ba2d67e78bda57b9283b4bab12)
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 {
12*bcae80e9SThomas Chou 	u32 dcache_line_size;
13*bcae80e9SThomas Chou 	u32 icache_line_size;
14*bcae80e9SThomas Chou 	u32 dcache_size;
15*bcae80e9SThomas Chou 	u32 icache_size;
16*bcae80e9SThomas Chou 	u32 reset_addr;
17*bcae80e9SThomas Chou 	u32 exception_addr;
18*bcae80e9SThomas Chou 	int has_initda;
19*bcae80e9SThomas Chou 	int has_mmu;
20*bcae80e9SThomas Chou 	u32 io_region_base;
215cb48582SSimon Glass };
225cb48582SSimon Glass 
231f7559ecSSimon Glass #include <asm-generic/global_data.h>
24819833afSPeter Tyser 
250df01fd3SThomas Chou #define DECLARE_GLOBAL_DATA_PTR     register gd_t *gd asm ("gp")
26819833afSPeter Tyser 
27819833afSPeter Tyser #endif /* __ASM_NIOS2_GLOBALDATA_H_ */
28