[PATCH] Fix cpu_is_s3c2442() returning false for an S3C2442B

Rask Ingemann Lambertsen rask at sygehus.dk
Tue Mar 31 00:28:09 CEST 2009


   An S3C2442B would be detected as S3C2440 by the cpu_is_s3cxxxx()
macros. This patch fixes it.

Signed-off-by: Rask Ingeman Lambertsen <rask at sygehus.dk>

---

 arch/arm/plat-s3c/init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-s3c/init.c b/arch/arm/plat-s3c/init.c
index 94a3120..c1ddac1 100644
--- a/arch/arm/plat-s3c/init.c
+++ b/arch/arm/plat-s3c/init.c
@@ -52,7 +52,8 @@ static void __init set_system_rev(unsigned int idcode)
 
 	if (idcode == 0x32410002 || idcode == 0x32440001)
 		system_rev |= (0x1 << 16);
-	if (idcode == 0x32440aaa)	/* s3c2442 */
+	if (idcode == 0x32440aaa	/* s3c2442 */
+	    || idcode == 0x32440aab)	/* s3c2442b */
 		system_rev |= (0x2 << 16);
 	if (idcode == 0x0)		/* s3c2400 */
 		system_rev |= (0x2400 << 16);


-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year



More information about the openmoko-kernel mailing list