1 From b7a99580b54809762e4dbe1198dffdf87c93662a Mon Sep 17 00:00:00 2001
2 From: Andrzej Zaborowski <balrog@zabor.org>
3 Date: Fri, 25 Jul 2008 23:06:10 +0100
4 Subject: [PATCH] Subject: [PATCH] Build fixes.
7 arch/arm/mach-s3c2442/Kconfig | 3 ++-
8 arch/arm/plat-s3c24xx/Kconfig | 2 +-
9 arch/arm/plat-s3c24xx/time.c | 4 ++--
10 include/asm-arm/arch-s3c2410/regs-dsc.h | 2 +-
11 include/asm-arm/kexec.h | 5 +++--
12 include/linux/kexec.h | 3 ++-
13 6 files changed, 11 insertions(+), 8 deletions(-)
15 diff --git a/arch/arm/mach-s3c2442/Kconfig b/arch/arm/mach-s3c2442/Kconfig
16 index 6cc68a1..f9aa91c 100644
17 --- a/arch/arm/mach-s3c2442/Kconfig
18 +++ b/arch/arm/mach-s3c2442/Kconfig
23 - depends on ARCH_S3C2440
24 + depends on CPU_S3C2440
27 select S3C2410_PM if PM
28 + select S3C2440_DMA if S3C2410_DMA
30 select CPU_LLSERIAL_S3C2440
32 diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig
33 index 7ee4b82..9e1691f 100644
34 --- a/arch/arm/plat-s3c24xx/Kconfig
35 +++ b/arch/arm/plat-s3c24xx/Kconfig
36 @@ -16,7 +16,7 @@ if PLAT_S3C24XX
40 - depends on ARCH_S3C2410 && (CPU_S3C2440 || CPU_S3C2442)
41 + default y if CPU_S3C2440 || CPU_S3C2442
43 Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems.
45 diff --git a/arch/arm/plat-s3c24xx/time.c b/arch/arm/plat-s3c24xx/time.c
46 index 59e5382..03b8643 100644
47 --- a/arch/arm/plat-s3c24xx/time.c
48 +++ b/arch/arm/plat-s3c24xx/time.c
49 @@ -200,12 +200,12 @@ static void s3c2410_timer_setup (void)
51 pclk = clk_get_rate(clk);
53 - printk("pclk = %d\n", pclk);
54 + printk("pclk = %lu\n", pclk);
56 /* configure clock tick */
58 timer_usec_ticks = timer_mask_usec_ticks(6, pclk);
59 - printk("timer_usec_ticks = %d\n", timer_usec_ticks);
60 + printk("timer_usec_ticks = %lu\n", timer_usec_ticks);
62 tcfg1 &= ~S3C2410_TCFG1_MUX4_MASK;
63 tcfg1 |= S3C2410_TCFG1_MUX4_DIV2;
64 diff --git a/include/asm-arm/arch-s3c2410/regs-dsc.h b/include/asm-arm/arch-s3c2410/regs-dsc.h
65 index 1235df7..f9d0c3d 100644
66 --- a/include/asm-arm/arch-s3c2410/regs-dsc.h
67 +++ b/include/asm-arm/arch-s3c2410/regs-dsc.h
69 #define S3C2440_DSC1_CS0_4mA (3<<0)
70 #define S3C2440_DSC1_CS0_MASK (3<<0)
72 -#endif /* CONFIG_CPU_S3C2440 */
73 +#endif /* CONFIG_CPU_S3C244X */
75 #endif /* __ASM_ARCH_REGS_DSC_H */
77 diff --git a/include/asm-arm/kexec.h b/include/asm-arm/kexec.h
78 index 47fe34d..e656035 100644
79 --- a/include/asm-arm/kexec.h
80 +++ b/include/asm-arm/kexec.h
87 /* Maximum physical address we can use pages from */
88 #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
89 /* Maximum address we can reach in physical address mode */
92 #define KEXEC_BOOT_PARAMS_SIZE 1536
96 #define KEXEC_ARM_ATAGS_OFFSET 0x1000
97 #define KEXEC_ARM_ZIMAGE_OFFSET 0x8000
99 @@ -31,3 +31,4 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
100 #endif /* CONFIG_KEXEC */
102 #endif /* _ARM_KEXEC_H */
104 diff --git a/include/linux/kexec.h b/include/linux/kexec.h
105 index 3265968..f1f9b9a 100644
106 --- a/include/linux/kexec.h
107 +++ b/include/linux/kexec.h
109 #ifndef LINUX_KEXEC_H
110 #define LINUX_KEXEC_H
113 #include <linux/types.h>
114 #include <linux/list.h>
115 #include <linux/linkage.h>
117 #include <linux/elf.h>
118 #include <asm/kexec.h>
122 /* Verify architecture specific macros are defined */
124 #ifndef KEXEC_SOURCE_MEMORY_LIMIT