public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/2] imx: Use a clear identification of an unidentified CPU type
@ 2012-06-30 15:07 Otavio Salvador
  2012-06-30 15:07 ` [U-Boot] [PATCH v3 2/2] mxs: generalize code for print_cpuinfo() Otavio Salvador
  2012-07-16 11:03 ` [U-Boot] [PATCH v2 1/2] imx: Use a clear identification of an unidentified CPU type Stefano Babic
  0 siblings, 2 replies; 5+ messages in thread
From: Otavio Salvador @ 2012-06-30 15:07 UTC (permalink / raw)
  To: u-boot

In case an unidentified CPU type is detected it now returns
i.MX??, in a const char.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>

---
Changes for v2:
 * use i.MX?? for unidentified CPU type

 arch/arm/cpu/armv7/imx-common/cpu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/armv7/imx-common/cpu.c b/arch/arm/cpu/armv7/imx-common/cpu.c
index b3195dd..e7bd0bf 100644
--- a/arch/arm/cpu/armv7/imx-common/cpu.c
+++ b/arch/arm/cpu/armv7/imx-common/cpu.c
@@ -66,7 +66,7 @@ char *get_reset_cause(void)
 
 #if defined(CONFIG_DISPLAY_CPUINFO)
 
-static char *get_imx_type(u32 imxtype)
+static const char *get_imx_type(u32 imxtype)
 {
 	switch (imxtype) {
 	case 0x63:
@@ -80,7 +80,7 @@ static char *get_imx_type(u32 imxtype)
 	case 0x53:
 		return "53";
 	default:
-		return "unknown";
+		return "??";
 	}
 }
 
-- 
1.7.10

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

end of thread, other threads:[~2012-07-16 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30 15:07 [U-Boot] [PATCH v2 1/2] imx: Use a clear identification of an unidentified CPU type Otavio Salvador
2012-06-30 15:07 ` [U-Boot] [PATCH v3 2/2] mxs: generalize code for print_cpuinfo() Otavio Salvador
2012-07-16 11:04   ` Stefano Babic
2012-07-16 12:32     ` Otavio Salvador
2012-07-16 11:03 ` [U-Boot] [PATCH v2 1/2] imx: Use a clear identification of an unidentified CPU type Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox