1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2004 Atmark Techno, Inc.
4  *
5  * Yasushi SHOJI <yashi@atmark-techno.com>
6  */
7 
8 #ifndef	__ASM_GBL_DATA_H
9 #define __ASM_GBL_DATA_H
10 
11 #include <asm/cpuinfo.h>
12 #include <asm/u-boot.h>
13 
14 /* Architecture-specific global data */
15 struct arch_global_data {
16 	struct microblaze_cpuinfo cpuinfo;
17 };
18 
19 #include <asm-generic/global_data.h>
20 
21 #define DECLARE_GLOBAL_DATA_PTR     register gd_t *gd asm ("r31")
22 
23 #define gd_cpuinfo()	((struct microblaze_cpuinfo *)&gd->arch.cpuinfo)
24 
25 #endif /* __ASM_GBL_DATA_H */
26