Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 2 | /* |
Wolfgang Denk | f710efd | 2010-07-24 20:22:02 +0200 | [diff] [blame] | 3 | * (C) Copyright 2002-2010 |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_GBL_DATA_H |
| 8 | #define __ASM_GBL_DATA_H |
| 9 | |
Tom Rini | 10e6a37 | 2023-12-14 13:16:52 -0500 | [diff] [blame] | 10 | #include <linux/types.h> |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 11 | #include <asm/regdef.h> |
Tom Rini | dee15a9 | 2024-04-30 20:40:48 -0600 | [diff] [blame] | 12 | #include <asm/u-boot.h> |
Stefan Roese | 9eff8a9 | 2020-12-11 17:05:23 +0100 | [diff] [blame] | 13 | |
| 14 | struct octeon_eeprom_mac_addr { |
| 15 | u8 mac_addr_base[6]; |
| 16 | u8 count; |
| 17 | }; |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 18 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 19 | /* Architecture-specific global data */ |
| 20 | struct arch_global_data { |
Paul Burton | 8d6600b | 2016-01-29 13:54:52 +0000 | [diff] [blame] | 21 | #ifdef CONFIG_DYNAMIC_IO_PORT_BASE |
| 22 | unsigned long io_port_base; |
| 23 | #endif |
Wills Wang | 833a1a8 | 2016-03-16 16:59:52 +0800 | [diff] [blame] | 24 | #ifdef CONFIG_ARCH_ATH79 |
| 25 | unsigned long id; |
| 26 | unsigned long soc; |
| 27 | unsigned long rev; |
| 28 | unsigned long ver; |
| 29 | #endif |
Paul Burton | dc2037e | 2016-09-21 11:18:48 +0100 | [diff] [blame] | 30 | #ifdef CONFIG_SYS_CACHE_SIZE_AUTO |
| 31 | unsigned short l1i_line_size; |
| 32 | unsigned short l1d_line_size; |
| 33 | #endif |
Paul Burton | 8156078 | 2016-09-21 11:18:54 +0100 | [diff] [blame] | 34 | #ifdef CONFIG_MIPS_L2_CACHE |
| 35 | unsigned short l2_line_size; |
| 36 | #endif |
developer | 7c28736 | 2020-04-21 09:28:32 +0200 | [diff] [blame] | 37 | #ifdef CONFIG_ARCH_MTMIPS |
| 38 | unsigned long timer_freq; |
| 39 | #endif |
Stefan Roese | 9eff8a9 | 2020-12-11 17:05:23 +0100 | [diff] [blame] | 40 | #ifdef CONFIG_ARCH_OCTEON |
| 41 | struct octeon_eeprom_mac_addr mac_desc; |
| 42 | #endif |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 43 | }; |
| 44 | |
Simon Glass | 9b9ba9a | 2012-12-13 20:49:19 +0000 | [diff] [blame] | 45 | #include <asm-generic/global_data.h> |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 46 | |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 47 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0") |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 48 | |
| 49 | #endif /* __ASM_GBL_DATA_H */ |