summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/leon3.h
blob: a9f32b9b9090f031f35c01d51631f15f37b7dddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* 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.
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef __LEON3_H__
#define __LEON3_H__

#ifndef CONFIG_LEON3
#error Include LEON3 header file only if LEON3 processor
#endif

/* Not much to define, most is Plug and Play and GRLIB dependent
 * not LEON3 dependent. See <ambapp.h> for GRLIB timers, interrupt
 * ctrl, memory controllers etc.
 */


#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__ */

#endif
OpenPOWER on IntegriCloud