aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRask Ingemann Lambertsen <rask@sygehus.dk>2009-03-31 00:28:09 +0200
committerWerner Almesberger <werner@openmoko.org>2009-03-30 20:40:02 -0300
commit3c90534a30bbfd46aad95b2277af3e8c33b8aa1a (patch)
tree207cef66de80b3bf2484e40323f75f055a490ec7 /arch
parent435927c4a69f587505f3429b093ca0e29e45bf1d (diff)
Fix cpu_is_s3c2442() returning false for an S3C2442B
An S3C2442B would be detected as S3C2440 by the cpu_is_s3cxxxx() macros. This patch fixes it. Signed-off-by: Rask Ingeman Lambertsen <rask@sygehus.dk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-s3c/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c/init.c b/arch/arm/plat-s3c/init.c
index 94a3120f561..c1ddac1007c 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);