blob: fd9b7fb5f8dbe4d7efbab4183404c04ea00db520 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Alexey Brodkin544c5f52014-02-04 12:56:13 +04002/*
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
Alexey Brodkin544c5f52014-02-04 12:56:13 +04004 */
5
6#ifndef __ASM_ARC_GLOBAL_DATA_H
7#define __ASM_ARC_GLOBAL_DATA_H
8
Tom Rinidec7ea02024-05-20 13:35:03 -06009#include <asm/u-boot.h>
10
Alexey Brodkindb58eaa2016-07-04 11:37:55 +030011#ifndef __ASSEMBLY__
Alexey Brodkin544c5f52014-02-04 12:56:13 +040012/* Architecture-specific global data */
13struct arch_global_data {
Eugeniy Paltsevf3de8d62018-03-21 15:58:57 +030014 int l1_line_sz;
15#if defined(CONFIG_ISA_ARCV2)
16 int slc_line_sz;
17#endif
Alexey Brodkin544c5f52014-02-04 12:56:13 +040018};
Alexey Brodkindb58eaa2016-07-04 11:37:55 +030019#endif /* __ASSEMBLY__ */
Alexey Brodkin544c5f52014-02-04 12:56:13 +040020
21#include <asm-generic/global_data.h>
22
23#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r25")
24
25#endif /* __ASM_ARC_GLOBAL_DATA_H */