Daniel Hellstrom | b552dbe | 2008-03-26 22:51:29 +0100 | [diff] [blame] | 1 | /* 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Daniel Hellstrom | b552dbe | 2008-03-26 22:51:29 +0100 | [diff] [blame] | 8 | */ |
| 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 Denk | 35f734f | 2008-04-13 09:59:26 -0700 | [diff] [blame] | 17 | /* Not much to define, most is Plug and Play and GRLIB dependent |
| 18 | * not LEON3 dependent. See <ambapp.h> for GRLIB timers, interrupt |
Daniel Hellstrom | b552dbe | 2008-03-26 22:51:29 +0100 | [diff] [blame] | 19 | * ctrl, memory controllers etc. |
| 20 | */ |
| 21 | |
Daniel Hellstrom | cbb7de6 | 2010-01-22 13:25:03 +0100 | [diff] [blame] | 22 | |
| 23 | #ifndef __ASSEMBLER__ |
| 24 | /* The frequency of the CPU */ |
| 25 | extern unsigned int leon_cpu_freq; |
| 26 | |
| 27 | /* Number of LEON processors in system */ |
| 28 | extern int leon_cpu_cnt; |
| 29 | |
| 30 | /* Ver/subversion of CPU */ |
| 31 | extern int leon_ver; |
| 32 | |
| 33 | #endif /* __ASSEMBLER__ */ |
| 34 | |
Daniel Hellstrom | b552dbe | 2008-03-26 22:51:29 +0100 | [diff] [blame] | 35 | #endif |