diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2010-01-22 13:25:03 +0100 |
---|---|---|
committer | Francois Retief <fgretief@spaceteq.co.za> | 2015-12-03 13:15:49 +0200 |
commit | 6c4359aa7284bf7bc6d9f83a2c6dceb406726388 (patch) | |
tree | 8645444d717def2d372e0c0b520eea85b6600cac /arch/sparc/include/asm | |
parent | 36594a1dfb96e5ebb54996fb36769d45cda38207 (diff) | |
download | u-boot-imx-6c4359aa7284bf7bc6d9f83a2c6dceb406726388.zip u-boot-imx-6c4359aa7284bf7bc6d9f83a2c6dceb406726388.tar.gz u-boot-imx-6c4359aa7284bf7bc6d9f83a2c6dceb406726388.tar.bz2 |
sparc: leon3: Added CPU count and frequency detection.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'arch/sparc/include/asm')
-rw-r--r-- | arch/sparc/include/asm/leon3.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/leon3.h b/arch/sparc/include/asm/leon3.h index 6ee1ea8..a9f32b9 100644 --- a/arch/sparc/include/asm/leon3.h +++ b/arch/sparc/include/asm/leon3.h @@ -19,4 +19,17 @@ * 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 |