2008-03-26 21:51:29 +00:00
|
|
|
/* LEON3 header file. LEON3 is a free GPL SOC processor available
|
|
|
|
* at www.gaisler.com.
|
|
|
|
*
|
|
|
|
* (C) Copyright 2007
|
|
|
|
* Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2008-03-26 21:51:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LEON3_H__
|
|
|
|
#define __LEON3_H__
|
|
|
|
|
|
|
|
#ifndef CONFIG_LEON3
|
|
|
|
#error Include LEON3 header file only if LEON3 processor
|
|
|
|
#endif
|
|
|
|
|
2008-04-13 16:59:26 +00:00
|
|
|
/* Not much to define, most is Plug and Play and GRLIB dependent
|
|
|
|
* not LEON3 dependent. See <ambapp.h> for GRLIB timers, interrupt
|
2008-03-26 21:51:29 +00:00
|
|
|
* ctrl, memory controllers etc.
|
|
|
|
*/
|
|
|
|
|
2010-01-22 12:25:03 +00:00
|
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* The frequency of the CPU */
|
|
|
|
extern unsigned int leon_cpu_freq;
|
|
|
|
|
|
|
|
/* Number of LEON processors in system */
|
|
|
|
extern int leon_cpu_cnt;
|
|
|
|
|
|
|
|
/* Ver/subversion of CPU */
|
|
|
|
extern int leon_ver;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
|
2008-03-26 21:51:29 +00:00
|
|
|
#endif
|