aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/cpu
diff options
context:
space:
mode:
authorErico Nunes <nunes.erico@gmail.com>2015-01-01 21:40:33 -0500
committerMichal Simek <michal.simek@xilinx.com>2015-01-08 02:37:21 -0500
commit81653edd99ee2297ad6ab49a4f91a1d5dce577f1 (patch)
tree7e5ba4dc13580d2a8595b2ea9e7d3505fa563e35 /arch/microblaze/kernel/cpu
parented4602e13f8d7b764308d6db58ff9932353f16a3 (diff)
microblaze: Add missing PVR version codes
PVR version code was missing in the cpu_ver_lookup table for the following versions: 8.50.b 8.50.c 9.2 9.3 This caused /proc/cpuinfo to display "CPU-Ver: Unknown" for these versions. This was detected and the patch tested with MicroBlaze version 8.50.c. The other codes were taken from the Xilinx MicroBlaze Processor Reference Guides UG081 (v14.7) and UG984 (v2014.1). Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/kernel/cpu')
-rw-r--r--arch/microblaze/kernel/cpu/cpuinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/cpu/cpuinfo.c b/arch/microblaze/kernel/cpu/cpuinfo.c
index 234acad79b9e..b60442dcdedc 100644
--- a/arch/microblaze/kernel/cpu/cpuinfo.c
+++ b/arch/microblaze/kernel/cpu/cpuinfo.c
@@ -41,8 +41,12 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
41 {"8.40.a", 0x18}, 41 {"8.40.a", 0x18},
42 {"8.40.b", 0x19}, 42 {"8.40.b", 0x19},
43 {"8.50.a", 0x1a}, 43 {"8.50.a", 0x1a},
44 {"8.50.b", 0x1c},
45 {"8.50.c", 0x1e},
44 {"9.0", 0x1b}, 46 {"9.0", 0x1b},
45 {"9.1", 0x1d}, 47 {"9.1", 0x1d},
48 {"9.2", 0x1f},
49 {"9.3", 0x20},
46 {NULL, 0}, 50 {NULL, 0},
47}; 51};
48 52