Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2004, Psyent Corporation <www.psyent.com> |
| 4 | * Scott McNutt <smcnutt@psyent.com> |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ASM_NIOS2_GLOBALDATA_H_ |
| 7 | #define __ASM_NIOS2_GLOBALDATA_H_ |
| 8 | |
Tom Rini | 10e6a37 | 2023-12-14 13:16:52 -0500 | [diff] [blame] | 9 | #include <linux/types.h> |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 10 | #include <asm/u-boot.h> |
Tom Rini | 10e6a37 | 2023-12-14 13:16:52 -0500 | [diff] [blame] | 11 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 12 | /* Architecture-specific global data */ |
| 13 | struct arch_global_data { |
Thomas Chou | c617026 | 2015-10-21 21:34:57 +0800 | [diff] [blame] | 14 | 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 Chou | ebf8aac | 2015-10-27 08:30:22 +0800 | [diff] [blame] | 23 | u32 mem_region_base; |
Thomas Chou | 043a497 | 2015-10-27 09:02:17 +0800 | [diff] [blame] | 24 | u32 physaddr_mask; |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 25 | }; |
| 26 | |
Simon Glass | 123122a | 2012-12-13 20:49:21 +0000 | [diff] [blame] | 27 | #include <asm-generic/global_data.h> |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 28 | |
Thomas Chou | 8fa3858 | 2010-05-21 11:08:03 +0800 | [diff] [blame] | 29 | #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp") |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 30 | |
| 31 | #endif /* __ASM_NIOS2_GLOBALDATA_H_ */ |