diff options
Diffstat (limited to 'arch/microblaze/kernel/cpu')
-rw-r--r-- | arch/microblaze/kernel/cpu/cache.c | 6 | ||||
-rw-r--r-- | arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c | 2 | ||||
-rw-r--r-- | arch/microblaze/kernel/cpu/cpuinfo-static.c | 2 | ||||
-rw-r--r-- | arch/microblaze/kernel/cpu/cpuinfo.c | 7 |
4 files changed, 12 insertions, 5 deletions
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c index a6e44410672d..0bde47e4fa69 100644 --- a/arch/microblaze/kernel/cpu/cache.c +++ b/arch/microblaze/kernel/cpu/cache.c | |||
@@ -140,10 +140,10 @@ do { \ | |||
140 | /* It is used only first parameter for OP - for wic, wdc */ | 140 | /* It is used only first parameter for OP - for wic, wdc */ |
141 | #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ | 141 | #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ |
142 | do { \ | 142 | do { \ |
143 | int volatile temp = 0; \ | 143 | unsigned int volatile temp = 0; \ |
144 | int align = ~(line_length - 1); \ | 144 | unsigned int align = ~(line_length - 1); \ |
145 | end = ((end & align) == end) ? end - line_length : end & align; \ | 145 | end = ((end & align) == end) ? end - line_length : end & align; \ |
146 | WARN_ON(end - start < 0); \ | 146 | WARN_ON(end < start); \ |
147 | \ | 147 | \ |
148 | __asm__ __volatile__ (" 1: " #op " %1, r0;" \ | 148 | __asm__ __volatile__ (" 1: " #op " %1, r0;" \ |
149 | "cmpu %0, %1, %2;" \ | 149 | "cmpu %0, %1, %2;" \ |
diff --git a/arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c b/arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c index 93c26cf50de5..a32daec96c12 100644 --- a/arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c +++ b/arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c | |||
@@ -33,7 +33,7 @@ | |||
33 | void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu) | 33 | void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu) |
34 | { | 34 | { |
35 | struct pvr_s pvr; | 35 | struct pvr_s pvr; |
36 | int temp; /* for saving temp value */ | 36 | u32 temp; /* for saving temp value */ |
37 | get_pvr(&pvr); | 37 | get_pvr(&pvr); |
38 | 38 | ||
39 | CI(ver_code, VERSION); | 39 | CI(ver_code, VERSION); |
diff --git a/arch/microblaze/kernel/cpu/cpuinfo-static.c b/arch/microblaze/kernel/cpu/cpuinfo-static.c index 4854285b26e7..85dbda4a08a8 100644 --- a/arch/microblaze/kernel/cpu/cpuinfo-static.c +++ b/arch/microblaze/kernel/cpu/cpuinfo-static.c | |||
@@ -22,7 +22,7 @@ static const char cpu_ver_string[] = CONFIG_XILINX_MICROBLAZE0_HW_VER; | |||
22 | 22 | ||
23 | void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) | 23 | void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) |
24 | { | 24 | { |
25 | int i = 0; | 25 | u32 i = 0; |
26 | 26 | ||
27 | ci->use_instr = | 27 | ci->use_instr = |
28 | (fcpu(cpu, "xlnx,use-barrel") ? PVR0_USE_BARREL_MASK : 0) | | 28 | (fcpu(cpu, "xlnx,use-barrel") ? PVR0_USE_BARREL_MASK : 0) | |
diff --git a/arch/microblaze/kernel/cpu/cpuinfo.c b/arch/microblaze/kernel/cpu/cpuinfo.c index 234acad79b9e..d1dd6e83d59b 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 | ||
@@ -61,11 +65,14 @@ const struct family_string_key family_string_lookup[] = { | |||
61 | {"spartan3adsp", 0xc}, | 65 | {"spartan3adsp", 0xc}, |
62 | {"spartan6", 0xd}, | 66 | {"spartan6", 0xd}, |
63 | {"virtex6", 0xe}, | 67 | {"virtex6", 0xe}, |
68 | {"virtex7", 0xf}, | ||
64 | /* FIXME There is no key code defined for spartan2 */ | 69 | /* FIXME There is no key code defined for spartan2 */ |
65 | {"spartan2", 0xf0}, | 70 | {"spartan2", 0xf0}, |
66 | {"kintex7", 0x10}, | 71 | {"kintex7", 0x10}, |
67 | {"artix7", 0x11}, | 72 | {"artix7", 0x11}, |
68 | {"zynq7000", 0x12}, | 73 | {"zynq7000", 0x12}, |
74 | {"UltraScale Virtex", 0x13}, | ||
75 | {"UltraScale Kintex", 0x14}, | ||
69 | {NULL, 0}, | 76 | {NULL, 0}, |
70 | }; | 77 | }; |
71 | 78 | ||