blob: 9863fd9f881ec6f419f8539da423809f2da682f0 [file] [log] [blame]
wdenk5c952cf2004-10-10 21:27:30 +00001/*
2 * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
3 * Scott McNutt <smcnutt@psyent.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk5c952cf2004-10-10 21:27:30 +00006 */
7#ifndef __ASM_NIOS2_GLOBALDATA_H_
8#define __ASM_NIOS2_GLOBALDATA_H_
9
Simon Glass5cb48582012-12-13 20:48:30 +000010/* Architecture-specific global data */
11struct arch_global_data {
Thomas Choubcae80e2015-10-21 21:34:57 +080012 u32 dcache_line_size;
13 u32 icache_line_size;
14 u32 dcache_size;
15 u32 icache_size;
16 u32 reset_addr;
17 u32 exception_addr;
18 int has_initda;
19 int has_mmu;
20 u32 io_region_base;
Thomas Chou1ce61cb2015-10-27 08:30:22 +080021 u32 mem_region_base;
Thomas Chou2de48232015-10-27 09:02:17 +080022 u32 physaddr_mask;
Simon Glass5cb48582012-12-13 20:48:30 +000023};
24
Simon Glass1f7559e2012-12-13 20:49:21 +000025#include <asm-generic/global_data.h>
wdenk5c952cf2004-10-10 21:27:30 +000026
Thomas Chou0df01fd32010-05-21 11:08:03 +080027#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
wdenk5c952cf2004-10-10 21:27:30 +000028
29#endif /* __ASM_NIOS2_GLOBALDATA_H_ */