[RFC PATCH 4/6] arm: cpuinfo: Cortex-A9 dirty hack

Antony Pavlov antonynpavlov at gmail.com
Thu Sep 29 10:04:34 EDT 2011


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/arm/cpu/cpuinfo.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c
index e19b8de..25d2c3f 100644
--- a/arch/arm/cpu/cpuinfo.c
+++ b/arch/arm/cpu/cpuinfo.c
@@ -101,7 +101,15 @@ static int do_cpuinfo(struct command *cmdtp, int argc, char *argv[])
 			if (arch > 0 && arch < 8)
 				architecture = post_arm7_archs[arch - 1];
 			else
-				architecture = "Unknown";
+				/*
+				 * see Cortex-A9 Technical Reference Manual:
+				 *  Main ID Register value fixed to 0x411fc090
+				 */
+				if (mainid == 0x411fc090) {
+					architecture = "Cortex-A9";
+				} else {
+					architecture = "Unknown";
+				}
                 }
         }
 
-- 
1.7.6.3




More information about the barebox mailing list