xref: /openbmc/u-boot/arch/arc/include/asm/global_data.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2288aaacfSAlexey Brodkin /*
3288aaacfSAlexey Brodkin  * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4288aaacfSAlexey Brodkin  */
5288aaacfSAlexey Brodkin 
6288aaacfSAlexey Brodkin #ifndef	__ASM_ARC_GLOBAL_DATA_H
7288aaacfSAlexey Brodkin #define __ASM_ARC_GLOBAL_DATA_H
8288aaacfSAlexey Brodkin 
9bf8974edSEugeniy Paltsev #include <config.h>
10bf8974edSEugeniy Paltsev 
11c7dea6e2SAlexey Brodkin #ifndef __ASSEMBLY__
12288aaacfSAlexey Brodkin /* Architecture-specific global data */
13288aaacfSAlexey Brodkin struct arch_global_data {
14bf8974edSEugeniy Paltsev 	int l1_line_sz;
15bf8974edSEugeniy Paltsev #if defined(CONFIG_ISA_ARCV2)
16bf8974edSEugeniy Paltsev 	int slc_line_sz;
17bf8974edSEugeniy Paltsev #endif
18288aaacfSAlexey Brodkin };
19c7dea6e2SAlexey Brodkin #endif /* __ASSEMBLY__ */
20288aaacfSAlexey Brodkin 
21288aaacfSAlexey Brodkin #include <asm-generic/global_data.h>
22288aaacfSAlexey Brodkin 
23288aaacfSAlexey Brodkin #define DECLARE_GLOBAL_DATA_PTR		register volatile gd_t *gd asm ("r25")
24288aaacfSAlexey Brodkin 
25288aaacfSAlexey Brodkin #endif /* __ASM_ARC_GLOBAL_DATA_H */
26