diff options
Diffstat (limited to 'arch/microblaze/include/asm/cpuinfo.h')
-rw-r--r-- | arch/microblaze/include/asm/cpuinfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/microblaze/include/asm/cpuinfo.h b/arch/microblaze/include/asm/cpuinfo.h index b4f5ca33aebf..cd257537ae54 100644 --- a/arch/microblaze/include/asm/cpuinfo.h +++ b/arch/microblaze/include/asm/cpuinfo.h | |||
@@ -38,6 +38,7 @@ struct cpuinfo { | |||
38 | u32 use_exc; | 38 | u32 use_exc; |
39 | u32 ver_code; | 39 | u32 ver_code; |
40 | u32 mmu; | 40 | u32 mmu; |
41 | u32 endian; | ||
41 | 42 | ||
42 | /* CPU caches */ | 43 | /* CPU caches */ |
43 | u32 use_icache; | 44 | u32 use_icache; |
@@ -76,7 +77,6 @@ struct cpuinfo { | |||
76 | u32 num_rd_brk; | 77 | u32 num_rd_brk; |
77 | u32 num_wr_brk; | 78 | u32 num_wr_brk; |
78 | u32 cpu_clock_freq; /* store real freq of cpu */ | 79 | u32 cpu_clock_freq; /* store real freq of cpu */ |
79 | u32 freq_div_hz; /* store freq/HZ */ | ||
80 | 80 | ||
81 | /* FPGA family */ | 81 | /* FPGA family */ |
82 | u32 fpga_family_code; | 82 | u32 fpga_family_code; |
@@ -97,7 +97,8 @@ void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu); | |||
97 | static inline unsigned int fcpu(struct device_node *cpu, char *n) | 97 | static inline unsigned int fcpu(struct device_node *cpu, char *n) |
98 | { | 98 | { |
99 | int *val; | 99 | int *val; |
100 | return (val = (int *) of_get_property(cpu, n, NULL)) ? *val : 0; | 100 | return (val = (int *) of_get_property(cpu, n, NULL)) ? |
101 | be32_to_cpup(val) : 0; | ||
101 | } | 102 | } |
102 | 103 | ||
103 | #endif /* _ASM_MICROBLAZE_CPUINFO_H */ | 104 | #endif /* _ASM_MICROBLAZE_CPUINFO_H */ |