Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
David Howells | 9f97da7 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 2 | #ifndef __ASM_ARM_SYSTEM_INFO_H |
| 3 | #define __ASM_ARM_SYSTEM_INFO_H |
| 4 | |
| 5 | #define CPU_ARCH_UNKNOWN 0 |
| 6 | #define CPU_ARCH_ARMv3 1 |
| 7 | #define CPU_ARCH_ARMv4 2 |
| 8 | #define CPU_ARCH_ARMv4T 3 |
| 9 | #define CPU_ARCH_ARMv5 4 |
| 10 | #define CPU_ARCH_ARMv5T 5 |
| 11 | #define CPU_ARCH_ARMv5TE 6 |
| 12 | #define CPU_ARCH_ARMv5TEJ 7 |
| 13 | #define CPU_ARCH_ARMv6 8 |
| 14 | #define CPU_ARCH_ARMv7 9 |
Catalin Marinas | 55bdd69 | 2010-05-21 18:06:41 +0100 | [diff] [blame] | 15 | #define CPU_ARCH_ARMv7M 10 |
David Howells | 9f97da7 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 16 | |
| 17 | #ifndef __ASSEMBLY__ |
| 18 | |
| 19 | /* information about the system we're running on */ |
| 20 | extern unsigned int system_rev; |
Paul Kocialkowski | 3f599875 | 2015-05-06 15:23:56 +0100 | [diff] [blame] | 21 | extern const char *system_serial; |
David Howells | 9f97da7 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 22 | extern unsigned int system_serial_low; |
| 23 | extern unsigned int system_serial_high; |
| 24 | extern unsigned int mem_fclk_21285; |
| 25 | |
| 26 | extern int __pure cpu_architecture(void); |
| 27 | |
| 28 | #endif /* !__ASSEMBLY__ */ |
| 29 | |
| 30 | #endif /* __ASM_ARM_SYSTEM_INFO_H */ |