26 #include <linux/module.h>
29 #include <linux/serial_core.h>
34 #include <mach/hardware.h>
35 #include <mach/regs-clock.h>
37 #include <asm/cacheflush.h>
39 #include <asm/system_misc.h>
44 #include <mach/regs-gpio.h>
49 #include <plat/clock.h>
60 static const char name_s3c2410[] =
"S3C2410";
61 static const char name_s3c2412[] =
"S3C2412";
62 static const char name_s3c2416[] =
"S3C2416/S3C2450";
63 static const char name_s3c2440[] =
"S3C2440";
64 static const char name_s3c2442[] =
"S3C2442";
65 static const char name_s3c2442b[] =
"S3C2442B";
66 static const char name_s3c2443[] =
"S3C2443";
67 static const char name_s3c2410a[] =
"S3C2410A";
68 static const char name_s3c2440a[] =
"S3C2440A";
100 .idmask = 0xffffffff,
105 .name = name_s3c2440a
108 .idcode = 0x32440aaa,
109 .idmask = 0xffffffff,
117 .idcode = 0x32440aab,
118 .idmask = 0xffffffff,
123 .name = name_s3c2442b
126 .idcode = 0x32412001,
127 .idmask = 0xffffffff,
132 .name = name_s3c2412,
135 .idcode = 0x32412003,
136 .idmask = 0xffffffff,
141 .name = name_s3c2412,
144 .idcode = 0x32450003,
145 .idmask = 0xffffffff,
150 .name = name_s3c2416,
153 .idcode = 0x32443001,
154 .idmask = 0xffffffff,
159 .name = name_s3c2443,
165 static struct map_desc s3c_iodesc[] __initdata = {
174 static unsigned long s3c24xx_read_idcode_v5(
void)
176 #if defined(CONFIG_CPU_S3C2416)
182 if ((gs >> 16) == 0x3245)
186 #if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413)
193 static unsigned long s3c24xx_read_idcode_v4(
void)
213 for (i = 0; i < 50; i++)
242 static struct resource s3c2410_uart0_resource[] = {
249 static struct resource s3c2410_uart1_resource[] = {
256 static struct resource s3c2410_uart2_resource[] = {
263 static struct resource s3c2410_uart3_resource[] = {
272 .resources = s3c2410_uart0_resource,
273 .nr_resources =
ARRAY_SIZE(s3c2410_uart0_resource),
276 .resources = s3c2410_uart1_resource,
277 .nr_resources =
ARRAY_SIZE(s3c2410_uart1_resource),
280 .resources = s3c2410_uart2_resource,
281 .nr_resources =
ARRAY_SIZE(s3c2410_uart2_resource),
284 .resources = s3c2410_uart3_resource,
285 .nr_resources =
ARRAY_SIZE(s3c2410_uart3_resource),