changed Makefile and profiles, added patches for kernel 2.6.24
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 0150-Subject-PATCH-Build-fixes.patch
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.
5
6 ---
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(-)
14
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
19 @@ -6,10 +6,11 @@
20  
21  config CPU_S3C2442
22         bool
23 -       depends on ARCH_S3C2440
24 +       depends on CPU_S3C2440
25         select S3C2410_CLOCK
26         select S3C2410_GPIO
27         select S3C2410_PM if PM
28 +       select S3C2440_DMA if S3C2410_DMA
29         select CPU_S3C244X
30         select CPU_LLSERIAL_S3C2440
31         help
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
37  
38  config CPU_S3C244X
39         bool
40 -       depends on ARCH_S3C2410 && (CPU_S3C2440 || CPU_S3C2442)
41 +       default y if CPU_S3C2440 || CPU_S3C2442
42         help
43           Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems.
44  
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)
50  
51                 pclk = clk_get_rate(clk);
52  
53 -               printk("pclk = %d\n", pclk);
54 +               printk("pclk = %lu\n", pclk);
55  
56                 /* configure clock tick */
57  
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);
61  
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
68 @@ -178,7 +178,7 @@
69  #define S3C2440_DSC1_CS0_4mA    (3<<0)
70  #define S3C2440_DSC1_CS0_MASK   (3<<0)
71  
72 -#endif /* CONFIG_CPU_S3C2440 */
73 +#endif /* CONFIG_CPU_S3C244X */
74  
75  #endif /* __ASM_ARCH_REGS_DSC_H */
76  
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
81 @@ -1,8 +1,6 @@
82  #ifndef _ARM_KEXEC_H
83  #define _ARM_KEXEC_H
84  
85 -#ifdef CONFIG_KEXEC
86 -
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 */
90 @@ -16,6 +14,8 @@
91  
92  #define KEXEC_BOOT_PARAMS_SIZE 1536
93  
94 +#ifdef CONFIG_KEXEC
95 +
96  #define KEXEC_ARM_ATAGS_OFFSET  0x1000
97  #define KEXEC_ARM_ZIMAGE_OFFSET 0x8000
98  
99 @@ -31,3 +31,4 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
100  #endif /* CONFIG_KEXEC */
101  
102  #endif /* _ARM_KEXEC_H */
103 +
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
108 @@ -1,7 +1,6 @@
109  #ifndef LINUX_KEXEC_H
110  #define LINUX_KEXEC_H
111  
112 -#ifdef CONFIG_KEXEC
113  #include <linux/types.h>
114  #include <linux/list.h>
115  #include <linux/linkage.h>
116 @@ -11,6 +10,8 @@
117  #include <linux/elf.h>
118  #include <asm/kexec.h>
119  
120 +#ifdef CONFIG_KEXEC
121 +
122  /* Verify architecture specific macros are defined */
123  
124  #ifndef KEXEC_SOURCE_MEMORY_LIMIT
125 -- 
126 1.5.6.3
127