]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/sparc/include/asm/global_data.h
sparc: leon3: Move snoop detection from startup.S to arch_cpu_init()
[people/ms/u-boot.git] / arch / sparc / include / asm / global_data.h
1 /*
2 * (C) Copyright 2002-2010
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * (C) Copyright 2007, 2015
6 * Daniel Hellstrom, Cobham, Gaisler, daniel@gaisler.com.
7 *
8 * SPDX-License-Identifier: GPL-2.0+
9 */
10
11 #ifndef __ASM_GBL_DATA_H
12 #define __ASM_GBL_DATA_H
13
14 #include "asm/types.h"
15
16 /* Architecture-specific global data */
17 struct arch_global_data {
18 void *uart;
19 unsigned int uart_freq;
20 #ifdef CONFIG_LEON3
21 unsigned int snooping_available;
22 #endif
23 };
24
25 #include <asm-generic/global_data.h>
26
27 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("%g7")
28
29 #endif /* __ASM_GBL_DATA_H */