blob: d9bbd54734e508cfce400ac26dca9398f9d4bcbc [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkef3386f2004-10-10 21:27:30 +00002/*
3 * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
4 * Scott McNutt <smcnutt@psyent.com>
wdenkef3386f2004-10-10 21:27:30 +00005 */
6#ifndef __ASM_NIOS2_GLOBALDATA_H_
7#define __ASM_NIOS2_GLOBALDATA_H_
8
Tom Rini10e6a372023-12-14 13:16:52 -05009#include <linux/types.h>
Tom Rinidec7ea02024-05-20 13:35:03 -060010#include <asm/u-boot.h>
Tom Rini10e6a372023-12-14 13:16:52 -050011
Simon Glass3ac47d72012-12-13 20:48:30 +000012/* Architecture-specific global data */
13struct arch_global_data {
Thomas Chouc6170262015-10-21 21:34:57 +080014 u32 dcache_line_size;
15 u32 icache_line_size;
16 u32 dcache_size;
17 u32 icache_size;
18 u32 reset_addr;
19 u32 exception_addr;
20 int has_initda;
21 int has_mmu;
22 u32 io_region_base;
Thomas Chouebf8aac2015-10-27 08:30:22 +080023 u32 mem_region_base;
Thomas Chou043a4972015-10-27 09:02:17 +080024 u32 physaddr_mask;
Simon Glass3ac47d72012-12-13 20:48:30 +000025};
26
Simon Glass123122a2012-12-13 20:49:21 +000027#include <asm-generic/global_data.h>
wdenkef3386f2004-10-10 21:27:30 +000028
Thomas Chou8fa38582010-05-21 11:08:03 +080029#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
wdenkef3386f2004-10-10 21:27:30 +000030
31#endif /* __ASM_NIOS2_GLOBALDATA_H_ */