2008-03-28 08:47:00 +00:00
|
|
|
/*
|
2010-07-24 18:22:02 +00:00
|
|
|
* (C) Copyright 2002-2010
|
2008-03-28 08:47:00 +00:00
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
2015-10-28 13:48:41 +00:00
|
|
|
* (C) Copyright 2007, 2015
|
|
|
|
* Daniel Hellstrom, Cobham, Gaisler, daniel@gaisler.com.
|
2008-03-28 08:47:00 +00:00
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2008-03-28 08:47:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_GBL_DATA_H
|
|
|
|
#define __ASM_GBL_DATA_H
|
|
|
|
|
|
|
|
#include "asm/types.h"
|
|
|
|
|
2012-12-13 20:48:30 +00:00
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2015-10-28 13:18:22 +00:00
|
|
|
void *timer;
|
2015-10-28 08:35:12 +00:00
|
|
|
void *uart;
|
2010-01-22 10:49:04 +00:00
|
|
|
unsigned int uart_freq;
|
2015-10-28 13:48:41 +00:00
|
|
|
#ifdef CONFIG_LEON3
|
|
|
|
unsigned int snooping_available;
|
|
|
|
#endif
|
2012-12-13 20:48:30 +00:00
|
|
|
};
|
|
|
|
|
2012-12-13 20:49:26 +00:00
|
|
|
#include <asm-generic/global_data.h>
|
2008-03-28 08:47:00 +00:00
|
|
|
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("%g7")
|
|
|
|
|
|
|
|
#endif /* __ASM_GBL_DATA_H */
|