Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 1 | /* |
Wolfgang Denk | 91a7675 | 2010-07-24 20:22:02 +0200 | [diff] [blame] | 2 | * (C) Copyright 2002-2010 |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
Francois Retief | d67269b | 2015-10-28 15:48:41 +0200 | [diff] [blame] | 5 | * (C) Copyright 2007, 2015 |
| 6 | * Daniel Hellstrom, Cobham, Gaisler, daniel@gaisler.com. |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 7 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __ASM_GBL_DATA_H |
| 12 | #define __ASM_GBL_DATA_H |
| 13 | |
| 14 | #include "asm/types.h" |
| 15 | |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 16 | /* Architecture-specific global data */ |
| 17 | struct arch_global_data { |
Francois Retief | a50adb7 | 2015-10-28 10:35:12 +0200 | [diff] [blame] | 18 | void *uart; |
Daniel Hellstrom | ff0b9b7 | 2010-01-22 11:49:04 +0100 | [diff] [blame] | 19 | unsigned int uart_freq; |
Francois Retief | d67269b | 2015-10-28 15:48:41 +0200 | [diff] [blame] | 20 | #ifdef CONFIG_LEON3 |
| 21 | unsigned int snooping_available; |
| 22 | #endif |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 23 | }; |
| 24 | |
Simon Glass | 1e5f8bd | 2012-12-13 20:49:26 +0000 | [diff] [blame] | 25 | #include <asm-generic/global_data.h> |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 26 | |
| 27 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("%g7") |
| 28 | |
| 29 | #endif /* __ASM_GBL_DATA_H */ |