wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004, Psyent Corporation <www.psyent.com> |
| 3 | * Scott McNutt <smcnutt@psyent.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 6 | */ |
| 7 | #ifndef __ASM_NIOS2_GLOBALDATA_H_ |
| 8 | #define __ASM_NIOS2_GLOBALDATA_H_ |
| 9 | |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 10 | /* Architecture-specific global data */ |
| 11 | struct arch_global_data { |
Thomas Chou | bcae80e | 2015-10-21 21:34:57 +0800 | [diff] [blame] | 12 | 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 Chou | 1ce61cb | 2015-10-27 08:30:22 +0800 | [diff] [blame] | 21 | u32 mem_region_base; |
Thomas Chou | 2de4823 | 2015-10-27 09:02:17 +0800 | [diff] [blame] | 22 | u32 physaddr_mask; |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 23 | }; |
| 24 | |
Simon Glass | 1f7559e | 2012-12-13 20:49:21 +0000 | [diff] [blame] | 25 | #include <asm-generic/global_data.h> |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 26 | |
Thomas Chou | 0df01fd3 | 2010-05-21 11:08:03 +0800 | [diff] [blame] | 27 | #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp") |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 28 | |
| 29 | #endif /* __ASM_NIOS2_GLOBALDATA_H_ */ |