diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-03-08 19:51:57 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-03-08 19:51:57 -0500 |
commit | 59603b9ae426e968d452f9325cdcff308573dee7 (patch) | |
tree | f54c52cbf4874a28f88c65fce659daee20b0f41f /arch/powerpc/platforms | |
parent | 57d54889cd00db2752994b389ba714138652e60c (diff) | |
parent | a11106544f33c104706ae42d27219a409b67478e (diff) |
Merge commit 'kumar/next' into merge
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/socrates_fpga_pic.c | 34 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/Kconfig | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_gpio.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_pic.c | 20 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_ppc9a.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_sbc310.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_sbc610.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/Kconfig.cputype | 10 |
9 files changed, 71 insertions, 61 deletions
diff --git a/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c b/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c index 9d962d7c72c1..d4a09f8705b5 100644 --- a/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +++ b/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include "pq2.h" | 25 | #include "pq2.h" |
26 | 26 | ||
27 | static DEFINE_SPINLOCK(pci_pic_lock); | 27 | static DEFINE_RAW_SPINLOCK(pci_pic_lock); |
28 | 28 | ||
29 | struct pq2ads_pci_pic { | 29 | struct pq2ads_pci_pic { |
30 | struct device_node *node; | 30 | struct device_node *node; |
@@ -45,12 +45,12 @@ static void pq2ads_pci_mask_irq(unsigned int virq) | |||
45 | 45 | ||
46 | if (irq != -1) { | 46 | if (irq != -1) { |
47 | unsigned long flags; | 47 | unsigned long flags; |
48 | spin_lock_irqsave(&pci_pic_lock, flags); | 48 | raw_spin_lock_irqsave(&pci_pic_lock, flags); |
49 | 49 | ||
50 | setbits32(&priv->regs->mask, 1 << irq); | 50 | setbits32(&priv->regs->mask, 1 << irq); |
51 | mb(); | 51 | mb(); |
52 | 52 | ||
53 | spin_unlock_irqrestore(&pci_pic_lock, flags); | 53 | raw_spin_unlock_irqrestore(&pci_pic_lock, flags); |
54 | } | 54 | } |
55 | } | 55 | } |
56 | 56 | ||
@@ -62,9 +62,9 @@ static void pq2ads_pci_unmask_irq(unsigned int virq) | |||
62 | if (irq != -1) { | 62 | if (irq != -1) { |
63 | unsigned long flags; | 63 | unsigned long flags; |
64 | 64 | ||
65 | spin_lock_irqsave(&pci_pic_lock, flags); | 65 | raw_spin_lock_irqsave(&pci_pic_lock, flags); |
66 | clrbits32(&priv->regs->mask, 1 << irq); | 66 | clrbits32(&priv->regs->mask, 1 << irq); |
67 | spin_unlock_irqrestore(&pci_pic_lock, flags); | 67 | raw_spin_unlock_irqrestore(&pci_pic_lock, flags); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
diff --git a/arch/powerpc/platforms/85xx/socrates_fpga_pic.c b/arch/powerpc/platforms/85xx/socrates_fpga_pic.c index 42e87f08aa01..d48527ffc425 100644 --- a/arch/powerpc/platforms/85xx/socrates_fpga_pic.c +++ b/arch/powerpc/platforms/85xx/socrates_fpga_pic.c | |||
@@ -50,7 +50,7 @@ static struct socrates_fpga_irq_info fpga_irqs[SOCRATES_FPGA_NUM_IRQS] = { | |||
50 | 50 | ||
51 | #define socrates_fpga_irq_to_hw(virq) ((unsigned int)irq_map[virq].hwirq) | 51 | #define socrates_fpga_irq_to_hw(virq) ((unsigned int)irq_map[virq].hwirq) |
52 | 52 | ||
53 | static DEFINE_SPINLOCK(socrates_fpga_pic_lock); | 53 | static DEFINE_RAW_SPINLOCK(socrates_fpga_pic_lock); |
54 | 54 | ||
55 | static void __iomem *socrates_fpga_pic_iobase; | 55 | static void __iomem *socrates_fpga_pic_iobase; |
56 | static struct irq_host *socrates_fpga_pic_irq_host; | 56 | static struct irq_host *socrates_fpga_pic_irq_host; |
@@ -80,9 +80,9 @@ static inline unsigned int socrates_fpga_pic_get_irq(unsigned int irq) | |||
80 | if (i == 3) | 80 | if (i == 3) |
81 | return NO_IRQ; | 81 | return NO_IRQ; |
82 | 82 | ||
83 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 83 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
84 | cause = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(i)); | 84 | cause = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(i)); |
85 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 85 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
86 | for (i = SOCRATES_FPGA_NUM_IRQS - 1; i >= 0; i--) { | 86 | for (i = SOCRATES_FPGA_NUM_IRQS - 1; i >= 0; i--) { |
87 | if (cause >> (i + 16)) | 87 | if (cause >> (i + 16)) |
88 | break; | 88 | break; |
@@ -116,12 +116,12 @@ static void socrates_fpga_pic_ack(unsigned int virq) | |||
116 | hwirq = socrates_fpga_irq_to_hw(virq); | 116 | hwirq = socrates_fpga_irq_to_hw(virq); |
117 | 117 | ||
118 | irq_line = fpga_irqs[hwirq].irq_line; | 118 | irq_line = fpga_irqs[hwirq].irq_line; |
119 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 119 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
120 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) | 120 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) |
121 | & SOCRATES_FPGA_IRQ_MASK; | 121 | & SOCRATES_FPGA_IRQ_MASK; |
122 | mask |= (1 << (hwirq + 16)); | 122 | mask |= (1 << (hwirq + 16)); |
123 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); | 123 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); |
124 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 124 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
125 | } | 125 | } |
126 | 126 | ||
127 | static void socrates_fpga_pic_mask(unsigned int virq) | 127 | static void socrates_fpga_pic_mask(unsigned int virq) |
@@ -134,12 +134,12 @@ static void socrates_fpga_pic_mask(unsigned int virq) | |||
134 | hwirq = socrates_fpga_irq_to_hw(virq); | 134 | hwirq = socrates_fpga_irq_to_hw(virq); |
135 | 135 | ||
136 | irq_line = fpga_irqs[hwirq].irq_line; | 136 | irq_line = fpga_irqs[hwirq].irq_line; |
137 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 137 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
138 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) | 138 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) |
139 | & SOCRATES_FPGA_IRQ_MASK; | 139 | & SOCRATES_FPGA_IRQ_MASK; |
140 | mask &= ~(1 << hwirq); | 140 | mask &= ~(1 << hwirq); |
141 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); | 141 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); |
142 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 142 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
143 | } | 143 | } |
144 | 144 | ||
145 | static void socrates_fpga_pic_mask_ack(unsigned int virq) | 145 | static void socrates_fpga_pic_mask_ack(unsigned int virq) |
@@ -152,13 +152,13 @@ static void socrates_fpga_pic_mask_ack(unsigned int virq) | |||
152 | hwirq = socrates_fpga_irq_to_hw(virq); | 152 | hwirq = socrates_fpga_irq_to_hw(virq); |
153 | 153 | ||
154 | irq_line = fpga_irqs[hwirq].irq_line; | 154 | irq_line = fpga_irqs[hwirq].irq_line; |
155 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 155 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
156 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) | 156 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) |
157 | & SOCRATES_FPGA_IRQ_MASK; | 157 | & SOCRATES_FPGA_IRQ_MASK; |
158 | mask &= ~(1 << hwirq); | 158 | mask &= ~(1 << hwirq); |
159 | mask |= (1 << (hwirq + 16)); | 159 | mask |= (1 << (hwirq + 16)); |
160 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); | 160 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); |
161 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 161 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
162 | } | 162 | } |
163 | 163 | ||
164 | static void socrates_fpga_pic_unmask(unsigned int virq) | 164 | static void socrates_fpga_pic_unmask(unsigned int virq) |
@@ -171,12 +171,12 @@ static void socrates_fpga_pic_unmask(unsigned int virq) | |||
171 | hwirq = socrates_fpga_irq_to_hw(virq); | 171 | hwirq = socrates_fpga_irq_to_hw(virq); |
172 | 172 | ||
173 | irq_line = fpga_irqs[hwirq].irq_line; | 173 | irq_line = fpga_irqs[hwirq].irq_line; |
174 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 174 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
175 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) | 175 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) |
176 | & SOCRATES_FPGA_IRQ_MASK; | 176 | & SOCRATES_FPGA_IRQ_MASK; |
177 | mask |= (1 << hwirq); | 177 | mask |= (1 << hwirq); |
178 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); | 178 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); |
179 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 179 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
180 | } | 180 | } |
181 | 181 | ||
182 | static void socrates_fpga_pic_eoi(unsigned int virq) | 182 | static void socrates_fpga_pic_eoi(unsigned int virq) |
@@ -189,12 +189,12 @@ static void socrates_fpga_pic_eoi(unsigned int virq) | |||
189 | hwirq = socrates_fpga_irq_to_hw(virq); | 189 | hwirq = socrates_fpga_irq_to_hw(virq); |
190 | 190 | ||
191 | irq_line = fpga_irqs[hwirq].irq_line; | 191 | irq_line = fpga_irqs[hwirq].irq_line; |
192 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 192 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
193 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) | 193 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) |
194 | & SOCRATES_FPGA_IRQ_MASK; | 194 | & SOCRATES_FPGA_IRQ_MASK; |
195 | mask |= (1 << (hwirq + 16)); | 195 | mask |= (1 << (hwirq + 16)); |
196 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); | 196 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(irq_line), mask); |
197 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 197 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
198 | } | 198 | } |
199 | 199 | ||
200 | static int socrates_fpga_pic_set_type(unsigned int virq, | 200 | static int socrates_fpga_pic_set_type(unsigned int virq, |
@@ -220,14 +220,14 @@ static int socrates_fpga_pic_set_type(unsigned int virq, | |||
220 | default: | 220 | default: |
221 | return -EINVAL; | 221 | return -EINVAL; |
222 | } | 222 | } |
223 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 223 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
224 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQCFG); | 224 | mask = socrates_fpga_pic_read(FPGA_PIC_IRQCFG); |
225 | if (polarity) | 225 | if (polarity) |
226 | mask |= (1 << hwirq); | 226 | mask |= (1 << hwirq); |
227 | else | 227 | else |
228 | mask &= ~(1 << hwirq); | 228 | mask &= ~(1 << hwirq); |
229 | socrates_fpga_pic_write(FPGA_PIC_IRQCFG, mask); | 229 | socrates_fpga_pic_write(FPGA_PIC_IRQCFG, mask); |
230 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 230 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
231 | return 0; | 231 | return 0; |
232 | } | 232 | } |
233 | 233 | ||
@@ -314,14 +314,14 @@ void socrates_fpga_pic_init(struct device_node *pic) | |||
314 | 314 | ||
315 | socrates_fpga_pic_iobase = of_iomap(pic, 0); | 315 | socrates_fpga_pic_iobase = of_iomap(pic, 0); |
316 | 316 | ||
317 | spin_lock_irqsave(&socrates_fpga_pic_lock, flags); | 317 | raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags); |
318 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(0), | 318 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(0), |
319 | SOCRATES_FPGA_IRQ_MASK << 16); | 319 | SOCRATES_FPGA_IRQ_MASK << 16); |
320 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(1), | 320 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(1), |
321 | SOCRATES_FPGA_IRQ_MASK << 16); | 321 | SOCRATES_FPGA_IRQ_MASK << 16); |
322 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(2), | 322 | socrates_fpga_pic_write(FPGA_PIC_IRQMASK(2), |
323 | SOCRATES_FPGA_IRQ_MASK << 16); | 323 | SOCRATES_FPGA_IRQ_MASK << 16); |
324 | spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); | 324 | raw_spin_unlock_irqrestore(&socrates_fpga_pic_lock, flags); |
325 | 325 | ||
326 | pr_info("FPGA PIC: Setting up Socrates FPGA PIC\n"); | 326 | pr_info("FPGA PIC: Setting up Socrates FPGA PIC\n"); |
327 | } | 327 | } |
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig index 2bbfd530d6d8..fbe9f3621424 100644 --- a/arch/powerpc/platforms/86xx/Kconfig +++ b/arch/powerpc/platforms/86xx/Kconfig | |||
@@ -33,32 +33,32 @@ config MPC8610_HPCD | |||
33 | This option enables support for the MPC8610 HPCD board. | 33 | This option enables support for the MPC8610 HPCD board. |
34 | 34 | ||
35 | config GEF_PPC9A | 35 | config GEF_PPC9A |
36 | bool "GE Fanuc PPC9A" | 36 | bool "GE PPC9A" |
37 | select DEFAULT_UIMAGE | 37 | select DEFAULT_UIMAGE |
38 | select MMIO_NVRAM | 38 | select MMIO_NVRAM |
39 | select GENERIC_GPIO | 39 | select GENERIC_GPIO |
40 | select ARCH_REQUIRE_GPIOLIB | 40 | select ARCH_REQUIRE_GPIOLIB |
41 | help | 41 | help |
42 | This option enables support for GE Fanuc's PPC9A. | 42 | This option enables support for the GE PPC9A. |
43 | 43 | ||
44 | config GEF_SBC310 | 44 | config GEF_SBC310 |
45 | bool "GE Fanuc SBC310" | 45 | bool "GE SBC310" |
46 | select DEFAULT_UIMAGE | 46 | select DEFAULT_UIMAGE |
47 | select MMIO_NVRAM | 47 | select MMIO_NVRAM |
48 | select GENERIC_GPIO | 48 | select GENERIC_GPIO |
49 | select ARCH_REQUIRE_GPIOLIB | 49 | select ARCH_REQUIRE_GPIOLIB |
50 | help | 50 | help |
51 | This option enables support for GE Fanuc's SBC310. | 51 | This option enables support for the GE SBC310. |
52 | 52 | ||
53 | config GEF_SBC610 | 53 | config GEF_SBC610 |
54 | bool "GE Fanuc SBC610" | 54 | bool "GE SBC610" |
55 | select DEFAULT_UIMAGE | 55 | select DEFAULT_UIMAGE |
56 | select MMIO_NVRAM | 56 | select MMIO_NVRAM |
57 | select GENERIC_GPIO | 57 | select GENERIC_GPIO |
58 | select ARCH_REQUIRE_GPIOLIB | 58 | select ARCH_REQUIRE_GPIOLIB |
59 | select HAS_RAPIDIO | 59 | select HAS_RAPIDIO |
60 | help | 60 | help |
61 | This option enables support for GE Fanuc's SBC610. | 61 | This option enables support for the GE SBC610. |
62 | 62 | ||
63 | endif | 63 | endif |
64 | 64 | ||
diff --git a/arch/powerpc/platforms/86xx/gef_gpio.c b/arch/powerpc/platforms/86xx/gef_gpio.c index b2ea8875adba..11f7b2b6f49e 100644 --- a/arch/powerpc/platforms/86xx/gef_gpio.c +++ b/arch/powerpc/platforms/86xx/gef_gpio.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * Driver for GE Fanuc's FPGA based GPIO pins | 2 | * Driver for GE FPGA based GPIO |
3 | * | 3 | * |
4 | * Author: Martyn Welch <martyn.welch@gefanuc.com> | 4 | * Author: Martyn Welch <martyn.welch@ge.com> |
5 | * | 5 | * |
6 | * 2008 (c) GE Fanuc Intelligent Platforms Embedded Systems, Inc. | 6 | * 2008 (c) GE Intelligent Platforms Embedded Systems, Inc. |
7 | * | 7 | * |
8 | * This file is licensed under the terms of the GNU General Public License | 8 | * This file is licensed under the terms of the GNU General Public License |
9 | * version 2. This program is licensed "as is" without any warranty of any | 9 | * version 2. This program is licensed "as is" without any warranty of any |
@@ -164,6 +164,6 @@ static int __init gef_gpio_init(void) | |||
164 | }; | 164 | }; |
165 | arch_initcall(gef_gpio_init); | 165 | arch_initcall(gef_gpio_init); |
166 | 166 | ||
167 | MODULE_DESCRIPTION("GE Fanuc I/O FPGA GPIO driver"); | 167 | MODULE_DESCRIPTION("GE I/O FPGA GPIO driver"); |
168 | MODULE_AUTHOR("Martyn Welch <martyn.welch@gefanuc.com"); | 168 | MODULE_AUTHOR("Martyn Welch <martyn.welch@ge.com"); |
169 | MODULE_LICENSE("GPL"); | 169 | MODULE_LICENSE("GPL"); |
diff --git a/arch/powerpc/platforms/86xx/gef_pic.c b/arch/powerpc/platforms/86xx/gef_pic.c index 0110a8736d33..6df9e2561c06 100644 --- a/arch/powerpc/platforms/86xx/gef_pic.c +++ b/arch/powerpc/platforms/86xx/gef_pic.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * Interrupt handling for GE Fanuc's FPGA based PIC | 2 | * Interrupt handling for GE FPGA based PIC |
3 | * | 3 | * |
4 | * Author: Martyn Welch <martyn.welch@gefanuc.com> | 4 | * Author: Martyn Welch <martyn.welch@ge.com> |
5 | * | 5 | * |
6 | * 2008 (c) GE Fanuc Intelligent Platforms Embedded Systems, Inc. | 6 | * 2008 (c) GE Intelligent Platforms Embedded Systems, Inc. |
7 | * | 7 | * |
8 | * This file is licensed under the terms of the GNU General Public License | 8 | * This file is licensed under the terms of the GNU General Public License |
9 | * version 2. This program is licensed "as is" without any warranty of any | 9 | * version 2. This program is licensed "as is" without any warranty of any |
@@ -49,7 +49,7 @@ | |||
49 | #define gef_irq_to_hw(virq) ((unsigned int)irq_map[virq].hwirq) | 49 | #define gef_irq_to_hw(virq) ((unsigned int)irq_map[virq].hwirq) |
50 | 50 | ||
51 | 51 | ||
52 | static DEFINE_SPINLOCK(gef_pic_lock); | 52 | static DEFINE_RAW_SPINLOCK(gef_pic_lock); |
53 | 53 | ||
54 | static void __iomem *gef_pic_irq_reg_base; | 54 | static void __iomem *gef_pic_irq_reg_base; |
55 | static struct irq_host *gef_pic_irq_host; | 55 | static struct irq_host *gef_pic_irq_host; |
@@ -118,11 +118,11 @@ static void gef_pic_mask(unsigned int virq) | |||
118 | 118 | ||
119 | hwirq = gef_irq_to_hw(virq); | 119 | hwirq = gef_irq_to_hw(virq); |
120 | 120 | ||
121 | spin_lock_irqsave(&gef_pic_lock, flags); | 121 | raw_spin_lock_irqsave(&gef_pic_lock, flags); |
122 | mask = in_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0)); | 122 | mask = in_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0)); |
123 | mask &= ~(1 << hwirq); | 123 | mask &= ~(1 << hwirq); |
124 | out_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0), mask); | 124 | out_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0), mask); |
125 | spin_unlock_irqrestore(&gef_pic_lock, flags); | 125 | raw_spin_unlock_irqrestore(&gef_pic_lock, flags); |
126 | } | 126 | } |
127 | 127 | ||
128 | static void gef_pic_mask_ack(unsigned int virq) | 128 | static void gef_pic_mask_ack(unsigned int virq) |
@@ -141,11 +141,11 @@ static void gef_pic_unmask(unsigned int virq) | |||
141 | 141 | ||
142 | hwirq = gef_irq_to_hw(virq); | 142 | hwirq = gef_irq_to_hw(virq); |
143 | 143 | ||
144 | spin_lock_irqsave(&gef_pic_lock, flags); | 144 | raw_spin_lock_irqsave(&gef_pic_lock, flags); |
145 | mask = in_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0)); | 145 | mask = in_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0)); |
146 | mask |= (1 << hwirq); | 146 | mask |= (1 << hwirq); |
147 | out_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0), mask); | 147 | out_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_MASK(0), mask); |
148 | spin_unlock_irqrestore(&gef_pic_lock, flags); | 148 | raw_spin_unlock_irqrestore(&gef_pic_lock, flags); |
149 | } | 149 | } |
150 | 150 | ||
151 | static struct irq_chip gef_pic_chip = { | 151 | static struct irq_chip gef_pic_chip = { |
@@ -199,7 +199,7 @@ void __init gef_pic_init(struct device_node *np) | |||
199 | /* Map the devices registers into memory */ | 199 | /* Map the devices registers into memory */ |
200 | gef_pic_irq_reg_base = of_iomap(np, 0); | 200 | gef_pic_irq_reg_base = of_iomap(np, 0); |
201 | 201 | ||
202 | spin_lock_irqsave(&gef_pic_lock, flags); | 202 | raw_spin_lock_irqsave(&gef_pic_lock, flags); |
203 | 203 | ||
204 | /* Initialise everything as masked. */ | 204 | /* Initialise everything as masked. */ |
205 | out_be32(gef_pic_irq_reg_base + GEF_PIC_CPU0_INTR_MASK, 0); | 205 | out_be32(gef_pic_irq_reg_base + GEF_PIC_CPU0_INTR_MASK, 0); |
@@ -208,7 +208,7 @@ void __init gef_pic_init(struct device_node *np) | |||
208 | out_be32(gef_pic_irq_reg_base + GEF_PIC_CPU0_MCP_MASK, 0); | 208 | out_be32(gef_pic_irq_reg_base + GEF_PIC_CPU0_MCP_MASK, 0); |
209 | out_be32(gef_pic_irq_reg_base + GEF_PIC_CPU1_MCP_MASK, 0); | 209 | out_be32(gef_pic_irq_reg_base + GEF_PIC_CPU1_MCP_MASK, 0); |
210 | 210 | ||
211 | spin_unlock_irqrestore(&gef_pic_lock, flags); | 211 | raw_spin_unlock_irqrestore(&gef_pic_lock, flags); |
212 | 212 | ||
213 | /* Map controller */ | 213 | /* Map controller */ |
214 | gef_pic_cascade_irq = irq_of_parse_and_map(np, 0); | 214 | gef_pic_cascade_irq = irq_of_parse_and_map(np, 0); |
diff --git a/arch/powerpc/platforms/86xx/gef_ppc9a.c b/arch/powerpc/platforms/86xx/gef_ppc9a.c index a792e5d85813..60ce07e39100 100644 --- a/arch/powerpc/platforms/86xx/gef_ppc9a.c +++ b/arch/powerpc/platforms/86xx/gef_ppc9a.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * GE Fanuc PPC9A board support | 2 | * GE PPC9A board support |
3 | * | 3 | * |
4 | * Author: Martyn Welch <martyn.welch@gefanuc.com> | 4 | * Author: Martyn Welch <martyn.welch@ge.com> |
5 | * | 5 | * |
6 | * Copyright 2008 GE Fanuc Intelligent Platforms Embedded Systems, Inc. | 6 | * Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms of the GNU General Public License as published by the | 9 | * under the terms of the GNU General Public License as published by the |
@@ -82,7 +82,7 @@ static void __init gef_ppc9a_setup_arch(void) | |||
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | printk(KERN_INFO "GE Fanuc Intelligent Platforms PPC9A 6U VME SBC\n"); | 85 | printk(KERN_INFO "GE Intelligent Platforms PPC9A 6U VME SBC\n"); |
86 | 86 | ||
87 | #ifdef CONFIG_SMP | 87 | #ifdef CONFIG_SMP |
88 | mpc86xx_smp_init(); | 88 | mpc86xx_smp_init(); |
@@ -151,7 +151,7 @@ static void gef_ppc9a_show_cpuinfo(struct seq_file *m) | |||
151 | { | 151 | { |
152 | uint svid = mfspr(SPRN_SVR); | 152 | uint svid = mfspr(SPRN_SVR); |
153 | 153 | ||
154 | seq_printf(m, "Vendor\t\t: GE Fanuc Intelligent Platforms\n"); | 154 | seq_printf(m, "Vendor\t\t: GE Intelligent Platforms\n"); |
155 | 155 | ||
156 | seq_printf(m, "Revision\t: %u%c\n", gef_ppc9a_get_pcb_rev(), | 156 | seq_printf(m, "Revision\t: %u%c\n", gef_ppc9a_get_pcb_rev(), |
157 | ('A' + gef_ppc9a_get_board_rev())); | 157 | ('A' + gef_ppc9a_get_board_rev())); |
@@ -235,7 +235,7 @@ static int __init declare_of_platform_devices(void) | |||
235 | machine_device_initcall(gef_ppc9a, declare_of_platform_devices); | 235 | machine_device_initcall(gef_ppc9a, declare_of_platform_devices); |
236 | 236 | ||
237 | define_machine(gef_ppc9a) { | 237 | define_machine(gef_ppc9a) { |
238 | .name = "GE Fanuc PPC9A", | 238 | .name = "GE PPC9A", |
239 | .probe = gef_ppc9a_probe, | 239 | .probe = gef_ppc9a_probe, |
240 | .setup_arch = gef_ppc9a_setup_arch, | 240 | .setup_arch = gef_ppc9a_setup_arch, |
241 | .init_IRQ = gef_ppc9a_init_irq, | 241 | .init_IRQ = gef_ppc9a_init_irq, |
diff --git a/arch/powerpc/platforms/86xx/gef_sbc310.c b/arch/powerpc/platforms/86xx/gef_sbc310.c index 6a1a613836c2..3ecee25bf3ed 100644 --- a/arch/powerpc/platforms/86xx/gef_sbc310.c +++ b/arch/powerpc/platforms/86xx/gef_sbc310.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * GE Fanuc SBC310 board support | 2 | * GE SBC310 board support |
3 | * | 3 | * |
4 | * Author: Martyn Welch <martyn.welch@gefanuc.com> | 4 | * Author: Martyn Welch <martyn.welch@ge.com> |
5 | * | 5 | * |
6 | * Copyright 2008 GE Fanuc Intelligent Platforms Embedded Systems, Inc. | 6 | * Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms of the GNU General Public License as published by the | 9 | * under the terms of the GNU General Public License as published by the |
@@ -82,7 +82,7 @@ static void __init gef_sbc310_setup_arch(void) | |||
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | printk(KERN_INFO "GE Fanuc Intelligent Platforms SBC310 6U VPX SBC\n"); | 85 | printk(KERN_INFO "GE Intelligent Platforms SBC310 6U VPX SBC\n"); |
86 | 86 | ||
87 | #ifdef CONFIG_SMP | 87 | #ifdef CONFIG_SMP |
88 | mpc86xx_smp_init(); | 88 | mpc86xx_smp_init(); |
@@ -142,7 +142,7 @@ static void gef_sbc310_show_cpuinfo(struct seq_file *m) | |||
142 | { | 142 | { |
143 | uint svid = mfspr(SPRN_SVR); | 143 | uint svid = mfspr(SPRN_SVR); |
144 | 144 | ||
145 | seq_printf(m, "Vendor\t\t: GE Fanuc Intelligent Platforms\n"); | 145 | seq_printf(m, "Vendor\t\t: GE Intelligent Platforms\n"); |
146 | 146 | ||
147 | seq_printf(m, "Board ID\t: 0x%2.2x\n", gef_sbc310_get_board_id()); | 147 | seq_printf(m, "Board ID\t: 0x%2.2x\n", gef_sbc310_get_board_id()); |
148 | seq_printf(m, "Revision\t: %u%c\n", gef_sbc310_get_pcb_rev(), | 148 | seq_printf(m, "Revision\t: %u%c\n", gef_sbc310_get_pcb_rev(), |
@@ -223,7 +223,7 @@ static int __init declare_of_platform_devices(void) | |||
223 | machine_device_initcall(gef_sbc310, declare_of_platform_devices); | 223 | machine_device_initcall(gef_sbc310, declare_of_platform_devices); |
224 | 224 | ||
225 | define_machine(gef_sbc310) { | 225 | define_machine(gef_sbc310) { |
226 | .name = "GE Fanuc SBC310", | 226 | .name = "GE SBC310", |
227 | .probe = gef_sbc310_probe, | 227 | .probe = gef_sbc310_probe, |
228 | .setup_arch = gef_sbc310_setup_arch, | 228 | .setup_arch = gef_sbc310_setup_arch, |
229 | .init_IRQ = gef_sbc310_init_irq, | 229 | .init_IRQ = gef_sbc310_init_irq, |
diff --git a/arch/powerpc/platforms/86xx/gef_sbc610.c b/arch/powerpc/platforms/86xx/gef_sbc610.c index e10688a0fc4e..5090d608d9ee 100644 --- a/arch/powerpc/platforms/86xx/gef_sbc610.c +++ b/arch/powerpc/platforms/86xx/gef_sbc610.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * GE Fanuc SBC610 board support | 2 | * GE SBC610 board support |
3 | * | 3 | * |
4 | * Author: Martyn Welch <martyn.welch@gefanuc.com> | 4 | * Author: Martyn Welch <martyn.welch@ge.com> |
5 | * | 5 | * |
6 | * Copyright 2008 GE Fanuc Intelligent Platforms Embedded Systems, Inc. | 6 | * Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms of the GNU General Public License as published by the | 9 | * under the terms of the GNU General Public License as published by the |
@@ -82,7 +82,7 @@ static void __init gef_sbc610_setup_arch(void) | |||
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | printk(KERN_INFO "GE Fanuc Intelligent Platforms SBC610 6U VPX SBC\n"); | 85 | printk(KERN_INFO "GE Intelligent Platforms SBC610 6U VPX SBC\n"); |
86 | 86 | ||
87 | #ifdef CONFIG_SMP | 87 | #ifdef CONFIG_SMP |
88 | mpc86xx_smp_init(); | 88 | mpc86xx_smp_init(); |
@@ -133,7 +133,7 @@ static void gef_sbc610_show_cpuinfo(struct seq_file *m) | |||
133 | { | 133 | { |
134 | uint svid = mfspr(SPRN_SVR); | 134 | uint svid = mfspr(SPRN_SVR); |
135 | 135 | ||
136 | seq_printf(m, "Vendor\t\t: GE Fanuc Intelligent Platforms\n"); | 136 | seq_printf(m, "Vendor\t\t: GE Intelligent Platforms\n"); |
137 | 137 | ||
138 | seq_printf(m, "Revision\t: %u%c\n", gef_sbc610_get_pcb_rev(), | 138 | seq_printf(m, "Revision\t: %u%c\n", gef_sbc610_get_pcb_rev(), |
139 | ('A' + gef_sbc610_get_board_rev() - 1)); | 139 | ('A' + gef_sbc610_get_board_rev() - 1)); |
@@ -212,7 +212,7 @@ static int __init declare_of_platform_devices(void) | |||
212 | machine_device_initcall(gef_sbc610, declare_of_platform_devices); | 212 | machine_device_initcall(gef_sbc610, declare_of_platform_devices); |
213 | 213 | ||
214 | define_machine(gef_sbc610) { | 214 | define_machine(gef_sbc610) { |
215 | .name = "GE Fanuc SBC610", | 215 | .name = "GE SBC610", |
216 | .probe = gef_sbc610_probe, | 216 | .probe = gef_sbc610_probe, |
217 | .setup_arch = gef_sbc610_setup_arch, | 217 | .setup_arch = gef_sbc610_setup_arch, |
218 | .init_IRQ = gef_sbc610_init_irq, | 218 | .init_IRQ = gef_sbc610_init_irq, |
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index fa0f690d3867..a8aae0b54579 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype | |||
@@ -144,6 +144,16 @@ config FSL_EMB_PERFMON | |||
144 | and some e300 cores (c3 and c4). Select this only if your | 144 | and some e300 cores (c3 and c4). Select this only if your |
145 | core supports the Embedded Performance Monitor APU | 145 | core supports the Embedded Performance Monitor APU |
146 | 146 | ||
147 | config FSL_EMB_PERF_EVENT | ||
148 | bool | ||
149 | depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS | ||
150 | default y | ||
151 | |||
152 | config FSL_EMB_PERF_EVENT_E500 | ||
153 | bool | ||
154 | depends on FSL_EMB_PERF_EVENT && E500 | ||
155 | default y | ||
156 | |||
147 | config 4xx | 157 | config 4xx |
148 | bool | 158 | bool |
149 | depends on 40x || 44x | 159 | depends on 40x || 44x |