summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/cpu/mb.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-08-13 12:47:42 +0200
committerMichal Simek <monstr@monstr.eu>2010-10-21 07:51:57 +0200
commit8e2ad016b20f98790d5995aae1d157d1613ab9e6 (patch)
treee1eb651eff6d7f45c0a3e8316a26112611ad5f4d /arch/microblaze/kernel/cpu/mb.c
parentnet: emaclite: Add support for little-endian platforms (diff)
downloadlinux-8e2ad016b20f98790d5995aae1d157d1613ab9e6.tar.xz
linux-8e2ad016b20f98790d5995aae1d157d1613ab9e6.zip
microblaze: Add PVR for endians plus detection
Upcomming microblaze version will support little-endian. Signed-off-by: Michal Simek <monstr@monstr.eu> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/microblaze/kernel/cpu/mb.c')
-rw-r--r--arch/microblaze/kernel/cpu/mb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/cpu/mb.c b/arch/microblaze/kernel/cpu/mb.c
index 7086e3564281..b4048af02615 100644
--- a/arch/microblaze/kernel/cpu/mb.c
+++ b/arch/microblaze/kernel/cpu/mb.c
@@ -51,11 +51,12 @@ static int show_cpuinfo(struct seq_file *m, void *v)
count = seq_printf(m,
"CPU-Family: MicroBlaze\n"
"FPGA-Arch: %s\n"
- "CPU-Ver: %s\n"
+ "CPU-Ver: %s, %s endian\n"
"CPU-MHz: %d.%02d\n"
"BogoMips: %lu.%02lu\n",
fpga_family,
cpu_ver,
+ cpuinfo.endian ? "little" : "big",
cpuinfo.cpu_clock_freq /
1000000,
cpuinfo.cpu_clock_freq %