blob: af38d17b0dd3f328f89a8e365d3e3fa6e33638c7 [file] [log] [blame]
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01001/*
Wolfgang Denk91a76752010-07-24 20:22:02 +02002 * (C) Copyright 2002-2010
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Francois Retiefd67269b2015-10-28 15:48:41 +02005 * (C) Copyright 2007, 2015
6 * Daniel Hellstrom, Cobham, Gaisler, daniel@gaisler.com.
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01007 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01009 */
10
11#ifndef __ASM_GBL_DATA_H
12#define __ASM_GBL_DATA_H
13
14#include "asm/types.h"
15
Simon Glass5cb48582012-12-13 20:48:30 +000016/* Architecture-specific global data */
17struct arch_global_data {
Francois Retiefc97088c2015-10-28 15:18:22 +020018 void *timer;
Francois Retiefa50adb72015-10-28 10:35:12 +020019 void *uart;
Daniel Hellstromff0b9b72010-01-22 11:49:04 +010020 unsigned int uart_freq;
Francois Retiefd67269b2015-10-28 15:48:41 +020021#ifdef CONFIG_LEON3
22 unsigned int snooping_available;
23#endif
Simon Glass5cb48582012-12-13 20:48:30 +000024};
25
Simon Glass1e5f8bd2012-12-13 20:49:26 +000026#include <asm-generic/global_data.h>
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010027
28#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("%g7")
29
30#endif /* __ASM_GBL_DATA_H */