1 From ca652d910f40692ce558d525b61911b66202d908 Mon Sep 17 00:00:00 2001
2 From: mokopatches <mokopatches@openmoko.org>
3 Date: Wed, 16 Jul 2008 14:44:50 +0100
4 Subject: [PATCH] s3c2442b-cpuid.patch
5 Add the Samsung S3C2442B CPU idcode to the samsung s3c24xx platform code
6 and fix a Kconfig typo related tot the 2442.
9 arch/arm/mach-s3c2442/Kconfig | 2 +-
10 arch/arm/plat-s3c24xx/cpu.c | 10 ++++++++++
11 2 files changed, 11 insertions(+), 1 deletions(-)
13 diff --git a/arch/arm/mach-s3c2442/Kconfig b/arch/arm/mach-s3c2442/Kconfig
14 index 26d131a..6cc68a1 100644
15 --- a/arch/arm/mach-s3c2442/Kconfig
16 +++ b/arch/arm/mach-s3c2442/Kconfig
21 - depends on ARCH_S3C2410
22 + depends on ARCH_S3C2440
25 select S3C2410_PM if PM
26 diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c
27 index f5699ca..05fb61d 100644
28 --- a/arch/arm/plat-s3c24xx/cpu.c
29 +++ b/arch/arm/plat-s3c24xx/cpu.c
30 @@ -72,6 +72,7 @@ static const char name_s3c2410[] = "S3C2410";
31 static const char name_s3c2412[] = "S3C2412";
32 static const char name_s3c2440[] = "S3C2440";
33 static const char name_s3c2442[] = "S3C2442";
34 +static const char name_s3c2442b[] = "S3C2442B";
35 static const char name_s3c2443[] = "S3C2443";
36 static const char name_s3c2410a[] = "S3C2410A";
37 static const char name_s3c2440a[] = "S3C2440A";
38 @@ -123,6 +124,15 @@ static struct cpu_table cpu_ids[] __initdata = {
42 + .idcode = 0x32440aab,
43 + .idmask = 0xffffffff,
44 + .map_io = s3c244x_map_io,
45 + .init_clocks = s3c244x_init_clocks,
46 + .init_uarts = s3c244x_init_uarts,
47 + .init = s3c2442_init,
48 + .name = name_s3c2442b
53 .map_io = s3c2412_map_io,