blob: af38d17b0dd3f328f89a8e365d3e3fa6e33638c7 [file] [log] [blame]
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01001/*
Wolfgang Denkf710efd2010-07-24 20:22:02 +02002 * (C) Copyright 2002-2010
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Francois Retiefb1d20d92015-10-28 15:48:41 +02005 * (C) Copyright 2007, 2015
6 * Daniel Hellstrom, Cobham, Gaisler, daniel@gaisler.com.
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01007 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom9d7c6b22008-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 Glass3ac47d72012-12-13 20:48:30 +000016/* Architecture-specific global data */
17struct arch_global_data {
Francois Retief7d07d682015-10-28 15:18:22 +020018 void *timer;
Francois Retiefff6929d2015-10-28 10:35:12 +020019 void *uart;
Daniel Hellstromeb2de582010-01-22 11:49:04 +010020 unsigned int uart_freq;
Francois Retiefb1d20d92015-10-28 15:48:41 +020021#ifdef CONFIG_LEON3
22 unsigned int snooping_available;
23#endif
Simon Glass3ac47d72012-12-13 20:48:30 +000024};
25
Simon Glass850d9aa2012-12-13 20:49:26 +000026#include <asm-generic/global_data.h>
Daniel Hellstrom9d7c6b22008-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 */