diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-07 12:36:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-07 12:36:55 -0400 |
commit | 8a2e21038df74c4401f422346b9371a959c21438 (patch) | |
tree | 794986757facadd0b92c723c6dc561ca2e8d0dc5 | |
parent | 7244d545c123ff33a3a5bff7fcb96a07778c32d1 (diff) | |
parent | 9a412847fbe396563acf2a78d5830c9c6c5a5d43 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
sh: Fix se73180 platform device registration.
sh: ioremap() through PMB needs asm/mmu.h.
sh: voyagergx: Fix build warnings.
sh: Fix SH4-202 clock fwk set_rate() mismatch.
sh: microdev: Fix compile warnings.
sh: Fix in_nmi symbol build error.
-rw-r--r-- | arch/sh/boards/se/73180/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/superh/microdev/irq.c | 1 | ||||
-rw-r--r-- | arch/sh/cchips/voyagergx/irq.c | 13 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh3/entry.S | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4/clock-sh4-202.c | 2 | ||||
-rw-r--r-- | arch/sh/mm/ioremap.c | 1 | ||||
-rw-r--r-- | include/asm-sh/se73180.h | 11 |
7 files changed, 20 insertions, 14 deletions
diff --git a/arch/sh/boards/se/73180/setup.c b/arch/sh/boards/se/73180/setup.c index 911ce1cdbd7f..e143017c8975 100644 --- a/arch/sh/boards/se/73180/setup.c +++ b/arch/sh/boards/se/73180/setup.c | |||
@@ -38,8 +38,8 @@ static struct platform_device *se73180_devices[] __initdata = { | |||
38 | 38 | ||
39 | static int __init se73180_devices_setup(void) | 39 | static int __init se73180_devices_setup(void) |
40 | { | 40 | { |
41 | return platform_add_devices(sh7343se_platform_devices, | 41 | return platform_add_devices(se73180_devices, |
42 | ARRAY_SIZE(sh7343se_platform_devices)); | 42 | ARRAY_SIZE(se73180_devices)); |
43 | } | 43 | } |
44 | __initcall(se73180_devices_setup); | 44 | __initcall(se73180_devices_setup); |
45 | 45 | ||
diff --git a/arch/sh/boards/superh/microdev/irq.c b/arch/sh/boards/superh/microdev/irq.c index cc1cb04fa618..4d335077a3ff 100644 --- a/arch/sh/boards/superh/microdev/irq.c +++ b/arch/sh/boards/superh/microdev/irq.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/interrupt.h> | ||
14 | #include <asm/system.h> | 15 | #include <asm/system.h> |
15 | #include <asm/io.h> | 16 | #include <asm/io.h> |
16 | #include <asm/microdev.h> | 17 | #include <asm/microdev.h> |
diff --git a/arch/sh/cchips/voyagergx/irq.c b/arch/sh/cchips/voyagergx/irq.c index 70f12907647f..d70e5c8461b5 100644 --- a/arch/sh/cchips/voyagergx/irq.c +++ b/arch/sh/cchips/voyagergx/irq.c | |||
@@ -28,7 +28,7 @@ static void disable_voyagergx_irq(unsigned int irq) | |||
28 | unsigned long val; | 28 | unsigned long val; |
29 | unsigned long mask = 1 << (irq - VOYAGER_IRQ_BASE); | 29 | unsigned long mask = 1 << (irq - VOYAGER_IRQ_BASE); |
30 | 30 | ||
31 | pr_debug("disable_voyagergx_irq(%d): mask=%x\n", irq, mask); | 31 | pr_debug("disable_voyagergx_irq(%d): mask=%lx\n", irq, mask); |
32 | val = readl((void __iomem *)VOYAGER_INT_MASK); | 32 | val = readl((void __iomem *)VOYAGER_INT_MASK); |
33 | val &= ~mask; | 33 | val &= ~mask; |
34 | writel(val, (void __iomem *)VOYAGER_INT_MASK); | 34 | writel(val, (void __iomem *)VOYAGER_INT_MASK); |
@@ -39,7 +39,7 @@ static void enable_voyagergx_irq(unsigned int irq) | |||
39 | unsigned long val; | 39 | unsigned long val; |
40 | unsigned long mask = 1 << (irq - VOYAGER_IRQ_BASE); | 40 | unsigned long mask = 1 << (irq - VOYAGER_IRQ_BASE); |
41 | 41 | ||
42 | pr_debug("disable_voyagergx_irq(%d): mask=%x\n", irq, mask); | 42 | pr_debug("disable_voyagergx_irq(%d): mask=%lx\n", irq, mask); |
43 | val = readl((void __iomem *)VOYAGER_INT_MASK); | 43 | val = readl((void __iomem *)VOYAGER_INT_MASK); |
44 | val |= mask; | 44 | val |= mask; |
45 | writel(val, (void __iomem *)VOYAGER_INT_MASK); | 45 | writel(val, (void __iomem *)VOYAGER_INT_MASK); |
@@ -125,11 +125,12 @@ int voyagergx_irq_demux(int irq) | |||
125 | i = 17; | 125 | i = 17; |
126 | else | 126 | else |
127 | printk("Unexpected IRQ irq = %d status = 0x%08lx\n", irq, val); | 127 | printk("Unexpected IRQ irq = %d status = 0x%08lx\n", irq, val); |
128 | pr_debug("voyagergx_irq_demux %d \n", i); | 128 | pr_debug("voyagergx_irq_demux %ld \n", i); |
129 | if (i < VOYAGER_IRQ_NUM) { | 129 | if (i < VOYAGER_IRQ_NUM) { |
130 | irq = VOYAGER_IRQ_BASE + i; | 130 | irq = VOYAGER_IRQ_BASE + i; |
131 | if (voyagergx_demux[i].func != 0) | 131 | if (voyagergx_demux[i].func != 0) |
132 | irq = voyagergx_demux[i].func(irq, voyagergx_demux[i].dev); | 132 | irq = voyagergx_demux[i].func(irq, |
133 | voyagergx_demux[i].dev); | ||
133 | } | 134 | } |
134 | } | 135 | } |
135 | return irq; | 136 | return irq; |
diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S index 659cc081e5e7..b0b59d4a33ca 100644 --- a/arch/sh/kernel/cpu/sh3/entry.S +++ b/arch/sh/kernel/cpu/sh3/entry.S | |||
@@ -320,7 +320,9 @@ skip_restore: | |||
320 | 320 | ||
321 | .align 2 | 321 | .align 2 |
322 | 5: .long 0x00001000 ! DSP | 322 | 5: .long 0x00001000 ! DSP |
323 | #ifdef CONFIG_KGDB_NMI | ||
323 | 6: .long in_nmi | 324 | 6: .long in_nmi |
325 | #endif | ||
324 | 7: .long 0x30000000 | 326 | 7: .long 0x30000000 |
325 | 327 | ||
326 | ! common exception handler | 328 | ! common exception handler |
diff --git a/arch/sh/kernel/cpu/sh4/clock-sh4-202.c b/arch/sh/kernel/cpu/sh4/clock-sh4-202.c index fcb2c41bc34e..a33429463e96 100644 --- a/arch/sh/kernel/cpu/sh4/clock-sh4-202.c +++ b/arch/sh/kernel/cpu/sh4/clock-sh4-202.c | |||
@@ -111,7 +111,7 @@ static int shoc_clk_verify_rate(struct clk *clk, unsigned long rate) | |||
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | static int shoc_clk_set_rate(struct clk *clk, unsigned long rate) | 114 | static int shoc_clk_set_rate(struct clk *clk, unsigned long rate, int algo_id) |
115 | { | 115 | { |
116 | unsigned long frqcr3; | 116 | unsigned long frqcr3; |
117 | unsigned int tmp; | 117 | unsigned int tmp; |
diff --git a/arch/sh/mm/ioremap.c b/arch/sh/mm/ioremap.c index be03d74e99cb..0c7b7e33abdc 100644 --- a/arch/sh/mm/ioremap.c +++ b/arch/sh/mm/ioremap.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <asm/addrspace.h> | 22 | #include <asm/addrspace.h> |
23 | #include <asm/cacheflush.h> | 23 | #include <asm/cacheflush.h> |
24 | #include <asm/tlbflush.h> | 24 | #include <asm/tlbflush.h> |
25 | #include <asm/mmu.h> | ||
25 | 26 | ||
26 | /* | 27 | /* |
27 | * Remap an arbitrary physical address space into the kernel virtual | 28 | * Remap an arbitrary physical address space into the kernel virtual |
diff --git a/include/asm-sh/se73180.h b/include/asm-sh/se73180.h index 3a4acb3e38a1..907c062b4c9a 100644 --- a/include/asm-sh/se73180.h +++ b/include/asm-sh/se73180.h | |||
@@ -1,9 +1,7 @@ | |||
1 | #ifndef __ASM_SH_HITACHI_SE73180_H | 1 | #ifndef __ASM_SH_SE73180_H |
2 | #define __ASM_SH_HITACHI_SE73180_H | 2 | #define __ASM_SH_SE73180_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * include/asm-sh/se/se73180.h | ||
6 | * | ||
7 | * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp> | 5 | * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp> |
8 | * | 6 | * |
9 | * SH-Mobile SolutionEngine 73180 support | 7 | * SH-Mobile SolutionEngine 73180 support |
@@ -62,4 +60,7 @@ | |||
62 | #define __IO_PREFIX sh73180se | 60 | #define __IO_PREFIX sh73180se |
63 | #include <asm/io_generic.h> | 61 | #include <asm/io_generic.h> |
64 | 62 | ||
65 | #endif /* __ASM_SH_HITACHI_SE73180_H */ | 63 | /* arch/sh/boards/se/73180/irq.c */ |
64 | int shmse_irq_demux(int irq); | ||
65 | |||
66 | #endif /* __ASM_SH_SE73180_H */ | ||