diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-h1940.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-h1940.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index 2a2fa0620133..41245a603981 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/memblock.h> | 18 | #include <linux/memblock.h> |
19 | #include <linux/timer.h> | 19 | #include <linux/timer.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/sysdev.h> | 21 | #include <linux/device.h> |
22 | #include <linux/serial_core.h> | 22 | #include <linux/serial_core.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
@@ -35,6 +35,7 @@ | |||
35 | #include <video/platform_lcd.h> | 35 | #include <video/platform_lcd.h> |
36 | 36 | ||
37 | #include <linux/mmc/host.h> | 37 | #include <linux/mmc/host.h> |
38 | #include <linux/export.h> | ||
38 | 39 | ||
39 | #include <asm/mach/arch.h> | 40 | #include <asm/mach/arch.h> |
40 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
@@ -69,6 +70,8 @@ | |||
69 | 70 | ||
70 | #include <sound/uda1380.h> | 71 | #include <sound/uda1380.h> |
71 | 72 | ||
73 | #include "common.h" | ||
74 | |||
72 | #define H1940_LATCH ((void __force __iomem *)0xF8000000) | 75 | #define H1940_LATCH ((void __force __iomem *)0xF8000000) |
73 | 76 | ||
74 | #define H1940_PA_LATCH S3C2410_CS2 | 77 | #define H1940_PA_LATCH S3C2410_CS2 |
@@ -696,9 +699,9 @@ static void __init h1940_init(void) | |||
696 | S3C2410_MISCCR_USBSUSPND0 | | 699 | S3C2410_MISCCR_USBSUSPND0 | |
697 | S3C2410_MISCCR_USBSUSPND1, 0x0); | 700 | S3C2410_MISCCR_USBSUSPND1, 0x0); |
698 | 701 | ||
699 | tmp = (0x78 << S3C24XX_PLLCON_MDIVSHIFT) | 702 | tmp = (0x78 << S3C24XX_PLL_MDIV_SHIFT) |
700 | | (0x02 << S3C24XX_PLLCON_PDIVSHIFT) | 703 | | (0x02 << S3C24XX_PLL_PDIV_SHIFT) |
701 | | (0x03 << S3C24XX_PLLCON_SDIVSHIFT); | 704 | | (0x03 << S3C24XX_PLL_SDIV_SHIFT); |
702 | writel(tmp, S3C2410_UPLLCON); | 705 | writel(tmp, S3C2410_UPLLCON); |
703 | 706 | ||
704 | gpio_request(S3C2410_GPC(0), "LCD power"); | 707 | gpio_request(S3C2410_GPC(0), "LCD power"); |
@@ -744,10 +747,11 @@ static void __init h1940_init(void) | |||
744 | 747 | ||
745 | MACHINE_START(H1940, "IPAQ-H1940") | 748 | MACHINE_START(H1940, "IPAQ-H1940") |
746 | /* Maintainer: Ben Dooks <ben-linux@fluff.org> */ | 749 | /* Maintainer: Ben Dooks <ben-linux@fluff.org> */ |
747 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 750 | .atag_offset = 0x100, |
748 | .map_io = h1940_map_io, | 751 | .map_io = h1940_map_io, |
749 | .reserve = h1940_reserve, | 752 | .reserve = h1940_reserve, |
750 | .init_irq = h1940_init_irq, | 753 | .init_irq = h1940_init_irq, |
751 | .init_machine = h1940_init, | 754 | .init_machine = h1940_init, |
752 | .timer = &s3c24xx_timer, | 755 | .timer = &s3c24xx_timer, |
756 | .restart = s3c2410_restart, | ||
753 | MACHINE_END | 757 | MACHINE_END |