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