moko nand blocksize is 128k
[openwrt/staging/dedeckeh.git] / target / linux / s3c24xx / patches-2.6.26 / 0023-s3c2442b-cpuid.patch.patch
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.
7
8 ---
9 arch/arm/mach-s3c2442/Kconfig | 2 +-
10 arch/arm/plat-s3c24xx/cpu.c | 10 ++++++++++
11 2 files changed, 11 insertions(+), 1 deletions(-)
12
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
17 @@ -6,7 +6,7 @@
18
19 config CPU_S3C2442
20 bool
21 - depends on ARCH_S3C2410
22 + depends on ARCH_S3C2440
23 select S3C2410_CLOCK
24 select S3C2410_GPIO
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 = {
39 .name = name_s3c2442
40 },
41 {
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
49 + },
50 + {
51 .idcode = 0x32412001,
52 .idmask = 0xffffffff,
53 .map_io = s3c2412_map_io,
54 --
55 1.5.6.3
56