All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] sh: modify checkcpu() for SH-4A
@ 2012-07-24  0:53 Shimoda, Yoshihiro
  2012-07-24  1:38 ` Nobuhiro Iwamatsu
  0 siblings, 1 reply; 2+ messages in thread
From: Shimoda, Yoshihiro @ 2012-07-24  0:53 UTC (permalink / raw)
  To: u-boot

Even if using CPU is SH-4A, the previous code always put "SH4".
This patch fixes it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/sh/cpu/sh4/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index f136758..7da1ef7 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
@@ -29,7 +29,11 @@

 int checkcpu(void)
 {
+#ifdef CONFIG_SH4A
+	puts("CPU: SH-4A\n");
+#else
 	puts("CPU: SH4\n");
+#endif
 	return 0;
 }

-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-24  1:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24  0:53 [U-Boot] [PATCH] sh: modify checkcpu() for SH-4A Shimoda, Yoshihiro
2012-07-24  1:38 ` Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.