13 #include <linux/kernel.h>
14 #include <linux/types.h>
16 #include <linux/list.h>
19 #include <linux/serial_core.h>
21 #include <linux/device.h>
26 #include <asm/system_misc.h>
31 #include <mach/hardware.h>
36 #include <mach/regs-clock.h>
38 #include <mach/regs-gpio.h>
43 #include <plat/clock.h>
74 s3c_nand_setname(
"s3c2440-nand");
99 switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) {
100 case S3C2440_CLKDIVN_HDIVN_1:
104 case S3C2440_CLKDIVN_HDIVN_2:
108 case S3C2440_CLKDIVN_HDIVN_4_8:
109 hdiv = (camdiv & S3C2440_CAMDIVN_HCLK4_HALF) ? 8 : 4;
112 case S3C2440_CLKDIVN_HDIVN_3_6:
113 hdiv = (camdiv & S3C2440_CAMDIVN_HCLK3_HALF) ? 6 : 3;
118 pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN) ? 2 : 1);
122 printk(
"S3C244X: core %ld.%03ld MHz, memory %ld.%03ld MHz, peripheral %ld.%03ld MHz\n",
142 .name =
"s3c2440-core",
143 .dev_name =
"s3c2440-core",
147 .name =
"s3c2442-core",
148 .dev_name =
"s3c2442-core",
157 static int __init s3c2440_core_init(
void)
164 static int __init s3c2442_core_init(
void)
192 #define s3c244x_suspend NULL
193 #define s3c244x_resume NULL