Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2004 Atmark Techno, Inc. |
| 4 | * |
| 5 | * Yasushi SHOJI <yashi@atmark-techno.com> |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_GBL_DATA_H |
| 9 | #define __ASM_GBL_DATA_H |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 10 | |
Ovidiu Panait | 87a739e | 2022-05-31 21:14:31 +0300 | [diff] [blame] | 11 | #include <asm/cpuinfo.h> |
| 12 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 13 | /* Architecture-specific global data */ |
| 14 | struct arch_global_data { |
Ovidiu Panait | 87a739e | 2022-05-31 21:14:31 +0300 | [diff] [blame] | 15 | struct microblaze_cpuinfo cpuinfo; |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
Simon Glass | 8d0820e | 2012-12-13 20:49:18 +0000 | [diff] [blame] | 18 | #include <asm-generic/global_data.h> |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 19 | |
| 20 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31") |
| 21 | |
Ovidiu Panait | 87a739e | 2022-05-31 21:14:31 +0300 | [diff] [blame] | 22 | #define gd_cpuinfo() ((struct microblaze_cpuinfo *)&gd->arch.cpuinfo) |
| 23 | |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 24 | #endif /* __ASM_GBL_DATA_H */ |