blob: a9f32b9b9090f031f35c01d51631f15f37b7dddb [file] [log] [blame]
Daniel Hellstromb552dbe2008-03-26 22:51:29 +01001/* LEON3 header file. LEON3 is a free GPL SOC processor available
2 * at www.gaisler.com.
3 *
4 * (C) Copyright 2007
5 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
6 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Daniel Hellstromb552dbe2008-03-26 22:51:29 +01008 */
9
10#ifndef __LEON3_H__
11#define __LEON3_H__
12
13#ifndef CONFIG_LEON3
14#error Include LEON3 header file only if LEON3 processor
15#endif
16
Wolfgang Denk35f734f2008-04-13 09:59:26 -070017/* Not much to define, most is Plug and Play and GRLIB dependent
18 * not LEON3 dependent. See <ambapp.h> for GRLIB timers, interrupt
Daniel Hellstromb552dbe2008-03-26 22:51:29 +010019 * ctrl, memory controllers etc.
20 */
21
Daniel Hellstromcbb7de62010-01-22 13:25:03 +010022
23#ifndef __ASSEMBLER__
24/* The frequency of the CPU */
25extern unsigned int leon_cpu_freq;
26
27/* Number of LEON processors in system */
28extern int leon_cpu_cnt;
29
30/* Ver/subversion of CPU */
31extern int leon_ver;
32
33#endif /* __ASSEMBLER__ */
34
Daniel Hellstromb552dbe2008-03-26 22:51:29 +010035#endif