diff options
Diffstat (limited to 'arch/arm')
263 files changed, 11825 insertions, 1365 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ce00c570459d..6783c2e5512d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -74,6 +74,14 @@ config RWSEM_GENERIC_SPINLOCK | |||
74 | config RWSEM_XCHGADD_ALGORITHM | 74 | config RWSEM_XCHGADD_ALGORITHM |
75 | bool | 75 | bool |
76 | 76 | ||
77 | config ARCH_HAS_ILOG2_U32 | ||
78 | bool | ||
79 | default n | ||
80 | |||
81 | config ARCH_HAS_ILOG2_U64 | ||
82 | bool | ||
83 | default n | ||
84 | |||
77 | config GENERIC_HWEIGHT | 85 | config GENERIC_HWEIGHT |
78 | bool | 86 | bool |
79 | default y | 87 | default y |
@@ -223,6 +231,12 @@ config ARCH_IOP33X | |||
223 | help | 231 | help |
224 | Support for Intel's IOP33X (XScale) family of processors. | 232 | Support for Intel's IOP33X (XScale) family of processors. |
225 | 233 | ||
234 | config ARCH_IOP13XX | ||
235 | bool "IOP13xx-based" | ||
236 | select PCI | ||
237 | help | ||
238 | Support for Intel's IOP13XX (XScale) family of processors. | ||
239 | |||
226 | config ARCH_IXP4XX | 240 | config ARCH_IXP4XX |
227 | bool "IXP4xx-based" | 241 | bool "IXP4xx-based" |
228 | depends on MMU | 242 | depends on MMU |
@@ -331,6 +345,8 @@ source "arch/arm/mach-iop32x/Kconfig" | |||
331 | 345 | ||
332 | source "arch/arm/mach-iop33x/Kconfig" | 346 | source "arch/arm/mach-iop33x/Kconfig" |
333 | 347 | ||
348 | source "arch/arm/mach-iop13xx/Kconfig" | ||
349 | |||
334 | source "arch/arm/mach-ixp4xx/Kconfig" | 350 | source "arch/arm/mach-ixp4xx/Kconfig" |
335 | 351 | ||
336 | source "arch/arm/mach-ixp2000/Kconfig" | 352 | source "arch/arm/mach-ixp2000/Kconfig" |
@@ -374,6 +390,14 @@ config PLAT_IOP | |||
374 | 390 | ||
375 | source arch/arm/mm/Kconfig | 391 | source arch/arm/mm/Kconfig |
376 | 392 | ||
393 | config IWMMXT | ||
394 | bool "Enable iWMMXt support" | ||
395 | depends CPU_XSCALE || CPU_XSC3 | ||
396 | default y if PXA27x | ||
397 | help | ||
398 | Enable support for iWMMXt context switching at run time if | ||
399 | running on a CPU that supports it. | ||
400 | |||
377 | # bool 'Use XScale PMU as timer source' CONFIG_XSCALE_PMU_TIMER | 401 | # bool 'Use XScale PMU as timer source' CONFIG_XSCALE_PMU_TIMER |
378 | config XSCALE_PMU | 402 | config XSCALE_PMU |
379 | bool | 403 | bool |
@@ -583,7 +607,7 @@ config LEDS | |||
583 | ARCH_LUBBOCK || MACH_MAINSTONE || ARCH_NETWINDER || \ | 607 | ARCH_LUBBOCK || MACH_MAINSTONE || ARCH_NETWINDER || \ |
584 | ARCH_OMAP || ARCH_P720T || ARCH_PXA_IDP || \ | 608 | ARCH_OMAP || ARCH_P720T || ARCH_PXA_IDP || \ |
585 | ARCH_SA1100 || ARCH_SHARK || ARCH_VERSATILE || \ | 609 | ARCH_SA1100 || ARCH_SHARK || ARCH_VERSATILE || \ |
586 | ARCH_AT91RM9200 || MACH_TRIZEPS4 | 610 | ARCH_AT91 || MACH_TRIZEPS4 |
587 | help | 611 | help |
588 | If you say Y here, the LEDs on your machine will be used | 612 | If you say Y here, the LEDs on your machine will be used |
589 | to provide useful information about your current system status. | 613 | to provide useful information about your current system status. |
@@ -716,7 +740,7 @@ config XIP_PHYS_ADDR | |||
716 | 740 | ||
717 | endmenu | 741 | endmenu |
718 | 742 | ||
719 | if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP) | 743 | if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP || ARCH_IMX ) |
720 | 744 | ||
721 | menu "CPU Frequency scaling" | 745 | menu "CPU Frequency scaling" |
722 | 746 | ||
@@ -743,6 +767,15 @@ config CPU_FREQ_INTEGRATOR | |||
743 | 767 | ||
744 | If in doubt, say Y. | 768 | If in doubt, say Y. |
745 | 769 | ||
770 | config CPU_FREQ_IMX | ||
771 | tristate "CPUfreq driver for i.MX CPUs" | ||
772 | depends on ARCH_IMX && CPU_FREQ | ||
773 | default n | ||
774 | help | ||
775 | This enables the CPUfreq driver for i.MX CPUs. | ||
776 | |||
777 | If in doubt, say N. | ||
778 | |||
746 | endmenu | 779 | endmenu |
747 | 780 | ||
748 | endif | 781 | endif |
@@ -921,6 +954,8 @@ source "drivers/video/Kconfig" | |||
921 | 954 | ||
922 | source "sound/Kconfig" | 955 | source "sound/Kconfig" |
923 | 956 | ||
957 | source "drivers/hid/Kconfig" | ||
958 | |||
924 | source "drivers/usb/Kconfig" | 959 | source "drivers/usb/Kconfig" |
925 | 960 | ||
926 | source "drivers/mmc/Kconfig" | 961 | source "drivers/mmc/Kconfig" |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index d22f38b957db..40c5eb1f55c7 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -32,10 +32,6 @@ config DEBUG_USER | |||
32 | 8 - SIGSEGV faults | 32 | 8 - SIGSEGV faults |
33 | 16 - SIGBUS faults | 33 | 16 - SIGBUS faults |
34 | 34 | ||
35 | config DEBUG_WAITQ | ||
36 | bool "Wait queue debugging" | ||
37 | depends on DEBUG_KERNEL | ||
38 | |||
39 | config DEBUG_ERRORS | 35 | config DEBUG_ERRORS |
40 | bool "Verbose kernel error messages" | 36 | bool "Verbose kernel error messages" |
41 | depends on DEBUG_KERNEL | 37 | depends on DEBUG_KERNEL |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6f4f8bf36071..000f1100b553 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -15,6 +15,8 @@ CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET) | |||
15 | OBJCOPYFLAGS :=-O binary -R .note -R .comment -S | 15 | OBJCOPYFLAGS :=-O binary -R .note -R .comment -S |
16 | GZFLAGS :=-9 | 16 | GZFLAGS :=-9 |
17 | #CFLAGS +=-pipe | 17 | #CFLAGS +=-pipe |
18 | # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb: | ||
19 | CFLAGS +=$(call cc-option,-marm,) | ||
18 | 20 | ||
19 | # Do not use arch/arm/defconfig - it's always outdated. | 21 | # Do not use arch/arm/defconfig - it's always outdated. |
20 | # Select a platform tht is kept up-to-date | 22 | # Select a platform tht is kept up-to-date |
@@ -108,6 +110,7 @@ endif | |||
108 | machine-$(CONFIG_ARCH_CLPS711X) := clps711x | 110 | machine-$(CONFIG_ARCH_CLPS711X) := clps711x |
109 | machine-$(CONFIG_ARCH_IOP32X) := iop32x | 111 | machine-$(CONFIG_ARCH_IOP32X) := iop32x |
110 | machine-$(CONFIG_ARCH_IOP33X) := iop33x | 112 | machine-$(CONFIG_ARCH_IOP33X) := iop33x |
113 | machine-$(CONFIG_ARCH_IOP13XX) := iop13xx | ||
111 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 114 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx |
112 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 | 115 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 |
113 | machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx | 116 | machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx |
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index f3e020f2227f..09b9d1b6844c 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c | |||
@@ -160,7 +160,7 @@ void __init gic_dist_init(void __iomem *base) | |||
160 | */ | 160 | */ |
161 | for (i = 29; i < max_irq; i++) { | 161 | for (i = 29; i < max_irq; i++) { |
162 | set_irq_chip(i, &gic_chip); | 162 | set_irq_chip(i, &gic_chip); |
163 | set_irq_handler(i, do_level_IRQ); | 163 | set_irq_handler(i, handle_level_irq); |
164 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 164 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
165 | } | 165 | } |
166 | 166 | ||
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index 80a72c75214f..cfe6f4650bc9 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -163,11 +163,11 @@ static struct locomo_dev_info locomo_devices[] = { | |||
163 | #define LOCOMO_IRQ_LT_START (IRQ_LOCOMO_LT) | 163 | #define LOCOMO_IRQ_LT_START (IRQ_LOCOMO_LT) |
164 | #define LOCOMO_IRQ_SPI_START (IRQ_LOCOMO_SPI_RFR) | 164 | #define LOCOMO_IRQ_SPI_START (IRQ_LOCOMO_SPI_RFR) |
165 | 165 | ||
166 | static void locomo_handler(unsigned int irq, struct irqdesc *desc) | 166 | static void locomo_handler(unsigned int irq, struct irq_desc *desc) |
167 | { | 167 | { |
168 | int req, i; | 168 | int req, i; |
169 | struct irqdesc *d; | 169 | struct irq_desc *d; |
170 | void __iomem *mapbase = get_irq_chipdata(irq); | 170 | void __iomem *mapbase = get_irq_chip_data(irq); |
171 | 171 | ||
172 | /* Acknowledge the parent IRQ */ | 172 | /* Acknowledge the parent IRQ */ |
173 | desc->chip->ack(irq); | 173 | desc->chip->ack(irq); |
@@ -194,7 +194,7 @@ static void locomo_ack_irq(unsigned int irq) | |||
194 | 194 | ||
195 | static void locomo_mask_irq(unsigned int irq) | 195 | static void locomo_mask_irq(unsigned int irq) |
196 | { | 196 | { |
197 | void __iomem *mapbase = get_irq_chipdata(irq); | 197 | void __iomem *mapbase = get_irq_chip_data(irq); |
198 | unsigned int r; | 198 | unsigned int r; |
199 | r = locomo_readl(mapbase + LOCOMO_ICR); | 199 | r = locomo_readl(mapbase + LOCOMO_ICR); |
200 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_START)); | 200 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_START)); |
@@ -203,7 +203,7 @@ static void locomo_mask_irq(unsigned int irq) | |||
203 | 203 | ||
204 | static void locomo_unmask_irq(unsigned int irq) | 204 | static void locomo_unmask_irq(unsigned int irq) |
205 | { | 205 | { |
206 | void __iomem *mapbase = get_irq_chipdata(irq); | 206 | void __iomem *mapbase = get_irq_chip_data(irq); |
207 | unsigned int r; | 207 | unsigned int r; |
208 | r = locomo_readl(mapbase + LOCOMO_ICR); | 208 | r = locomo_readl(mapbase + LOCOMO_ICR); |
209 | r |= (0x0010 << (irq - LOCOMO_IRQ_START)); | 209 | r |= (0x0010 << (irq - LOCOMO_IRQ_START)); |
@@ -217,10 +217,10 @@ static struct irq_chip locomo_chip = { | |||
217 | .unmask = locomo_unmask_irq, | 217 | .unmask = locomo_unmask_irq, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | static void locomo_key_handler(unsigned int irq, struct irqdesc *desc) | 220 | static void locomo_key_handler(unsigned int irq, struct irq_desc *desc) |
221 | { | 221 | { |
222 | struct irqdesc *d; | 222 | struct irq_desc *d; |
223 | void __iomem *mapbase = get_irq_chipdata(irq); | 223 | void __iomem *mapbase = get_irq_chip_data(irq); |
224 | 224 | ||
225 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { | 225 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { |
226 | d = irq_desc + LOCOMO_IRQ_KEY_START; | 226 | d = irq_desc + LOCOMO_IRQ_KEY_START; |
@@ -230,7 +230,7 @@ static void locomo_key_handler(unsigned int irq, struct irqdesc *desc) | |||
230 | 230 | ||
231 | static void locomo_key_ack_irq(unsigned int irq) | 231 | static void locomo_key_ack_irq(unsigned int irq) |
232 | { | 232 | { |
233 | void __iomem *mapbase = get_irq_chipdata(irq); | 233 | void __iomem *mapbase = get_irq_chip_data(irq); |
234 | unsigned int r; | 234 | unsigned int r; |
235 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | 235 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); |
236 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_KEY_START)); | 236 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_KEY_START)); |
@@ -239,7 +239,7 @@ static void locomo_key_ack_irq(unsigned int irq) | |||
239 | 239 | ||
240 | static void locomo_key_mask_irq(unsigned int irq) | 240 | static void locomo_key_mask_irq(unsigned int irq) |
241 | { | 241 | { |
242 | void __iomem *mapbase = get_irq_chipdata(irq); | 242 | void __iomem *mapbase = get_irq_chip_data(irq); |
243 | unsigned int r; | 243 | unsigned int r; |
244 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | 244 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); |
245 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_KEY_START)); | 245 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_KEY_START)); |
@@ -248,7 +248,7 @@ static void locomo_key_mask_irq(unsigned int irq) | |||
248 | 248 | ||
249 | static void locomo_key_unmask_irq(unsigned int irq) | 249 | static void locomo_key_unmask_irq(unsigned int irq) |
250 | { | 250 | { |
251 | void __iomem *mapbase = get_irq_chipdata(irq); | 251 | void __iomem *mapbase = get_irq_chip_data(irq); |
252 | unsigned int r; | 252 | unsigned int r; |
253 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | 253 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); |
254 | r |= (0x0010 << (irq - LOCOMO_IRQ_KEY_START)); | 254 | r |= (0x0010 << (irq - LOCOMO_IRQ_KEY_START)); |
@@ -262,11 +262,11 @@ static struct irq_chip locomo_key_chip = { | |||
262 | .unmask = locomo_key_unmask_irq, | 262 | .unmask = locomo_key_unmask_irq, |
263 | }; | 263 | }; |
264 | 264 | ||
265 | static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc) | 265 | static void locomo_gpio_handler(unsigned int irq, struct irq_desc *desc) |
266 | { | 266 | { |
267 | int req, i; | 267 | int req, i; |
268 | struct irqdesc *d; | 268 | struct irq_desc *d; |
269 | void __iomem *mapbase = get_irq_chipdata(irq); | 269 | void __iomem *mapbase = get_irq_chip_data(irq); |
270 | 270 | ||
271 | req = locomo_readl(mapbase + LOCOMO_GIR) & | 271 | req = locomo_readl(mapbase + LOCOMO_GIR) & |
272 | locomo_readl(mapbase + LOCOMO_GPD) & | 272 | locomo_readl(mapbase + LOCOMO_GPD) & |
@@ -285,7 +285,7 @@ static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc) | |||
285 | 285 | ||
286 | static void locomo_gpio_ack_irq(unsigned int irq) | 286 | static void locomo_gpio_ack_irq(unsigned int irq) |
287 | { | 287 | { |
288 | void __iomem *mapbase = get_irq_chipdata(irq); | 288 | void __iomem *mapbase = get_irq_chip_data(irq); |
289 | unsigned int r; | 289 | unsigned int r; |
290 | r = locomo_readl(mapbase + LOCOMO_GWE); | 290 | r = locomo_readl(mapbase + LOCOMO_GWE); |
291 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | 291 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); |
@@ -302,7 +302,7 @@ static void locomo_gpio_ack_irq(unsigned int irq) | |||
302 | 302 | ||
303 | static void locomo_gpio_mask_irq(unsigned int irq) | 303 | static void locomo_gpio_mask_irq(unsigned int irq) |
304 | { | 304 | { |
305 | void __iomem *mapbase = get_irq_chipdata(irq); | 305 | void __iomem *mapbase = get_irq_chip_data(irq); |
306 | unsigned int r; | 306 | unsigned int r; |
307 | r = locomo_readl(mapbase + LOCOMO_GIE); | 307 | r = locomo_readl(mapbase + LOCOMO_GIE); |
308 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | 308 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); |
@@ -311,7 +311,7 @@ static void locomo_gpio_mask_irq(unsigned int irq) | |||
311 | 311 | ||
312 | static void locomo_gpio_unmask_irq(unsigned int irq) | 312 | static void locomo_gpio_unmask_irq(unsigned int irq) |
313 | { | 313 | { |
314 | void __iomem *mapbase = get_irq_chipdata(irq); | 314 | void __iomem *mapbase = get_irq_chip_data(irq); |
315 | unsigned int r; | 315 | unsigned int r; |
316 | r = locomo_readl(mapbase + LOCOMO_GIE); | 316 | r = locomo_readl(mapbase + LOCOMO_GIE); |
317 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | 317 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); |
@@ -325,10 +325,10 @@ static struct irq_chip locomo_gpio_chip = { | |||
325 | .unmask = locomo_gpio_unmask_irq, | 325 | .unmask = locomo_gpio_unmask_irq, |
326 | }; | 326 | }; |
327 | 327 | ||
328 | static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc) | 328 | static void locomo_lt_handler(unsigned int irq, struct irq_desc *desc) |
329 | { | 329 | { |
330 | struct irqdesc *d; | 330 | struct irq_desc *d; |
331 | void __iomem *mapbase = get_irq_chipdata(irq); | 331 | void __iomem *mapbase = get_irq_chip_data(irq); |
332 | 332 | ||
333 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { | 333 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { |
334 | d = irq_desc + LOCOMO_IRQ_LT_START; | 334 | d = irq_desc + LOCOMO_IRQ_LT_START; |
@@ -338,7 +338,7 @@ static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc) | |||
338 | 338 | ||
339 | static void locomo_lt_ack_irq(unsigned int irq) | 339 | static void locomo_lt_ack_irq(unsigned int irq) |
340 | { | 340 | { |
341 | void __iomem *mapbase = get_irq_chipdata(irq); | 341 | void __iomem *mapbase = get_irq_chip_data(irq); |
342 | unsigned int r; | 342 | unsigned int r; |
343 | r = locomo_readl(mapbase + LOCOMO_LTINT); | 343 | r = locomo_readl(mapbase + LOCOMO_LTINT); |
344 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_LT_START)); | 344 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_LT_START)); |
@@ -347,7 +347,7 @@ static void locomo_lt_ack_irq(unsigned int irq) | |||
347 | 347 | ||
348 | static void locomo_lt_mask_irq(unsigned int irq) | 348 | static void locomo_lt_mask_irq(unsigned int irq) |
349 | { | 349 | { |
350 | void __iomem *mapbase = get_irq_chipdata(irq); | 350 | void __iomem *mapbase = get_irq_chip_data(irq); |
351 | unsigned int r; | 351 | unsigned int r; |
352 | r = locomo_readl(mapbase + LOCOMO_LTINT); | 352 | r = locomo_readl(mapbase + LOCOMO_LTINT); |
353 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_LT_START)); | 353 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_LT_START)); |
@@ -356,7 +356,7 @@ static void locomo_lt_mask_irq(unsigned int irq) | |||
356 | 356 | ||
357 | static void locomo_lt_unmask_irq(unsigned int irq) | 357 | static void locomo_lt_unmask_irq(unsigned int irq) |
358 | { | 358 | { |
359 | void __iomem *mapbase = get_irq_chipdata(irq); | 359 | void __iomem *mapbase = get_irq_chip_data(irq); |
360 | unsigned int r; | 360 | unsigned int r; |
361 | r = locomo_readl(mapbase + LOCOMO_LTINT); | 361 | r = locomo_readl(mapbase + LOCOMO_LTINT); |
362 | r |= (0x0010 << (irq - LOCOMO_IRQ_LT_START)); | 362 | r |= (0x0010 << (irq - LOCOMO_IRQ_LT_START)); |
@@ -370,11 +370,11 @@ static struct irq_chip locomo_lt_chip = { | |||
370 | .unmask = locomo_lt_unmask_irq, | 370 | .unmask = locomo_lt_unmask_irq, |
371 | }; | 371 | }; |
372 | 372 | ||
373 | static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc) | 373 | static void locomo_spi_handler(unsigned int irq, struct irq_desc *desc) |
374 | { | 374 | { |
375 | int req, i; | 375 | int req, i; |
376 | struct irqdesc *d; | 376 | struct irq_desc *d; |
377 | void __iomem *mapbase = get_irq_chipdata(irq); | 377 | void __iomem *mapbase = get_irq_chip_data(irq); |
378 | 378 | ||
379 | req = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIR) & 0x000F; | 379 | req = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIR) & 0x000F; |
380 | if (req) { | 380 | if (req) { |
@@ -391,7 +391,7 @@ static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc) | |||
391 | 391 | ||
392 | static void locomo_spi_ack_irq(unsigned int irq) | 392 | static void locomo_spi_ack_irq(unsigned int irq) |
393 | { | 393 | { |
394 | void __iomem *mapbase = get_irq_chipdata(irq); | 394 | void __iomem *mapbase = get_irq_chip_data(irq); |
395 | unsigned int r; | 395 | unsigned int r; |
396 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE); | 396 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE); |
397 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | 397 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); |
@@ -408,7 +408,7 @@ static void locomo_spi_ack_irq(unsigned int irq) | |||
408 | 408 | ||
409 | static void locomo_spi_mask_irq(unsigned int irq) | 409 | static void locomo_spi_mask_irq(unsigned int irq) |
410 | { | 410 | { |
411 | void __iomem *mapbase = get_irq_chipdata(irq); | 411 | void __iomem *mapbase = get_irq_chip_data(irq); |
412 | unsigned int r; | 412 | unsigned int r; |
413 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | 413 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); |
414 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | 414 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); |
@@ -417,7 +417,7 @@ static void locomo_spi_mask_irq(unsigned int irq) | |||
417 | 417 | ||
418 | static void locomo_spi_unmask_irq(unsigned int irq) | 418 | static void locomo_spi_unmask_irq(unsigned int irq) |
419 | { | 419 | { |
420 | void __iomem *mapbase = get_irq_chipdata(irq); | 420 | void __iomem *mapbase = get_irq_chip_data(irq); |
421 | unsigned int r; | 421 | unsigned int r; |
422 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | 422 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); |
423 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | 423 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); |
@@ -440,55 +440,55 @@ static void locomo_setup_irq(struct locomo *lchip) | |||
440 | * Install handler for IRQ_LOCOMO_HW. | 440 | * Install handler for IRQ_LOCOMO_HW. |
441 | */ | 441 | */ |
442 | set_irq_type(lchip->irq, IRQT_FALLING); | 442 | set_irq_type(lchip->irq, IRQT_FALLING); |
443 | set_irq_chipdata(lchip->irq, irqbase); | 443 | set_irq_chip_data(lchip->irq, irqbase); |
444 | set_irq_chained_handler(lchip->irq, locomo_handler); | 444 | set_irq_chained_handler(lchip->irq, locomo_handler); |
445 | 445 | ||
446 | /* Install handlers for IRQ_LOCOMO_*_BASE */ | 446 | /* Install handlers for IRQ_LOCOMO_*_BASE */ |
447 | set_irq_chip(IRQ_LOCOMO_KEY_BASE, &locomo_chip); | 447 | set_irq_chip(IRQ_LOCOMO_KEY_BASE, &locomo_chip); |
448 | set_irq_chipdata(IRQ_LOCOMO_KEY_BASE, irqbase); | 448 | set_irq_chip_data(IRQ_LOCOMO_KEY_BASE, irqbase); |
449 | set_irq_chained_handler(IRQ_LOCOMO_KEY_BASE, locomo_key_handler); | 449 | set_irq_chained_handler(IRQ_LOCOMO_KEY_BASE, locomo_key_handler); |
450 | set_irq_flags(IRQ_LOCOMO_KEY_BASE, IRQF_VALID | IRQF_PROBE); | 450 | set_irq_flags(IRQ_LOCOMO_KEY_BASE, IRQF_VALID | IRQF_PROBE); |
451 | 451 | ||
452 | set_irq_chip(IRQ_LOCOMO_GPIO_BASE, &locomo_chip); | 452 | set_irq_chip(IRQ_LOCOMO_GPIO_BASE, &locomo_chip); |
453 | set_irq_chipdata(IRQ_LOCOMO_GPIO_BASE, irqbase); | 453 | set_irq_chip_data(IRQ_LOCOMO_GPIO_BASE, irqbase); |
454 | set_irq_chained_handler(IRQ_LOCOMO_GPIO_BASE, locomo_gpio_handler); | 454 | set_irq_chained_handler(IRQ_LOCOMO_GPIO_BASE, locomo_gpio_handler); |
455 | set_irq_flags(IRQ_LOCOMO_GPIO_BASE, IRQF_VALID | IRQF_PROBE); | 455 | set_irq_flags(IRQ_LOCOMO_GPIO_BASE, IRQF_VALID | IRQF_PROBE); |
456 | 456 | ||
457 | set_irq_chip(IRQ_LOCOMO_LT_BASE, &locomo_chip); | 457 | set_irq_chip(IRQ_LOCOMO_LT_BASE, &locomo_chip); |
458 | set_irq_chipdata(IRQ_LOCOMO_LT_BASE, irqbase); | 458 | set_irq_chip_data(IRQ_LOCOMO_LT_BASE, irqbase); |
459 | set_irq_chained_handler(IRQ_LOCOMO_LT_BASE, locomo_lt_handler); | 459 | set_irq_chained_handler(IRQ_LOCOMO_LT_BASE, locomo_lt_handler); |
460 | set_irq_flags(IRQ_LOCOMO_LT_BASE, IRQF_VALID | IRQF_PROBE); | 460 | set_irq_flags(IRQ_LOCOMO_LT_BASE, IRQF_VALID | IRQF_PROBE); |
461 | 461 | ||
462 | set_irq_chip(IRQ_LOCOMO_SPI_BASE, &locomo_chip); | 462 | set_irq_chip(IRQ_LOCOMO_SPI_BASE, &locomo_chip); |
463 | set_irq_chipdata(IRQ_LOCOMO_SPI_BASE, irqbase); | 463 | set_irq_chip_data(IRQ_LOCOMO_SPI_BASE, irqbase); |
464 | set_irq_chained_handler(IRQ_LOCOMO_SPI_BASE, locomo_spi_handler); | 464 | set_irq_chained_handler(IRQ_LOCOMO_SPI_BASE, locomo_spi_handler); |
465 | set_irq_flags(IRQ_LOCOMO_SPI_BASE, IRQF_VALID | IRQF_PROBE); | 465 | set_irq_flags(IRQ_LOCOMO_SPI_BASE, IRQF_VALID | IRQF_PROBE); |
466 | 466 | ||
467 | /* install handlers for IRQ_LOCOMO_KEY_BASE generated interrupts */ | 467 | /* install handlers for IRQ_LOCOMO_KEY_BASE generated interrupts */ |
468 | set_irq_chip(LOCOMO_IRQ_KEY_START, &locomo_key_chip); | 468 | set_irq_chip(LOCOMO_IRQ_KEY_START, &locomo_key_chip); |
469 | set_irq_chipdata(LOCOMO_IRQ_KEY_START, irqbase); | 469 | set_irq_chip_data(LOCOMO_IRQ_KEY_START, irqbase); |
470 | set_irq_handler(LOCOMO_IRQ_KEY_START, do_edge_IRQ); | 470 | set_irq_handler(LOCOMO_IRQ_KEY_START, handle_edge_irq); |
471 | set_irq_flags(LOCOMO_IRQ_KEY_START, IRQF_VALID | IRQF_PROBE); | 471 | set_irq_flags(LOCOMO_IRQ_KEY_START, IRQF_VALID | IRQF_PROBE); |
472 | 472 | ||
473 | /* install handlers for IRQ_LOCOMO_GPIO_BASE generated interrupts */ | 473 | /* install handlers for IRQ_LOCOMO_GPIO_BASE generated interrupts */ |
474 | for (irq = LOCOMO_IRQ_GPIO_START; irq < LOCOMO_IRQ_GPIO_START + 16; irq++) { | 474 | for (irq = LOCOMO_IRQ_GPIO_START; irq < LOCOMO_IRQ_GPIO_START + 16; irq++) { |
475 | set_irq_chip(irq, &locomo_gpio_chip); | 475 | set_irq_chip(irq, &locomo_gpio_chip); |
476 | set_irq_chipdata(irq, irqbase); | 476 | set_irq_chip_data(irq, irqbase); |
477 | set_irq_handler(irq, do_edge_IRQ); | 477 | set_irq_handler(irq, handle_edge_irq); |
478 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 478 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
479 | } | 479 | } |
480 | 480 | ||
481 | /* install handlers for IRQ_LOCOMO_LT_BASE generated interrupts */ | 481 | /* install handlers for IRQ_LOCOMO_LT_BASE generated interrupts */ |
482 | set_irq_chip(LOCOMO_IRQ_LT_START, &locomo_lt_chip); | 482 | set_irq_chip(LOCOMO_IRQ_LT_START, &locomo_lt_chip); |
483 | set_irq_chipdata(LOCOMO_IRQ_LT_START, irqbase); | 483 | set_irq_chip_data(LOCOMO_IRQ_LT_START, irqbase); |
484 | set_irq_handler(LOCOMO_IRQ_LT_START, do_edge_IRQ); | 484 | set_irq_handler(LOCOMO_IRQ_LT_START, handle_edge_irq); |
485 | set_irq_flags(LOCOMO_IRQ_LT_START, IRQF_VALID | IRQF_PROBE); | 485 | set_irq_flags(LOCOMO_IRQ_LT_START, IRQF_VALID | IRQF_PROBE); |
486 | 486 | ||
487 | /* install handlers for IRQ_LOCOMO_SPI_BASE generated interrupts */ | 487 | /* install handlers for IRQ_LOCOMO_SPI_BASE generated interrupts */ |
488 | for (irq = LOCOMO_IRQ_SPI_START; irq < LOCOMO_IRQ_SPI_START + 3; irq++) { | 488 | for (irq = LOCOMO_IRQ_SPI_START; irq < LOCOMO_IRQ_SPI_START + 3; irq++) { |
489 | set_irq_chip(irq, &locomo_spi_chip); | 489 | set_irq_chip(irq, &locomo_spi_chip); |
490 | set_irq_chipdata(irq, irqbase); | 490 | set_irq_chip_data(irq, irqbase); |
491 | set_irq_handler(irq, do_edge_IRQ); | 491 | set_irq_handler(irq, handle_edge_irq); |
492 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 492 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
493 | } | 493 | } |
494 | } | 494 | } |
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index d5f72010a6f3..fe3f05901a23 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -147,7 +147,7 @@ void __init sa1111_adjust_zones(int node, unsigned long *size, unsigned long *ho | |||
147 | * will call us again if there are more interrupts to process. | 147 | * will call us again if there are more interrupts to process. |
148 | */ | 148 | */ |
149 | static void | 149 | static void |
150 | sa1111_irq_handler(unsigned int irq, struct irqdesc *desc) | 150 | sa1111_irq_handler(unsigned int irq, struct irq_desc *desc) |
151 | { | 151 | { |
152 | unsigned int stat0, stat1, i; | 152 | unsigned int stat0, stat1, i; |
153 | void __iomem *base = get_irq_data(irq); | 153 | void __iomem *base = get_irq_data(irq); |
@@ -187,7 +187,7 @@ static void sa1111_ack_irq(unsigned int irq) | |||
187 | 187 | ||
188 | static void sa1111_mask_lowirq(unsigned int irq) | 188 | static void sa1111_mask_lowirq(unsigned int irq) |
189 | { | 189 | { |
190 | void __iomem *mapbase = get_irq_chipdata(irq); | 190 | void __iomem *mapbase = get_irq_chip_data(irq); |
191 | unsigned long ie0; | 191 | unsigned long ie0; |
192 | 192 | ||
193 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); | 193 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); |
@@ -197,7 +197,7 @@ static void sa1111_mask_lowirq(unsigned int irq) | |||
197 | 197 | ||
198 | static void sa1111_unmask_lowirq(unsigned int irq) | 198 | static void sa1111_unmask_lowirq(unsigned int irq) |
199 | { | 199 | { |
200 | void __iomem *mapbase = get_irq_chipdata(irq); | 200 | void __iomem *mapbase = get_irq_chip_data(irq); |
201 | unsigned long ie0; | 201 | unsigned long ie0; |
202 | 202 | ||
203 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); | 203 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); |
@@ -215,7 +215,7 @@ static void sa1111_unmask_lowirq(unsigned int irq) | |||
215 | static int sa1111_retrigger_lowirq(unsigned int irq) | 215 | static int sa1111_retrigger_lowirq(unsigned int irq) |
216 | { | 216 | { |
217 | unsigned int mask = SA1111_IRQMASK_LO(irq); | 217 | unsigned int mask = SA1111_IRQMASK_LO(irq); |
218 | void __iomem *mapbase = get_irq_chipdata(irq); | 218 | void __iomem *mapbase = get_irq_chip_data(irq); |
219 | unsigned long ip0; | 219 | unsigned long ip0; |
220 | int i; | 220 | int i; |
221 | 221 | ||
@@ -236,7 +236,7 @@ static int sa1111_retrigger_lowirq(unsigned int irq) | |||
236 | static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) | 236 | static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) |
237 | { | 237 | { |
238 | unsigned int mask = SA1111_IRQMASK_LO(irq); | 238 | unsigned int mask = SA1111_IRQMASK_LO(irq); |
239 | void __iomem *mapbase = get_irq_chipdata(irq); | 239 | void __iomem *mapbase = get_irq_chip_data(irq); |
240 | unsigned long ip0; | 240 | unsigned long ip0; |
241 | 241 | ||
242 | if (flags == IRQT_PROBE) | 242 | if (flags == IRQT_PROBE) |
@@ -259,7 +259,7 @@ static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) | |||
259 | static int sa1111_wake_lowirq(unsigned int irq, unsigned int on) | 259 | static int sa1111_wake_lowirq(unsigned int irq, unsigned int on) |
260 | { | 260 | { |
261 | unsigned int mask = SA1111_IRQMASK_LO(irq); | 261 | unsigned int mask = SA1111_IRQMASK_LO(irq); |
262 | void __iomem *mapbase = get_irq_chipdata(irq); | 262 | void __iomem *mapbase = get_irq_chip_data(irq); |
263 | unsigned long we0; | 263 | unsigned long we0; |
264 | 264 | ||
265 | we0 = sa1111_readl(mapbase + SA1111_WAKEEN0); | 265 | we0 = sa1111_readl(mapbase + SA1111_WAKEEN0); |
@@ -284,7 +284,7 @@ static struct irq_chip sa1111_low_chip = { | |||
284 | 284 | ||
285 | static void sa1111_mask_highirq(unsigned int irq) | 285 | static void sa1111_mask_highirq(unsigned int irq) |
286 | { | 286 | { |
287 | void __iomem *mapbase = get_irq_chipdata(irq); | 287 | void __iomem *mapbase = get_irq_chip_data(irq); |
288 | unsigned long ie1; | 288 | unsigned long ie1; |
289 | 289 | ||
290 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); | 290 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); |
@@ -294,7 +294,7 @@ static void sa1111_mask_highirq(unsigned int irq) | |||
294 | 294 | ||
295 | static void sa1111_unmask_highirq(unsigned int irq) | 295 | static void sa1111_unmask_highirq(unsigned int irq) |
296 | { | 296 | { |
297 | void __iomem *mapbase = get_irq_chipdata(irq); | 297 | void __iomem *mapbase = get_irq_chip_data(irq); |
298 | unsigned long ie1; | 298 | unsigned long ie1; |
299 | 299 | ||
300 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); | 300 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); |
@@ -312,7 +312,7 @@ static void sa1111_unmask_highirq(unsigned int irq) | |||
312 | static int sa1111_retrigger_highirq(unsigned int irq) | 312 | static int sa1111_retrigger_highirq(unsigned int irq) |
313 | { | 313 | { |
314 | unsigned int mask = SA1111_IRQMASK_HI(irq); | 314 | unsigned int mask = SA1111_IRQMASK_HI(irq); |
315 | void __iomem *mapbase = get_irq_chipdata(irq); | 315 | void __iomem *mapbase = get_irq_chip_data(irq); |
316 | unsigned long ip1; | 316 | unsigned long ip1; |
317 | int i; | 317 | int i; |
318 | 318 | ||
@@ -333,7 +333,7 @@ static int sa1111_retrigger_highirq(unsigned int irq) | |||
333 | static int sa1111_type_highirq(unsigned int irq, unsigned int flags) | 333 | static int sa1111_type_highirq(unsigned int irq, unsigned int flags) |
334 | { | 334 | { |
335 | unsigned int mask = SA1111_IRQMASK_HI(irq); | 335 | unsigned int mask = SA1111_IRQMASK_HI(irq); |
336 | void __iomem *mapbase = get_irq_chipdata(irq); | 336 | void __iomem *mapbase = get_irq_chip_data(irq); |
337 | unsigned long ip1; | 337 | unsigned long ip1; |
338 | 338 | ||
339 | if (flags == IRQT_PROBE) | 339 | if (flags == IRQT_PROBE) |
@@ -356,7 +356,7 @@ static int sa1111_type_highirq(unsigned int irq, unsigned int flags) | |||
356 | static int sa1111_wake_highirq(unsigned int irq, unsigned int on) | 356 | static int sa1111_wake_highirq(unsigned int irq, unsigned int on) |
357 | { | 357 | { |
358 | unsigned int mask = SA1111_IRQMASK_HI(irq); | 358 | unsigned int mask = SA1111_IRQMASK_HI(irq); |
359 | void __iomem *mapbase = get_irq_chipdata(irq); | 359 | void __iomem *mapbase = get_irq_chip_data(irq); |
360 | unsigned long we1; | 360 | unsigned long we1; |
361 | 361 | ||
362 | we1 = sa1111_readl(mapbase + SA1111_WAKEEN1); | 362 | we1 = sa1111_readl(mapbase + SA1111_WAKEEN1); |
@@ -410,15 +410,15 @@ static void sa1111_setup_irq(struct sa1111 *sachip) | |||
410 | 410 | ||
411 | for (irq = IRQ_GPAIN0; irq <= SSPROR; irq++) { | 411 | for (irq = IRQ_GPAIN0; irq <= SSPROR; irq++) { |
412 | set_irq_chip(irq, &sa1111_low_chip); | 412 | set_irq_chip(irq, &sa1111_low_chip); |
413 | set_irq_chipdata(irq, irqbase); | 413 | set_irq_chip_data(irq, irqbase); |
414 | set_irq_handler(irq, do_edge_IRQ); | 414 | set_irq_handler(irq, handle_edge_irq); |
415 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 415 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
416 | } | 416 | } |
417 | 417 | ||
418 | for (irq = AUDXMTDMADONEA; irq <= IRQ_S1_BVD1_STSCHG; irq++) { | 418 | for (irq = AUDXMTDMADONEA; irq <= IRQ_S1_BVD1_STSCHG; irq++) { |
419 | set_irq_chip(irq, &sa1111_high_chip); | 419 | set_irq_chip(irq, &sa1111_high_chip); |
420 | set_irq_chipdata(irq, irqbase); | 420 | set_irq_chip_data(irq, irqbase); |
421 | set_irq_handler(irq, do_edge_IRQ); | 421 | set_irq_handler(irq, handle_edge_irq); |
422 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 422 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
423 | } | 423 | } |
424 | 424 | ||
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index 605dedf96790..b3599743093b 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
@@ -60,16 +60,16 @@ static int sharpsl_ac_check(void); | |||
60 | static int sharpsl_fatal_check(void); | 60 | static int sharpsl_fatal_check(void); |
61 | static int sharpsl_average_value(int ad); | 61 | static int sharpsl_average_value(int ad); |
62 | static void sharpsl_average_clear(void); | 62 | static void sharpsl_average_clear(void); |
63 | static void sharpsl_charge_toggle(void *private_); | 63 | static void sharpsl_charge_toggle(struct work_struct *private_); |
64 | static void sharpsl_battery_thread(void *private_); | 64 | static void sharpsl_battery_thread(struct work_struct *private_); |
65 | 65 | ||
66 | 66 | ||
67 | /* | 67 | /* |
68 | * Variables | 68 | * Variables |
69 | */ | 69 | */ |
70 | struct sharpsl_pm_status sharpsl_pm; | 70 | struct sharpsl_pm_status sharpsl_pm; |
71 | DECLARE_WORK(toggle_charger, sharpsl_charge_toggle, NULL); | 71 | DECLARE_DELAYED_WORK(toggle_charger, sharpsl_charge_toggle); |
72 | DECLARE_WORK(sharpsl_bat, sharpsl_battery_thread, NULL); | 72 | DECLARE_DELAYED_WORK(sharpsl_bat, sharpsl_battery_thread); |
73 | DEFINE_LED_TRIGGER(sharpsl_charge_led_trigger); | 73 | DEFINE_LED_TRIGGER(sharpsl_charge_led_trigger); |
74 | 74 | ||
75 | 75 | ||
@@ -116,7 +116,7 @@ void sharpsl_battery_kick(void) | |||
116 | EXPORT_SYMBOL(sharpsl_battery_kick); | 116 | EXPORT_SYMBOL(sharpsl_battery_kick); |
117 | 117 | ||
118 | 118 | ||
119 | static void sharpsl_battery_thread(void *private_) | 119 | static void sharpsl_battery_thread(struct work_struct *private_) |
120 | { | 120 | { |
121 | int voltage, percent, apm_status, i = 0; | 121 | int voltage, percent, apm_status, i = 0; |
122 | 122 | ||
@@ -128,7 +128,7 @@ static void sharpsl_battery_thread(void *private_) | |||
128 | /* Corgi cannot confirm when battery fully charged so periodically kick! */ | 128 | /* Corgi cannot confirm when battery fully charged so periodically kick! */ |
129 | if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON) | 129 | if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON) |
130 | && time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL)) | 130 | && time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL)) |
131 | schedule_work(&toggle_charger); | 131 | schedule_delayed_work(&toggle_charger, 0); |
132 | 132 | ||
133 | while(1) { | 133 | while(1) { |
134 | voltage = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT); | 134 | voltage = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT); |
@@ -212,7 +212,7 @@ static void sharpsl_charge_off(void) | |||
212 | sharpsl_pm_led(SHARPSL_LED_OFF); | 212 | sharpsl_pm_led(SHARPSL_LED_OFF); |
213 | sharpsl_pm.charge_mode = CHRG_OFF; | 213 | sharpsl_pm.charge_mode = CHRG_OFF; |
214 | 214 | ||
215 | schedule_work(&sharpsl_bat); | 215 | schedule_delayed_work(&sharpsl_bat, 0); |
216 | } | 216 | } |
217 | 217 | ||
218 | static void sharpsl_charge_error(void) | 218 | static void sharpsl_charge_error(void) |
@@ -222,7 +222,7 @@ static void sharpsl_charge_error(void) | |||
222 | sharpsl_pm.charge_mode = CHRG_ERROR; | 222 | sharpsl_pm.charge_mode = CHRG_ERROR; |
223 | } | 223 | } |
224 | 224 | ||
225 | static void sharpsl_charge_toggle(void *private_) | 225 | static void sharpsl_charge_toggle(struct work_struct *private_) |
226 | { | 226 | { |
227 | dev_dbg(sharpsl_pm.dev, "Toogling Charger at time: %lx\n", jiffies); | 227 | dev_dbg(sharpsl_pm.dev, "Toogling Charger at time: %lx\n", jiffies); |
228 | 228 | ||
@@ -254,7 +254,7 @@ static void sharpsl_ac_timer(unsigned long data) | |||
254 | else if (sharpsl_pm.charge_mode == CHRG_ON) | 254 | else if (sharpsl_pm.charge_mode == CHRG_ON) |
255 | sharpsl_charge_off(); | 255 | sharpsl_charge_off(); |
256 | 256 | ||
257 | schedule_work(&sharpsl_bat); | 257 | schedule_delayed_work(&sharpsl_bat, 0); |
258 | } | 258 | } |
259 | 259 | ||
260 | 260 | ||
@@ -279,10 +279,10 @@ static void sharpsl_chrg_full_timer(unsigned long data) | |||
279 | sharpsl_charge_off(); | 279 | sharpsl_charge_off(); |
280 | } else if (sharpsl_pm.full_count < 2) { | 280 | } else if (sharpsl_pm.full_count < 2) { |
281 | dev_dbg(sharpsl_pm.dev, "Charge Full: Count too low\n"); | 281 | dev_dbg(sharpsl_pm.dev, "Charge Full: Count too low\n"); |
282 | schedule_work(&toggle_charger); | 282 | schedule_delayed_work(&toggle_charger, 0); |
283 | } else if (time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_FINISH_TIME)) { | 283 | } else if (time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_FINISH_TIME)) { |
284 | dev_dbg(sharpsl_pm.dev, "Charge Full: Interrupt generated too slowly - retry.\n"); | 284 | dev_dbg(sharpsl_pm.dev, "Charge Full: Interrupt generated too slowly - retry.\n"); |
285 | schedule_work(&toggle_charger); | 285 | schedule_delayed_work(&toggle_charger, 0); |
286 | } else { | 286 | } else { |
287 | sharpsl_charge_off(); | 287 | sharpsl_charge_off(); |
288 | sharpsl_pm.charge_mode = CHRG_DONE; | 288 | sharpsl_pm.charge_mode = CHRG_DONE; |
diff --git a/arch/arm/common/vic.c b/arch/arm/common/vic.c index 43d278134521..c026fa2214a3 100644 --- a/arch/arm/common/vic.c +++ b/arch/arm/common/vic.c | |||
@@ -27,14 +27,14 @@ | |||
27 | 27 | ||
28 | static void vic_mask_irq(unsigned int irq) | 28 | static void vic_mask_irq(unsigned int irq) |
29 | { | 29 | { |
30 | void __iomem *base = get_irq_chipdata(irq); | 30 | void __iomem *base = get_irq_chip_data(irq); |
31 | irq &= 31; | 31 | irq &= 31; |
32 | writel(1 << irq, base + VIC_INT_ENABLE_CLEAR); | 32 | writel(1 << irq, base + VIC_INT_ENABLE_CLEAR); |
33 | } | 33 | } |
34 | 34 | ||
35 | static void vic_unmask_irq(unsigned int irq) | 35 | static void vic_unmask_irq(unsigned int irq) |
36 | { | 36 | { |
37 | void __iomem *base = get_irq_chipdata(irq); | 37 | void __iomem *base = get_irq_chip_data(irq); |
38 | irq &= 31; | 38 | irq &= 31; |
39 | writel(1 << irq, base + VIC_INT_ENABLE); | 39 | writel(1 << irq, base + VIC_INT_ENABLE); |
40 | } | 40 | } |
@@ -88,10 +88,10 @@ void __init vic_init(void __iomem *base, unsigned int irq_start, | |||
88 | unsigned int irq = irq_start + i; | 88 | unsigned int irq = irq_start + i; |
89 | 89 | ||
90 | set_irq_chip(irq, &vic_chip); | 90 | set_irq_chip(irq, &vic_chip); |
91 | set_irq_chipdata(irq, base); | 91 | set_irq_chip_data(irq, base); |
92 | 92 | ||
93 | if (vic_sources & (1 << i)) { | 93 | if (vic_sources & (1 << i)) { |
94 | set_irq_handler(irq, do_level_IRQ); | 94 | set_irq_handler(irq, handle_level_irq); |
95 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 95 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
96 | } | 96 | } |
97 | } | 97 | } |
diff --git a/arch/arm/configs/at91rm9200dk_defconfig b/arch/arm/configs/at91rm9200dk_defconfig index b43041476e02..e10d003566d6 100644 --- a/arch/arm/configs/at91rm9200dk_defconfig +++ b/arch/arm/configs/at91rm9200dk_defconfig | |||
@@ -357,9 +357,9 @@ CONFIG_MTD_CFI_UTIL=y | |||
357 | # | 357 | # |
358 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 358 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
359 | CONFIG_MTD_PHYSMAP=y | 359 | CONFIG_MTD_PHYSMAP=y |
360 | CONFIG_MTD_PHYSMAP_START=0x10000000 | 360 | CONFIG_MTD_PHYSMAP_START=0 |
361 | CONFIG_MTD_PHYSMAP_LEN=0x200000 | 361 | CONFIG_MTD_PHYSMAP_LEN=0 |
362 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | 362 | CONFIG_MTD_PHYSMAP_BANKWIDTH=0 |
363 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 363 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
364 | # CONFIG_MTD_IMPA7 is not set | 364 | # CONFIG_MTD_IMPA7 is not set |
365 | # CONFIG_MTD_PLATRAM is not set | 365 | # CONFIG_MTD_PLATRAM is not set |
@@ -585,7 +585,9 @@ CONFIG_AT91RM9200_WATCHDOG=y | |||
585 | # CONFIG_USBPCWATCHDOG is not set | 585 | # CONFIG_USBPCWATCHDOG is not set |
586 | # CONFIG_NVRAM is not set | 586 | # CONFIG_NVRAM is not set |
587 | # CONFIG_RTC is not set | 587 | # CONFIG_RTC is not set |
588 | CONFIG_AT91_RTC=y | 588 | CONFIG_RTC_LIB=y |
589 | CONFIG_RTC_CLASS=y | ||
590 | CONFIG_RTC_DRV_AT91RM9200=y | ||
589 | # CONFIG_DTLK is not set | 591 | # CONFIG_DTLK is not set |
590 | # CONFIG_R3964 is not set | 592 | # CONFIG_R3964 is not set |
591 | 593 | ||
@@ -979,7 +981,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
979 | CONFIG_FRAME_POINTER=y | 981 | CONFIG_FRAME_POINTER=y |
980 | # CONFIG_RCU_TORTURE_TEST is not set | 982 | # CONFIG_RCU_TORTURE_TEST is not set |
981 | CONFIG_DEBUG_USER=y | 983 | CONFIG_DEBUG_USER=y |
982 | # CONFIG_DEBUG_WAITQ is not set | ||
983 | # CONFIG_DEBUG_ERRORS is not set | 984 | # CONFIG_DEBUG_ERRORS is not set |
984 | CONFIG_DEBUG_LL=y | 985 | CONFIG_DEBUG_LL=y |
985 | # CONFIG_DEBUG_ICEDCC is not set | 986 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/at91rm9200ek_defconfig b/arch/arm/configs/at91rm9200ek_defconfig index d96fc8386e2f..834dddb51314 100644 --- a/arch/arm/configs/at91rm9200ek_defconfig +++ b/arch/arm/configs/at91rm9200ek_defconfig | |||
@@ -348,9 +348,9 @@ CONFIG_MTD_CFI_UTIL=y | |||
348 | # | 348 | # |
349 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 349 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
350 | CONFIG_MTD_PHYSMAP=y | 350 | CONFIG_MTD_PHYSMAP=y |
351 | CONFIG_MTD_PHYSMAP_START=0x10000000 | 351 | CONFIG_MTD_PHYSMAP_START=0 |
352 | CONFIG_MTD_PHYSMAP_LEN=0x800000 | 352 | CONFIG_MTD_PHYSMAP_LEN=0 |
353 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | 353 | CONFIG_MTD_PHYSMAP_BANKWIDTH=0 |
354 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 354 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
355 | # CONFIG_MTD_IMPA7 is not set | 355 | # CONFIG_MTD_IMPA7 is not set |
356 | # CONFIG_MTD_PLATRAM is not set | 356 | # CONFIG_MTD_PLATRAM is not set |
@@ -566,7 +566,9 @@ CONFIG_AT91RM9200_WATCHDOG=y | |||
566 | # CONFIG_USBPCWATCHDOG is not set | 566 | # CONFIG_USBPCWATCHDOG is not set |
567 | # CONFIG_NVRAM is not set | 567 | # CONFIG_NVRAM is not set |
568 | # CONFIG_RTC is not set | 568 | # CONFIG_RTC is not set |
569 | CONFIG_AT91_RTC=y | 569 | CONFIG_RTC_LIB=y |
570 | CONFIG_RTC_CLASS=y | ||
571 | CONFIG_RTC_DRV_AT91RM9200=y | ||
570 | # CONFIG_DTLK is not set | 572 | # CONFIG_DTLK is not set |
571 | # CONFIG_R3964 is not set | 573 | # CONFIG_R3964 is not set |
572 | 574 | ||
@@ -968,7 +970,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
968 | CONFIG_FRAME_POINTER=y | 970 | CONFIG_FRAME_POINTER=y |
969 | # CONFIG_RCU_TORTURE_TEST is not set | 971 | # CONFIG_RCU_TORTURE_TEST is not set |
970 | CONFIG_DEBUG_USER=y | 972 | CONFIG_DEBUG_USER=y |
971 | # CONFIG_DEBUG_WAITQ is not set | ||
972 | # CONFIG_DEBUG_ERRORS is not set | 973 | # CONFIG_DEBUG_ERRORS is not set |
973 | CONFIG_DEBUG_LL=y | 974 | CONFIG_DEBUG_LL=y |
974 | # CONFIG_DEBUG_ICEDCC is not set | 975 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/at91sam9260ek_defconfig b/arch/arm/configs/at91sam9260ek_defconfig new file mode 100644 index 000000000000..79049206dfa5 --- /dev/null +++ b/arch/arm/configs/at91sam9260ek_defconfig | |||
@@ -0,0 +1,950 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.19-rc6 | ||
4 | # Fri Nov 17 18:42:21 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | # CONFIG_GENERIC_TIME is not set | ||
8 | CONFIG_MMU=y | ||
9 | CONFIG_GENERIC_HARDIRQS=y | ||
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
11 | CONFIG_HARDIRQS_SW_RESEND=y | ||
12 | CONFIG_GENERIC_IRQ_PROBE=y | ||
13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
16 | CONFIG_VECTORS_BASE=0xffff0000 | ||
17 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
18 | |||
19 | # | ||
20 | # Code maturity level options | ||
21 | # | ||
22 | CONFIG_EXPERIMENTAL=y | ||
23 | CONFIG_BROKEN_ON_SMP=y | ||
24 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
25 | |||
26 | # | ||
27 | # General setup | ||
28 | # | ||
29 | CONFIG_LOCALVERSION="" | ||
30 | # CONFIG_LOCALVERSION_AUTO is not set | ||
31 | # CONFIG_SWAP is not set | ||
32 | CONFIG_SYSVIPC=y | ||
33 | # CONFIG_IPC_NS is not set | ||
34 | # CONFIG_POSIX_MQUEUE is not set | ||
35 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
36 | # CONFIG_TASKSTATS is not set | ||
37 | # CONFIG_UTS_NS is not set | ||
38 | # CONFIG_AUDIT is not set | ||
39 | # CONFIG_IKCONFIG is not set | ||
40 | # CONFIG_RELAY is not set | ||
41 | CONFIG_INITRAMFS_SOURCE="" | ||
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
43 | CONFIG_SYSCTL=y | ||
44 | # CONFIG_EMBEDDED is not set | ||
45 | CONFIG_UID16=y | ||
46 | CONFIG_SYSCTL_SYSCALL=y | ||
47 | CONFIG_KALLSYMS=y | ||
48 | # CONFIG_KALLSYMS_ALL is not set | ||
49 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
50 | CONFIG_HOTPLUG=y | ||
51 | CONFIG_PRINTK=y | ||
52 | CONFIG_BUG=y | ||
53 | CONFIG_ELF_CORE=y | ||
54 | CONFIG_BASE_FULL=y | ||
55 | CONFIG_FUTEX=y | ||
56 | CONFIG_EPOLL=y | ||
57 | CONFIG_SHMEM=y | ||
58 | CONFIG_SLAB=y | ||
59 | CONFIG_VM_EVENT_COUNTERS=y | ||
60 | CONFIG_RT_MUTEXES=y | ||
61 | # CONFIG_TINY_SHMEM is not set | ||
62 | CONFIG_BASE_SMALL=0 | ||
63 | # CONFIG_SLOB is not set | ||
64 | |||
65 | # | ||
66 | # Loadable module support | ||
67 | # | ||
68 | CONFIG_MODULES=y | ||
69 | CONFIG_MODULE_UNLOAD=y | ||
70 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
71 | # CONFIG_MODVERSIONS is not set | ||
72 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
73 | CONFIG_KMOD=y | ||
74 | |||
75 | # | ||
76 | # Block layer | ||
77 | # | ||
78 | CONFIG_BLOCK=y | ||
79 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
80 | |||
81 | # | ||
82 | # IO Schedulers | ||
83 | # | ||
84 | CONFIG_IOSCHED_NOOP=y | ||
85 | CONFIG_IOSCHED_AS=y | ||
86 | # CONFIG_IOSCHED_DEADLINE is not set | ||
87 | # CONFIG_IOSCHED_CFQ is not set | ||
88 | CONFIG_DEFAULT_AS=y | ||
89 | # CONFIG_DEFAULT_DEADLINE is not set | ||
90 | # CONFIG_DEFAULT_CFQ is not set | ||
91 | # CONFIG_DEFAULT_NOOP is not set | ||
92 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
93 | |||
94 | # | ||
95 | # System Type | ||
96 | # | ||
97 | # CONFIG_ARCH_AAEC2000 is not set | ||
98 | # CONFIG_ARCH_INTEGRATOR is not set | ||
99 | # CONFIG_ARCH_REALVIEW is not set | ||
100 | # CONFIG_ARCH_VERSATILE is not set | ||
101 | CONFIG_ARCH_AT91=y | ||
102 | # CONFIG_ARCH_CLPS7500 is not set | ||
103 | # CONFIG_ARCH_CLPS711X is not set | ||
104 | # CONFIG_ARCH_CO285 is not set | ||
105 | # CONFIG_ARCH_EBSA110 is not set | ||
106 | # CONFIG_ARCH_EP93XX is not set | ||
107 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
108 | # CONFIG_ARCH_NETX is not set | ||
109 | # CONFIG_ARCH_H720X is not set | ||
110 | # CONFIG_ARCH_IMX is not set | ||
111 | # CONFIG_ARCH_IOP32X is not set | ||
112 | # CONFIG_ARCH_IOP33X is not set | ||
113 | # CONFIG_ARCH_IXP4XX is not set | ||
114 | # CONFIG_ARCH_IXP2000 is not set | ||
115 | # CONFIG_ARCH_IXP23XX is not set | ||
116 | # CONFIG_ARCH_L7200 is not set | ||
117 | # CONFIG_ARCH_PNX4008 is not set | ||
118 | # CONFIG_ARCH_PXA is not set | ||
119 | # CONFIG_ARCH_RPC is not set | ||
120 | # CONFIG_ARCH_SA1100 is not set | ||
121 | # CONFIG_ARCH_S3C2410 is not set | ||
122 | # CONFIG_ARCH_SHARK is not set | ||
123 | # CONFIG_ARCH_LH7A40X is not set | ||
124 | # CONFIG_ARCH_OMAP is not set | ||
125 | |||
126 | # | ||
127 | # Atmel AT91 System-on-Chip | ||
128 | # | ||
129 | # CONFIG_ARCH_AT91RM9200 is not set | ||
130 | CONFIG_ARCH_AT91SAM9260=y | ||
131 | # CONFIG_ARCH_AT91SAM9261 is not set | ||
132 | |||
133 | # | ||
134 | # AT91SAM9260 Board Type | ||
135 | # | ||
136 | CONFIG_MACH_AT91SAM9260EK=y | ||
137 | |||
138 | # | ||
139 | # AT91 Board Options | ||
140 | # | ||
141 | # CONFIG_MTD_NAND_AT91_BUSWIDTH_16 is not set | ||
142 | |||
143 | # | ||
144 | # AT91 Feature Selections | ||
145 | # | ||
146 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
147 | |||
148 | # | ||
149 | # Processor Type | ||
150 | # | ||
151 | CONFIG_CPU_32=y | ||
152 | CONFIG_CPU_ARM926T=y | ||
153 | CONFIG_CPU_32v5=y | ||
154 | CONFIG_CPU_ABRT_EV5TJ=y | ||
155 | CONFIG_CPU_CACHE_VIVT=y | ||
156 | CONFIG_CPU_COPY_V4WB=y | ||
157 | CONFIG_CPU_TLB_V4WBI=y | ||
158 | CONFIG_CPU_CP15=y | ||
159 | CONFIG_CPU_CP15_MMU=y | ||
160 | |||
161 | # | ||
162 | # Processor Features | ||
163 | # | ||
164 | # CONFIG_ARM_THUMB is not set | ||
165 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
166 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
167 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
168 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
169 | |||
170 | # | ||
171 | # Bus support | ||
172 | # | ||
173 | |||
174 | # | ||
175 | # PCCARD (PCMCIA/CardBus) support | ||
176 | # | ||
177 | # CONFIG_PCCARD is not set | ||
178 | |||
179 | # | ||
180 | # Kernel Features | ||
181 | # | ||
182 | # CONFIG_PREEMPT is not set | ||
183 | # CONFIG_NO_IDLE_HZ is not set | ||
184 | CONFIG_HZ=100 | ||
185 | # CONFIG_AEABI is not set | ||
186 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
187 | CONFIG_SELECT_MEMORY_MODEL=y | ||
188 | CONFIG_FLATMEM_MANUAL=y | ||
189 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
190 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
191 | CONFIG_FLATMEM=y | ||
192 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
193 | # CONFIG_SPARSEMEM_STATIC is not set | ||
194 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
195 | # CONFIG_RESOURCES_64BIT is not set | ||
196 | # CONFIG_LEDS is not set | ||
197 | CONFIG_ALIGNMENT_TRAP=y | ||
198 | |||
199 | # | ||
200 | # Boot options | ||
201 | # | ||
202 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
203 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
204 | CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw" | ||
205 | # CONFIG_XIP_KERNEL is not set | ||
206 | |||
207 | # | ||
208 | # Floating point emulation | ||
209 | # | ||
210 | |||
211 | # | ||
212 | # At least one emulation must be selected | ||
213 | # | ||
214 | CONFIG_FPE_NWFPE=y | ||
215 | # CONFIG_FPE_NWFPE_XP is not set | ||
216 | # CONFIG_FPE_FASTFPE is not set | ||
217 | # CONFIG_VFP is not set | ||
218 | |||
219 | # | ||
220 | # Userspace binary formats | ||
221 | # | ||
222 | CONFIG_BINFMT_ELF=y | ||
223 | # CONFIG_BINFMT_AOUT is not set | ||
224 | # CONFIG_BINFMT_MISC is not set | ||
225 | # CONFIG_ARTHUR is not set | ||
226 | |||
227 | # | ||
228 | # Power management options | ||
229 | # | ||
230 | # CONFIG_PM is not set | ||
231 | # CONFIG_APM is not set | ||
232 | |||
233 | # | ||
234 | # Networking | ||
235 | # | ||
236 | CONFIG_NET=y | ||
237 | |||
238 | # | ||
239 | # Networking options | ||
240 | # | ||
241 | # CONFIG_NETDEBUG is not set | ||
242 | CONFIG_PACKET=y | ||
243 | # CONFIG_PACKET_MMAP is not set | ||
244 | CONFIG_UNIX=y | ||
245 | CONFIG_XFRM=y | ||
246 | # CONFIG_XFRM_USER is not set | ||
247 | # CONFIG_XFRM_SUB_POLICY is not set | ||
248 | # CONFIG_NET_KEY is not set | ||
249 | CONFIG_INET=y | ||
250 | # CONFIG_IP_MULTICAST is not set | ||
251 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
252 | CONFIG_IP_FIB_HASH=y | ||
253 | CONFIG_IP_PNP=y | ||
254 | # CONFIG_IP_PNP_DHCP is not set | ||
255 | CONFIG_IP_PNP_BOOTP=y | ||
256 | # CONFIG_IP_PNP_RARP is not set | ||
257 | # CONFIG_NET_IPIP is not set | ||
258 | # CONFIG_NET_IPGRE is not set | ||
259 | # CONFIG_ARPD is not set | ||
260 | # CONFIG_SYN_COOKIES is not set | ||
261 | # CONFIG_INET_AH is not set | ||
262 | # CONFIG_INET_ESP is not set | ||
263 | # CONFIG_INET_IPCOMP is not set | ||
264 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
265 | # CONFIG_INET_TUNNEL is not set | ||
266 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
267 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
268 | CONFIG_INET_XFRM_MODE_BEET=y | ||
269 | CONFIG_INET_DIAG=y | ||
270 | CONFIG_INET_TCP_DIAG=y | ||
271 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
272 | CONFIG_TCP_CONG_CUBIC=y | ||
273 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
274 | # CONFIG_IPV6 is not set | ||
275 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
276 | # CONFIG_INET6_TUNNEL is not set | ||
277 | # CONFIG_NETWORK_SECMARK is not set | ||
278 | # CONFIG_NETFILTER is not set | ||
279 | |||
280 | # | ||
281 | # DCCP Configuration (EXPERIMENTAL) | ||
282 | # | ||
283 | # CONFIG_IP_DCCP is not set | ||
284 | |||
285 | # | ||
286 | # SCTP Configuration (EXPERIMENTAL) | ||
287 | # | ||
288 | # CONFIG_IP_SCTP is not set | ||
289 | |||
290 | # | ||
291 | # TIPC Configuration (EXPERIMENTAL) | ||
292 | # | ||
293 | # CONFIG_TIPC is not set | ||
294 | # CONFIG_ATM is not set | ||
295 | # CONFIG_BRIDGE is not set | ||
296 | # CONFIG_VLAN_8021Q is not set | ||
297 | # CONFIG_DECNET is not set | ||
298 | # CONFIG_LLC2 is not set | ||
299 | # CONFIG_IPX is not set | ||
300 | # CONFIG_ATALK is not set | ||
301 | # CONFIG_X25 is not set | ||
302 | # CONFIG_LAPB is not set | ||
303 | # CONFIG_ECONET is not set | ||
304 | # CONFIG_WAN_ROUTER is not set | ||
305 | |||
306 | # | ||
307 | # QoS and/or fair queueing | ||
308 | # | ||
309 | # CONFIG_NET_SCHED is not set | ||
310 | |||
311 | # | ||
312 | # Network testing | ||
313 | # | ||
314 | # CONFIG_NET_PKTGEN is not set | ||
315 | # CONFIG_HAMRADIO is not set | ||
316 | # CONFIG_IRDA is not set | ||
317 | # CONFIG_BT is not set | ||
318 | # CONFIG_IEEE80211 is not set | ||
319 | |||
320 | # | ||
321 | # Device Drivers | ||
322 | # | ||
323 | |||
324 | # | ||
325 | # Generic Driver Options | ||
326 | # | ||
327 | CONFIG_STANDALONE=y | ||
328 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
329 | # CONFIG_FW_LOADER is not set | ||
330 | # CONFIG_DEBUG_DRIVER is not set | ||
331 | # CONFIG_SYS_HYPERVISOR is not set | ||
332 | |||
333 | # | ||
334 | # Connector - unified userspace <-> kernelspace linker | ||
335 | # | ||
336 | # CONFIG_CONNECTOR is not set | ||
337 | |||
338 | # | ||
339 | # Memory Technology Devices (MTD) | ||
340 | # | ||
341 | # CONFIG_MTD is not set | ||
342 | |||
343 | # | ||
344 | # Parallel port support | ||
345 | # | ||
346 | # CONFIG_PARPORT is not set | ||
347 | |||
348 | # | ||
349 | # Plug and Play support | ||
350 | # | ||
351 | |||
352 | # | ||
353 | # Block devices | ||
354 | # | ||
355 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
356 | # CONFIG_BLK_DEV_LOOP is not set | ||
357 | # CONFIG_BLK_DEV_NBD is not set | ||
358 | # CONFIG_BLK_DEV_UB is not set | ||
359 | CONFIG_BLK_DEV_RAM=y | ||
360 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
361 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
362 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
363 | CONFIG_BLK_DEV_INITRD=y | ||
364 | # CONFIG_CDROM_PKTCDVD is not set | ||
365 | # CONFIG_ATA_OVER_ETH is not set | ||
366 | |||
367 | # | ||
368 | # SCSI device support | ||
369 | # | ||
370 | # CONFIG_RAID_ATTRS is not set | ||
371 | CONFIG_SCSI=y | ||
372 | # CONFIG_SCSI_NETLINK is not set | ||
373 | CONFIG_SCSI_PROC_FS=y | ||
374 | |||
375 | # | ||
376 | # SCSI support type (disk, tape, CD-ROM) | ||
377 | # | ||
378 | CONFIG_BLK_DEV_SD=y | ||
379 | # CONFIG_CHR_DEV_ST is not set | ||
380 | # CONFIG_CHR_DEV_OSST is not set | ||
381 | # CONFIG_BLK_DEV_SR is not set | ||
382 | # CONFIG_CHR_DEV_SG is not set | ||
383 | # CONFIG_CHR_DEV_SCH is not set | ||
384 | |||
385 | # | ||
386 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
387 | # | ||
388 | CONFIG_SCSI_MULTI_LUN=y | ||
389 | # CONFIG_SCSI_CONSTANTS is not set | ||
390 | # CONFIG_SCSI_LOGGING is not set | ||
391 | |||
392 | # | ||
393 | # SCSI Transports | ||
394 | # | ||
395 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
396 | # CONFIG_SCSI_FC_ATTRS is not set | ||
397 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
398 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
399 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
400 | |||
401 | # | ||
402 | # SCSI low-level drivers | ||
403 | # | ||
404 | # CONFIG_ISCSI_TCP is not set | ||
405 | # CONFIG_SCSI_DEBUG is not set | ||
406 | |||
407 | # | ||
408 | # Multi-device support (RAID and LVM) | ||
409 | # | ||
410 | # CONFIG_MD is not set | ||
411 | |||
412 | # | ||
413 | # Fusion MPT device support | ||
414 | # | ||
415 | # CONFIG_FUSION is not set | ||
416 | |||
417 | # | ||
418 | # IEEE 1394 (FireWire) support | ||
419 | # | ||
420 | |||
421 | # | ||
422 | # I2O device support | ||
423 | # | ||
424 | |||
425 | # | ||
426 | # Network device support | ||
427 | # | ||
428 | # CONFIG_NETDEVICES is not set | ||
429 | # CONFIG_NETPOLL is not set | ||
430 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
431 | |||
432 | # | ||
433 | # ISDN subsystem | ||
434 | # | ||
435 | # CONFIG_ISDN is not set | ||
436 | |||
437 | # | ||
438 | # Input device support | ||
439 | # | ||
440 | CONFIG_INPUT=y | ||
441 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
442 | |||
443 | # | ||
444 | # Userland interfaces | ||
445 | # | ||
446 | CONFIG_INPUT_MOUSEDEV=y | ||
447 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
448 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
449 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
450 | # CONFIG_INPUT_JOYDEV is not set | ||
451 | # CONFIG_INPUT_TSDEV is not set | ||
452 | # CONFIG_INPUT_EVDEV is not set | ||
453 | # CONFIG_INPUT_EVBUG is not set | ||
454 | |||
455 | # | ||
456 | # Input Device Drivers | ||
457 | # | ||
458 | # CONFIG_INPUT_KEYBOARD is not set | ||
459 | # CONFIG_INPUT_MOUSE is not set | ||
460 | # CONFIG_INPUT_JOYSTICK is not set | ||
461 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
462 | # CONFIG_INPUT_MISC is not set | ||
463 | |||
464 | # | ||
465 | # Hardware I/O ports | ||
466 | # | ||
467 | # CONFIG_SERIO is not set | ||
468 | # CONFIG_GAMEPORT is not set | ||
469 | |||
470 | # | ||
471 | # Character devices | ||
472 | # | ||
473 | CONFIG_VT=y | ||
474 | CONFIG_VT_CONSOLE=y | ||
475 | CONFIG_HW_CONSOLE=y | ||
476 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
477 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
478 | |||
479 | # | ||
480 | # Serial drivers | ||
481 | # | ||
482 | # CONFIG_SERIAL_8250 is not set | ||
483 | |||
484 | # | ||
485 | # Non-8250 serial port support | ||
486 | # | ||
487 | CONFIG_SERIAL_ATMEL=y | ||
488 | CONFIG_SERIAL_ATMEL_CONSOLE=y | ||
489 | # CONFIG_SERIAL_ATMEL_TTYAT is not set | ||
490 | CONFIG_SERIAL_CORE=y | ||
491 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
492 | CONFIG_UNIX98_PTYS=y | ||
493 | CONFIG_LEGACY_PTYS=y | ||
494 | CONFIG_LEGACY_PTY_COUNT=256 | ||
495 | |||
496 | # | ||
497 | # IPMI | ||
498 | # | ||
499 | # CONFIG_IPMI_HANDLER is not set | ||
500 | |||
501 | # | ||
502 | # Watchdog Cards | ||
503 | # | ||
504 | CONFIG_WATCHDOG=y | ||
505 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
506 | |||
507 | # | ||
508 | # Watchdog Device Drivers | ||
509 | # | ||
510 | # CONFIG_SOFT_WATCHDOG is not set | ||
511 | |||
512 | # | ||
513 | # USB-based Watchdog Cards | ||
514 | # | ||
515 | # CONFIG_USBPCWATCHDOG is not set | ||
516 | CONFIG_HW_RANDOM=y | ||
517 | # CONFIG_NVRAM is not set | ||
518 | # CONFIG_DTLK is not set | ||
519 | # CONFIG_R3964 is not set | ||
520 | |||
521 | # | ||
522 | # Ftape, the floppy tape device driver | ||
523 | # | ||
524 | # CONFIG_RAW_DRIVER is not set | ||
525 | |||
526 | # | ||
527 | # TPM devices | ||
528 | # | ||
529 | # CONFIG_TCG_TPM is not set | ||
530 | |||
531 | # | ||
532 | # I2C support | ||
533 | # | ||
534 | # CONFIG_I2C is not set | ||
535 | |||
536 | # | ||
537 | # SPI support | ||
538 | # | ||
539 | # CONFIG_SPI is not set | ||
540 | # CONFIG_SPI_MASTER is not set | ||
541 | |||
542 | # | ||
543 | # Dallas's 1-wire bus | ||
544 | # | ||
545 | # CONFIG_W1 is not set | ||
546 | |||
547 | # | ||
548 | # Hardware Monitoring support | ||
549 | # | ||
550 | # CONFIG_HWMON is not set | ||
551 | # CONFIG_HWMON_VID is not set | ||
552 | |||
553 | # | ||
554 | # Misc devices | ||
555 | # | ||
556 | # CONFIG_TIFM_CORE is not set | ||
557 | |||
558 | # | ||
559 | # LED devices | ||
560 | # | ||
561 | # CONFIG_NEW_LEDS is not set | ||
562 | |||
563 | # | ||
564 | # LED drivers | ||
565 | # | ||
566 | |||
567 | # | ||
568 | # LED Triggers | ||
569 | # | ||
570 | |||
571 | # | ||
572 | # Multimedia devices | ||
573 | # | ||
574 | # CONFIG_VIDEO_DEV is not set | ||
575 | |||
576 | # | ||
577 | # Digital Video Broadcasting Devices | ||
578 | # | ||
579 | # CONFIG_DVB is not set | ||
580 | # CONFIG_USB_DABUSB is not set | ||
581 | |||
582 | # | ||
583 | # Graphics support | ||
584 | # | ||
585 | # CONFIG_FIRMWARE_EDID is not set | ||
586 | # CONFIG_FB is not set | ||
587 | |||
588 | # | ||
589 | # Console display driver support | ||
590 | # | ||
591 | # CONFIG_VGA_CONSOLE is not set | ||
592 | CONFIG_DUMMY_CONSOLE=y | ||
593 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
594 | |||
595 | # | ||
596 | # Sound | ||
597 | # | ||
598 | # CONFIG_SOUND is not set | ||
599 | |||
600 | # | ||
601 | # USB support | ||
602 | # | ||
603 | CONFIG_USB_ARCH_HAS_HCD=y | ||
604 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
605 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
606 | CONFIG_USB=y | ||
607 | # CONFIG_USB_DEBUG is not set | ||
608 | |||
609 | # | ||
610 | # Miscellaneous USB options | ||
611 | # | ||
612 | CONFIG_USB_DEVICEFS=y | ||
613 | # CONFIG_USB_BANDWIDTH is not set | ||
614 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
615 | # CONFIG_USB_OTG is not set | ||
616 | |||
617 | # | ||
618 | # USB Host Controller Drivers | ||
619 | # | ||
620 | # CONFIG_USB_ISP116X_HCD is not set | ||
621 | CONFIG_USB_OHCI_HCD=y | ||
622 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
623 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
624 | # CONFIG_USB_SL811_HCD is not set | ||
625 | |||
626 | # | ||
627 | # USB Device Class drivers | ||
628 | # | ||
629 | # CONFIG_USB_ACM is not set | ||
630 | # CONFIG_USB_PRINTER is not set | ||
631 | |||
632 | # | ||
633 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
634 | # | ||
635 | |||
636 | # | ||
637 | # may also be needed; see USB_STORAGE Help for more information | ||
638 | # | ||
639 | CONFIG_USB_STORAGE=y | ||
640 | CONFIG_USB_STORAGE_DEBUG=y | ||
641 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
642 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
643 | # CONFIG_USB_STORAGE_DPCM is not set | ||
644 | # CONFIG_USB_STORAGE_USBAT is not set | ||
645 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
646 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
647 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
648 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
649 | # CONFIG_USB_STORAGE_KARMA is not set | ||
650 | # CONFIG_USB_LIBUSUAL is not set | ||
651 | |||
652 | # | ||
653 | # USB Input Devices | ||
654 | # | ||
655 | # CONFIG_USB_HID is not set | ||
656 | |||
657 | # | ||
658 | # USB HID Boot Protocol drivers | ||
659 | # | ||
660 | # CONFIG_USB_KBD is not set | ||
661 | # CONFIG_USB_MOUSE is not set | ||
662 | # CONFIG_USB_AIPTEK is not set | ||
663 | # CONFIG_USB_WACOM is not set | ||
664 | # CONFIG_USB_ACECAD is not set | ||
665 | # CONFIG_USB_KBTAB is not set | ||
666 | # CONFIG_USB_POWERMATE is not set | ||
667 | # CONFIG_USB_TOUCHSCREEN is not set | ||
668 | # CONFIG_USB_YEALINK is not set | ||
669 | # CONFIG_USB_XPAD is not set | ||
670 | # CONFIG_USB_ATI_REMOTE is not set | ||
671 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
672 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
673 | # CONFIG_USB_APPLETOUCH is not set | ||
674 | |||
675 | # | ||
676 | # USB Imaging devices | ||
677 | # | ||
678 | # CONFIG_USB_MDC800 is not set | ||
679 | # CONFIG_USB_MICROTEK is not set | ||
680 | |||
681 | # | ||
682 | # USB Network Adapters | ||
683 | # | ||
684 | # CONFIG_USB_CATC is not set | ||
685 | # CONFIG_USB_KAWETH is not set | ||
686 | # CONFIG_USB_PEGASUS is not set | ||
687 | # CONFIG_USB_RTL8150 is not set | ||
688 | # CONFIG_USB_USBNET_MII is not set | ||
689 | # CONFIG_USB_USBNET is not set | ||
690 | CONFIG_USB_MON=y | ||
691 | |||
692 | # | ||
693 | # USB port drivers | ||
694 | # | ||
695 | |||
696 | # | ||
697 | # USB Serial Converter support | ||
698 | # | ||
699 | # CONFIG_USB_SERIAL is not set | ||
700 | |||
701 | # | ||
702 | # USB Miscellaneous drivers | ||
703 | # | ||
704 | # CONFIG_USB_EMI62 is not set | ||
705 | # CONFIG_USB_EMI26 is not set | ||
706 | # CONFIG_USB_ADUTUX is not set | ||
707 | # CONFIG_USB_AUERSWALD is not set | ||
708 | # CONFIG_USB_RIO500 is not set | ||
709 | # CONFIG_USB_LEGOTOWER is not set | ||
710 | # CONFIG_USB_LCD is not set | ||
711 | # CONFIG_USB_LED is not set | ||
712 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
713 | # CONFIG_USB_CYTHERM is not set | ||
714 | # CONFIG_USB_PHIDGET is not set | ||
715 | # CONFIG_USB_IDMOUSE is not set | ||
716 | # CONFIG_USB_FTDI_ELAN is not set | ||
717 | # CONFIG_USB_APPLEDISPLAY is not set | ||
718 | # CONFIG_USB_LD is not set | ||
719 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
720 | # CONFIG_USB_TEST is not set | ||
721 | |||
722 | # | ||
723 | # USB DSL modem support | ||
724 | # | ||
725 | |||
726 | # | ||
727 | # USB Gadget Support | ||
728 | # | ||
729 | CONFIG_USB_GADGET=y | ||
730 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
731 | CONFIG_USB_GADGET_SELECTED=y | ||
732 | # CONFIG_USB_GADGET_NET2280 is not set | ||
733 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
734 | # CONFIG_USB_GADGET_GOKU is not set | ||
735 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
736 | # CONFIG_USB_GADGET_OMAP is not set | ||
737 | CONFIG_USB_GADGET_AT91=y | ||
738 | CONFIG_USB_AT91=y | ||
739 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
740 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
741 | CONFIG_USB_ZERO=m | ||
742 | # CONFIG_USB_ETH is not set | ||
743 | CONFIG_USB_GADGETFS=m | ||
744 | CONFIG_USB_FILE_STORAGE=m | ||
745 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
746 | CONFIG_USB_G_SERIAL=m | ||
747 | # CONFIG_USB_MIDI_GADGET is not set | ||
748 | |||
749 | # | ||
750 | # MMC/SD Card support | ||
751 | # | ||
752 | # CONFIG_MMC is not set | ||
753 | |||
754 | # | ||
755 | # Real Time Clock | ||
756 | # | ||
757 | CONFIG_RTC_LIB=y | ||
758 | # CONFIG_RTC_CLASS is not set | ||
759 | |||
760 | # | ||
761 | # File systems | ||
762 | # | ||
763 | CONFIG_EXT2_FS=y | ||
764 | # CONFIG_EXT2_FS_XATTR is not set | ||
765 | # CONFIG_EXT2_FS_XIP is not set | ||
766 | # CONFIG_EXT3_FS is not set | ||
767 | # CONFIG_EXT4DEV_FS is not set | ||
768 | # CONFIG_REISERFS_FS is not set | ||
769 | # CONFIG_JFS_FS is not set | ||
770 | # CONFIG_FS_POSIX_ACL is not set | ||
771 | # CONFIG_XFS_FS is not set | ||
772 | # CONFIG_GFS2_FS is not set | ||
773 | # CONFIG_OCFS2_FS is not set | ||
774 | # CONFIG_MINIX_FS is not set | ||
775 | # CONFIG_ROMFS_FS is not set | ||
776 | CONFIG_INOTIFY=y | ||
777 | CONFIG_INOTIFY_USER=y | ||
778 | # CONFIG_QUOTA is not set | ||
779 | CONFIG_DNOTIFY=y | ||
780 | # CONFIG_AUTOFS_FS is not set | ||
781 | # CONFIG_AUTOFS4_FS is not set | ||
782 | # CONFIG_FUSE_FS is not set | ||
783 | |||
784 | # | ||
785 | # CD-ROM/DVD Filesystems | ||
786 | # | ||
787 | # CONFIG_ISO9660_FS is not set | ||
788 | # CONFIG_UDF_FS is not set | ||
789 | |||
790 | # | ||
791 | # DOS/FAT/NT Filesystems | ||
792 | # | ||
793 | CONFIG_FAT_FS=y | ||
794 | # CONFIG_MSDOS_FS is not set | ||
795 | CONFIG_VFAT_FS=y | ||
796 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
797 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
798 | # CONFIG_NTFS_FS is not set | ||
799 | |||
800 | # | ||
801 | # Pseudo filesystems | ||
802 | # | ||
803 | CONFIG_PROC_FS=y | ||
804 | CONFIG_PROC_SYSCTL=y | ||
805 | CONFIG_SYSFS=y | ||
806 | CONFIG_TMPFS=y | ||
807 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
808 | # CONFIG_HUGETLB_PAGE is not set | ||
809 | CONFIG_RAMFS=y | ||
810 | # CONFIG_CONFIGFS_FS is not set | ||
811 | |||
812 | # | ||
813 | # Miscellaneous filesystems | ||
814 | # | ||
815 | # CONFIG_ADFS_FS is not set | ||
816 | # CONFIG_AFFS_FS is not set | ||
817 | # CONFIG_HFS_FS is not set | ||
818 | # CONFIG_HFSPLUS_FS is not set | ||
819 | # CONFIG_BEFS_FS is not set | ||
820 | # CONFIG_BFS_FS is not set | ||
821 | # CONFIG_EFS_FS is not set | ||
822 | CONFIG_CRAMFS=y | ||
823 | # CONFIG_VXFS_FS is not set | ||
824 | # CONFIG_HPFS_FS is not set | ||
825 | # CONFIG_QNX4FS_FS is not set | ||
826 | # CONFIG_SYSV_FS is not set | ||
827 | # CONFIG_UFS_FS is not set | ||
828 | |||
829 | # | ||
830 | # Network File Systems | ||
831 | # | ||
832 | # CONFIG_NFS_FS is not set | ||
833 | # CONFIG_NFSD is not set | ||
834 | # CONFIG_SMB_FS is not set | ||
835 | # CONFIG_CIFS is not set | ||
836 | # CONFIG_NCP_FS is not set | ||
837 | # CONFIG_CODA_FS is not set | ||
838 | # CONFIG_AFS_FS is not set | ||
839 | # CONFIG_9P_FS is not set | ||
840 | |||
841 | # | ||
842 | # Partition Types | ||
843 | # | ||
844 | # CONFIG_PARTITION_ADVANCED is not set | ||
845 | CONFIG_MSDOS_PARTITION=y | ||
846 | |||
847 | # | ||
848 | # Native Language Support | ||
849 | # | ||
850 | CONFIG_NLS=y | ||
851 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
852 | CONFIG_NLS_CODEPAGE_437=y | ||
853 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
854 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
855 | CONFIG_NLS_CODEPAGE_850=y | ||
856 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
857 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
858 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
859 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
860 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
861 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
862 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
863 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
864 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
865 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
866 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
867 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
868 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
869 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
870 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
871 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
872 | # CONFIG_NLS_ISO8859_8 is not set | ||
873 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
874 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
875 | # CONFIG_NLS_ASCII is not set | ||
876 | CONFIG_NLS_ISO8859_1=y | ||
877 | # CONFIG_NLS_ISO8859_2 is not set | ||
878 | # CONFIG_NLS_ISO8859_3 is not set | ||
879 | # CONFIG_NLS_ISO8859_4 is not set | ||
880 | # CONFIG_NLS_ISO8859_5 is not set | ||
881 | # CONFIG_NLS_ISO8859_6 is not set | ||
882 | # CONFIG_NLS_ISO8859_7 is not set | ||
883 | # CONFIG_NLS_ISO8859_9 is not set | ||
884 | # CONFIG_NLS_ISO8859_13 is not set | ||
885 | # CONFIG_NLS_ISO8859_14 is not set | ||
886 | # CONFIG_NLS_ISO8859_15 is not set | ||
887 | # CONFIG_NLS_KOI8_R is not set | ||
888 | # CONFIG_NLS_KOI8_U is not set | ||
889 | # CONFIG_NLS_UTF8 is not set | ||
890 | |||
891 | # | ||
892 | # Profiling support | ||
893 | # | ||
894 | # CONFIG_PROFILING is not set | ||
895 | |||
896 | # | ||
897 | # Kernel hacking | ||
898 | # | ||
899 | # CONFIG_PRINTK_TIME is not set | ||
900 | CONFIG_ENABLE_MUST_CHECK=y | ||
901 | # CONFIG_MAGIC_SYSRQ is not set | ||
902 | # CONFIG_UNUSED_SYMBOLS is not set | ||
903 | CONFIG_DEBUG_KERNEL=y | ||
904 | CONFIG_LOG_BUF_SHIFT=14 | ||
905 | CONFIG_DETECT_SOFTLOCKUP=y | ||
906 | # CONFIG_SCHEDSTATS is not set | ||
907 | # CONFIG_DEBUG_SLAB is not set | ||
908 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
909 | # CONFIG_RT_MUTEX_TESTER is not set | ||
910 | # CONFIG_DEBUG_SPINLOCK is not set | ||
911 | # CONFIG_DEBUG_MUTEXES is not set | ||
912 | # CONFIG_DEBUG_RWSEMS is not set | ||
913 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
914 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
915 | # CONFIG_DEBUG_KOBJECT is not set | ||
916 | CONFIG_DEBUG_BUGVERBOSE=y | ||
917 | # CONFIG_DEBUG_INFO is not set | ||
918 | # CONFIG_DEBUG_FS is not set | ||
919 | # CONFIG_DEBUG_VM is not set | ||
920 | # CONFIG_DEBUG_LIST is not set | ||
921 | CONFIG_FRAME_POINTER=y | ||
922 | CONFIG_FORCED_INLINING=y | ||
923 | # CONFIG_HEADERS_CHECK is not set | ||
924 | # CONFIG_RCU_TORTURE_TEST is not set | ||
925 | CONFIG_DEBUG_USER=y | ||
926 | # CONFIG_DEBUG_WAITQ is not set | ||
927 | # CONFIG_DEBUG_ERRORS is not set | ||
928 | CONFIG_DEBUG_LL=y | ||
929 | # CONFIG_DEBUG_ICEDCC is not set | ||
930 | |||
931 | # | ||
932 | # Security options | ||
933 | # | ||
934 | # CONFIG_KEYS is not set | ||
935 | # CONFIG_SECURITY is not set | ||
936 | |||
937 | # | ||
938 | # Cryptographic options | ||
939 | # | ||
940 | # CONFIG_CRYPTO is not set | ||
941 | |||
942 | # | ||
943 | # Library routines | ||
944 | # | ||
945 | # CONFIG_CRC_CCITT is not set | ||
946 | # CONFIG_CRC16 is not set | ||
947 | CONFIG_CRC32=y | ||
948 | # CONFIG_LIBCRC32C is not set | ||
949 | CONFIG_ZLIB_INFLATE=y | ||
950 | CONFIG_PLIST=y | ||
diff --git a/arch/arm/configs/at91sam9261ek_defconfig b/arch/arm/configs/at91sam9261ek_defconfig new file mode 100644 index 000000000000..784ad7c0186d --- /dev/null +++ b/arch/arm/configs/at91sam9261ek_defconfig | |||
@@ -0,0 +1,1106 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.19-rc6 | ||
4 | # Fri Nov 17 18:00:38 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | # CONFIG_GENERIC_TIME is not set | ||
8 | CONFIG_MMU=y | ||
9 | CONFIG_GENERIC_HARDIRQS=y | ||
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
11 | CONFIG_HARDIRQS_SW_RESEND=y | ||
12 | CONFIG_GENERIC_IRQ_PROBE=y | ||
13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
16 | CONFIG_VECTORS_BASE=0xffff0000 | ||
17 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
18 | |||
19 | # | ||
20 | # Code maturity level options | ||
21 | # | ||
22 | CONFIG_EXPERIMENTAL=y | ||
23 | CONFIG_BROKEN_ON_SMP=y | ||
24 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
25 | |||
26 | # | ||
27 | # General setup | ||
28 | # | ||
29 | CONFIG_LOCALVERSION="" | ||
30 | # CONFIG_LOCALVERSION_AUTO is not set | ||
31 | # CONFIG_SWAP is not set | ||
32 | CONFIG_SYSVIPC=y | ||
33 | # CONFIG_IPC_NS is not set | ||
34 | # CONFIG_POSIX_MQUEUE is not set | ||
35 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
36 | # CONFIG_TASKSTATS is not set | ||
37 | # CONFIG_UTS_NS is not set | ||
38 | # CONFIG_AUDIT is not set | ||
39 | # CONFIG_IKCONFIG is not set | ||
40 | # CONFIG_RELAY is not set | ||
41 | CONFIG_INITRAMFS_SOURCE="" | ||
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
43 | CONFIG_SYSCTL=y | ||
44 | # CONFIG_EMBEDDED is not set | ||
45 | CONFIG_UID16=y | ||
46 | CONFIG_SYSCTL_SYSCALL=y | ||
47 | CONFIG_KALLSYMS=y | ||
48 | # CONFIG_KALLSYMS_ALL is not set | ||
49 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
50 | CONFIG_HOTPLUG=y | ||
51 | CONFIG_PRINTK=y | ||
52 | CONFIG_BUG=y | ||
53 | CONFIG_ELF_CORE=y | ||
54 | CONFIG_BASE_FULL=y | ||
55 | CONFIG_FUTEX=y | ||
56 | CONFIG_EPOLL=y | ||
57 | CONFIG_SHMEM=y | ||
58 | CONFIG_SLAB=y | ||
59 | CONFIG_VM_EVENT_COUNTERS=y | ||
60 | CONFIG_RT_MUTEXES=y | ||
61 | # CONFIG_TINY_SHMEM is not set | ||
62 | CONFIG_BASE_SMALL=0 | ||
63 | # CONFIG_SLOB is not set | ||
64 | |||
65 | # | ||
66 | # Loadable module support | ||
67 | # | ||
68 | CONFIG_MODULES=y | ||
69 | CONFIG_MODULE_UNLOAD=y | ||
70 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
71 | # CONFIG_MODVERSIONS is not set | ||
72 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
73 | CONFIG_KMOD=y | ||
74 | |||
75 | # | ||
76 | # Block layer | ||
77 | # | ||
78 | CONFIG_BLOCK=y | ||
79 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
80 | |||
81 | # | ||
82 | # IO Schedulers | ||
83 | # | ||
84 | CONFIG_IOSCHED_NOOP=y | ||
85 | CONFIG_IOSCHED_AS=y | ||
86 | # CONFIG_IOSCHED_DEADLINE is not set | ||
87 | # CONFIG_IOSCHED_CFQ is not set | ||
88 | CONFIG_DEFAULT_AS=y | ||
89 | # CONFIG_DEFAULT_DEADLINE is not set | ||
90 | # CONFIG_DEFAULT_CFQ is not set | ||
91 | # CONFIG_DEFAULT_NOOP is not set | ||
92 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
93 | |||
94 | # | ||
95 | # System Type | ||
96 | # | ||
97 | # CONFIG_ARCH_AAEC2000 is not set | ||
98 | # CONFIG_ARCH_INTEGRATOR is not set | ||
99 | # CONFIG_ARCH_REALVIEW is not set | ||
100 | # CONFIG_ARCH_VERSATILE is not set | ||
101 | CONFIG_ARCH_AT91=y | ||
102 | # CONFIG_ARCH_CLPS7500 is not set | ||
103 | # CONFIG_ARCH_CLPS711X is not set | ||
104 | # CONFIG_ARCH_CO285 is not set | ||
105 | # CONFIG_ARCH_EBSA110 is not set | ||
106 | # CONFIG_ARCH_EP93XX is not set | ||
107 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
108 | # CONFIG_ARCH_NETX is not set | ||
109 | # CONFIG_ARCH_H720X is not set | ||
110 | # CONFIG_ARCH_IMX is not set | ||
111 | # CONFIG_ARCH_IOP32X is not set | ||
112 | # CONFIG_ARCH_IOP33X is not set | ||
113 | # CONFIG_ARCH_IXP4XX is not set | ||
114 | # CONFIG_ARCH_IXP2000 is not set | ||
115 | # CONFIG_ARCH_IXP23XX is not set | ||
116 | # CONFIG_ARCH_L7200 is not set | ||
117 | # CONFIG_ARCH_PNX4008 is not set | ||
118 | # CONFIG_ARCH_PXA is not set | ||
119 | # CONFIG_ARCH_RPC is not set | ||
120 | # CONFIG_ARCH_SA1100 is not set | ||
121 | # CONFIG_ARCH_S3C2410 is not set | ||
122 | # CONFIG_ARCH_SHARK is not set | ||
123 | # CONFIG_ARCH_LH7A40X is not set | ||
124 | # CONFIG_ARCH_OMAP is not set | ||
125 | |||
126 | # | ||
127 | # Atmel AT91 System-on-Chip | ||
128 | # | ||
129 | # CONFIG_ARCH_AT91RM9200 is not set | ||
130 | # CONFIG_ARCH_AT91SAM9260 is not set | ||
131 | CONFIG_ARCH_AT91SAM9261=y | ||
132 | |||
133 | # | ||
134 | # AT91SAM9261 Board Type | ||
135 | # | ||
136 | CONFIG_MACH_AT91SAM9261EK=y | ||
137 | |||
138 | # | ||
139 | # AT91 Board Options | ||
140 | # | ||
141 | # CONFIG_MTD_NAND_AT91_BUSWIDTH_16 is not set | ||
142 | |||
143 | # | ||
144 | # AT91 Feature Selections | ||
145 | # | ||
146 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
147 | |||
148 | # | ||
149 | # Processor Type | ||
150 | # | ||
151 | CONFIG_CPU_32=y | ||
152 | CONFIG_CPU_ARM926T=y | ||
153 | CONFIG_CPU_32v5=y | ||
154 | CONFIG_CPU_ABRT_EV5TJ=y | ||
155 | CONFIG_CPU_CACHE_VIVT=y | ||
156 | CONFIG_CPU_COPY_V4WB=y | ||
157 | CONFIG_CPU_TLB_V4WBI=y | ||
158 | CONFIG_CPU_CP15=y | ||
159 | CONFIG_CPU_CP15_MMU=y | ||
160 | |||
161 | # | ||
162 | # Processor Features | ||
163 | # | ||
164 | # CONFIG_ARM_THUMB is not set | ||
165 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
166 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
167 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
168 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
169 | |||
170 | # | ||
171 | # Bus support | ||
172 | # | ||
173 | |||
174 | # | ||
175 | # PCCARD (PCMCIA/CardBus) support | ||
176 | # | ||
177 | # CONFIG_PCCARD is not set | ||
178 | |||
179 | # | ||
180 | # Kernel Features | ||
181 | # | ||
182 | # CONFIG_PREEMPT is not set | ||
183 | # CONFIG_NO_IDLE_HZ is not set | ||
184 | CONFIG_HZ=100 | ||
185 | # CONFIG_AEABI is not set | ||
186 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
187 | CONFIG_SELECT_MEMORY_MODEL=y | ||
188 | CONFIG_FLATMEM_MANUAL=y | ||
189 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
190 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
191 | CONFIG_FLATMEM=y | ||
192 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
193 | # CONFIG_SPARSEMEM_STATIC is not set | ||
194 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
195 | # CONFIG_RESOURCES_64BIT is not set | ||
196 | # CONFIG_LEDS is not set | ||
197 | CONFIG_ALIGNMENT_TRAP=y | ||
198 | |||
199 | # | ||
200 | # Boot options | ||
201 | # | ||
202 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
203 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
204 | CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw" | ||
205 | # CONFIG_XIP_KERNEL is not set | ||
206 | |||
207 | # | ||
208 | # Floating point emulation | ||
209 | # | ||
210 | |||
211 | # | ||
212 | # At least one emulation must be selected | ||
213 | # | ||
214 | CONFIG_FPE_NWFPE=y | ||
215 | # CONFIG_FPE_NWFPE_XP is not set | ||
216 | # CONFIG_FPE_FASTFPE is not set | ||
217 | # CONFIG_VFP is not set | ||
218 | |||
219 | # | ||
220 | # Userspace binary formats | ||
221 | # | ||
222 | CONFIG_BINFMT_ELF=y | ||
223 | # CONFIG_BINFMT_AOUT is not set | ||
224 | # CONFIG_BINFMT_MISC is not set | ||
225 | # CONFIG_ARTHUR is not set | ||
226 | |||
227 | # | ||
228 | # Power management options | ||
229 | # | ||
230 | # CONFIG_PM is not set | ||
231 | # CONFIG_APM is not set | ||
232 | |||
233 | # | ||
234 | # Networking | ||
235 | # | ||
236 | CONFIG_NET=y | ||
237 | |||
238 | # | ||
239 | # Networking options | ||
240 | # | ||
241 | # CONFIG_NETDEBUG is not set | ||
242 | CONFIG_PACKET=y | ||
243 | # CONFIG_PACKET_MMAP is not set | ||
244 | CONFIG_UNIX=y | ||
245 | CONFIG_XFRM=y | ||
246 | # CONFIG_XFRM_USER is not set | ||
247 | # CONFIG_XFRM_SUB_POLICY is not set | ||
248 | # CONFIG_NET_KEY is not set | ||
249 | CONFIG_INET=y | ||
250 | # CONFIG_IP_MULTICAST is not set | ||
251 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
252 | CONFIG_IP_FIB_HASH=y | ||
253 | CONFIG_IP_PNP=y | ||
254 | # CONFIG_IP_PNP_DHCP is not set | ||
255 | CONFIG_IP_PNP_BOOTP=y | ||
256 | # CONFIG_IP_PNP_RARP is not set | ||
257 | # CONFIG_NET_IPIP is not set | ||
258 | # CONFIG_NET_IPGRE is not set | ||
259 | # CONFIG_ARPD is not set | ||
260 | # CONFIG_SYN_COOKIES is not set | ||
261 | # CONFIG_INET_AH is not set | ||
262 | # CONFIG_INET_ESP is not set | ||
263 | # CONFIG_INET_IPCOMP is not set | ||
264 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
265 | # CONFIG_INET_TUNNEL is not set | ||
266 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
267 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
268 | CONFIG_INET_XFRM_MODE_BEET=y | ||
269 | CONFIG_INET_DIAG=y | ||
270 | CONFIG_INET_TCP_DIAG=y | ||
271 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
272 | CONFIG_TCP_CONG_CUBIC=y | ||
273 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
274 | # CONFIG_IPV6 is not set | ||
275 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
276 | # CONFIG_INET6_TUNNEL is not set | ||
277 | # CONFIG_NETWORK_SECMARK is not set | ||
278 | # CONFIG_NETFILTER is not set | ||
279 | |||
280 | # | ||
281 | # DCCP Configuration (EXPERIMENTAL) | ||
282 | # | ||
283 | # CONFIG_IP_DCCP is not set | ||
284 | |||
285 | # | ||
286 | # SCTP Configuration (EXPERIMENTAL) | ||
287 | # | ||
288 | # CONFIG_IP_SCTP is not set | ||
289 | |||
290 | # | ||
291 | # TIPC Configuration (EXPERIMENTAL) | ||
292 | # | ||
293 | # CONFIG_TIPC is not set | ||
294 | # CONFIG_ATM is not set | ||
295 | # CONFIG_BRIDGE is not set | ||
296 | # CONFIG_VLAN_8021Q is not set | ||
297 | # CONFIG_DECNET is not set | ||
298 | # CONFIG_LLC2 is not set | ||
299 | # CONFIG_IPX is not set | ||
300 | # CONFIG_ATALK is not set | ||
301 | # CONFIG_X25 is not set | ||
302 | # CONFIG_LAPB is not set | ||
303 | # CONFIG_ECONET is not set | ||
304 | # CONFIG_WAN_ROUTER is not set | ||
305 | |||
306 | # | ||
307 | # QoS and/or fair queueing | ||
308 | # | ||
309 | # CONFIG_NET_SCHED is not set | ||
310 | |||
311 | # | ||
312 | # Network testing | ||
313 | # | ||
314 | # CONFIG_NET_PKTGEN is not set | ||
315 | # CONFIG_HAMRADIO is not set | ||
316 | # CONFIG_IRDA is not set | ||
317 | # CONFIG_BT is not set | ||
318 | # CONFIG_IEEE80211 is not set | ||
319 | |||
320 | # | ||
321 | # Device Drivers | ||
322 | # | ||
323 | |||
324 | # | ||
325 | # Generic Driver Options | ||
326 | # | ||
327 | CONFIG_STANDALONE=y | ||
328 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
329 | # CONFIG_FW_LOADER is not set | ||
330 | # CONFIG_DEBUG_DRIVER is not set | ||
331 | # CONFIG_SYS_HYPERVISOR is not set | ||
332 | |||
333 | # | ||
334 | # Connector - unified userspace <-> kernelspace linker | ||
335 | # | ||
336 | # CONFIG_CONNECTOR is not set | ||
337 | |||
338 | # | ||
339 | # Memory Technology Devices (MTD) | ||
340 | # | ||
341 | CONFIG_MTD=y | ||
342 | # CONFIG_MTD_DEBUG is not set | ||
343 | # CONFIG_MTD_CONCAT is not set | ||
344 | CONFIG_MTD_PARTITIONS=y | ||
345 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
346 | CONFIG_MTD_CMDLINE_PARTS=y | ||
347 | # CONFIG_MTD_AFS_PARTS is not set | ||
348 | |||
349 | # | ||
350 | # User Modules And Translation Layers | ||
351 | # | ||
352 | # CONFIG_MTD_CHAR is not set | ||
353 | CONFIG_MTD_BLOCK=y | ||
354 | # CONFIG_FTL is not set | ||
355 | # CONFIG_NFTL is not set | ||
356 | # CONFIG_INFTL is not set | ||
357 | # CONFIG_RFD_FTL is not set | ||
358 | # CONFIG_SSFDC is not set | ||
359 | |||
360 | # | ||
361 | # RAM/ROM/Flash chip drivers | ||
362 | # | ||
363 | # CONFIG_MTD_CFI is not set | ||
364 | # CONFIG_MTD_JEDECPROBE is not set | ||
365 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
366 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
367 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
368 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
369 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
370 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
371 | CONFIG_MTD_CFI_I1=y | ||
372 | CONFIG_MTD_CFI_I2=y | ||
373 | # CONFIG_MTD_CFI_I4 is not set | ||
374 | # CONFIG_MTD_CFI_I8 is not set | ||
375 | # CONFIG_MTD_RAM is not set | ||
376 | # CONFIG_MTD_ROM is not set | ||
377 | # CONFIG_MTD_ABSENT is not set | ||
378 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
379 | |||
380 | # | ||
381 | # Mapping drivers for chip access | ||
382 | # | ||
383 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
384 | # CONFIG_MTD_PLATRAM is not set | ||
385 | |||
386 | # | ||
387 | # Self-contained MTD device drivers | ||
388 | # | ||
389 | # CONFIG_MTD_SLRAM is not set | ||
390 | # CONFIG_MTD_PHRAM is not set | ||
391 | # CONFIG_MTD_MTDRAM is not set | ||
392 | # CONFIG_MTD_BLOCK2MTD is not set | ||
393 | |||
394 | # | ||
395 | # Disk-On-Chip Device Drivers | ||
396 | # | ||
397 | # CONFIG_MTD_DOC2000 is not set | ||
398 | # CONFIG_MTD_DOC2001 is not set | ||
399 | # CONFIG_MTD_DOC2001PLUS is not set | ||
400 | |||
401 | # | ||
402 | # NAND Flash Device Drivers | ||
403 | # | ||
404 | CONFIG_MTD_NAND=y | ||
405 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
406 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
407 | CONFIG_MTD_NAND_IDS=y | ||
408 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
409 | CONFIG_MTD_NAND_AT91=y | ||
410 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
411 | |||
412 | # | ||
413 | # OneNAND Flash Device Drivers | ||
414 | # | ||
415 | # CONFIG_MTD_ONENAND is not set | ||
416 | |||
417 | # | ||
418 | # Parallel port support | ||
419 | # | ||
420 | # CONFIG_PARPORT is not set | ||
421 | |||
422 | # | ||
423 | # Plug and Play support | ||
424 | # | ||
425 | |||
426 | # | ||
427 | # Block devices | ||
428 | # | ||
429 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
430 | # CONFIG_BLK_DEV_LOOP is not set | ||
431 | # CONFIG_BLK_DEV_NBD is not set | ||
432 | # CONFIG_BLK_DEV_UB is not set | ||
433 | CONFIG_BLK_DEV_RAM=y | ||
434 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
435 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
436 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
437 | CONFIG_BLK_DEV_INITRD=y | ||
438 | # CONFIG_CDROM_PKTCDVD is not set | ||
439 | # CONFIG_ATA_OVER_ETH is not set | ||
440 | |||
441 | # | ||
442 | # SCSI device support | ||
443 | # | ||
444 | # CONFIG_RAID_ATTRS is not set | ||
445 | CONFIG_SCSI=y | ||
446 | # CONFIG_SCSI_NETLINK is not set | ||
447 | CONFIG_SCSI_PROC_FS=y | ||
448 | |||
449 | # | ||
450 | # SCSI support type (disk, tape, CD-ROM) | ||
451 | # | ||
452 | CONFIG_BLK_DEV_SD=y | ||
453 | # CONFIG_CHR_DEV_ST is not set | ||
454 | # CONFIG_CHR_DEV_OSST is not set | ||
455 | # CONFIG_BLK_DEV_SR is not set | ||
456 | # CONFIG_CHR_DEV_SG is not set | ||
457 | # CONFIG_CHR_DEV_SCH is not set | ||
458 | |||
459 | # | ||
460 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
461 | # | ||
462 | CONFIG_SCSI_MULTI_LUN=y | ||
463 | # CONFIG_SCSI_CONSTANTS is not set | ||
464 | # CONFIG_SCSI_LOGGING is not set | ||
465 | |||
466 | # | ||
467 | # SCSI Transports | ||
468 | # | ||
469 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
470 | # CONFIG_SCSI_FC_ATTRS is not set | ||
471 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
472 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
473 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
474 | |||
475 | # | ||
476 | # SCSI low-level drivers | ||
477 | # | ||
478 | # CONFIG_ISCSI_TCP is not set | ||
479 | # CONFIG_SCSI_DEBUG is not set | ||
480 | |||
481 | # | ||
482 | # Multi-device support (RAID and LVM) | ||
483 | # | ||
484 | # CONFIG_MD is not set | ||
485 | |||
486 | # | ||
487 | # Fusion MPT device support | ||
488 | # | ||
489 | # CONFIG_FUSION is not set | ||
490 | |||
491 | # | ||
492 | # IEEE 1394 (FireWire) support | ||
493 | # | ||
494 | |||
495 | # | ||
496 | # I2O device support | ||
497 | # | ||
498 | |||
499 | # | ||
500 | # Network device support | ||
501 | # | ||
502 | CONFIG_NETDEVICES=y | ||
503 | # CONFIG_DUMMY is not set | ||
504 | # CONFIG_BONDING is not set | ||
505 | # CONFIG_EQUALIZER is not set | ||
506 | # CONFIG_TUN is not set | ||
507 | |||
508 | # | ||
509 | # PHY device support | ||
510 | # | ||
511 | # CONFIG_PHYLIB is not set | ||
512 | |||
513 | # | ||
514 | # Ethernet (10 or 100Mbit) | ||
515 | # | ||
516 | CONFIG_NET_ETHERNET=y | ||
517 | CONFIG_MII=y | ||
518 | # CONFIG_SMC91X is not set | ||
519 | CONFIG_DM9000=y | ||
520 | |||
521 | # | ||
522 | # Ethernet (1000 Mbit) | ||
523 | # | ||
524 | |||
525 | # | ||
526 | # Ethernet (10000 Mbit) | ||
527 | # | ||
528 | |||
529 | # | ||
530 | # Token Ring devices | ||
531 | # | ||
532 | |||
533 | # | ||
534 | # Wireless LAN (non-hamradio) | ||
535 | # | ||
536 | # CONFIG_NET_RADIO is not set | ||
537 | |||
538 | # | ||
539 | # Wan interfaces | ||
540 | # | ||
541 | # CONFIG_WAN is not set | ||
542 | # CONFIG_PPP is not set | ||
543 | # CONFIG_SLIP is not set | ||
544 | # CONFIG_SHAPER is not set | ||
545 | # CONFIG_NETCONSOLE is not set | ||
546 | # CONFIG_NETPOLL is not set | ||
547 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
548 | |||
549 | # | ||
550 | # ISDN subsystem | ||
551 | # | ||
552 | # CONFIG_ISDN is not set | ||
553 | |||
554 | # | ||
555 | # Input device support | ||
556 | # | ||
557 | CONFIG_INPUT=y | ||
558 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
559 | |||
560 | # | ||
561 | # Userland interfaces | ||
562 | # | ||
563 | CONFIG_INPUT_MOUSEDEV=y | ||
564 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
565 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
566 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
567 | # CONFIG_INPUT_JOYDEV is not set | ||
568 | # CONFIG_INPUT_TSDEV is not set | ||
569 | # CONFIG_INPUT_EVDEV is not set | ||
570 | # CONFIG_INPUT_EVBUG is not set | ||
571 | |||
572 | # | ||
573 | # Input Device Drivers | ||
574 | # | ||
575 | # CONFIG_INPUT_KEYBOARD is not set | ||
576 | # CONFIG_INPUT_MOUSE is not set | ||
577 | # CONFIG_INPUT_JOYSTICK is not set | ||
578 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
579 | # CONFIG_INPUT_MISC is not set | ||
580 | |||
581 | # | ||
582 | # Hardware I/O ports | ||
583 | # | ||
584 | # CONFIG_SERIO is not set | ||
585 | # CONFIG_GAMEPORT is not set | ||
586 | |||
587 | # | ||
588 | # Character devices | ||
589 | # | ||
590 | CONFIG_VT=y | ||
591 | CONFIG_VT_CONSOLE=y | ||
592 | CONFIG_HW_CONSOLE=y | ||
593 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
594 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
595 | |||
596 | # | ||
597 | # Serial drivers | ||
598 | # | ||
599 | # CONFIG_SERIAL_8250 is not set | ||
600 | |||
601 | # | ||
602 | # Non-8250 serial port support | ||
603 | # | ||
604 | CONFIG_SERIAL_ATMEL=y | ||
605 | CONFIG_SERIAL_ATMEL_CONSOLE=y | ||
606 | # CONFIG_SERIAL_ATMEL_TTYAT is not set | ||
607 | CONFIG_SERIAL_CORE=y | ||
608 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
609 | CONFIG_UNIX98_PTYS=y | ||
610 | CONFIG_LEGACY_PTYS=y | ||
611 | CONFIG_LEGACY_PTY_COUNT=256 | ||
612 | |||
613 | # | ||
614 | # IPMI | ||
615 | # | ||
616 | # CONFIG_IPMI_HANDLER is not set | ||
617 | |||
618 | # | ||
619 | # Watchdog Cards | ||
620 | # | ||
621 | CONFIG_WATCHDOG=y | ||
622 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
623 | |||
624 | # | ||
625 | # Watchdog Device Drivers | ||
626 | # | ||
627 | # CONFIG_SOFT_WATCHDOG is not set | ||
628 | |||
629 | # | ||
630 | # USB-based Watchdog Cards | ||
631 | # | ||
632 | # CONFIG_USBPCWATCHDOG is not set | ||
633 | CONFIG_HW_RANDOM=y | ||
634 | # CONFIG_NVRAM is not set | ||
635 | # CONFIG_DTLK is not set | ||
636 | # CONFIG_R3964 is not set | ||
637 | |||
638 | # | ||
639 | # Ftape, the floppy tape device driver | ||
640 | # | ||
641 | # CONFIG_RAW_DRIVER is not set | ||
642 | |||
643 | # | ||
644 | # TPM devices | ||
645 | # | ||
646 | # CONFIG_TCG_TPM is not set | ||
647 | |||
648 | # | ||
649 | # I2C support | ||
650 | # | ||
651 | CONFIG_I2C=y | ||
652 | CONFIG_I2C_CHARDEV=y | ||
653 | |||
654 | # | ||
655 | # I2C Algorithms | ||
656 | # | ||
657 | # CONFIG_I2C_ALGOBIT is not set | ||
658 | # CONFIG_I2C_ALGOPCF is not set | ||
659 | # CONFIG_I2C_ALGOPCA is not set | ||
660 | |||
661 | # | ||
662 | # I2C Hardware Bus support | ||
663 | # | ||
664 | CONFIG_I2C_AT91=y | ||
665 | # CONFIG_I2C_OCORES is not set | ||
666 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
667 | # CONFIG_I2C_STUB is not set | ||
668 | # CONFIG_I2C_PCA is not set | ||
669 | # CONFIG_I2C_PCA_ISA is not set | ||
670 | |||
671 | # | ||
672 | # Miscellaneous I2C Chip support | ||
673 | # | ||
674 | # CONFIG_SENSORS_DS1337 is not set | ||
675 | # CONFIG_SENSORS_DS1374 is not set | ||
676 | # CONFIG_SENSORS_EEPROM is not set | ||
677 | # CONFIG_SENSORS_PCF8574 is not set | ||
678 | # CONFIG_SENSORS_PCA9539 is not set | ||
679 | # CONFIG_SENSORS_PCF8591 is not set | ||
680 | # CONFIG_SENSORS_MAX6875 is not set | ||
681 | # CONFIG_I2C_DEBUG_CORE is not set | ||
682 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
683 | # CONFIG_I2C_DEBUG_BUS is not set | ||
684 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
685 | |||
686 | # | ||
687 | # SPI support | ||
688 | # | ||
689 | # CONFIG_SPI is not set | ||
690 | # CONFIG_SPI_MASTER is not set | ||
691 | |||
692 | # | ||
693 | # Dallas's 1-wire bus | ||
694 | # | ||
695 | # CONFIG_W1 is not set | ||
696 | |||
697 | # | ||
698 | # Hardware Monitoring support | ||
699 | # | ||
700 | # CONFIG_HWMON is not set | ||
701 | # CONFIG_HWMON_VID is not set | ||
702 | |||
703 | # | ||
704 | # Misc devices | ||
705 | # | ||
706 | # CONFIG_TIFM_CORE is not set | ||
707 | |||
708 | # | ||
709 | # LED devices | ||
710 | # | ||
711 | # CONFIG_NEW_LEDS is not set | ||
712 | |||
713 | # | ||
714 | # LED drivers | ||
715 | # | ||
716 | |||
717 | # | ||
718 | # LED Triggers | ||
719 | # | ||
720 | |||
721 | # | ||
722 | # Multimedia devices | ||
723 | # | ||
724 | # CONFIG_VIDEO_DEV is not set | ||
725 | |||
726 | # | ||
727 | # Digital Video Broadcasting Devices | ||
728 | # | ||
729 | # CONFIG_DVB is not set | ||
730 | # CONFIG_USB_DABUSB is not set | ||
731 | |||
732 | # | ||
733 | # Graphics support | ||
734 | # | ||
735 | # CONFIG_FIRMWARE_EDID is not set | ||
736 | # CONFIG_FB is not set | ||
737 | |||
738 | # | ||
739 | # Console display driver support | ||
740 | # | ||
741 | # CONFIG_VGA_CONSOLE is not set | ||
742 | CONFIG_DUMMY_CONSOLE=y | ||
743 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
744 | |||
745 | # | ||
746 | # Sound | ||
747 | # | ||
748 | # CONFIG_SOUND is not set | ||
749 | |||
750 | # | ||
751 | # USB support | ||
752 | # | ||
753 | CONFIG_USB_ARCH_HAS_HCD=y | ||
754 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
755 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
756 | CONFIG_USB=y | ||
757 | # CONFIG_USB_DEBUG is not set | ||
758 | |||
759 | # | ||
760 | # Miscellaneous USB options | ||
761 | # | ||
762 | CONFIG_USB_DEVICEFS=y | ||
763 | # CONFIG_USB_BANDWIDTH is not set | ||
764 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
765 | # CONFIG_USB_OTG is not set | ||
766 | |||
767 | # | ||
768 | # USB Host Controller Drivers | ||
769 | # | ||
770 | # CONFIG_USB_ISP116X_HCD is not set | ||
771 | CONFIG_USB_OHCI_HCD=y | ||
772 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
773 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
774 | # CONFIG_USB_SL811_HCD is not set | ||
775 | |||
776 | # | ||
777 | # USB Device Class drivers | ||
778 | # | ||
779 | # CONFIG_USB_ACM is not set | ||
780 | # CONFIG_USB_PRINTER is not set | ||
781 | |||
782 | # | ||
783 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
784 | # | ||
785 | |||
786 | # | ||
787 | # may also be needed; see USB_STORAGE Help for more information | ||
788 | # | ||
789 | CONFIG_USB_STORAGE=y | ||
790 | CONFIG_USB_STORAGE_DEBUG=y | ||
791 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
792 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
793 | # CONFIG_USB_STORAGE_DPCM is not set | ||
794 | # CONFIG_USB_STORAGE_USBAT is not set | ||
795 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
796 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
797 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
798 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
799 | # CONFIG_USB_STORAGE_KARMA is not set | ||
800 | # CONFIG_USB_LIBUSUAL is not set | ||
801 | |||
802 | # | ||
803 | # USB Input Devices | ||
804 | # | ||
805 | # CONFIG_USB_HID is not set | ||
806 | |||
807 | # | ||
808 | # USB HID Boot Protocol drivers | ||
809 | # | ||
810 | # CONFIG_USB_KBD is not set | ||
811 | # CONFIG_USB_MOUSE is not set | ||
812 | # CONFIG_USB_AIPTEK is not set | ||
813 | # CONFIG_USB_WACOM is not set | ||
814 | # CONFIG_USB_ACECAD is not set | ||
815 | # CONFIG_USB_KBTAB is not set | ||
816 | # CONFIG_USB_POWERMATE is not set | ||
817 | # CONFIG_USB_TOUCHSCREEN is not set | ||
818 | # CONFIG_USB_YEALINK is not set | ||
819 | # CONFIG_USB_XPAD is not set | ||
820 | # CONFIG_USB_ATI_REMOTE is not set | ||
821 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
822 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
823 | # CONFIG_USB_APPLETOUCH is not set | ||
824 | |||
825 | # | ||
826 | # USB Imaging devices | ||
827 | # | ||
828 | # CONFIG_USB_MDC800 is not set | ||
829 | # CONFIG_USB_MICROTEK is not set | ||
830 | |||
831 | # | ||
832 | # USB Network Adapters | ||
833 | # | ||
834 | # CONFIG_USB_CATC is not set | ||
835 | # CONFIG_USB_KAWETH is not set | ||
836 | # CONFIG_USB_PEGASUS is not set | ||
837 | # CONFIG_USB_RTL8150 is not set | ||
838 | # CONFIG_USB_USBNET_MII is not set | ||
839 | # CONFIG_USB_USBNET is not set | ||
840 | CONFIG_USB_MON=y | ||
841 | |||
842 | # | ||
843 | # USB port drivers | ||
844 | # | ||
845 | |||
846 | # | ||
847 | # USB Serial Converter support | ||
848 | # | ||
849 | # CONFIG_USB_SERIAL is not set | ||
850 | |||
851 | # | ||
852 | # USB Miscellaneous drivers | ||
853 | # | ||
854 | # CONFIG_USB_EMI62 is not set | ||
855 | # CONFIG_USB_EMI26 is not set | ||
856 | # CONFIG_USB_ADUTUX is not set | ||
857 | # CONFIG_USB_AUERSWALD is not set | ||
858 | # CONFIG_USB_RIO500 is not set | ||
859 | # CONFIG_USB_LEGOTOWER is not set | ||
860 | # CONFIG_USB_LCD is not set | ||
861 | # CONFIG_USB_LED is not set | ||
862 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
863 | # CONFIG_USB_CYTHERM is not set | ||
864 | # CONFIG_USB_PHIDGET is not set | ||
865 | # CONFIG_USB_IDMOUSE is not set | ||
866 | # CONFIG_USB_FTDI_ELAN is not set | ||
867 | # CONFIG_USB_APPLEDISPLAY is not set | ||
868 | # CONFIG_USB_LD is not set | ||
869 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
870 | # CONFIG_USB_TEST is not set | ||
871 | |||
872 | # | ||
873 | # USB DSL modem support | ||
874 | # | ||
875 | |||
876 | # | ||
877 | # USB Gadget Support | ||
878 | # | ||
879 | CONFIG_USB_GADGET=y | ||
880 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
881 | CONFIG_USB_GADGET_SELECTED=y | ||
882 | # CONFIG_USB_GADGET_NET2280 is not set | ||
883 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
884 | # CONFIG_USB_GADGET_GOKU is not set | ||
885 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
886 | # CONFIG_USB_GADGET_OMAP is not set | ||
887 | CONFIG_USB_GADGET_AT91=y | ||
888 | CONFIG_USB_AT91=y | ||
889 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
890 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
891 | CONFIG_USB_ZERO=m | ||
892 | # CONFIG_USB_ETH is not set | ||
893 | CONFIG_USB_GADGETFS=m | ||
894 | CONFIG_USB_FILE_STORAGE=m | ||
895 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
896 | CONFIG_USB_G_SERIAL=m | ||
897 | # CONFIG_USB_MIDI_GADGET is not set | ||
898 | |||
899 | # | ||
900 | # MMC/SD Card support | ||
901 | # | ||
902 | CONFIG_MMC=y | ||
903 | # CONFIG_MMC_DEBUG is not set | ||
904 | CONFIG_MMC_BLOCK=y | ||
905 | CONFIG_MMC_AT91=m | ||
906 | # CONFIG_MMC_TIFM_SD is not set | ||
907 | |||
908 | # | ||
909 | # Real Time Clock | ||
910 | # | ||
911 | CONFIG_RTC_LIB=y | ||
912 | # CONFIG_RTC_CLASS is not set | ||
913 | |||
914 | # | ||
915 | # File systems | ||
916 | # | ||
917 | CONFIG_EXT2_FS=y | ||
918 | # CONFIG_EXT2_FS_XATTR is not set | ||
919 | # CONFIG_EXT2_FS_XIP is not set | ||
920 | # CONFIG_EXT3_FS is not set | ||
921 | # CONFIG_EXT4DEV_FS is not set | ||
922 | # CONFIG_REISERFS_FS is not set | ||
923 | # CONFIG_JFS_FS is not set | ||
924 | # CONFIG_FS_POSIX_ACL is not set | ||
925 | # CONFIG_XFS_FS is not set | ||
926 | # CONFIG_GFS2_FS is not set | ||
927 | # CONFIG_OCFS2_FS is not set | ||
928 | # CONFIG_MINIX_FS is not set | ||
929 | # CONFIG_ROMFS_FS is not set | ||
930 | CONFIG_INOTIFY=y | ||
931 | CONFIG_INOTIFY_USER=y | ||
932 | # CONFIG_QUOTA is not set | ||
933 | CONFIG_DNOTIFY=y | ||
934 | # CONFIG_AUTOFS_FS is not set | ||
935 | # CONFIG_AUTOFS4_FS is not set | ||
936 | # CONFIG_FUSE_FS is not set | ||
937 | |||
938 | # | ||
939 | # CD-ROM/DVD Filesystems | ||
940 | # | ||
941 | # CONFIG_ISO9660_FS is not set | ||
942 | # CONFIG_UDF_FS is not set | ||
943 | |||
944 | # | ||
945 | # DOS/FAT/NT Filesystems | ||
946 | # | ||
947 | CONFIG_FAT_FS=y | ||
948 | # CONFIG_MSDOS_FS is not set | ||
949 | CONFIG_VFAT_FS=y | ||
950 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
951 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
952 | # CONFIG_NTFS_FS is not set | ||
953 | |||
954 | # | ||
955 | # Pseudo filesystems | ||
956 | # | ||
957 | CONFIG_PROC_FS=y | ||
958 | CONFIG_PROC_SYSCTL=y | ||
959 | CONFIG_SYSFS=y | ||
960 | CONFIG_TMPFS=y | ||
961 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
962 | # CONFIG_HUGETLB_PAGE is not set | ||
963 | CONFIG_RAMFS=y | ||
964 | # CONFIG_CONFIGFS_FS is not set | ||
965 | |||
966 | # | ||
967 | # Miscellaneous filesystems | ||
968 | # | ||
969 | # CONFIG_ADFS_FS is not set | ||
970 | # CONFIG_AFFS_FS is not set | ||
971 | # CONFIG_HFS_FS is not set | ||
972 | # CONFIG_HFSPLUS_FS is not set | ||
973 | # CONFIG_BEFS_FS is not set | ||
974 | # CONFIG_BFS_FS is not set | ||
975 | # CONFIG_EFS_FS is not set | ||
976 | # CONFIG_JFFS_FS is not set | ||
977 | # CONFIG_JFFS2_FS is not set | ||
978 | CONFIG_CRAMFS=y | ||
979 | # CONFIG_VXFS_FS is not set | ||
980 | # CONFIG_HPFS_FS is not set | ||
981 | # CONFIG_QNX4FS_FS is not set | ||
982 | # CONFIG_SYSV_FS is not set | ||
983 | # CONFIG_UFS_FS is not set | ||
984 | |||
985 | # | ||
986 | # Network File Systems | ||
987 | # | ||
988 | # CONFIG_NFS_FS is not set | ||
989 | # CONFIG_NFSD is not set | ||
990 | # CONFIG_SMB_FS is not set | ||
991 | # CONFIG_CIFS is not set | ||
992 | # CONFIG_NCP_FS is not set | ||
993 | # CONFIG_CODA_FS is not set | ||
994 | # CONFIG_AFS_FS is not set | ||
995 | # CONFIG_9P_FS is not set | ||
996 | |||
997 | # | ||
998 | # Partition Types | ||
999 | # | ||
1000 | # CONFIG_PARTITION_ADVANCED is not set | ||
1001 | CONFIG_MSDOS_PARTITION=y | ||
1002 | |||
1003 | # | ||
1004 | # Native Language Support | ||
1005 | # | ||
1006 | CONFIG_NLS=y | ||
1007 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1008 | CONFIG_NLS_CODEPAGE_437=y | ||
1009 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1010 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1011 | CONFIG_NLS_CODEPAGE_850=y | ||
1012 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1013 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1014 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1015 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1016 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1017 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1018 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1019 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1020 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1021 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1022 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1023 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1024 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1025 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1026 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1027 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1028 | # CONFIG_NLS_ISO8859_8 is not set | ||
1029 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1030 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1031 | # CONFIG_NLS_ASCII is not set | ||
1032 | CONFIG_NLS_ISO8859_1=y | ||
1033 | # CONFIG_NLS_ISO8859_2 is not set | ||
1034 | # CONFIG_NLS_ISO8859_3 is not set | ||
1035 | # CONFIG_NLS_ISO8859_4 is not set | ||
1036 | # CONFIG_NLS_ISO8859_5 is not set | ||
1037 | # CONFIG_NLS_ISO8859_6 is not set | ||
1038 | # CONFIG_NLS_ISO8859_7 is not set | ||
1039 | # CONFIG_NLS_ISO8859_9 is not set | ||
1040 | # CONFIG_NLS_ISO8859_13 is not set | ||
1041 | # CONFIG_NLS_ISO8859_14 is not set | ||
1042 | # CONFIG_NLS_ISO8859_15 is not set | ||
1043 | # CONFIG_NLS_KOI8_R is not set | ||
1044 | # CONFIG_NLS_KOI8_U is not set | ||
1045 | # CONFIG_NLS_UTF8 is not set | ||
1046 | |||
1047 | # | ||
1048 | # Profiling support | ||
1049 | # | ||
1050 | # CONFIG_PROFILING is not set | ||
1051 | |||
1052 | # | ||
1053 | # Kernel hacking | ||
1054 | # | ||
1055 | # CONFIG_PRINTK_TIME is not set | ||
1056 | CONFIG_ENABLE_MUST_CHECK=y | ||
1057 | # CONFIG_MAGIC_SYSRQ is not set | ||
1058 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1059 | CONFIG_DEBUG_KERNEL=y | ||
1060 | CONFIG_LOG_BUF_SHIFT=14 | ||
1061 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1062 | # CONFIG_SCHEDSTATS is not set | ||
1063 | # CONFIG_DEBUG_SLAB is not set | ||
1064 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1065 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1066 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1067 | # CONFIG_DEBUG_MUTEXES is not set | ||
1068 | # CONFIG_DEBUG_RWSEMS is not set | ||
1069 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1070 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1071 | # CONFIG_DEBUG_KOBJECT is not set | ||
1072 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1073 | # CONFIG_DEBUG_INFO is not set | ||
1074 | # CONFIG_DEBUG_FS is not set | ||
1075 | # CONFIG_DEBUG_VM is not set | ||
1076 | # CONFIG_DEBUG_LIST is not set | ||
1077 | CONFIG_FRAME_POINTER=y | ||
1078 | CONFIG_FORCED_INLINING=y | ||
1079 | # CONFIG_HEADERS_CHECK is not set | ||
1080 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1081 | CONFIG_DEBUG_USER=y | ||
1082 | # CONFIG_DEBUG_WAITQ is not set | ||
1083 | # CONFIG_DEBUG_ERRORS is not set | ||
1084 | CONFIG_DEBUG_LL=y | ||
1085 | # CONFIG_DEBUG_ICEDCC is not set | ||
1086 | |||
1087 | # | ||
1088 | # Security options | ||
1089 | # | ||
1090 | # CONFIG_KEYS is not set | ||
1091 | # CONFIG_SECURITY is not set | ||
1092 | |||
1093 | # | ||
1094 | # Cryptographic options | ||
1095 | # | ||
1096 | # CONFIG_CRYPTO is not set | ||
1097 | |||
1098 | # | ||
1099 | # Library routines | ||
1100 | # | ||
1101 | # CONFIG_CRC_CCITT is not set | ||
1102 | # CONFIG_CRC16 is not set | ||
1103 | CONFIG_CRC32=y | ||
1104 | # CONFIG_LIBCRC32C is not set | ||
1105 | CONFIG_ZLIB_INFLATE=y | ||
1106 | CONFIG_PLIST=y | ||
diff --git a/arch/arm/configs/badge4_defconfig b/arch/arm/configs/badge4_defconfig index cfe6bd8e81cd..821865f75605 100644 --- a/arch/arm/configs/badge4_defconfig +++ b/arch/arm/configs/badge4_defconfig | |||
@@ -1216,7 +1216,6 @@ CONFIG_DEBUG_INFO=y | |||
1216 | # CONFIG_DEBUG_FS is not set | 1216 | # CONFIG_DEBUG_FS is not set |
1217 | CONFIG_FRAME_POINTER=y | 1217 | CONFIG_FRAME_POINTER=y |
1218 | CONFIG_DEBUG_USER=y | 1218 | CONFIG_DEBUG_USER=y |
1219 | # CONFIG_DEBUG_WAITQ is not set | ||
1220 | CONFIG_DEBUG_ERRORS=y | 1219 | CONFIG_DEBUG_ERRORS=y |
1221 | CONFIG_DEBUG_LL=y | 1220 | CONFIG_DEBUG_LL=y |
1222 | # CONFIG_DEBUG_ICEDCC is not set | 1221 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/carmeva_defconfig b/arch/arm/configs/carmeva_defconfig index d24ae8777c35..d392833b31fb 100644 --- a/arch/arm/configs/carmeva_defconfig +++ b/arch/arm/configs/carmeva_defconfig | |||
@@ -474,7 +474,7 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
474 | # CONFIG_WATCHDOG is not set | 474 | # CONFIG_WATCHDOG is not set |
475 | # CONFIG_NVRAM is not set | 475 | # CONFIG_NVRAM is not set |
476 | # CONFIG_RTC is not set | 476 | # CONFIG_RTC is not set |
477 | # CONFIG_AT91_RTC is not set | 477 | # CONFIG_AT91RM9200_RTC is not set |
478 | # CONFIG_DTLK is not set | 478 | # CONFIG_DTLK is not set |
479 | # CONFIG_R3964 is not set | 479 | # CONFIG_R3964 is not set |
480 | 480 | ||
diff --git a/arch/arm/configs/cerfcube_defconfig b/arch/arm/configs/cerfcube_defconfig index 09b7acd7f647..ee130b528bd4 100644 --- a/arch/arm/configs/cerfcube_defconfig +++ b/arch/arm/configs/cerfcube_defconfig | |||
@@ -851,7 +851,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
851 | # CONFIG_DEBUG_FS is not set | 851 | # CONFIG_DEBUG_FS is not set |
852 | CONFIG_FRAME_POINTER=y | 852 | CONFIG_FRAME_POINTER=y |
853 | CONFIG_DEBUG_USER=y | 853 | CONFIG_DEBUG_USER=y |
854 | # CONFIG_DEBUG_WAITQ is not set | ||
855 | CONFIG_DEBUG_ERRORS=y | 854 | CONFIG_DEBUG_ERRORS=y |
856 | CONFIG_DEBUG_LL=y | 855 | CONFIG_DEBUG_LL=y |
857 | # CONFIG_DEBUG_ICEDCC is not set | 856 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/collie_defconfig b/arch/arm/configs/collie_defconfig index a3758913c0bb..970c8c772eb7 100644 --- a/arch/arm/configs/collie_defconfig +++ b/arch/arm/configs/collie_defconfig | |||
@@ -934,7 +934,6 @@ CONFIG_FRAME_POINTER=y | |||
934 | CONFIG_FORCED_INLINING=y | 934 | CONFIG_FORCED_INLINING=y |
935 | # CONFIG_RCU_TORTURE_TEST is not set | 935 | # CONFIG_RCU_TORTURE_TEST is not set |
936 | # CONFIG_DEBUG_USER is not set | 936 | # CONFIG_DEBUG_USER is not set |
937 | # CONFIG_DEBUG_WAITQ is not set | ||
938 | CONFIG_DEBUG_ERRORS=y | 937 | CONFIG_DEBUG_ERRORS=y |
939 | # CONFIG_DEBUG_LL is not set | 938 | # CONFIG_DEBUG_LL is not set |
940 | 939 | ||
diff --git a/arch/arm/configs/corgi_defconfig b/arch/arm/configs/corgi_defconfig index c41c04fa5020..e8980a9bb893 100644 --- a/arch/arm/configs/corgi_defconfig +++ b/arch/arm/configs/corgi_defconfig | |||
@@ -1513,7 +1513,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1513 | CONFIG_FRAME_POINTER=y | 1513 | CONFIG_FRAME_POINTER=y |
1514 | # CONFIG_RCU_TORTURE_TEST is not set | 1514 | # CONFIG_RCU_TORTURE_TEST is not set |
1515 | # CONFIG_DEBUG_USER is not set | 1515 | # CONFIG_DEBUG_USER is not set |
1516 | # CONFIG_DEBUG_WAITQ is not set | ||
1517 | CONFIG_DEBUG_ERRORS=y | 1516 | CONFIG_DEBUG_ERRORS=y |
1518 | CONFIG_DEBUG_LL=y | 1517 | CONFIG_DEBUG_LL=y |
1519 | # CONFIG_DEBUG_ICEDCC is not set | 1518 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/csb337_defconfig b/arch/arm/configs/csb337_defconfig index 20e68250d835..2cadd51506bb 100644 --- a/arch/arm/configs/csb337_defconfig +++ b/arch/arm/configs/csb337_defconfig | |||
@@ -1113,7 +1113,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1113 | CONFIG_FRAME_POINTER=y | 1113 | CONFIG_FRAME_POINTER=y |
1114 | # CONFIG_RCU_TORTURE_TEST is not set | 1114 | # CONFIG_RCU_TORTURE_TEST is not set |
1115 | CONFIG_DEBUG_USER=y | 1115 | CONFIG_DEBUG_USER=y |
1116 | # CONFIG_DEBUG_WAITQ is not set | ||
1117 | # CONFIG_DEBUG_ERRORS is not set | 1116 | # CONFIG_DEBUG_ERRORS is not set |
1118 | CONFIG_DEBUG_LL=y | 1117 | CONFIG_DEBUG_LL=y |
1119 | # CONFIG_DEBUG_ICEDCC is not set | 1118 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/csb637_defconfig b/arch/arm/configs/csb637_defconfig index df8595ac031f..94908c1df4cf 100644 --- a/arch/arm/configs/csb637_defconfig +++ b/arch/arm/configs/csb637_defconfig | |||
@@ -623,7 +623,7 @@ CONFIG_AT91RM9200_WATCHDOG=y | |||
623 | # CONFIG_USBPCWATCHDOG is not set | 623 | # CONFIG_USBPCWATCHDOG is not set |
624 | # CONFIG_NVRAM is not set | 624 | # CONFIG_NVRAM is not set |
625 | CONFIG_RTC=y | 625 | CONFIG_RTC=y |
626 | # CONFIG_AT91_RTC is not set | 626 | # CONFIG_AT91RM9200_RTC is not set |
627 | # CONFIG_DTLK is not set | 627 | # CONFIG_DTLK is not set |
628 | # CONFIG_R3964 is not set | 628 | # CONFIG_R3964 is not set |
629 | 629 | ||
@@ -1062,7 +1062,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1062 | CONFIG_FRAME_POINTER=y | 1062 | CONFIG_FRAME_POINTER=y |
1063 | # CONFIG_RCU_TORTURE_TEST is not set | 1063 | # CONFIG_RCU_TORTURE_TEST is not set |
1064 | CONFIG_DEBUG_USER=y | 1064 | CONFIG_DEBUG_USER=y |
1065 | # CONFIG_DEBUG_WAITQ is not set | ||
1066 | # CONFIG_DEBUG_ERRORS is not set | 1065 | # CONFIG_DEBUG_ERRORS is not set |
1067 | CONFIG_DEBUG_LL=y | 1066 | CONFIG_DEBUG_LL=y |
1068 | # CONFIG_DEBUG_ICEDCC is not set | 1067 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index 3b4802a849e4..24a701ab33e5 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig | |||
@@ -1,14 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc1-git9 | 3 | # Linux kernel version: 2.6.20-rc1 |
4 | # Sat Jul 15 15:08:10 2006 | 4 | # Sat Dec 16 06:05:24 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
9 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
10 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
11 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
12 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
13 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
14 | CONFIG_VECTORS_BASE=0xffff0000 | 18 | CONFIG_VECTORS_BASE=0xffff0000 |
@@ -28,18 +32,22 @@ CONFIG_LOCALVERSION="" | |||
28 | CONFIG_LOCALVERSION_AUTO=y | 32 | CONFIG_LOCALVERSION_AUTO=y |
29 | CONFIG_SWAP=y | 33 | CONFIG_SWAP=y |
30 | CONFIG_SYSVIPC=y | 34 | CONFIG_SYSVIPC=y |
35 | # CONFIG_IPC_NS is not set | ||
31 | # CONFIG_POSIX_MQUEUE is not set | 36 | # CONFIG_POSIX_MQUEUE is not set |
32 | # CONFIG_BSD_PROCESS_ACCT is not set | 37 | # CONFIG_BSD_PROCESS_ACCT is not set |
33 | # CONFIG_TASKSTATS is not set | 38 | # CONFIG_TASKSTATS is not set |
34 | CONFIG_SYSCTL=y | 39 | # CONFIG_UTS_NS is not set |
35 | # CONFIG_AUDIT is not set | 40 | # CONFIG_AUDIT is not set |
36 | CONFIG_IKCONFIG=y | 41 | CONFIG_IKCONFIG=y |
37 | CONFIG_IKCONFIG_PROC=y | 42 | CONFIG_IKCONFIG_PROC=y |
43 | CONFIG_SYSFS_DEPRECATED=y | ||
38 | # CONFIG_RELAY is not set | 44 | # CONFIG_RELAY is not set |
39 | CONFIG_INITRAMFS_SOURCE="" | 45 | CONFIG_INITRAMFS_SOURCE="" |
40 | CONFIG_UID16=y | ||
41 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 46 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
47 | CONFIG_SYSCTL=y | ||
42 | CONFIG_EMBEDDED=y | 48 | CONFIG_EMBEDDED=y |
49 | CONFIG_UID16=y | ||
50 | CONFIG_SYSCTL_SYSCALL=y | ||
43 | CONFIG_KALLSYMS=y | 51 | CONFIG_KALLSYMS=y |
44 | # CONFIG_KALLSYMS_ALL is not set | 52 | # CONFIG_KALLSYMS_ALL is not set |
45 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -48,12 +56,12 @@ CONFIG_PRINTK=y | |||
48 | CONFIG_BUG=y | 56 | CONFIG_BUG=y |
49 | CONFIG_ELF_CORE=y | 57 | CONFIG_ELF_CORE=y |
50 | CONFIG_BASE_FULL=y | 58 | CONFIG_BASE_FULL=y |
51 | CONFIG_RT_MUTEXES=y | ||
52 | CONFIG_FUTEX=y | 59 | CONFIG_FUTEX=y |
53 | CONFIG_EPOLL=y | 60 | CONFIG_EPOLL=y |
54 | CONFIG_SHMEM=y | 61 | CONFIG_SHMEM=y |
55 | CONFIG_SLAB=y | 62 | CONFIG_SLAB=y |
56 | CONFIG_VM_EVENT_COUNTERS=y | 63 | CONFIG_VM_EVENT_COUNTERS=y |
64 | CONFIG_RT_MUTEXES=y | ||
57 | # CONFIG_TINY_SHMEM is not set | 65 | # CONFIG_TINY_SHMEM is not set |
58 | CONFIG_BASE_SMALL=0 | 66 | CONFIG_BASE_SMALL=0 |
59 | # CONFIG_SLOB is not set | 67 | # CONFIG_SLOB is not set |
@@ -71,7 +79,10 @@ CONFIG_KMOD=y | |||
71 | # | 79 | # |
72 | # Block layer | 80 | # Block layer |
73 | # | 81 | # |
82 | CONFIG_BLOCK=y | ||
83 | # CONFIG_LBD is not set | ||
74 | # CONFIG_BLK_DEV_IO_TRACE is not set | 84 | # CONFIG_BLK_DEV_IO_TRACE is not set |
85 | # CONFIG_LSF is not set | ||
75 | 86 | ||
76 | # | 87 | # |
77 | # IO Schedulers | 88 | # IO Schedulers |
@@ -103,7 +114,9 @@ CONFIG_ARCH_EP93XX=y | |||
103 | # CONFIG_ARCH_NETX is not set | 114 | # CONFIG_ARCH_NETX is not set |
104 | # CONFIG_ARCH_H720X is not set | 115 | # CONFIG_ARCH_H720X is not set |
105 | # CONFIG_ARCH_IMX is not set | 116 | # CONFIG_ARCH_IMX is not set |
106 | # CONFIG_ARCH_IOP3XX is not set | 117 | # CONFIG_ARCH_IOP32X is not set |
118 | # CONFIG_ARCH_IOP33X is not set | ||
119 | # CONFIG_ARCH_IOP13XX is not set | ||
107 | # CONFIG_ARCH_IXP4XX is not set | 120 | # CONFIG_ARCH_IXP4XX is not set |
108 | # CONFIG_ARCH_IXP2000 is not set | 121 | # CONFIG_ARCH_IXP2000 is not set |
109 | # CONFIG_ARCH_IXP23XX is not set | 122 | # CONFIG_ARCH_IXP23XX is not set |
@@ -125,7 +138,9 @@ CONFIG_CRUNCH=y | |||
125 | # | 138 | # |
126 | # EP93xx Platforms | 139 | # EP93xx Platforms |
127 | # | 140 | # |
141 | CONFIG_MACH_ADSSPHERE=y | ||
128 | CONFIG_MACH_EDB9302=y | 142 | CONFIG_MACH_EDB9302=y |
143 | CONFIG_MACH_EDB9302A=y | ||
129 | CONFIG_MACH_EDB9312=y | 144 | CONFIG_MACH_EDB9312=y |
130 | CONFIG_MACH_EDB9315=y | 145 | CONFIG_MACH_EDB9315=y |
131 | CONFIG_MACH_EDB9315A=y | 146 | CONFIG_MACH_EDB9315A=y |
@@ -137,12 +152,14 @@ CONFIG_MACH_TS72XX=y | |||
137 | # | 152 | # |
138 | CONFIG_CPU_32=y | 153 | CONFIG_CPU_32=y |
139 | CONFIG_CPU_ARM920T=y | 154 | CONFIG_CPU_ARM920T=y |
140 | CONFIG_CPU_32v4=y | 155 | CONFIG_CPU_32v4T=y |
141 | CONFIG_CPU_ABRT_EV4T=y | 156 | CONFIG_CPU_ABRT_EV4T=y |
142 | CONFIG_CPU_CACHE_V4WT=y | 157 | CONFIG_CPU_CACHE_V4WT=y |
143 | CONFIG_CPU_CACHE_VIVT=y | 158 | CONFIG_CPU_CACHE_VIVT=y |
144 | CONFIG_CPU_COPY_V4WB=y | 159 | CONFIG_CPU_COPY_V4WB=y |
145 | CONFIG_CPU_TLB_V4WBI=y | 160 | CONFIG_CPU_TLB_V4WBI=y |
161 | CONFIG_CPU_CP15=y | ||
162 | CONFIG_CPU_CP15_MMU=y | ||
146 | 163 | ||
147 | # | 164 | # |
148 | # Processor Features | 165 | # Processor Features |
@@ -229,6 +246,7 @@ CONFIG_PACKET_MMAP=y | |||
229 | CONFIG_UNIX=y | 246 | CONFIG_UNIX=y |
230 | CONFIG_XFRM=y | 247 | CONFIG_XFRM=y |
231 | # CONFIG_XFRM_USER is not set | 248 | # CONFIG_XFRM_USER is not set |
249 | # CONFIG_XFRM_SUB_POLICY is not set | ||
232 | CONFIG_NET_KEY=y | 250 | CONFIG_NET_KEY=y |
233 | CONFIG_INET=y | 251 | CONFIG_INET=y |
234 | # CONFIG_IP_MULTICAST is not set | 252 | # CONFIG_IP_MULTICAST is not set |
@@ -249,13 +267,29 @@ CONFIG_SYN_COOKIES=y | |||
249 | # CONFIG_INET_TUNNEL is not set | 267 | # CONFIG_INET_TUNNEL is not set |
250 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 268 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
251 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 269 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
270 | CONFIG_INET_XFRM_MODE_BEET=y | ||
252 | CONFIG_INET_DIAG=y | 271 | CONFIG_INET_DIAG=y |
253 | CONFIG_INET_TCP_DIAG=y | 272 | CONFIG_INET_TCP_DIAG=y |
254 | # CONFIG_TCP_CONG_ADVANCED is not set | 273 | # CONFIG_TCP_CONG_ADVANCED is not set |
255 | CONFIG_TCP_CONG_BIC=y | 274 | CONFIG_TCP_CONG_CUBIC=y |
256 | # CONFIG_IPV6 is not set | 275 | CONFIG_DEFAULT_TCP_CONG="cubic" |
276 | # CONFIG_TCP_MD5SIG is not set | ||
277 | CONFIG_IPV6=y | ||
278 | # CONFIG_IPV6_PRIVACY is not set | ||
279 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
280 | # CONFIG_INET6_AH is not set | ||
281 | # CONFIG_INET6_ESP is not set | ||
282 | # CONFIG_INET6_IPCOMP is not set | ||
283 | # CONFIG_IPV6_MIP6 is not set | ||
257 | # CONFIG_INET6_XFRM_TUNNEL is not set | 284 | # CONFIG_INET6_XFRM_TUNNEL is not set |
258 | # CONFIG_INET6_TUNNEL is not set | 285 | # CONFIG_INET6_TUNNEL is not set |
286 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
287 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
288 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
289 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
290 | # CONFIG_IPV6_SIT is not set | ||
291 | # CONFIG_IPV6_TUNNEL is not set | ||
292 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
259 | # CONFIG_NETWORK_SECMARK is not set | 293 | # CONFIG_NETWORK_SECMARK is not set |
260 | # CONFIG_NETFILTER is not set | 294 | # CONFIG_NETFILTER is not set |
261 | 295 | ||
@@ -282,7 +316,6 @@ CONFIG_TCP_CONG_BIC=y | |||
282 | # CONFIG_ATALK is not set | 316 | # CONFIG_ATALK is not set |
283 | # CONFIG_X25 is not set | 317 | # CONFIG_X25 is not set |
284 | # CONFIG_LAPB is not set | 318 | # CONFIG_LAPB is not set |
285 | # CONFIG_NET_DIVERT is not set | ||
286 | # CONFIG_ECONET is not set | 319 | # CONFIG_ECONET is not set |
287 | # CONFIG_WAN_ROUTER is not set | 320 | # CONFIG_WAN_ROUTER is not set |
288 | 321 | ||
@@ -329,7 +362,7 @@ CONFIG_MTD_REDBOOT_PARTS=y | |||
329 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 | 362 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 |
330 | # CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set | 363 | # CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set |
331 | # CONFIG_MTD_REDBOOT_PARTS_READONLY is not set | 364 | # CONFIG_MTD_REDBOOT_PARTS_READONLY is not set |
332 | # CONFIG_MTD_CMDLINE_PARTS is not set | 365 | CONFIG_MTD_CMDLINE_PARTS=y |
333 | # CONFIG_MTD_AFS_PARTS is not set | 366 | # CONFIG_MTD_AFS_PARTS is not set |
334 | 367 | ||
335 | # | 368 | # |
@@ -341,6 +374,7 @@ CONFIG_MTD_BLOCK=y | |||
341 | # CONFIG_NFTL is not set | 374 | # CONFIG_NFTL is not set |
342 | # CONFIG_INFTL is not set | 375 | # CONFIG_INFTL is not set |
343 | # CONFIG_RFD_FTL is not set | 376 | # CONFIG_RFD_FTL is not set |
377 | # CONFIG_SSFDC is not set | ||
344 | 378 | ||
345 | # | 379 | # |
346 | # RAM/ROM/Flash chip drivers | 380 | # RAM/ROM/Flash chip drivers |
@@ -429,7 +463,7 @@ CONFIG_MTD_NAND_IDS=y | |||
429 | # | 463 | # |
430 | # CONFIG_BLK_DEV_COW_COMMON is not set | 464 | # CONFIG_BLK_DEV_COW_COMMON is not set |
431 | # CONFIG_BLK_DEV_LOOP is not set | 465 | # CONFIG_BLK_DEV_LOOP is not set |
432 | # CONFIG_BLK_DEV_NBD is not set | 466 | CONFIG_BLK_DEV_NBD=y |
433 | # CONFIG_BLK_DEV_UB is not set | 467 | # CONFIG_BLK_DEV_UB is not set |
434 | # CONFIG_BLK_DEV_RAM is not set | 468 | # CONFIG_BLK_DEV_RAM is not set |
435 | # CONFIG_BLK_DEV_INITRD is not set | 469 | # CONFIG_BLK_DEV_INITRD is not set |
@@ -441,6 +475,8 @@ CONFIG_MTD_NAND_IDS=y | |||
441 | # | 475 | # |
442 | # CONFIG_RAID_ATTRS is not set | 476 | # CONFIG_RAID_ATTRS is not set |
443 | CONFIG_SCSI=y | 477 | CONFIG_SCSI=y |
478 | # CONFIG_SCSI_TGT is not set | ||
479 | # CONFIG_SCSI_NETLINK is not set | ||
444 | # CONFIG_SCSI_PROC_FS is not set | 480 | # CONFIG_SCSI_PROC_FS is not set |
445 | 481 | ||
446 | # | 482 | # |
@@ -459,23 +495,29 @@ CONFIG_BLK_DEV_SD=y | |||
459 | # CONFIG_SCSI_MULTI_LUN is not set | 495 | # CONFIG_SCSI_MULTI_LUN is not set |
460 | # CONFIG_SCSI_CONSTANTS is not set | 496 | # CONFIG_SCSI_CONSTANTS is not set |
461 | # CONFIG_SCSI_LOGGING is not set | 497 | # CONFIG_SCSI_LOGGING is not set |
498 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
462 | 499 | ||
463 | # | 500 | # |
464 | # SCSI Transport Attributes | 501 | # SCSI Transports |
465 | # | 502 | # |
466 | # CONFIG_SCSI_SPI_ATTRS is not set | 503 | # CONFIG_SCSI_SPI_ATTRS is not set |
467 | # CONFIG_SCSI_FC_ATTRS is not set | 504 | # CONFIG_SCSI_FC_ATTRS is not set |
468 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 505 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
469 | # CONFIG_SCSI_SAS_ATTRS is not set | 506 | # CONFIG_SCSI_SAS_ATTRS is not set |
507 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
470 | 508 | ||
471 | # | 509 | # |
472 | # SCSI low-level drivers | 510 | # SCSI low-level drivers |
473 | # | 511 | # |
474 | # CONFIG_ISCSI_TCP is not set | 512 | # CONFIG_ISCSI_TCP is not set |
475 | # CONFIG_SCSI_SATA is not set | ||
476 | # CONFIG_SCSI_DEBUG is not set | 513 | # CONFIG_SCSI_DEBUG is not set |
477 | 514 | ||
478 | # | 515 | # |
516 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
517 | # | ||
518 | # CONFIG_ATA is not set | ||
519 | |||
520 | # | ||
479 | # Multi-device support (RAID and LVM) | 521 | # Multi-device support (RAID and LVM) |
480 | # | 522 | # |
481 | # CONFIG_MD is not set | 523 | # CONFIG_MD is not set |
@@ -512,6 +554,7 @@ CONFIG_NETDEVICES=y | |||
512 | # | 554 | # |
513 | CONFIG_NET_ETHERNET=y | 555 | CONFIG_NET_ETHERNET=y |
514 | CONFIG_MII=y | 556 | CONFIG_MII=y |
557 | CONFIG_EP93XX_ETH=y | ||
515 | # CONFIG_SMC91X is not set | 558 | # CONFIG_SMC91X is not set |
516 | # CONFIG_DM9000 is not set | 559 | # CONFIG_DM9000 is not set |
517 | 560 | ||
@@ -606,17 +649,12 @@ CONFIG_EP93XX_WATCHDOG=y | |||
606 | # CONFIG_NVRAM is not set | 649 | # CONFIG_NVRAM is not set |
607 | # CONFIG_DTLK is not set | 650 | # CONFIG_DTLK is not set |
608 | # CONFIG_R3964 is not set | 651 | # CONFIG_R3964 is not set |
609 | |||
610 | # | ||
611 | # Ftape, the floppy tape device driver | ||
612 | # | ||
613 | # CONFIG_RAW_DRIVER is not set | 652 | # CONFIG_RAW_DRIVER is not set |
614 | 653 | ||
615 | # | 654 | # |
616 | # TPM devices | 655 | # TPM devices |
617 | # | 656 | # |
618 | # CONFIG_TCG_TPM is not set | 657 | # CONFIG_TCG_TPM is not set |
619 | # CONFIG_TELCLOCK is not set | ||
620 | 658 | ||
621 | # | 659 | # |
622 | # I2C support | 660 | # I2C support |
@@ -644,7 +682,7 @@ CONFIG_I2C_ALGOBIT=y | |||
644 | # | 682 | # |
645 | # CONFIG_SENSORS_DS1337 is not set | 683 | # CONFIG_SENSORS_DS1337 is not set |
646 | # CONFIG_SENSORS_DS1374 is not set | 684 | # CONFIG_SENSORS_DS1374 is not set |
647 | # CONFIG_SENSORS_EEPROM is not set | 685 | CONFIG_SENSORS_EEPROM=y |
648 | # CONFIG_SENSORS_PCF8574 is not set | 686 | # CONFIG_SENSORS_PCF8574 is not set |
649 | # CONFIG_SENSORS_PCA9539 is not set | 687 | # CONFIG_SENSORS_PCA9539 is not set |
650 | # CONFIG_SENSORS_PCF8591 is not set | 688 | # CONFIG_SENSORS_PCF8591 is not set |
@@ -663,6 +701,7 @@ CONFIG_I2C_DEBUG_CHIP=y | |||
663 | # | 701 | # |
664 | # Dallas's 1-wire bus | 702 | # Dallas's 1-wire bus |
665 | # | 703 | # |
704 | # CONFIG_W1 is not set | ||
666 | 705 | ||
667 | # | 706 | # |
668 | # Hardware Monitoring support | 707 | # Hardware Monitoring support |
@@ -696,12 +735,15 @@ CONFIG_HWMON=y | |||
696 | # CONFIG_SENSORS_LM92 is not set | 735 | # CONFIG_SENSORS_LM92 is not set |
697 | # CONFIG_SENSORS_MAX1619 is not set | 736 | # CONFIG_SENSORS_MAX1619 is not set |
698 | # CONFIG_SENSORS_PC87360 is not set | 737 | # CONFIG_SENSORS_PC87360 is not set |
738 | # CONFIG_SENSORS_PC87427 is not set | ||
699 | # CONFIG_SENSORS_SMSC47M1 is not set | 739 | # CONFIG_SENSORS_SMSC47M1 is not set |
700 | # CONFIG_SENSORS_SMSC47M192 is not set | 740 | # CONFIG_SENSORS_SMSC47M192 is not set |
701 | # CONFIG_SENSORS_SMSC47B397 is not set | 741 | # CONFIG_SENSORS_SMSC47B397 is not set |
742 | # CONFIG_SENSORS_VT1211 is not set | ||
702 | # CONFIG_SENSORS_W83781D is not set | 743 | # CONFIG_SENSORS_W83781D is not set |
703 | # CONFIG_SENSORS_W83791D is not set | 744 | # CONFIG_SENSORS_W83791D is not set |
704 | # CONFIG_SENSORS_W83792D is not set | 745 | # CONFIG_SENSORS_W83792D is not set |
746 | # CONFIG_SENSORS_W83793 is not set | ||
705 | # CONFIG_SENSORS_W83L785TS is not set | 747 | # CONFIG_SENSORS_W83L785TS is not set |
706 | # CONFIG_SENSORS_W83627HF is not set | 748 | # CONFIG_SENSORS_W83627HF is not set |
707 | # CONFIG_SENSORS_W83627EHF is not set | 749 | # CONFIG_SENSORS_W83627EHF is not set |
@@ -710,6 +752,7 @@ CONFIG_HWMON=y | |||
710 | # | 752 | # |
711 | # Misc devices | 753 | # Misc devices |
712 | # | 754 | # |
755 | # CONFIG_TIFM_CORE is not set | ||
713 | 756 | ||
714 | # | 757 | # |
715 | # LED devices | 758 | # LED devices |
@@ -728,7 +771,6 @@ CONFIG_HWMON=y | |||
728 | # Multimedia devices | 771 | # Multimedia devices |
729 | # | 772 | # |
730 | # CONFIG_VIDEO_DEV is not set | 773 | # CONFIG_VIDEO_DEV is not set |
731 | CONFIG_VIDEO_V4L2=y | ||
732 | 774 | ||
733 | # | 775 | # |
734 | # Digital Video Broadcasting Devices | 776 | # Digital Video Broadcasting Devices |
@@ -741,6 +783,7 @@ CONFIG_VIDEO_V4L2=y | |||
741 | # | 783 | # |
742 | # CONFIG_FIRMWARE_EDID is not set | 784 | # CONFIG_FIRMWARE_EDID is not set |
743 | # CONFIG_FB is not set | 785 | # CONFIG_FB is not set |
786 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
744 | 787 | ||
745 | # | 788 | # |
746 | # Sound | 789 | # Sound |
@@ -762,6 +805,7 @@ CONFIG_USB_DEBUG=y | |||
762 | CONFIG_USB_DEVICEFS=y | 805 | CONFIG_USB_DEVICEFS=y |
763 | # CONFIG_USB_BANDWIDTH is not set | 806 | # CONFIG_USB_BANDWIDTH is not set |
764 | CONFIG_USB_DYNAMIC_MINORS=y | 807 | CONFIG_USB_DYNAMIC_MINORS=y |
808 | # CONFIG_USB_MULTITHREAD_PROBE is not set | ||
765 | # CONFIG_USB_OTG is not set | 809 | # CONFIG_USB_OTG is not set |
766 | 810 | ||
767 | # | 811 | # |
@@ -796,12 +840,12 @@ CONFIG_USB_STORAGE=y | |||
796 | # CONFIG_USB_STORAGE_SDDR55 is not set | 840 | # CONFIG_USB_STORAGE_SDDR55 is not set |
797 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | 841 | # CONFIG_USB_STORAGE_JUMPSHOT is not set |
798 | # CONFIG_USB_STORAGE_ALAUDA is not set | 842 | # CONFIG_USB_STORAGE_ALAUDA is not set |
843 | # CONFIG_USB_STORAGE_KARMA is not set | ||
799 | # CONFIG_USB_LIBUSUAL is not set | 844 | # CONFIG_USB_LIBUSUAL is not set |
800 | 845 | ||
801 | # | 846 | # |
802 | # USB Input Devices | 847 | # USB Input Devices |
803 | # | 848 | # |
804 | # CONFIG_USB_HID is not set | ||
805 | 849 | ||
806 | # | 850 | # |
807 | # USB HID Boot Protocol drivers | 851 | # USB HID Boot Protocol drivers |
@@ -820,6 +864,7 @@ CONFIG_USB_STORAGE=y | |||
820 | # CONFIG_USB_KAWETH is not set | 864 | # CONFIG_USB_KAWETH is not set |
821 | # CONFIG_USB_PEGASUS is not set | 865 | # CONFIG_USB_PEGASUS is not set |
822 | CONFIG_USB_RTL8150=y | 866 | CONFIG_USB_RTL8150=y |
867 | # CONFIG_USB_USBNET_MII is not set | ||
823 | # CONFIG_USB_USBNET is not set | 868 | # CONFIG_USB_USBNET is not set |
824 | # CONFIG_USB_MON is not set | 869 | # CONFIG_USB_MON is not set |
825 | 870 | ||
@@ -833,8 +878,8 @@ CONFIG_USB_RTL8150=y | |||
833 | CONFIG_USB_SERIAL=y | 878 | CONFIG_USB_SERIAL=y |
834 | CONFIG_USB_SERIAL_CONSOLE=y | 879 | CONFIG_USB_SERIAL_CONSOLE=y |
835 | # CONFIG_USB_SERIAL_GENERIC is not set | 880 | # CONFIG_USB_SERIAL_GENERIC is not set |
881 | # CONFIG_USB_SERIAL_AIRCABLE is not set | ||
836 | # CONFIG_USB_SERIAL_AIRPRIME is not set | 882 | # CONFIG_USB_SERIAL_AIRPRIME is not set |
837 | # CONFIG_USB_SERIAL_ANYDATA is not set | ||
838 | # CONFIG_USB_SERIAL_ARK3116 is not set | 883 | # CONFIG_USB_SERIAL_ARK3116 is not set |
839 | # CONFIG_USB_SERIAL_BELKIN is not set | 884 | # CONFIG_USB_SERIAL_BELKIN is not set |
840 | # CONFIG_USB_SERIAL_WHITEHEAT is not set | 885 | # CONFIG_USB_SERIAL_WHITEHEAT is not set |
@@ -856,6 +901,8 @@ CONFIG_USB_SERIAL_CONSOLE=y | |||
856 | # CONFIG_USB_SERIAL_KLSI is not set | 901 | # CONFIG_USB_SERIAL_KLSI is not set |
857 | # CONFIG_USB_SERIAL_KOBIL_SCT is not set | 902 | # CONFIG_USB_SERIAL_KOBIL_SCT is not set |
858 | # CONFIG_USB_SERIAL_MCT_U232 is not set | 903 | # CONFIG_USB_SERIAL_MCT_U232 is not set |
904 | # CONFIG_USB_SERIAL_MOS7720 is not set | ||
905 | # CONFIG_USB_SERIAL_MOS7840 is not set | ||
859 | # CONFIG_USB_SERIAL_NAVMAN is not set | 906 | # CONFIG_USB_SERIAL_NAVMAN is not set |
860 | CONFIG_USB_SERIAL_PL2303=y | 907 | CONFIG_USB_SERIAL_PL2303=y |
861 | # CONFIG_USB_SERIAL_HP4X is not set | 908 | # CONFIG_USB_SERIAL_HP4X is not set |
@@ -866,12 +913,14 @@ CONFIG_USB_SERIAL_PL2303=y | |||
866 | # CONFIG_USB_SERIAL_XIRCOM is not set | 913 | # CONFIG_USB_SERIAL_XIRCOM is not set |
867 | # CONFIG_USB_SERIAL_OPTION is not set | 914 | # CONFIG_USB_SERIAL_OPTION is not set |
868 | # CONFIG_USB_SERIAL_OMNINET is not set | 915 | # CONFIG_USB_SERIAL_OMNINET is not set |
916 | # CONFIG_USB_SERIAL_DEBUG is not set | ||
869 | 917 | ||
870 | # | 918 | # |
871 | # USB Miscellaneous drivers | 919 | # USB Miscellaneous drivers |
872 | # | 920 | # |
873 | # CONFIG_USB_EMI62 is not set | 921 | # CONFIG_USB_EMI62 is not set |
874 | # CONFIG_USB_EMI26 is not set | 922 | # CONFIG_USB_EMI26 is not set |
923 | # CONFIG_USB_ADUTUX is not set | ||
875 | # CONFIG_USB_AUERSWALD is not set | 924 | # CONFIG_USB_AUERSWALD is not set |
876 | # CONFIG_USB_RIO500 is not set | 925 | # CONFIG_USB_RIO500 is not set |
877 | # CONFIG_USB_LEGOTOWER is not set | 926 | # CONFIG_USB_LEGOTOWER is not set |
@@ -879,11 +928,12 @@ CONFIG_USB_SERIAL_PL2303=y | |||
879 | # CONFIG_USB_LED is not set | 928 | # CONFIG_USB_LED is not set |
880 | # CONFIG_USB_CYPRESS_CY7C63 is not set | 929 | # CONFIG_USB_CYPRESS_CY7C63 is not set |
881 | # CONFIG_USB_CYTHERM is not set | 930 | # CONFIG_USB_CYTHERM is not set |
882 | # CONFIG_USB_PHIDGETKIT is not set | 931 | # CONFIG_USB_PHIDGET is not set |
883 | # CONFIG_USB_PHIDGETSERVO is not set | ||
884 | # CONFIG_USB_IDMOUSE is not set | 932 | # CONFIG_USB_IDMOUSE is not set |
933 | # CONFIG_USB_FTDI_ELAN is not set | ||
885 | # CONFIG_USB_APPLEDISPLAY is not set | 934 | # CONFIG_USB_APPLEDISPLAY is not set |
886 | # CONFIG_USB_LD is not set | 935 | # CONFIG_USB_LD is not set |
936 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
887 | # CONFIG_USB_TEST is not set | 937 | # CONFIG_USB_TEST is not set |
888 | 938 | ||
889 | # | 939 | # |
@@ -907,6 +957,7 @@ CONFIG_RTC_LIB=y | |||
907 | CONFIG_RTC_CLASS=y | 957 | CONFIG_RTC_CLASS=y |
908 | CONFIG_RTC_HCTOSYS=y | 958 | CONFIG_RTC_HCTOSYS=y |
909 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | 959 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" |
960 | # CONFIG_RTC_DEBUG is not set | ||
910 | 961 | ||
911 | # | 962 | # |
912 | # RTC interfaces | 963 | # RTC interfaces |
@@ -920,7 +971,7 @@ CONFIG_RTC_INTF_DEV=y | |||
920 | # RTC drivers | 971 | # RTC drivers |
921 | # | 972 | # |
922 | # CONFIG_RTC_DRV_X1205 is not set | 973 | # CONFIG_RTC_DRV_X1205 is not set |
923 | # CONFIG_RTC_DRV_DS1307 is not set | 974 | CONFIG_RTC_DRV_DS1307=y |
924 | # CONFIG_RTC_DRV_DS1553 is not set | 975 | # CONFIG_RTC_DRV_DS1553 is not set |
925 | # CONFIG_RTC_DRV_ISL1208 is not set | 976 | # CONFIG_RTC_DRV_ISL1208 is not set |
926 | # CONFIG_RTC_DRV_DS1672 is not set | 977 | # CONFIG_RTC_DRV_DS1672 is not set |
@@ -942,12 +993,14 @@ CONFIG_EXT2_FS=y | |||
942 | # CONFIG_EXT2_FS_XIP is not set | 993 | # CONFIG_EXT2_FS_XIP is not set |
943 | CONFIG_EXT3_FS=y | 994 | CONFIG_EXT3_FS=y |
944 | # CONFIG_EXT3_FS_XATTR is not set | 995 | # CONFIG_EXT3_FS_XATTR is not set |
996 | # CONFIG_EXT4DEV_FS is not set | ||
945 | CONFIG_JBD=y | 997 | CONFIG_JBD=y |
946 | # CONFIG_JBD_DEBUG is not set | 998 | # CONFIG_JBD_DEBUG is not set |
947 | # CONFIG_REISERFS_FS is not set | 999 | # CONFIG_REISERFS_FS is not set |
948 | # CONFIG_JFS_FS is not set | 1000 | # CONFIG_JFS_FS is not set |
949 | # CONFIG_FS_POSIX_ACL is not set | 1001 | # CONFIG_FS_POSIX_ACL is not set |
950 | # CONFIG_XFS_FS is not set | 1002 | # CONFIG_XFS_FS is not set |
1003 | # CONFIG_GFS2_FS is not set | ||
951 | # CONFIG_OCFS2_FS is not set | 1004 | # CONFIG_OCFS2_FS is not set |
952 | # CONFIG_MINIX_FS is not set | 1005 | # CONFIG_MINIX_FS is not set |
953 | # CONFIG_ROMFS_FS is not set | 1006 | # CONFIG_ROMFS_FS is not set |
@@ -979,8 +1032,10 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | |||
979 | # Pseudo filesystems | 1032 | # Pseudo filesystems |
980 | # | 1033 | # |
981 | CONFIG_PROC_FS=y | 1034 | CONFIG_PROC_FS=y |
1035 | CONFIG_PROC_SYSCTL=y | ||
982 | CONFIG_SYSFS=y | 1036 | CONFIG_SYSFS=y |
983 | CONFIG_TMPFS=y | 1037 | CONFIG_TMPFS=y |
1038 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
984 | # CONFIG_HUGETLB_PAGE is not set | 1039 | # CONFIG_HUGETLB_PAGE is not set |
985 | CONFIG_RAMFS=y | 1040 | CONFIG_RAMFS=y |
986 | # CONFIG_CONFIGFS_FS is not set | 1041 | # CONFIG_CONFIGFS_FS is not set |
@@ -1101,6 +1156,11 @@ CONFIG_NLS_ISO8859_1=y | |||
1101 | # CONFIG_NLS_UTF8 is not set | 1156 | # CONFIG_NLS_UTF8 is not set |
1102 | 1157 | ||
1103 | # | 1158 | # |
1159 | # Distributed Lock Manager | ||
1160 | # | ||
1161 | # CONFIG_DLM is not set | ||
1162 | |||
1163 | # | ||
1104 | # Profiling support | 1164 | # Profiling support |
1105 | # | 1165 | # |
1106 | # CONFIG_PROFILING is not set | 1166 | # CONFIG_PROFILING is not set |
@@ -1109,8 +1169,11 @@ CONFIG_NLS_ISO8859_1=y | |||
1109 | # Kernel hacking | 1169 | # Kernel hacking |
1110 | # | 1170 | # |
1111 | # CONFIG_PRINTK_TIME is not set | 1171 | # CONFIG_PRINTK_TIME is not set |
1172 | CONFIG_ENABLE_MUST_CHECK=y | ||
1112 | CONFIG_MAGIC_SYSRQ=y | 1173 | CONFIG_MAGIC_SYSRQ=y |
1113 | # CONFIG_UNUSED_SYMBOLS is not set | 1174 | # CONFIG_UNUSED_SYMBOLS is not set |
1175 | # CONFIG_DEBUG_FS is not set | ||
1176 | # CONFIG_HEADERS_CHECK is not set | ||
1114 | CONFIG_DEBUG_KERNEL=y | 1177 | CONFIG_DEBUG_KERNEL=y |
1115 | CONFIG_LOG_BUF_SHIFT=14 | 1178 | CONFIG_LOG_BUF_SHIFT=14 |
1116 | CONFIG_DETECT_SOFTLOCKUP=y | 1179 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -1127,14 +1190,12 @@ CONFIG_DEBUG_MUTEXES=y | |||
1127 | # CONFIG_DEBUG_KOBJECT is not set | 1190 | # CONFIG_DEBUG_KOBJECT is not set |
1128 | CONFIG_DEBUG_BUGVERBOSE=y | 1191 | CONFIG_DEBUG_BUGVERBOSE=y |
1129 | # CONFIG_DEBUG_INFO is not set | 1192 | # CONFIG_DEBUG_INFO is not set |
1130 | # CONFIG_DEBUG_FS is not set | ||
1131 | # CONFIG_DEBUG_VM is not set | 1193 | # CONFIG_DEBUG_VM is not set |
1194 | # CONFIG_DEBUG_LIST is not set | ||
1132 | CONFIG_FRAME_POINTER=y | 1195 | CONFIG_FRAME_POINTER=y |
1133 | # CONFIG_UNWIND_INFO is not set | ||
1134 | CONFIG_FORCED_INLINING=y | 1196 | CONFIG_FORCED_INLINING=y |
1135 | # CONFIG_RCU_TORTURE_TEST is not set | 1197 | # CONFIG_RCU_TORTURE_TEST is not set |
1136 | CONFIG_DEBUG_USER=y | 1198 | CONFIG_DEBUG_USER=y |
1137 | CONFIG_DEBUG_WAITQ=y | ||
1138 | CONFIG_DEBUG_ERRORS=y | 1199 | CONFIG_DEBUG_ERRORS=y |
1139 | CONFIG_DEBUG_LL=y | 1200 | CONFIG_DEBUG_LL=y |
1140 | # CONFIG_DEBUG_ICEDCC is not set | 1201 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -1151,12 +1212,9 @@ CONFIG_DEBUG_LL=y | |||
1151 | # CONFIG_CRYPTO is not set | 1212 | # CONFIG_CRYPTO is not set |
1152 | 1213 | ||
1153 | # | 1214 | # |
1154 | # Hardware crypto devices | ||
1155 | # | ||
1156 | |||
1157 | # | ||
1158 | # Library routines | 1215 | # Library routines |
1159 | # | 1216 | # |
1217 | CONFIG_BITREVERSE=y | ||
1160 | # CONFIG_CRC_CCITT is not set | 1218 | # CONFIG_CRC_CCITT is not set |
1161 | # CONFIG_CRC16 is not set | 1219 | # CONFIG_CRC16 is not set |
1162 | CONFIG_CRC32=y | 1220 | CONFIG_CRC32=y |
@@ -1164,3 +1222,4 @@ CONFIG_LIBCRC32C=y | |||
1164 | CONFIG_ZLIB_INFLATE=y | 1222 | CONFIG_ZLIB_INFLATE=y |
1165 | CONFIG_ZLIB_DEFLATE=y | 1223 | CONFIG_ZLIB_DEFLATE=y |
1166 | CONFIG_PLIST=y | 1224 | CONFIG_PLIST=y |
1225 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/h7202_defconfig b/arch/arm/configs/h7202_defconfig index 9d62ed16bf57..0e739af52713 100644 --- a/arch/arm/configs/h7202_defconfig +++ b/arch/arm/configs/h7202_defconfig | |||
@@ -702,7 +702,6 @@ CONFIG_DEBUG_INFO=y | |||
702 | # CONFIG_DEBUG_FS is not set | 702 | # CONFIG_DEBUG_FS is not set |
703 | CONFIG_FRAME_POINTER=y | 703 | CONFIG_FRAME_POINTER=y |
704 | CONFIG_DEBUG_USER=y | 704 | CONFIG_DEBUG_USER=y |
705 | # CONFIG_DEBUG_WAITQ is not set | ||
706 | # CONFIG_DEBUG_ERRORS is not set | 705 | # CONFIG_DEBUG_ERRORS is not set |
707 | # CONFIG_DEBUG_LL is not set | 706 | # CONFIG_DEBUG_LL is not set |
708 | 707 | ||
diff --git a/arch/arm/configs/hackkit_defconfig b/arch/arm/configs/hackkit_defconfig index a45b57582b86..1c8fb89a6730 100644 --- a/arch/arm/configs/hackkit_defconfig +++ b/arch/arm/configs/hackkit_defconfig | |||
@@ -740,7 +740,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
740 | # CONFIG_DEBUG_FS is not set | 740 | # CONFIG_DEBUG_FS is not set |
741 | CONFIG_FRAME_POINTER=y | 741 | CONFIG_FRAME_POINTER=y |
742 | CONFIG_DEBUG_USER=y | 742 | CONFIG_DEBUG_USER=y |
743 | CONFIG_DEBUG_WAITQ=y | ||
744 | CONFIG_DEBUG_ERRORS=y | 743 | CONFIG_DEBUG_ERRORS=y |
745 | CONFIG_DEBUG_LL=y | 744 | CONFIG_DEBUG_LL=y |
746 | # CONFIG_DEBUG_ICEDCC is not set | 745 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/integrator_defconfig b/arch/arm/configs/integrator_defconfig index 692ab57ba1ca..3ce96e60b409 100644 --- a/arch/arm/configs/integrator_defconfig +++ b/arch/arm/configs/integrator_defconfig | |||
@@ -835,7 +835,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
835 | # CONFIG_DEBUG_FS is not set | 835 | # CONFIG_DEBUG_FS is not set |
836 | CONFIG_FRAME_POINTER=y | 836 | CONFIG_FRAME_POINTER=y |
837 | # CONFIG_DEBUG_USER is not set | 837 | # CONFIG_DEBUG_USER is not set |
838 | # CONFIG_DEBUG_WAITQ is not set | ||
839 | CONFIG_DEBUG_ERRORS=y | 838 | CONFIG_DEBUG_ERRORS=y |
840 | # CONFIG_DEBUG_LL is not set | 839 | # CONFIG_DEBUG_LL is not set |
841 | 840 | ||
diff --git a/arch/arm/configs/iop13xx_defconfig b/arch/arm/configs/iop13xx_defconfig new file mode 100644 index 000000000000..43c4a37e9247 --- /dev/null +++ b/arch/arm/configs/iop13xx_defconfig | |||
@@ -0,0 +1,1209 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20-rc1-git5 | ||
4 | # Tue Dec 19 21:38:01 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | # CONFIG_GENERIC_TIME is not set | ||
8 | CONFIG_MMU=y | ||
9 | CONFIG_GENERIC_HARDIRQS=y | ||
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
11 | CONFIG_HARDIRQS_SW_RESEND=y | ||
12 | CONFIG_GENERIC_IRQ_PROBE=y | ||
13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
16 | CONFIG_GENERIC_HWEIGHT=y | ||
17 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
18 | CONFIG_VECTORS_BASE=0xffff0000 | ||
19 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
20 | |||
21 | # | ||
22 | # Code maturity level options | ||
23 | # | ||
24 | CONFIG_EXPERIMENTAL=y | ||
25 | CONFIG_BROKEN_ON_SMP=y | ||
26 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
27 | |||
28 | # | ||
29 | # General setup | ||
30 | # | ||
31 | CONFIG_LOCALVERSION="" | ||
32 | # CONFIG_LOCALVERSION_AUTO is not set | ||
33 | CONFIG_SWAP=y | ||
34 | CONFIG_SYSVIPC=y | ||
35 | # CONFIG_IPC_NS is not set | ||
36 | CONFIG_POSIX_MQUEUE=y | ||
37 | CONFIG_BSD_PROCESS_ACCT=y | ||
38 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
39 | # CONFIG_TASKSTATS is not set | ||
40 | # CONFIG_UTS_NS is not set | ||
41 | # CONFIG_AUDIT is not set | ||
42 | CONFIG_IKCONFIG=y | ||
43 | CONFIG_IKCONFIG_PROC=y | ||
44 | CONFIG_SYSFS_DEPRECATED=y | ||
45 | # CONFIG_RELAY is not set | ||
46 | CONFIG_INITRAMFS_SOURCE="" | ||
47 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
48 | CONFIG_SYSCTL=y | ||
49 | # CONFIG_EMBEDDED is not set | ||
50 | CONFIG_UID16=y | ||
51 | CONFIG_SYSCTL_SYSCALL=y | ||
52 | CONFIG_KALLSYMS=y | ||
53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
54 | CONFIG_HOTPLUG=y | ||
55 | CONFIG_PRINTK=y | ||
56 | CONFIG_BUG=y | ||
57 | CONFIG_ELF_CORE=y | ||
58 | CONFIG_BASE_FULL=y | ||
59 | CONFIG_FUTEX=y | ||
60 | CONFIG_EPOLL=y | ||
61 | CONFIG_SHMEM=y | ||
62 | CONFIG_SLAB=y | ||
63 | CONFIG_VM_EVENT_COUNTERS=y | ||
64 | CONFIG_RT_MUTEXES=y | ||
65 | # CONFIG_TINY_SHMEM is not set | ||
66 | CONFIG_BASE_SMALL=0 | ||
67 | # CONFIG_SLOB is not set | ||
68 | |||
69 | # | ||
70 | # Loadable module support | ||
71 | # | ||
72 | CONFIG_MODULES=y | ||
73 | CONFIG_MODULE_UNLOAD=y | ||
74 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
75 | CONFIG_MODVERSIONS=y | ||
76 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
77 | CONFIG_KMOD=y | ||
78 | |||
79 | # | ||
80 | # Block layer | ||
81 | # | ||
82 | CONFIG_BLOCK=y | ||
83 | # CONFIG_LBD is not set | ||
84 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
85 | # CONFIG_LSF is not set | ||
86 | |||
87 | # | ||
88 | # IO Schedulers | ||
89 | # | ||
90 | CONFIG_IOSCHED_NOOP=y | ||
91 | # CONFIG_IOSCHED_AS is not set | ||
92 | CONFIG_IOSCHED_DEADLINE=y | ||
93 | # CONFIG_IOSCHED_CFQ is not set | ||
94 | # CONFIG_DEFAULT_AS is not set | ||
95 | CONFIG_DEFAULT_DEADLINE=y | ||
96 | # CONFIG_DEFAULT_CFQ is not set | ||
97 | # CONFIG_DEFAULT_NOOP is not set | ||
98 | CONFIG_DEFAULT_IOSCHED="deadline" | ||
99 | |||
100 | # | ||
101 | # System Type | ||
102 | # | ||
103 | # CONFIG_ARCH_AAEC2000 is not set | ||
104 | # CONFIG_ARCH_INTEGRATOR is not set | ||
105 | # CONFIG_ARCH_REALVIEW is not set | ||
106 | # CONFIG_ARCH_VERSATILE is not set | ||
107 | # CONFIG_ARCH_AT91 is not set | ||
108 | # CONFIG_ARCH_CLPS7500 is not set | ||
109 | # CONFIG_ARCH_CLPS711X is not set | ||
110 | # CONFIG_ARCH_CO285 is not set | ||
111 | # CONFIG_ARCH_EBSA110 is not set | ||
112 | # CONFIG_ARCH_EP93XX is not set | ||
113 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
114 | # CONFIG_ARCH_NETX is not set | ||
115 | # CONFIG_ARCH_H720X is not set | ||
116 | # CONFIG_ARCH_IMX is not set | ||
117 | # CONFIG_ARCH_IOP32X is not set | ||
118 | # CONFIG_ARCH_IOP33X is not set | ||
119 | CONFIG_ARCH_IOP13XX=y | ||
120 | # CONFIG_ARCH_IXP4XX is not set | ||
121 | # CONFIG_ARCH_IXP2000 is not set | ||
122 | # CONFIG_ARCH_IXP23XX is not set | ||
123 | # CONFIG_ARCH_L7200 is not set | ||
124 | # CONFIG_ARCH_PNX4008 is not set | ||
125 | # CONFIG_ARCH_PXA is not set | ||
126 | # CONFIG_ARCH_RPC is not set | ||
127 | # CONFIG_ARCH_SA1100 is not set | ||
128 | # CONFIG_ARCH_S3C2410 is not set | ||
129 | # CONFIG_ARCH_SHARK is not set | ||
130 | # CONFIG_ARCH_LH7A40X is not set | ||
131 | # CONFIG_ARCH_OMAP is not set | ||
132 | |||
133 | # | ||
134 | # IOP13XX Implementation Options | ||
135 | # | ||
136 | |||
137 | # | ||
138 | # IOP13XX Platform Support | ||
139 | # | ||
140 | CONFIG_MACH_IQ81340SC=y | ||
141 | CONFIG_MACH_IQ81340MC=y | ||
142 | |||
143 | # | ||
144 | # Processor Type | ||
145 | # | ||
146 | CONFIG_CPU_32=y | ||
147 | CONFIG_CPU_XSC3=y | ||
148 | CONFIG_CPU_32v5=y | ||
149 | CONFIG_CPU_ABRT_EV5T=y | ||
150 | CONFIG_CPU_CACHE_VIVT=y | ||
151 | CONFIG_CPU_TLB_V4WBI=y | ||
152 | CONFIG_CPU_CP15=y | ||
153 | CONFIG_CPU_CP15_MMU=y | ||
154 | CONFIG_IO_36=y | ||
155 | |||
156 | # | ||
157 | # Processor Features | ||
158 | # | ||
159 | CONFIG_ARM_THUMB=y | ||
160 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
161 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
162 | # CONFIG_IWMMXT is not set | ||
163 | |||
164 | # | ||
165 | # Bus support | ||
166 | # | ||
167 | CONFIG_PCI=y | ||
168 | # CONFIG_PCI_MULTITHREAD_PROBE is not set | ||
169 | |||
170 | # | ||
171 | # PCCARD (PCMCIA/CardBus) support | ||
172 | # | ||
173 | # CONFIG_PCCARD is not set | ||
174 | |||
175 | # | ||
176 | # Kernel Features | ||
177 | # | ||
178 | # CONFIG_PREEMPT is not set | ||
179 | # CONFIG_NO_IDLE_HZ is not set | ||
180 | CONFIG_HZ=100 | ||
181 | # CONFIG_AEABI is not set | ||
182 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
183 | CONFIG_SELECT_MEMORY_MODEL=y | ||
184 | CONFIG_FLATMEM_MANUAL=y | ||
185 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
186 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
187 | CONFIG_FLATMEM=y | ||
188 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
189 | # CONFIG_SPARSEMEM_STATIC is not set | ||
190 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
191 | # CONFIG_RESOURCES_64BIT is not set | ||
192 | CONFIG_ALIGNMENT_TRAP=y | ||
193 | |||
194 | # | ||
195 | # Boot options | ||
196 | # | ||
197 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
198 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
199 | CONFIG_CMDLINE="ip=bootp root=nfs console=ttyS0,115200 nfsroot=,tcp,v3,wsize=8192,rsize=8192" | ||
200 | # CONFIG_XIP_KERNEL is not set | ||
201 | |||
202 | # | ||
203 | # Floating point emulation | ||
204 | # | ||
205 | |||
206 | # | ||
207 | # At least one emulation must be selected | ||
208 | # | ||
209 | CONFIG_FPE_NWFPE=y | ||
210 | # CONFIG_FPE_NWFPE_XP is not set | ||
211 | # CONFIG_FPE_FASTFPE is not set | ||
212 | |||
213 | # | ||
214 | # Userspace binary formats | ||
215 | # | ||
216 | CONFIG_BINFMT_ELF=y | ||
217 | CONFIG_BINFMT_AOUT=y | ||
218 | # CONFIG_BINFMT_MISC is not set | ||
219 | # CONFIG_ARTHUR is not set | ||
220 | |||
221 | # | ||
222 | # Power management options | ||
223 | # | ||
224 | # CONFIG_PM is not set | ||
225 | # CONFIG_APM is not set | ||
226 | |||
227 | # | ||
228 | # Networking | ||
229 | # | ||
230 | CONFIG_NET=y | ||
231 | |||
232 | # | ||
233 | # Networking options | ||
234 | # | ||
235 | # CONFIG_NETDEBUG is not set | ||
236 | CONFIG_PACKET=y | ||
237 | CONFIG_PACKET_MMAP=y | ||
238 | CONFIG_UNIX=y | ||
239 | CONFIG_XFRM=y | ||
240 | # CONFIG_XFRM_USER is not set | ||
241 | # CONFIG_XFRM_SUB_POLICY is not set | ||
242 | CONFIG_NET_KEY=y | ||
243 | CONFIG_INET=y | ||
244 | CONFIG_IP_MULTICAST=y | ||
245 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
246 | CONFIG_IP_FIB_HASH=y | ||
247 | CONFIG_IP_PNP=y | ||
248 | # CONFIG_IP_PNP_DHCP is not set | ||
249 | CONFIG_IP_PNP_BOOTP=y | ||
250 | # CONFIG_IP_PNP_RARP is not set | ||
251 | # CONFIG_NET_IPIP is not set | ||
252 | # CONFIG_NET_IPGRE is not set | ||
253 | # CONFIG_IP_MROUTE is not set | ||
254 | # CONFIG_ARPD is not set | ||
255 | # CONFIG_SYN_COOKIES is not set | ||
256 | # CONFIG_INET_AH is not set | ||
257 | # CONFIG_INET_ESP is not set | ||
258 | # CONFIG_INET_IPCOMP is not set | ||
259 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
260 | # CONFIG_INET_TUNNEL is not set | ||
261 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
262 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
263 | CONFIG_INET_XFRM_MODE_BEET=y | ||
264 | CONFIG_INET_DIAG=y | ||
265 | CONFIG_INET_TCP_DIAG=y | ||
266 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
267 | CONFIG_TCP_CONG_CUBIC=y | ||
268 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
269 | # CONFIG_TCP_MD5SIG is not set | ||
270 | CONFIG_IPV6=y | ||
271 | # CONFIG_IPV6_PRIVACY is not set | ||
272 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
273 | # CONFIG_INET6_AH is not set | ||
274 | # CONFIG_INET6_ESP is not set | ||
275 | # CONFIG_INET6_IPCOMP is not set | ||
276 | # CONFIG_IPV6_MIP6 is not set | ||
277 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
278 | # CONFIG_INET6_TUNNEL is not set | ||
279 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
280 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
281 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
282 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
283 | # CONFIG_IPV6_SIT is not set | ||
284 | # CONFIG_IPV6_TUNNEL is not set | ||
285 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
286 | # CONFIG_NETWORK_SECMARK is not set | ||
287 | # CONFIG_NETFILTER is not set | ||
288 | |||
289 | # | ||
290 | # DCCP Configuration (EXPERIMENTAL) | ||
291 | # | ||
292 | # CONFIG_IP_DCCP is not set | ||
293 | |||
294 | # | ||
295 | # SCTP Configuration (EXPERIMENTAL) | ||
296 | # | ||
297 | # CONFIG_IP_SCTP is not set | ||
298 | |||
299 | # | ||
300 | # TIPC Configuration (EXPERIMENTAL) | ||
301 | # | ||
302 | # CONFIG_TIPC is not set | ||
303 | # CONFIG_ATM is not set | ||
304 | # CONFIG_BRIDGE is not set | ||
305 | # CONFIG_VLAN_8021Q is not set | ||
306 | # CONFIG_DECNET is not set | ||
307 | # CONFIG_LLC2 is not set | ||
308 | # CONFIG_IPX is not set | ||
309 | # CONFIG_ATALK is not set | ||
310 | # CONFIG_X25 is not set | ||
311 | # CONFIG_LAPB is not set | ||
312 | # CONFIG_ECONET is not set | ||
313 | # CONFIG_WAN_ROUTER is not set | ||
314 | |||
315 | # | ||
316 | # QoS and/or fair queueing | ||
317 | # | ||
318 | # CONFIG_NET_SCHED is not set | ||
319 | |||
320 | # | ||
321 | # Network testing | ||
322 | # | ||
323 | # CONFIG_NET_PKTGEN is not set | ||
324 | # CONFIG_HAMRADIO is not set | ||
325 | # CONFIG_IRDA is not set | ||
326 | # CONFIG_BT is not set | ||
327 | # CONFIG_IEEE80211 is not set | ||
328 | |||
329 | # | ||
330 | # Device Drivers | ||
331 | # | ||
332 | |||
333 | # | ||
334 | # Generic Driver Options | ||
335 | # | ||
336 | CONFIG_STANDALONE=y | ||
337 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
338 | # CONFIG_FW_LOADER is not set | ||
339 | # CONFIG_SYS_HYPERVISOR is not set | ||
340 | |||
341 | # | ||
342 | # Connector - unified userspace <-> kernelspace linker | ||
343 | # | ||
344 | # CONFIG_CONNECTOR is not set | ||
345 | |||
346 | # | ||
347 | # Memory Technology Devices (MTD) | ||
348 | # | ||
349 | CONFIG_MTD=y | ||
350 | # CONFIG_MTD_DEBUG is not set | ||
351 | # CONFIG_MTD_CONCAT is not set | ||
352 | CONFIG_MTD_PARTITIONS=y | ||
353 | CONFIG_MTD_REDBOOT_PARTS=y | ||
354 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 | ||
355 | CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=y | ||
356 | CONFIG_MTD_REDBOOT_PARTS_READONLY=y | ||
357 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
358 | # CONFIG_MTD_AFS_PARTS is not set | ||
359 | |||
360 | # | ||
361 | # User Modules And Translation Layers | ||
362 | # | ||
363 | # CONFIG_MTD_CHAR is not set | ||
364 | CONFIG_MTD_BLOCK=y | ||
365 | # CONFIG_FTL is not set | ||
366 | # CONFIG_NFTL is not set | ||
367 | # CONFIG_INFTL is not set | ||
368 | # CONFIG_RFD_FTL is not set | ||
369 | # CONFIG_SSFDC is not set | ||
370 | |||
371 | # | ||
372 | # RAM/ROM/Flash chip drivers | ||
373 | # | ||
374 | CONFIG_MTD_CFI=y | ||
375 | # CONFIG_MTD_JEDECPROBE is not set | ||
376 | CONFIG_MTD_GEN_PROBE=y | ||
377 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
378 | CONFIG_MTD_CFI_NOSWAP=y | ||
379 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
380 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
381 | # CONFIG_MTD_CFI_GEOMETRY is not set | ||
382 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
383 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
384 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
385 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
386 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
387 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
388 | CONFIG_MTD_CFI_I1=y | ||
389 | CONFIG_MTD_CFI_I2=y | ||
390 | # CONFIG_MTD_CFI_I4 is not set | ||
391 | # CONFIG_MTD_CFI_I8 is not set | ||
392 | # CONFIG_MTD_OTP is not set | ||
393 | CONFIG_MTD_CFI_INTELEXT=y | ||
394 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
395 | # CONFIG_MTD_CFI_STAA is not set | ||
396 | CONFIG_MTD_CFI_UTIL=y | ||
397 | # CONFIG_MTD_RAM is not set | ||
398 | # CONFIG_MTD_ROM is not set | ||
399 | # CONFIG_MTD_ABSENT is not set | ||
400 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
401 | |||
402 | # | ||
403 | # Mapping drivers for chip access | ||
404 | # | ||
405 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
406 | CONFIG_MTD_PHYSMAP=y | ||
407 | CONFIG_MTD_PHYSMAP_START=0xfa000000 | ||
408 | CONFIG_MTD_PHYSMAP_LEN=0x0 | ||
409 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
410 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
411 | # CONFIG_MTD_PLATRAM is not set | ||
412 | |||
413 | # | ||
414 | # Self-contained MTD device drivers | ||
415 | # | ||
416 | # CONFIG_MTD_PMC551 is not set | ||
417 | # CONFIG_MTD_SLRAM is not set | ||
418 | # CONFIG_MTD_PHRAM is not set | ||
419 | # CONFIG_MTD_MTDRAM is not set | ||
420 | # CONFIG_MTD_BLOCK2MTD is not set | ||
421 | |||
422 | # | ||
423 | # Disk-On-Chip Device Drivers | ||
424 | # | ||
425 | # CONFIG_MTD_DOC2000 is not set | ||
426 | # CONFIG_MTD_DOC2001 is not set | ||
427 | # CONFIG_MTD_DOC2001PLUS is not set | ||
428 | |||
429 | # | ||
430 | # NAND Flash Device Drivers | ||
431 | # | ||
432 | # CONFIG_MTD_NAND is not set | ||
433 | |||
434 | # | ||
435 | # OneNAND Flash Device Drivers | ||
436 | # | ||
437 | # CONFIG_MTD_ONENAND is not set | ||
438 | |||
439 | # | ||
440 | # Parallel port support | ||
441 | # | ||
442 | # CONFIG_PARPORT is not set | ||
443 | |||
444 | # | ||
445 | # Plug and Play support | ||
446 | # | ||
447 | |||
448 | # | ||
449 | # Block devices | ||
450 | # | ||
451 | # CONFIG_BLK_CPQ_DA is not set | ||
452 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
453 | # CONFIG_BLK_DEV_DAC960 is not set | ||
454 | # CONFIG_BLK_DEV_UMEM is not set | ||
455 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
456 | # CONFIG_BLK_DEV_LOOP is not set | ||
457 | CONFIG_BLK_DEV_NBD=y | ||
458 | # CONFIG_BLK_DEV_SX8 is not set | ||
459 | CONFIG_BLK_DEV_RAM=y | ||
460 | CONFIG_BLK_DEV_RAM_COUNT=2 | ||
461 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
462 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
463 | CONFIG_BLK_DEV_INITRD=y | ||
464 | # CONFIG_CDROM_PKTCDVD is not set | ||
465 | # CONFIG_ATA_OVER_ETH is not set | ||
466 | |||
467 | # | ||
468 | # SCSI device support | ||
469 | # | ||
470 | # CONFIG_RAID_ATTRS is not set | ||
471 | CONFIG_SCSI=y | ||
472 | # CONFIG_SCSI_TGT is not set | ||
473 | # CONFIG_SCSI_NETLINK is not set | ||
474 | CONFIG_SCSI_PROC_FS=y | ||
475 | |||
476 | # | ||
477 | # SCSI support type (disk, tape, CD-ROM) | ||
478 | # | ||
479 | CONFIG_BLK_DEV_SD=y | ||
480 | # CONFIG_CHR_DEV_ST is not set | ||
481 | # CONFIG_CHR_DEV_OSST is not set | ||
482 | # CONFIG_BLK_DEV_SR is not set | ||
483 | CONFIG_CHR_DEV_SG=y | ||
484 | # CONFIG_CHR_DEV_SCH is not set | ||
485 | |||
486 | # | ||
487 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
488 | # | ||
489 | # CONFIG_SCSI_MULTI_LUN is not set | ||
490 | CONFIG_SCSI_CONSTANTS=y | ||
491 | # CONFIG_SCSI_LOGGING is not set | ||
492 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
493 | |||
494 | # | ||
495 | # SCSI Transports | ||
496 | # | ||
497 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
498 | # CONFIG_SCSI_FC_ATTRS is not set | ||
499 | CONFIG_SCSI_ISCSI_ATTRS=y | ||
500 | CONFIG_SCSI_SAS_ATTRS=y | ||
501 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
502 | |||
503 | # | ||
504 | # SCSI low-level drivers | ||
505 | # | ||
506 | # CONFIG_ISCSI_TCP is not set | ||
507 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
508 | # CONFIG_SCSI_3W_9XXX is not set | ||
509 | # CONFIG_SCSI_ACARD is not set | ||
510 | # CONFIG_SCSI_AACRAID is not set | ||
511 | # CONFIG_SCSI_AIC7XXX is not set | ||
512 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
513 | # CONFIG_SCSI_AIC79XX is not set | ||
514 | # CONFIG_SCSI_AIC94XX is not set | ||
515 | # CONFIG_SCSI_DPT_I2O is not set | ||
516 | # CONFIG_SCSI_ARCMSR is not set | ||
517 | # CONFIG_MEGARAID_NEWGEN is not set | ||
518 | # CONFIG_MEGARAID_LEGACY is not set | ||
519 | # CONFIG_MEGARAID_SAS is not set | ||
520 | # CONFIG_SCSI_HPTIOP is not set | ||
521 | # CONFIG_SCSI_DMX3191D is not set | ||
522 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
523 | # CONFIG_SCSI_IPS is not set | ||
524 | # CONFIG_SCSI_INITIO is not set | ||
525 | # CONFIG_SCSI_INIA100 is not set | ||
526 | # CONFIG_SCSI_STEX is not set | ||
527 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
528 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
529 | # CONFIG_SCSI_QLA_FC is not set | ||
530 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
531 | # CONFIG_SCSI_LPFC is not set | ||
532 | # CONFIG_SCSI_DC395x is not set | ||
533 | # CONFIG_SCSI_DC390T is not set | ||
534 | # CONFIG_SCSI_NSP32 is not set | ||
535 | # CONFIG_SCSI_DEBUG is not set | ||
536 | # CONFIG_SCSI_SRP is not set | ||
537 | |||
538 | # | ||
539 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
540 | # | ||
541 | # CONFIG_ATA is not set | ||
542 | |||
543 | # | ||
544 | # Multi-device support (RAID and LVM) | ||
545 | # | ||
546 | CONFIG_MD=y | ||
547 | CONFIG_BLK_DEV_MD=y | ||
548 | # CONFIG_MD_LINEAR is not set | ||
549 | CONFIG_MD_RAID0=y | ||
550 | CONFIG_MD_RAID1=y | ||
551 | CONFIG_MD_RAID10=y | ||
552 | CONFIG_MD_RAID456=y | ||
553 | # CONFIG_MD_RAID5_RESHAPE is not set | ||
554 | # CONFIG_MD_MULTIPATH is not set | ||
555 | # CONFIG_MD_FAULTY is not set | ||
556 | CONFIG_BLK_DEV_DM=y | ||
557 | # CONFIG_DM_DEBUG is not set | ||
558 | # CONFIG_DM_CRYPT is not set | ||
559 | # CONFIG_DM_SNAPSHOT is not set | ||
560 | # CONFIG_DM_MIRROR is not set | ||
561 | # CONFIG_DM_ZERO is not set | ||
562 | # CONFIG_DM_MULTIPATH is not set | ||
563 | |||
564 | # | ||
565 | # Fusion MPT device support | ||
566 | # | ||
567 | # CONFIG_FUSION is not set | ||
568 | # CONFIG_FUSION_SPI is not set | ||
569 | # CONFIG_FUSION_FC is not set | ||
570 | # CONFIG_FUSION_SAS is not set | ||
571 | |||
572 | # | ||
573 | # IEEE 1394 (FireWire) support | ||
574 | # | ||
575 | # CONFIG_IEEE1394 is not set | ||
576 | |||
577 | # | ||
578 | # I2O device support | ||
579 | # | ||
580 | # CONFIG_I2O is not set | ||
581 | |||
582 | # | ||
583 | # Network device support | ||
584 | # | ||
585 | CONFIG_NETDEVICES=y | ||
586 | # CONFIG_DUMMY is not set | ||
587 | # CONFIG_BONDING is not set | ||
588 | # CONFIG_EQUALIZER is not set | ||
589 | # CONFIG_TUN is not set | ||
590 | |||
591 | # | ||
592 | # ARCnet devices | ||
593 | # | ||
594 | # CONFIG_ARCNET is not set | ||
595 | |||
596 | # | ||
597 | # PHY device support | ||
598 | # | ||
599 | |||
600 | # | ||
601 | # Ethernet (10 or 100Mbit) | ||
602 | # | ||
603 | # CONFIG_NET_ETHERNET is not set | ||
604 | |||
605 | # | ||
606 | # Ethernet (1000 Mbit) | ||
607 | # | ||
608 | # CONFIG_ACENIC is not set | ||
609 | # CONFIG_DL2K is not set | ||
610 | CONFIG_E1000=y | ||
611 | CONFIG_E1000_NAPI=y | ||
612 | # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set | ||
613 | # CONFIG_NS83820 is not set | ||
614 | # CONFIG_HAMACHI is not set | ||
615 | # CONFIG_YELLOWFIN is not set | ||
616 | # CONFIG_R8169 is not set | ||
617 | # CONFIG_SIS190 is not set | ||
618 | # CONFIG_SKGE is not set | ||
619 | # CONFIG_SKY2 is not set | ||
620 | # CONFIG_SK98LIN is not set | ||
621 | # CONFIG_TIGON3 is not set | ||
622 | # CONFIG_BNX2 is not set | ||
623 | # CONFIG_QLA3XXX is not set | ||
624 | |||
625 | # | ||
626 | # Ethernet (10000 Mbit) | ||
627 | # | ||
628 | # CONFIG_CHELSIO_T1 is not set | ||
629 | # CONFIG_IXGB is not set | ||
630 | # CONFIG_S2IO is not set | ||
631 | # CONFIG_MYRI10GE is not set | ||
632 | # CONFIG_NETXEN_NIC is not set | ||
633 | |||
634 | # | ||
635 | # Token Ring devices | ||
636 | # | ||
637 | # CONFIG_TR is not set | ||
638 | |||
639 | # | ||
640 | # Wireless LAN (non-hamradio) | ||
641 | # | ||
642 | # CONFIG_NET_RADIO is not set | ||
643 | |||
644 | # | ||
645 | # Wan interfaces | ||
646 | # | ||
647 | # CONFIG_WAN is not set | ||
648 | # CONFIG_FDDI is not set | ||
649 | # CONFIG_HIPPI is not set | ||
650 | # CONFIG_PPP is not set | ||
651 | # CONFIG_SLIP is not set | ||
652 | # CONFIG_NET_FC is not set | ||
653 | # CONFIG_SHAPER is not set | ||
654 | # CONFIG_NETCONSOLE is not set | ||
655 | # CONFIG_NETPOLL is not set | ||
656 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
657 | |||
658 | # | ||
659 | # ISDN subsystem | ||
660 | # | ||
661 | # CONFIG_ISDN is not set | ||
662 | |||
663 | # | ||
664 | # Input device support | ||
665 | # | ||
666 | CONFIG_INPUT=y | ||
667 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
668 | |||
669 | # | ||
670 | # Userland interfaces | ||
671 | # | ||
672 | CONFIG_INPUT_MOUSEDEV=y | ||
673 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
674 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
675 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
676 | # CONFIG_INPUT_JOYDEV is not set | ||
677 | # CONFIG_INPUT_TSDEV is not set | ||
678 | # CONFIG_INPUT_EVDEV is not set | ||
679 | # CONFIG_INPUT_EVBUG is not set | ||
680 | |||
681 | # | ||
682 | # Input Device Drivers | ||
683 | # | ||
684 | # CONFIG_INPUT_KEYBOARD is not set | ||
685 | # CONFIG_INPUT_MOUSE is not set | ||
686 | # CONFIG_INPUT_JOYSTICK is not set | ||
687 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
688 | # CONFIG_INPUT_MISC is not set | ||
689 | |||
690 | # | ||
691 | # Hardware I/O ports | ||
692 | # | ||
693 | # CONFIG_SERIO is not set | ||
694 | # CONFIG_GAMEPORT is not set | ||
695 | |||
696 | # | ||
697 | # Character devices | ||
698 | # | ||
699 | CONFIG_VT=y | ||
700 | CONFIG_VT_CONSOLE=y | ||
701 | CONFIG_HW_CONSOLE=y | ||
702 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
703 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
704 | |||
705 | # | ||
706 | # Serial drivers | ||
707 | # | ||
708 | CONFIG_SERIAL_8250=y | ||
709 | CONFIG_SERIAL_8250_CONSOLE=y | ||
710 | CONFIG_SERIAL_8250_PCI=y | ||
711 | CONFIG_SERIAL_8250_NR_UARTS=2 | ||
712 | CONFIG_SERIAL_8250_RUNTIME_UARTS=2 | ||
713 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
714 | |||
715 | # | ||
716 | # Non-8250 serial port support | ||
717 | # | ||
718 | CONFIG_SERIAL_CORE=y | ||
719 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
720 | # CONFIG_SERIAL_JSM is not set | ||
721 | CONFIG_UNIX98_PTYS=y | ||
722 | CONFIG_LEGACY_PTYS=y | ||
723 | CONFIG_LEGACY_PTY_COUNT=256 | ||
724 | |||
725 | # | ||
726 | # IPMI | ||
727 | # | ||
728 | # CONFIG_IPMI_HANDLER is not set | ||
729 | |||
730 | # | ||
731 | # Watchdog Cards | ||
732 | # | ||
733 | # CONFIG_WATCHDOG is not set | ||
734 | CONFIG_HW_RANDOM=y | ||
735 | # CONFIG_NVRAM is not set | ||
736 | # CONFIG_DTLK is not set | ||
737 | # CONFIG_R3964 is not set | ||
738 | # CONFIG_APPLICOM is not set | ||
739 | # CONFIG_DRM is not set | ||
740 | # CONFIG_RAW_DRIVER is not set | ||
741 | |||
742 | # | ||
743 | # TPM devices | ||
744 | # | ||
745 | # CONFIG_TCG_TPM is not set | ||
746 | |||
747 | # | ||
748 | # I2C support | ||
749 | # | ||
750 | CONFIG_I2C=y | ||
751 | # CONFIG_I2C_CHARDEV is not set | ||
752 | |||
753 | # | ||
754 | # I2C Algorithms | ||
755 | # | ||
756 | CONFIG_I2C_ALGOBIT=m | ||
757 | CONFIG_I2C_ALGOPCF=m | ||
758 | CONFIG_I2C_ALGOPCA=m | ||
759 | |||
760 | # | ||
761 | # I2C Hardware Bus support | ||
762 | # | ||
763 | # CONFIG_I2C_ALI1535 is not set | ||
764 | # CONFIG_I2C_ALI1563 is not set | ||
765 | # CONFIG_I2C_ALI15X3 is not set | ||
766 | # CONFIG_I2C_AMD756 is not set | ||
767 | # CONFIG_I2C_AMD8111 is not set | ||
768 | # CONFIG_I2C_I801 is not set | ||
769 | # CONFIG_I2C_I810 is not set | ||
770 | # CONFIG_I2C_PIIX4 is not set | ||
771 | CONFIG_I2C_IOP3XX=y | ||
772 | # CONFIG_I2C_NFORCE2 is not set | ||
773 | # CONFIG_I2C_OCORES is not set | ||
774 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
775 | # CONFIG_I2C_PROSAVAGE is not set | ||
776 | # CONFIG_I2C_SAVAGE4 is not set | ||
777 | # CONFIG_I2C_SIS5595 is not set | ||
778 | # CONFIG_I2C_SIS630 is not set | ||
779 | # CONFIG_I2C_SIS96X is not set | ||
780 | # CONFIG_I2C_STUB is not set | ||
781 | # CONFIG_I2C_VIA is not set | ||
782 | # CONFIG_I2C_VIAPRO is not set | ||
783 | # CONFIG_I2C_VOODOO3 is not set | ||
784 | # CONFIG_I2C_PCA_ISA is not set | ||
785 | |||
786 | # | ||
787 | # Miscellaneous I2C Chip support | ||
788 | # | ||
789 | # CONFIG_SENSORS_DS1337 is not set | ||
790 | # CONFIG_SENSORS_DS1374 is not set | ||
791 | # CONFIG_SENSORS_EEPROM is not set | ||
792 | # CONFIG_SENSORS_PCF8574 is not set | ||
793 | # CONFIG_SENSORS_PCA9539 is not set | ||
794 | # CONFIG_SENSORS_PCF8591 is not set | ||
795 | # CONFIG_SENSORS_MAX6875 is not set | ||
796 | # CONFIG_I2C_DEBUG_CORE is not set | ||
797 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
798 | # CONFIG_I2C_DEBUG_BUS is not set | ||
799 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
800 | |||
801 | # | ||
802 | # SPI support | ||
803 | # | ||
804 | # CONFIG_SPI is not set | ||
805 | # CONFIG_SPI_MASTER is not set | ||
806 | |||
807 | # | ||
808 | # Dallas's 1-wire bus | ||
809 | # | ||
810 | # CONFIG_W1 is not set | ||
811 | |||
812 | # | ||
813 | # Hardware Monitoring support | ||
814 | # | ||
815 | CONFIG_HWMON=y | ||
816 | # CONFIG_HWMON_VID is not set | ||
817 | # CONFIG_SENSORS_ABITUGURU is not set | ||
818 | # CONFIG_SENSORS_ADM1021 is not set | ||
819 | # CONFIG_SENSORS_ADM1025 is not set | ||
820 | # CONFIG_SENSORS_ADM1026 is not set | ||
821 | # CONFIG_SENSORS_ADM1031 is not set | ||
822 | # CONFIG_SENSORS_ADM9240 is not set | ||
823 | # CONFIG_SENSORS_ASB100 is not set | ||
824 | # CONFIG_SENSORS_ATXP1 is not set | ||
825 | # CONFIG_SENSORS_DS1621 is not set | ||
826 | # CONFIG_SENSORS_F71805F is not set | ||
827 | # CONFIG_SENSORS_FSCHER is not set | ||
828 | # CONFIG_SENSORS_FSCPOS is not set | ||
829 | # CONFIG_SENSORS_GL518SM is not set | ||
830 | # CONFIG_SENSORS_GL520SM is not set | ||
831 | # CONFIG_SENSORS_IT87 is not set | ||
832 | # CONFIG_SENSORS_LM63 is not set | ||
833 | # CONFIG_SENSORS_LM75 is not set | ||
834 | # CONFIG_SENSORS_LM77 is not set | ||
835 | # CONFIG_SENSORS_LM78 is not set | ||
836 | # CONFIG_SENSORS_LM80 is not set | ||
837 | # CONFIG_SENSORS_LM83 is not set | ||
838 | # CONFIG_SENSORS_LM85 is not set | ||
839 | # CONFIG_SENSORS_LM87 is not set | ||
840 | # CONFIG_SENSORS_LM90 is not set | ||
841 | # CONFIG_SENSORS_LM92 is not set | ||
842 | # CONFIG_SENSORS_MAX1619 is not set | ||
843 | # CONFIG_SENSORS_PC87360 is not set | ||
844 | # CONFIG_SENSORS_PC87427 is not set | ||
845 | # CONFIG_SENSORS_SIS5595 is not set | ||
846 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
847 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
848 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
849 | # CONFIG_SENSORS_VIA686A is not set | ||
850 | # CONFIG_SENSORS_VT1211 is not set | ||
851 | # CONFIG_SENSORS_VT8231 is not set | ||
852 | # CONFIG_SENSORS_W83781D is not set | ||
853 | # CONFIG_SENSORS_W83791D is not set | ||
854 | # CONFIG_SENSORS_W83792D is not set | ||
855 | # CONFIG_SENSORS_W83793 is not set | ||
856 | # CONFIG_SENSORS_W83L785TS is not set | ||
857 | # CONFIG_SENSORS_W83627HF is not set | ||
858 | # CONFIG_SENSORS_W83627EHF is not set | ||
859 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
860 | |||
861 | # | ||
862 | # Misc devices | ||
863 | # | ||
864 | # CONFIG_SGI_IOC4 is not set | ||
865 | # CONFIG_TIFM_CORE is not set | ||
866 | |||
867 | # | ||
868 | # LED devices | ||
869 | # | ||
870 | # CONFIG_NEW_LEDS is not set | ||
871 | |||
872 | # | ||
873 | # LED drivers | ||
874 | # | ||
875 | |||
876 | # | ||
877 | # LED Triggers | ||
878 | # | ||
879 | |||
880 | # | ||
881 | # Multimedia devices | ||
882 | # | ||
883 | # CONFIG_VIDEO_DEV is not set | ||
884 | |||
885 | # | ||
886 | # Digital Video Broadcasting Devices | ||
887 | # | ||
888 | # CONFIG_DVB is not set | ||
889 | |||
890 | # | ||
891 | # Graphics support | ||
892 | # | ||
893 | CONFIG_FIRMWARE_EDID=y | ||
894 | # CONFIG_FB is not set | ||
895 | |||
896 | # | ||
897 | # Console display driver support | ||
898 | # | ||
899 | # CONFIG_VGA_CONSOLE is not set | ||
900 | CONFIG_DUMMY_CONSOLE=y | ||
901 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
902 | |||
903 | # | ||
904 | # Sound | ||
905 | # | ||
906 | # CONFIG_SOUND is not set | ||
907 | |||
908 | # | ||
909 | # HID Devices | ||
910 | # | ||
911 | CONFIG_HID=y | ||
912 | |||
913 | # | ||
914 | # USB support | ||
915 | # | ||
916 | CONFIG_USB_ARCH_HAS_HCD=y | ||
917 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
918 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
919 | # CONFIG_USB is not set | ||
920 | |||
921 | # | ||
922 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
923 | # | ||
924 | |||
925 | # | ||
926 | # USB Gadget Support | ||
927 | # | ||
928 | # CONFIG_USB_GADGET is not set | ||
929 | |||
930 | # | ||
931 | # MMC/SD Card support | ||
932 | # | ||
933 | # CONFIG_MMC is not set | ||
934 | |||
935 | # | ||
936 | # Real Time Clock | ||
937 | # | ||
938 | CONFIG_RTC_LIB=y | ||
939 | # CONFIG_RTC_CLASS is not set | ||
940 | |||
941 | # | ||
942 | # File systems | ||
943 | # | ||
944 | CONFIG_EXT2_FS=y | ||
945 | # CONFIG_EXT2_FS_XATTR is not set | ||
946 | # CONFIG_EXT2_FS_XIP is not set | ||
947 | CONFIG_EXT3_FS=y | ||
948 | CONFIG_EXT3_FS_XATTR=y | ||
949 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
950 | # CONFIG_EXT3_FS_SECURITY is not set | ||
951 | # CONFIG_EXT4DEV_FS is not set | ||
952 | CONFIG_JBD=y | ||
953 | # CONFIG_JBD_DEBUG is not set | ||
954 | CONFIG_FS_MBCACHE=y | ||
955 | # CONFIG_REISERFS_FS is not set | ||
956 | # CONFIG_JFS_FS is not set | ||
957 | # CONFIG_FS_POSIX_ACL is not set | ||
958 | # CONFIG_XFS_FS is not set | ||
959 | # CONFIG_GFS2_FS is not set | ||
960 | # CONFIG_OCFS2_FS is not set | ||
961 | # CONFIG_MINIX_FS is not set | ||
962 | # CONFIG_ROMFS_FS is not set | ||
963 | CONFIG_INOTIFY=y | ||
964 | CONFIG_INOTIFY_USER=y | ||
965 | # CONFIG_QUOTA is not set | ||
966 | CONFIG_DNOTIFY=y | ||
967 | # CONFIG_AUTOFS_FS is not set | ||
968 | # CONFIG_AUTOFS4_FS is not set | ||
969 | # CONFIG_FUSE_FS is not set | ||
970 | |||
971 | # | ||
972 | # CD-ROM/DVD Filesystems | ||
973 | # | ||
974 | # CONFIG_ISO9660_FS is not set | ||
975 | # CONFIG_UDF_FS is not set | ||
976 | |||
977 | # | ||
978 | # DOS/FAT/NT Filesystems | ||
979 | # | ||
980 | # CONFIG_MSDOS_FS is not set | ||
981 | # CONFIG_VFAT_FS is not set | ||
982 | # CONFIG_NTFS_FS is not set | ||
983 | |||
984 | # | ||
985 | # Pseudo filesystems | ||
986 | # | ||
987 | CONFIG_PROC_FS=y | ||
988 | CONFIG_PROC_SYSCTL=y | ||
989 | CONFIG_SYSFS=y | ||
990 | CONFIG_TMPFS=y | ||
991 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
992 | # CONFIG_HUGETLB_PAGE is not set | ||
993 | CONFIG_RAMFS=y | ||
994 | # CONFIG_CONFIGFS_FS is not set | ||
995 | |||
996 | # | ||
997 | # Miscellaneous filesystems | ||
998 | # | ||
999 | # CONFIG_ADFS_FS is not set | ||
1000 | # CONFIG_AFFS_FS is not set | ||
1001 | CONFIG_ECRYPT_FS=y | ||
1002 | # CONFIG_HFS_FS is not set | ||
1003 | # CONFIG_HFSPLUS_FS is not set | ||
1004 | # CONFIG_BEFS_FS is not set | ||
1005 | # CONFIG_BFS_FS is not set | ||
1006 | # CONFIG_EFS_FS is not set | ||
1007 | # CONFIG_JFFS_FS is not set | ||
1008 | CONFIG_JFFS2_FS=y | ||
1009 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1010 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1011 | # CONFIG_JFFS2_SUMMARY is not set | ||
1012 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1013 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1014 | CONFIG_JFFS2_ZLIB=y | ||
1015 | CONFIG_JFFS2_RTIME=y | ||
1016 | # CONFIG_JFFS2_RUBIN is not set | ||
1017 | # CONFIG_CRAMFS is not set | ||
1018 | # CONFIG_VXFS_FS is not set | ||
1019 | # CONFIG_HPFS_FS is not set | ||
1020 | # CONFIG_QNX4FS_FS is not set | ||
1021 | # CONFIG_SYSV_FS is not set | ||
1022 | # CONFIG_UFS_FS is not set | ||
1023 | |||
1024 | # | ||
1025 | # Network File Systems | ||
1026 | # | ||
1027 | CONFIG_NFS_FS=y | ||
1028 | CONFIG_NFS_V3=y | ||
1029 | # CONFIG_NFS_V3_ACL is not set | ||
1030 | # CONFIG_NFS_V4 is not set | ||
1031 | # CONFIG_NFS_DIRECTIO is not set | ||
1032 | CONFIG_NFSD=y | ||
1033 | CONFIG_NFSD_V3=y | ||
1034 | # CONFIG_NFSD_V3_ACL is not set | ||
1035 | # CONFIG_NFSD_V4 is not set | ||
1036 | CONFIG_NFSD_TCP=y | ||
1037 | CONFIG_ROOT_NFS=y | ||
1038 | CONFIG_LOCKD=y | ||
1039 | CONFIG_LOCKD_V4=y | ||
1040 | CONFIG_EXPORTFS=y | ||
1041 | CONFIG_NFS_COMMON=y | ||
1042 | CONFIG_SUNRPC=y | ||
1043 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1044 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1045 | CONFIG_SMB_FS=m | ||
1046 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1047 | CONFIG_CIFS=m | ||
1048 | # CONFIG_CIFS_STATS is not set | ||
1049 | # CONFIG_CIFS_WEAK_PW_HASH is not set | ||
1050 | # CONFIG_CIFS_XATTR is not set | ||
1051 | # CONFIG_CIFS_DEBUG2 is not set | ||
1052 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1053 | # CONFIG_NCP_FS is not set | ||
1054 | # CONFIG_CODA_FS is not set | ||
1055 | # CONFIG_AFS_FS is not set | ||
1056 | # CONFIG_9P_FS is not set | ||
1057 | |||
1058 | # | ||
1059 | # Partition Types | ||
1060 | # | ||
1061 | CONFIG_PARTITION_ADVANCED=y | ||
1062 | # CONFIG_ACORN_PARTITION is not set | ||
1063 | # CONFIG_OSF_PARTITION is not set | ||
1064 | # CONFIG_AMIGA_PARTITION is not set | ||
1065 | # CONFIG_ATARI_PARTITION is not set | ||
1066 | # CONFIG_MAC_PARTITION is not set | ||
1067 | CONFIG_MSDOS_PARTITION=y | ||
1068 | # CONFIG_BSD_DISKLABEL is not set | ||
1069 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1070 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1071 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1072 | # CONFIG_LDM_PARTITION is not set | ||
1073 | # CONFIG_SGI_PARTITION is not set | ||
1074 | # CONFIG_ULTRIX_PARTITION is not set | ||
1075 | # CONFIG_SUN_PARTITION is not set | ||
1076 | # CONFIG_KARMA_PARTITION is not set | ||
1077 | # CONFIG_EFI_PARTITION is not set | ||
1078 | |||
1079 | # | ||
1080 | # Native Language Support | ||
1081 | # | ||
1082 | CONFIG_NLS=y | ||
1083 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1084 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
1085 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1086 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1087 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1088 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1089 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1090 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1091 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1092 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1093 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1094 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1095 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1096 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1097 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1098 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1099 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1100 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1101 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1102 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1103 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1104 | # CONFIG_NLS_ISO8859_8 is not set | ||
1105 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1106 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1107 | # CONFIG_NLS_ASCII is not set | ||
1108 | # CONFIG_NLS_ISO8859_1 is not set | ||
1109 | # CONFIG_NLS_ISO8859_2 is not set | ||
1110 | # CONFIG_NLS_ISO8859_3 is not set | ||
1111 | # CONFIG_NLS_ISO8859_4 is not set | ||
1112 | # CONFIG_NLS_ISO8859_5 is not set | ||
1113 | # CONFIG_NLS_ISO8859_6 is not set | ||
1114 | # CONFIG_NLS_ISO8859_7 is not set | ||
1115 | # CONFIG_NLS_ISO8859_9 is not set | ||
1116 | # CONFIG_NLS_ISO8859_13 is not set | ||
1117 | # CONFIG_NLS_ISO8859_14 is not set | ||
1118 | # CONFIG_NLS_ISO8859_15 is not set | ||
1119 | # CONFIG_NLS_KOI8_R is not set | ||
1120 | # CONFIG_NLS_KOI8_U is not set | ||
1121 | # CONFIG_NLS_UTF8 is not set | ||
1122 | |||
1123 | # | ||
1124 | # Distributed Lock Manager | ||
1125 | # | ||
1126 | # CONFIG_DLM is not set | ||
1127 | |||
1128 | # | ||
1129 | # Profiling support | ||
1130 | # | ||
1131 | # CONFIG_PROFILING is not set | ||
1132 | |||
1133 | # | ||
1134 | # Kernel hacking | ||
1135 | # | ||
1136 | # CONFIG_PRINTK_TIME is not set | ||
1137 | CONFIG_ENABLE_MUST_CHECK=y | ||
1138 | # CONFIG_MAGIC_SYSRQ is not set | ||
1139 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1140 | # CONFIG_DEBUG_FS is not set | ||
1141 | # CONFIG_HEADERS_CHECK is not set | ||
1142 | # CONFIG_DEBUG_KERNEL is not set | ||
1143 | CONFIG_LOG_BUF_SHIFT=14 | ||
1144 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1145 | CONFIG_FRAME_POINTER=y | ||
1146 | CONFIG_DEBUG_USER=y | ||
1147 | |||
1148 | # | ||
1149 | # Security options | ||
1150 | # | ||
1151 | CONFIG_KEYS=y | ||
1152 | CONFIG_KEYS_DEBUG_PROC_KEYS=y | ||
1153 | # CONFIG_SECURITY is not set | ||
1154 | |||
1155 | # | ||
1156 | # Cryptographic options | ||
1157 | # | ||
1158 | CONFIG_CRYPTO=y | ||
1159 | CONFIG_CRYPTO_ALGAPI=y | ||
1160 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1161 | CONFIG_CRYPTO_HASH=y | ||
1162 | CONFIG_CRYPTO_MANAGER=y | ||
1163 | CONFIG_CRYPTO_HMAC=y | ||
1164 | CONFIG_CRYPTO_XCBC=y | ||
1165 | CONFIG_CRYPTO_NULL=y | ||
1166 | CONFIG_CRYPTO_MD4=y | ||
1167 | CONFIG_CRYPTO_MD5=y | ||
1168 | CONFIG_CRYPTO_SHA1=y | ||
1169 | CONFIG_CRYPTO_SHA256=y | ||
1170 | CONFIG_CRYPTO_SHA512=y | ||
1171 | CONFIG_CRYPTO_WP512=y | ||
1172 | CONFIG_CRYPTO_TGR192=y | ||
1173 | CONFIG_CRYPTO_GF128MUL=y | ||
1174 | CONFIG_CRYPTO_ECB=y | ||
1175 | CONFIG_CRYPTO_CBC=y | ||
1176 | CONFIG_CRYPTO_LRW=y | ||
1177 | CONFIG_CRYPTO_DES=y | ||
1178 | CONFIG_CRYPTO_BLOWFISH=y | ||
1179 | CONFIG_CRYPTO_TWOFISH=y | ||
1180 | CONFIG_CRYPTO_TWOFISH_COMMON=y | ||
1181 | CONFIG_CRYPTO_SERPENT=y | ||
1182 | CONFIG_CRYPTO_AES=y | ||
1183 | CONFIG_CRYPTO_CAST5=y | ||
1184 | CONFIG_CRYPTO_CAST6=y | ||
1185 | CONFIG_CRYPTO_TEA=y | ||
1186 | CONFIG_CRYPTO_ARC4=y | ||
1187 | CONFIG_CRYPTO_KHAZAD=y | ||
1188 | CONFIG_CRYPTO_ANUBIS=y | ||
1189 | CONFIG_CRYPTO_DEFLATE=y | ||
1190 | CONFIG_CRYPTO_MICHAEL_MIC=y | ||
1191 | CONFIG_CRYPTO_CRC32C=y | ||
1192 | # CONFIG_CRYPTO_TEST is not set | ||
1193 | |||
1194 | # | ||
1195 | # Hardware crypto devices | ||
1196 | # | ||
1197 | |||
1198 | # | ||
1199 | # Library routines | ||
1200 | # | ||
1201 | CONFIG_BITREVERSE=y | ||
1202 | CONFIG_CRC_CCITT=y | ||
1203 | # CONFIG_CRC16 is not set | ||
1204 | CONFIG_CRC32=y | ||
1205 | CONFIG_LIBCRC32C=y | ||
1206 | CONFIG_ZLIB_INFLATE=y | ||
1207 | CONFIG_ZLIB_DEFLATE=y | ||
1208 | CONFIG_PLIST=y | ||
1209 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/iop32x_defconfig b/arch/arm/configs/iop32x_defconfig index 0d67f66e78c2..7909a555706d 100644 --- a/arch/arm/configs/iop32x_defconfig +++ b/arch/arm/configs/iop32x_defconfig | |||
@@ -1,15 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc7 | 3 | # Linux kernel version: 2.6.20-rc1-git5 |
4 | # Tue Sep 19 00:30:18 2006 | 4 | # Tue Dec 19 21:37:52 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
9 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | 10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y |
10 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
11 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
12 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
13 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
14 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
15 | CONFIG_VECTORS_BASE=0xffff0000 | 18 | CONFIG_VECTORS_BASE=0xffff0000 |
@@ -29,18 +32,22 @@ CONFIG_LOCALVERSION="" | |||
29 | CONFIG_LOCALVERSION_AUTO=y | 32 | CONFIG_LOCALVERSION_AUTO=y |
30 | CONFIG_SWAP=y | 33 | CONFIG_SWAP=y |
31 | CONFIG_SYSVIPC=y | 34 | CONFIG_SYSVIPC=y |
35 | # CONFIG_IPC_NS is not set | ||
32 | # CONFIG_POSIX_MQUEUE is not set | 36 | # CONFIG_POSIX_MQUEUE is not set |
33 | CONFIG_BSD_PROCESS_ACCT=y | 37 | CONFIG_BSD_PROCESS_ACCT=y |
34 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 38 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
35 | # CONFIG_TASKSTATS is not set | 39 | # CONFIG_TASKSTATS is not set |
36 | CONFIG_SYSCTL=y | 40 | # CONFIG_UTS_NS is not set |
37 | # CONFIG_AUDIT is not set | 41 | # CONFIG_AUDIT is not set |
38 | # CONFIG_IKCONFIG is not set | 42 | # CONFIG_IKCONFIG is not set |
43 | CONFIG_SYSFS_DEPRECATED=y | ||
39 | # CONFIG_RELAY is not set | 44 | # CONFIG_RELAY is not set |
40 | CONFIG_INITRAMFS_SOURCE="" | 45 | CONFIG_INITRAMFS_SOURCE="" |
41 | CONFIG_UID16=y | ||
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 46 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
47 | CONFIG_SYSCTL=y | ||
43 | # CONFIG_EMBEDDED is not set | 48 | # CONFIG_EMBEDDED is not set |
49 | CONFIG_UID16=y | ||
50 | CONFIG_SYSCTL_SYSCALL=y | ||
44 | CONFIG_KALLSYMS=y | 51 | CONFIG_KALLSYMS=y |
45 | CONFIG_KALLSYMS_ALL=y | 52 | CONFIG_KALLSYMS_ALL=y |
46 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -49,12 +56,12 @@ CONFIG_PRINTK=y | |||
49 | CONFIG_BUG=y | 56 | CONFIG_BUG=y |
50 | CONFIG_ELF_CORE=y | 57 | CONFIG_ELF_CORE=y |
51 | CONFIG_BASE_FULL=y | 58 | CONFIG_BASE_FULL=y |
52 | CONFIG_RT_MUTEXES=y | ||
53 | CONFIG_FUTEX=y | 59 | CONFIG_FUTEX=y |
54 | CONFIG_EPOLL=y | 60 | CONFIG_EPOLL=y |
55 | CONFIG_SHMEM=y | 61 | CONFIG_SHMEM=y |
56 | CONFIG_SLAB=y | 62 | CONFIG_SLAB=y |
57 | CONFIG_VM_EVENT_COUNTERS=y | 63 | CONFIG_VM_EVENT_COUNTERS=y |
64 | CONFIG_RT_MUTEXES=y | ||
58 | # CONFIG_TINY_SHMEM is not set | 65 | # CONFIG_TINY_SHMEM is not set |
59 | CONFIG_BASE_SMALL=0 | 66 | CONFIG_BASE_SMALL=0 |
60 | # CONFIG_SLOB is not set | 67 | # CONFIG_SLOB is not set |
@@ -72,7 +79,10 @@ CONFIG_KMOD=y | |||
72 | # | 79 | # |
73 | # Block layer | 80 | # Block layer |
74 | # | 81 | # |
82 | CONFIG_BLOCK=y | ||
83 | # CONFIG_LBD is not set | ||
75 | # CONFIG_BLK_DEV_IO_TRACE is not set | 84 | # CONFIG_BLK_DEV_IO_TRACE is not set |
85 | # CONFIG_LSF is not set | ||
76 | 86 | ||
77 | # | 87 | # |
78 | # IO Schedulers | 88 | # IO Schedulers |
@@ -106,6 +116,7 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
106 | # CONFIG_ARCH_IMX is not set | 116 | # CONFIG_ARCH_IMX is not set |
107 | CONFIG_ARCH_IOP32X=y | 117 | CONFIG_ARCH_IOP32X=y |
108 | # CONFIG_ARCH_IOP33X is not set | 118 | # CONFIG_ARCH_IOP33X is not set |
119 | # CONFIG_ARCH_IOP13XX is not set | ||
109 | # CONFIG_ARCH_IXP4XX is not set | 120 | # CONFIG_ARCH_IXP4XX is not set |
110 | # CONFIG_ARCH_IXP2000 is not set | 121 | # CONFIG_ARCH_IXP2000 is not set |
111 | # CONFIG_ARCH_IXP23XX is not set | 122 | # CONFIG_ARCH_IXP23XX is not set |
@@ -141,17 +152,22 @@ CONFIG_CPU_32v5=y | |||
141 | CONFIG_CPU_ABRT_EV5T=y | 152 | CONFIG_CPU_ABRT_EV5T=y |
142 | CONFIG_CPU_CACHE_VIVT=y | 153 | CONFIG_CPU_CACHE_VIVT=y |
143 | CONFIG_CPU_TLB_V4WBI=y | 154 | CONFIG_CPU_TLB_V4WBI=y |
155 | CONFIG_CPU_CP15=y | ||
156 | CONFIG_CPU_CP15_MMU=y | ||
144 | 157 | ||
145 | # | 158 | # |
146 | # Processor Features | 159 | # Processor Features |
147 | # | 160 | # |
148 | # CONFIG_ARM_THUMB is not set | 161 | # CONFIG_ARM_THUMB is not set |
162 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
163 | # CONFIG_IWMMXT is not set | ||
149 | CONFIG_XSCALE_PMU=y | 164 | CONFIG_XSCALE_PMU=y |
150 | 165 | ||
151 | # | 166 | # |
152 | # Bus support | 167 | # Bus support |
153 | # | 168 | # |
154 | CONFIG_PCI=y | 169 | CONFIG_PCI=y |
170 | # CONFIG_PCI_MULTITHREAD_PROBE is not set | ||
155 | # CONFIG_PCI_DEBUG is not set | 171 | # CONFIG_PCI_DEBUG is not set |
156 | 172 | ||
157 | # | 173 | # |
@@ -225,6 +241,7 @@ CONFIG_PACKET_MMAP=y | |||
225 | CONFIG_UNIX=y | 241 | CONFIG_UNIX=y |
226 | CONFIG_XFRM=y | 242 | CONFIG_XFRM=y |
227 | # CONFIG_XFRM_USER is not set | 243 | # CONFIG_XFRM_USER is not set |
244 | # CONFIG_XFRM_SUB_POLICY is not set | ||
228 | # CONFIG_NET_KEY is not set | 245 | # CONFIG_NET_KEY is not set |
229 | CONFIG_INET=y | 246 | CONFIG_INET=y |
230 | CONFIG_IP_MULTICAST=y | 247 | CONFIG_IP_MULTICAST=y |
@@ -246,13 +263,29 @@ CONFIG_IP_PNP_BOOTP=y | |||
246 | # CONFIG_INET_TUNNEL is not set | 263 | # CONFIG_INET_TUNNEL is not set |
247 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 264 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
248 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 265 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
266 | CONFIG_INET_XFRM_MODE_BEET=y | ||
249 | CONFIG_INET_DIAG=y | 267 | CONFIG_INET_DIAG=y |
250 | CONFIG_INET_TCP_DIAG=y | 268 | CONFIG_INET_TCP_DIAG=y |
251 | # CONFIG_TCP_CONG_ADVANCED is not set | 269 | # CONFIG_TCP_CONG_ADVANCED is not set |
252 | CONFIG_TCP_CONG_BIC=y | 270 | CONFIG_TCP_CONG_CUBIC=y |
253 | # CONFIG_IPV6 is not set | 271 | CONFIG_DEFAULT_TCP_CONG="cubic" |
272 | # CONFIG_TCP_MD5SIG is not set | ||
273 | CONFIG_IPV6=y | ||
274 | # CONFIG_IPV6_PRIVACY is not set | ||
275 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
276 | # CONFIG_INET6_AH is not set | ||
277 | # CONFIG_INET6_ESP is not set | ||
278 | # CONFIG_INET6_IPCOMP is not set | ||
279 | # CONFIG_IPV6_MIP6 is not set | ||
254 | # CONFIG_INET6_XFRM_TUNNEL is not set | 280 | # CONFIG_INET6_XFRM_TUNNEL is not set |
255 | # CONFIG_INET6_TUNNEL is not set | 281 | # CONFIG_INET6_TUNNEL is not set |
282 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
283 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
284 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
285 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
286 | # CONFIG_IPV6_SIT is not set | ||
287 | # CONFIG_IPV6_TUNNEL is not set | ||
288 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
256 | # CONFIG_NETWORK_SECMARK is not set | 289 | # CONFIG_NETWORK_SECMARK is not set |
257 | # CONFIG_NETFILTER is not set | 290 | # CONFIG_NETFILTER is not set |
258 | 291 | ||
@@ -279,7 +312,6 @@ CONFIG_TCP_CONG_BIC=y | |||
279 | # CONFIG_ATALK is not set | 312 | # CONFIG_ATALK is not set |
280 | # CONFIG_X25 is not set | 313 | # CONFIG_X25 is not set |
281 | # CONFIG_LAPB is not set | 314 | # CONFIG_LAPB is not set |
282 | # CONFIG_NET_DIVERT is not set | ||
283 | # CONFIG_ECONET is not set | 315 | # CONFIG_ECONET is not set |
284 | # CONFIG_WAN_ROUTER is not set | 316 | # CONFIG_WAN_ROUTER is not set |
285 | 317 | ||
@@ -338,6 +370,7 @@ CONFIG_MTD_BLOCK=y | |||
338 | # CONFIG_NFTL is not set | 370 | # CONFIG_NFTL is not set |
339 | # CONFIG_INFTL is not set | 371 | # CONFIG_INFTL is not set |
340 | # CONFIG_RFD_FTL is not set | 372 | # CONFIG_RFD_FTL is not set |
373 | # CONFIG_SSFDC is not set | ||
341 | 374 | ||
342 | # | 375 | # |
343 | # RAM/ROM/Flash chip drivers | 376 | # RAM/ROM/Flash chip drivers |
@@ -419,9 +452,11 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | |||
419 | # CONFIG_BLK_DEV_DAC960 is not set | 452 | # CONFIG_BLK_DEV_DAC960 is not set |
420 | # CONFIG_BLK_DEV_UMEM is not set | 453 | # CONFIG_BLK_DEV_UMEM is not set |
421 | # CONFIG_BLK_DEV_COW_COMMON is not set | 454 | # CONFIG_BLK_DEV_COW_COMMON is not set |
422 | # CONFIG_BLK_DEV_LOOP is not set | 455 | CONFIG_BLK_DEV_LOOP=y |
423 | # CONFIG_BLK_DEV_NBD is not set | 456 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
457 | CONFIG_BLK_DEV_NBD=y | ||
424 | # CONFIG_BLK_DEV_SX8 is not set | 458 | # CONFIG_BLK_DEV_SX8 is not set |
459 | # CONFIG_BLK_DEV_UB is not set | ||
425 | CONFIG_BLK_DEV_RAM=y | 460 | CONFIG_BLK_DEV_RAM=y |
426 | CONFIG_BLK_DEV_RAM_COUNT=16 | 461 | CONFIG_BLK_DEV_RAM_COUNT=16 |
427 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 462 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
@@ -440,6 +475,8 @@ CONFIG_BLK_DEV_INITRD=y | |||
440 | # | 475 | # |
441 | # CONFIG_RAID_ATTRS is not set | 476 | # CONFIG_RAID_ATTRS is not set |
442 | CONFIG_SCSI=y | 477 | CONFIG_SCSI=y |
478 | # CONFIG_SCSI_TGT is not set | ||
479 | # CONFIG_SCSI_NETLINK is not set | ||
443 | CONFIG_SCSI_PROC_FS=y | 480 | CONFIG_SCSI_PROC_FS=y |
444 | 481 | ||
445 | # | 482 | # |
@@ -458,14 +495,16 @@ CONFIG_CHR_DEV_SG=y | |||
458 | # CONFIG_SCSI_MULTI_LUN is not set | 495 | # CONFIG_SCSI_MULTI_LUN is not set |
459 | # CONFIG_SCSI_CONSTANTS is not set | 496 | # CONFIG_SCSI_CONSTANTS is not set |
460 | # CONFIG_SCSI_LOGGING is not set | 497 | # CONFIG_SCSI_LOGGING is not set |
498 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
461 | 499 | ||
462 | # | 500 | # |
463 | # SCSI Transport Attributes | 501 | # SCSI Transports |
464 | # | 502 | # |
465 | # CONFIG_SCSI_SPI_ATTRS is not set | 503 | # CONFIG_SCSI_SPI_ATTRS is not set |
466 | # CONFIG_SCSI_FC_ATTRS is not set | 504 | # CONFIG_SCSI_FC_ATTRS is not set |
467 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 505 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
468 | # CONFIG_SCSI_SAS_ATTRS is not set | 506 | # CONFIG_SCSI_SAS_ATTRS is not set |
507 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
469 | 508 | ||
470 | # | 509 | # |
471 | # SCSI low-level drivers | 510 | # SCSI low-level drivers |
@@ -478,26 +517,84 @@ CONFIG_CHR_DEV_SG=y | |||
478 | # CONFIG_SCSI_AIC7XXX is not set | 517 | # CONFIG_SCSI_AIC7XXX is not set |
479 | # CONFIG_SCSI_AIC7XXX_OLD is not set | 518 | # CONFIG_SCSI_AIC7XXX_OLD is not set |
480 | # CONFIG_SCSI_AIC79XX is not set | 519 | # CONFIG_SCSI_AIC79XX is not set |
520 | # CONFIG_SCSI_AIC94XX is not set | ||
481 | # CONFIG_SCSI_DPT_I2O is not set | 521 | # CONFIG_SCSI_DPT_I2O is not set |
522 | # CONFIG_SCSI_ARCMSR is not set | ||
482 | # CONFIG_MEGARAID_NEWGEN is not set | 523 | # CONFIG_MEGARAID_NEWGEN is not set |
483 | # CONFIG_MEGARAID_LEGACY is not set | 524 | # CONFIG_MEGARAID_LEGACY is not set |
484 | # CONFIG_MEGARAID_SAS is not set | 525 | # CONFIG_MEGARAID_SAS is not set |
485 | # CONFIG_SCSI_SATA is not set | ||
486 | # CONFIG_SCSI_HPTIOP is not set | 526 | # CONFIG_SCSI_HPTIOP is not set |
487 | # CONFIG_SCSI_DMX3191D is not set | 527 | # CONFIG_SCSI_DMX3191D is not set |
488 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 528 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
489 | # CONFIG_SCSI_IPS is not set | 529 | # CONFIG_SCSI_IPS is not set |
490 | # CONFIG_SCSI_INITIO is not set | 530 | # CONFIG_SCSI_INITIO is not set |
491 | # CONFIG_SCSI_INIA100 is not set | 531 | # CONFIG_SCSI_INIA100 is not set |
532 | # CONFIG_SCSI_STEX is not set | ||
492 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 533 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
493 | # CONFIG_SCSI_IPR is not set | 534 | # CONFIG_SCSI_IPR is not set |
494 | # CONFIG_SCSI_QLOGIC_1280 is not set | 535 | # CONFIG_SCSI_QLOGIC_1280 is not set |
495 | # CONFIG_SCSI_QLA_FC is not set | 536 | # CONFIG_SCSI_QLA_FC is not set |
537 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
496 | # CONFIG_SCSI_LPFC is not set | 538 | # CONFIG_SCSI_LPFC is not set |
497 | # CONFIG_SCSI_DC395x is not set | 539 | # CONFIG_SCSI_DC395x is not set |
498 | # CONFIG_SCSI_DC390T is not set | 540 | # CONFIG_SCSI_DC390T is not set |
499 | # CONFIG_SCSI_NSP32 is not set | 541 | # CONFIG_SCSI_NSP32 is not set |
500 | # CONFIG_SCSI_DEBUG is not set | 542 | # CONFIG_SCSI_DEBUG is not set |
543 | # CONFIG_SCSI_SRP is not set | ||
544 | |||
545 | # | ||
546 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
547 | # | ||
548 | CONFIG_ATA=y | ||
549 | # CONFIG_SATA_AHCI is not set | ||
550 | # CONFIG_SATA_SVW is not set | ||
551 | # CONFIG_ATA_PIIX is not set | ||
552 | # CONFIG_SATA_MV is not set | ||
553 | # CONFIG_SATA_NV is not set | ||
554 | # CONFIG_PDC_ADMA is not set | ||
555 | # CONFIG_SATA_QSTOR is not set | ||
556 | # CONFIG_SATA_PROMISE is not set | ||
557 | # CONFIG_SATA_SX4 is not set | ||
558 | CONFIG_SATA_SIL=y | ||
559 | # CONFIG_SATA_SIL24 is not set | ||
560 | # CONFIG_SATA_SIS is not set | ||
561 | # CONFIG_SATA_ULI is not set | ||
562 | # CONFIG_SATA_VIA is not set | ||
563 | # CONFIG_SATA_VITESSE is not set | ||
564 | # CONFIG_PATA_ALI is not set | ||
565 | # CONFIG_PATA_AMD is not set | ||
566 | # CONFIG_PATA_ARTOP is not set | ||
567 | # CONFIG_PATA_ATIIXP is not set | ||
568 | # CONFIG_PATA_CMD64X is not set | ||
569 | # CONFIG_PATA_CS5520 is not set | ||
570 | # CONFIG_PATA_CS5530 is not set | ||
571 | # CONFIG_PATA_CYPRESS is not set | ||
572 | # CONFIG_PATA_EFAR is not set | ||
573 | # CONFIG_ATA_GENERIC is not set | ||
574 | # CONFIG_PATA_HPT366 is not set | ||
575 | # CONFIG_PATA_HPT37X is not set | ||
576 | # CONFIG_PATA_HPT3X2N is not set | ||
577 | # CONFIG_PATA_HPT3X3 is not set | ||
578 | # CONFIG_PATA_IT821X is not set | ||
579 | # CONFIG_PATA_JMICRON is not set | ||
580 | # CONFIG_PATA_TRIFLEX is not set | ||
581 | # CONFIG_PATA_MARVELL is not set | ||
582 | # CONFIG_PATA_MPIIX is not set | ||
583 | # CONFIG_PATA_OLDPIIX is not set | ||
584 | # CONFIG_PATA_NETCELL is not set | ||
585 | # CONFIG_PATA_NS87410 is not set | ||
586 | # CONFIG_PATA_OPTI is not set | ||
587 | # CONFIG_PATA_OPTIDMA is not set | ||
588 | # CONFIG_PATA_PDC_OLD is not set | ||
589 | # CONFIG_PATA_RADISYS is not set | ||
590 | # CONFIG_PATA_RZ1000 is not set | ||
591 | # CONFIG_PATA_SC1200 is not set | ||
592 | # CONFIG_PATA_SERVERWORKS is not set | ||
593 | # CONFIG_PATA_PDC2027X is not set | ||
594 | # CONFIG_PATA_SIL680 is not set | ||
595 | # CONFIG_PATA_SIS is not set | ||
596 | # CONFIG_PATA_VIA is not set | ||
597 | # CONFIG_PATA_WINBOND is not set | ||
501 | 598 | ||
502 | # | 599 | # |
503 | # Multi-device support (RAID and LVM) | 600 | # Multi-device support (RAID and LVM) |
@@ -512,6 +609,7 @@ CONFIG_MD_RAID1=y | |||
512 | # CONFIG_MD_MULTIPATH is not set | 609 | # CONFIG_MD_MULTIPATH is not set |
513 | # CONFIG_MD_FAULTY is not set | 610 | # CONFIG_MD_FAULTY is not set |
514 | CONFIG_BLK_DEV_DM=y | 611 | CONFIG_BLK_DEV_DM=y |
612 | # CONFIG_DM_DEBUG is not set | ||
515 | # CONFIG_DM_CRYPT is not set | 613 | # CONFIG_DM_CRYPT is not set |
516 | # CONFIG_DM_SNAPSHOT is not set | 614 | # CONFIG_DM_SNAPSHOT is not set |
517 | # CONFIG_DM_MIRROR is not set | 615 | # CONFIG_DM_MIRROR is not set |
@@ -612,6 +710,7 @@ CONFIG_R8169=y | |||
612 | # CONFIG_VIA_VELOCITY is not set | 710 | # CONFIG_VIA_VELOCITY is not set |
613 | # CONFIG_TIGON3 is not set | 711 | # CONFIG_TIGON3 is not set |
614 | # CONFIG_BNX2 is not set | 712 | # CONFIG_BNX2 is not set |
713 | # CONFIG_QLA3XXX is not set | ||
615 | 714 | ||
616 | # | 715 | # |
617 | # Ethernet (10000 Mbit) | 716 | # Ethernet (10000 Mbit) |
@@ -620,6 +719,7 @@ CONFIG_R8169=y | |||
620 | # CONFIG_IXGB is not set | 719 | # CONFIG_IXGB is not set |
621 | # CONFIG_S2IO is not set | 720 | # CONFIG_S2IO is not set |
622 | # CONFIG_MYRI10GE is not set | 721 | # CONFIG_MYRI10GE is not set |
722 | # CONFIG_NETXEN_NIC is not set | ||
623 | 723 | ||
624 | # | 724 | # |
625 | # Token Ring devices | 725 | # Token Ring devices |
@@ -654,6 +754,7 @@ CONFIG_R8169=y | |||
654 | # Input device support | 754 | # Input device support |
655 | # | 755 | # |
656 | CONFIG_INPUT=y | 756 | CONFIG_INPUT=y |
757 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
657 | 758 | ||
658 | # | 759 | # |
659 | # Userland interfaces | 760 | # Userland interfaces |
@@ -725,10 +826,6 @@ CONFIG_HW_RANDOM=y | |||
725 | # CONFIG_DTLK is not set | 826 | # CONFIG_DTLK is not set |
726 | # CONFIG_R3964 is not set | 827 | # CONFIG_R3964 is not set |
727 | # CONFIG_APPLICOM is not set | 828 | # CONFIG_APPLICOM is not set |
728 | |||
729 | # | ||
730 | # Ftape, the floppy tape device driver | ||
731 | # | ||
732 | # CONFIG_DRM is not set | 829 | # CONFIG_DRM is not set |
733 | # CONFIG_RAW_DRIVER is not set | 830 | # CONFIG_RAW_DRIVER is not set |
734 | 831 | ||
@@ -736,7 +833,6 @@ CONFIG_HW_RANDOM=y | |||
736 | # TPM devices | 833 | # TPM devices |
737 | # | 834 | # |
738 | # CONFIG_TCG_TPM is not set | 835 | # CONFIG_TCG_TPM is not set |
739 | # CONFIG_TELCLOCK is not set | ||
740 | 836 | ||
741 | # | 837 | # |
742 | # I2C support | 838 | # I2C support |
@@ -801,6 +897,7 @@ CONFIG_I2C_IOP3XX=y | |||
801 | # | 897 | # |
802 | # Dallas's 1-wire bus | 898 | # Dallas's 1-wire bus |
803 | # | 899 | # |
900 | # CONFIG_W1 is not set | ||
804 | 901 | ||
805 | # | 902 | # |
806 | # Hardware Monitoring support | 903 | # Hardware Monitoring support |
@@ -834,15 +931,18 @@ CONFIG_HWMON=y | |||
834 | # CONFIG_SENSORS_LM92 is not set | 931 | # CONFIG_SENSORS_LM92 is not set |
835 | # CONFIG_SENSORS_MAX1619 is not set | 932 | # CONFIG_SENSORS_MAX1619 is not set |
836 | # CONFIG_SENSORS_PC87360 is not set | 933 | # CONFIG_SENSORS_PC87360 is not set |
934 | # CONFIG_SENSORS_PC87427 is not set | ||
837 | # CONFIG_SENSORS_SIS5595 is not set | 935 | # CONFIG_SENSORS_SIS5595 is not set |
838 | # CONFIG_SENSORS_SMSC47M1 is not set | 936 | # CONFIG_SENSORS_SMSC47M1 is not set |
839 | # CONFIG_SENSORS_SMSC47M192 is not set | 937 | # CONFIG_SENSORS_SMSC47M192 is not set |
840 | # CONFIG_SENSORS_SMSC47B397 is not set | 938 | # CONFIG_SENSORS_SMSC47B397 is not set |
841 | # CONFIG_SENSORS_VIA686A is not set | 939 | # CONFIG_SENSORS_VIA686A is not set |
940 | # CONFIG_SENSORS_VT1211 is not set | ||
842 | # CONFIG_SENSORS_VT8231 is not set | 941 | # CONFIG_SENSORS_VT8231 is not set |
843 | # CONFIG_SENSORS_W83781D is not set | 942 | # CONFIG_SENSORS_W83781D is not set |
844 | # CONFIG_SENSORS_W83791D is not set | 943 | # CONFIG_SENSORS_W83791D is not set |
845 | # CONFIG_SENSORS_W83792D is not set | 944 | # CONFIG_SENSORS_W83792D is not set |
945 | # CONFIG_SENSORS_W83793 is not set | ||
846 | # CONFIG_SENSORS_W83L785TS is not set | 946 | # CONFIG_SENSORS_W83L785TS is not set |
847 | # CONFIG_SENSORS_W83627HF is not set | 947 | # CONFIG_SENSORS_W83627HF is not set |
848 | # CONFIG_SENSORS_W83627EHF is not set | 948 | # CONFIG_SENSORS_W83627EHF is not set |
@@ -851,6 +951,8 @@ CONFIG_HWMON=y | |||
851 | # | 951 | # |
852 | # Misc devices | 952 | # Misc devices |
853 | # | 953 | # |
954 | # CONFIG_SGI_IOC4 is not set | ||
955 | # CONFIG_TIFM_CORE is not set | ||
854 | 956 | ||
855 | # | 957 | # |
856 | # LED devices | 958 | # LED devices |
@@ -869,12 +971,12 @@ CONFIG_HWMON=y | |||
869 | # Multimedia devices | 971 | # Multimedia devices |
870 | # | 972 | # |
871 | # CONFIG_VIDEO_DEV is not set | 973 | # CONFIG_VIDEO_DEV is not set |
872 | CONFIG_VIDEO_V4L2=y | ||
873 | 974 | ||
874 | # | 975 | # |
875 | # Digital Video Broadcasting Devices | 976 | # Digital Video Broadcasting Devices |
876 | # | 977 | # |
877 | # CONFIG_DVB is not set | 978 | # CONFIG_DVB is not set |
979 | # CONFIG_USB_DABUSB is not set | ||
878 | 980 | ||
879 | # | 981 | # |
880 | # Graphics support | 982 | # Graphics support |
@@ -895,6 +997,11 @@ CONFIG_DUMMY_CONSOLE=y | |||
895 | # CONFIG_SOUND is not set | 997 | # CONFIG_SOUND is not set |
896 | 998 | ||
897 | # | 999 | # |
1000 | # HID Devices | ||
1001 | # | ||
1002 | CONFIG_HID=y | ||
1003 | |||
1004 | # | ||
898 | # USB support | 1005 | # USB support |
899 | # | 1006 | # |
900 | CONFIG_USB_ARCH_HAS_HCD=y | 1007 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -909,6 +1016,7 @@ CONFIG_USB=y | |||
909 | # CONFIG_USB_DEVICEFS is not set | 1016 | # CONFIG_USB_DEVICEFS is not set |
910 | # CONFIG_USB_BANDWIDTH is not set | 1017 | # CONFIG_USB_BANDWIDTH is not set |
911 | # CONFIG_USB_DYNAMIC_MINORS is not set | 1018 | # CONFIG_USB_DYNAMIC_MINORS is not set |
1019 | # CONFIG_USB_MULTITHREAD_PROBE is not set | ||
912 | # CONFIG_USB_OTG is not set | 1020 | # CONFIG_USB_OTG is not set |
913 | 1021 | ||
914 | # | 1022 | # |
@@ -946,6 +1054,7 @@ CONFIG_USB_STORAGE=y | |||
946 | # CONFIG_USB_STORAGE_SDDR55 is not set | 1054 | # CONFIG_USB_STORAGE_SDDR55 is not set |
947 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | 1055 | # CONFIG_USB_STORAGE_JUMPSHOT is not set |
948 | # CONFIG_USB_STORAGE_ALAUDA is not set | 1056 | # CONFIG_USB_STORAGE_ALAUDA is not set |
1057 | # CONFIG_USB_STORAGE_KARMA is not set | ||
949 | # CONFIG_USB_LIBUSUAL is not set | 1058 | # CONFIG_USB_LIBUSUAL is not set |
950 | 1059 | ||
951 | # | 1060 | # |
@@ -984,6 +1093,7 @@ CONFIG_USB_STORAGE=y | |||
984 | # CONFIG_USB_KAWETH is not set | 1093 | # CONFIG_USB_KAWETH is not set |
985 | # CONFIG_USB_PEGASUS is not set | 1094 | # CONFIG_USB_PEGASUS is not set |
986 | # CONFIG_USB_RTL8150 is not set | 1095 | # CONFIG_USB_RTL8150 is not set |
1096 | # CONFIG_USB_USBNET_MII is not set | ||
987 | # CONFIG_USB_USBNET is not set | 1097 | # CONFIG_USB_USBNET is not set |
988 | CONFIG_USB_MON=y | 1098 | CONFIG_USB_MON=y |
989 | 1099 | ||
@@ -1001,6 +1111,7 @@ CONFIG_USB_MON=y | |||
1001 | # | 1111 | # |
1002 | # CONFIG_USB_EMI62 is not set | 1112 | # CONFIG_USB_EMI62 is not set |
1003 | # CONFIG_USB_EMI26 is not set | 1113 | # CONFIG_USB_EMI26 is not set |
1114 | # CONFIG_USB_ADUTUX is not set | ||
1004 | # CONFIG_USB_AUERSWALD is not set | 1115 | # CONFIG_USB_AUERSWALD is not set |
1005 | # CONFIG_USB_RIO500 is not set | 1116 | # CONFIG_USB_RIO500 is not set |
1006 | # CONFIG_USB_LEGOTOWER is not set | 1117 | # CONFIG_USB_LEGOTOWER is not set |
@@ -1008,12 +1119,13 @@ CONFIG_USB_MON=y | |||
1008 | # CONFIG_USB_LED is not set | 1119 | # CONFIG_USB_LED is not set |
1009 | # CONFIG_USB_CYPRESS_CY7C63 is not set | 1120 | # CONFIG_USB_CYPRESS_CY7C63 is not set |
1010 | # CONFIG_USB_CYTHERM is not set | 1121 | # CONFIG_USB_CYTHERM is not set |
1011 | # CONFIG_USB_PHIDGETKIT is not set | 1122 | # CONFIG_USB_PHIDGET is not set |
1012 | # CONFIG_USB_PHIDGETSERVO is not set | ||
1013 | # CONFIG_USB_IDMOUSE is not set | 1123 | # CONFIG_USB_IDMOUSE is not set |
1124 | # CONFIG_USB_FTDI_ELAN is not set | ||
1014 | # CONFIG_USB_APPLEDISPLAY is not set | 1125 | # CONFIG_USB_APPLEDISPLAY is not set |
1015 | # CONFIG_USB_SISUSBVGA is not set | 1126 | # CONFIG_USB_SISUSBVGA is not set |
1016 | # CONFIG_USB_LD is not set | 1127 | # CONFIG_USB_LD is not set |
1128 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1017 | 1129 | ||
1018 | # | 1130 | # |
1019 | # USB DSL modem support | 1131 | # USB DSL modem support |
@@ -1045,6 +1157,7 @@ CONFIG_EXT3_FS=y | |||
1045 | CONFIG_EXT3_FS_XATTR=y | 1157 | CONFIG_EXT3_FS_XATTR=y |
1046 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1158 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1047 | # CONFIG_EXT3_FS_SECURITY is not set | 1159 | # CONFIG_EXT3_FS_SECURITY is not set |
1160 | # CONFIG_EXT4DEV_FS is not set | ||
1048 | CONFIG_JBD=y | 1161 | CONFIG_JBD=y |
1049 | # CONFIG_JBD_DEBUG is not set | 1162 | # CONFIG_JBD_DEBUG is not set |
1050 | CONFIG_FS_MBCACHE=y | 1163 | CONFIG_FS_MBCACHE=y |
@@ -1056,6 +1169,7 @@ CONFIG_XFS_FS=y | |||
1056 | CONFIG_XFS_SECURITY=y | 1169 | CONFIG_XFS_SECURITY=y |
1057 | CONFIG_XFS_POSIX_ACL=y | 1170 | CONFIG_XFS_POSIX_ACL=y |
1058 | # CONFIG_XFS_RT is not set | 1171 | # CONFIG_XFS_RT is not set |
1172 | # CONFIG_GFS2_FS is not set | ||
1059 | # CONFIG_OCFS2_FS is not set | 1173 | # CONFIG_OCFS2_FS is not set |
1060 | # CONFIG_MINIX_FS is not set | 1174 | # CONFIG_MINIX_FS is not set |
1061 | # CONFIG_ROMFS_FS is not set | 1175 | # CONFIG_ROMFS_FS is not set |
@@ -1084,8 +1198,10 @@ CONFIG_DNOTIFY=y | |||
1084 | # Pseudo filesystems | 1198 | # Pseudo filesystems |
1085 | # | 1199 | # |
1086 | CONFIG_PROC_FS=y | 1200 | CONFIG_PROC_FS=y |
1201 | CONFIG_PROC_SYSCTL=y | ||
1087 | CONFIG_SYSFS=y | 1202 | CONFIG_SYSFS=y |
1088 | CONFIG_TMPFS=y | 1203 | CONFIG_TMPFS=y |
1204 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1089 | # CONFIG_HUGETLB_PAGE is not set | 1205 | # CONFIG_HUGETLB_PAGE is not set |
1090 | CONFIG_RAMFS=y | 1206 | CONFIG_RAMFS=y |
1091 | # CONFIG_CONFIGFS_FS is not set | 1207 | # CONFIG_CONFIGFS_FS is not set |
@@ -1095,6 +1211,7 @@ CONFIG_RAMFS=y | |||
1095 | # | 1211 | # |
1096 | # CONFIG_ADFS_FS is not set | 1212 | # CONFIG_ADFS_FS is not set |
1097 | # CONFIG_AFFS_FS is not set | 1213 | # CONFIG_AFFS_FS is not set |
1214 | CONFIG_ECRYPT_FS=y | ||
1098 | # CONFIG_HFS_FS is not set | 1215 | # CONFIG_HFS_FS is not set |
1099 | # CONFIG_HFSPLUS_FS is not set | 1216 | # CONFIG_HFSPLUS_FS is not set |
1100 | # CONFIG_BEFS_FS is not set | 1217 | # CONFIG_BEFS_FS is not set |
@@ -1129,7 +1246,7 @@ CONFIG_NFSD=y | |||
1129 | CONFIG_NFSD_V3=y | 1246 | CONFIG_NFSD_V3=y |
1130 | # CONFIG_NFSD_V3_ACL is not set | 1247 | # CONFIG_NFSD_V3_ACL is not set |
1131 | # CONFIG_NFSD_V4 is not set | 1248 | # CONFIG_NFSD_V4 is not set |
1132 | # CONFIG_NFSD_TCP is not set | 1249 | CONFIG_NFSD_TCP=y |
1133 | CONFIG_ROOT_NFS=y | 1250 | CONFIG_ROOT_NFS=y |
1134 | CONFIG_LOCKD=y | 1251 | CONFIG_LOCKD=y |
1135 | CONFIG_LOCKD_V4=y | 1252 | CONFIG_LOCKD_V4=y |
@@ -1172,6 +1289,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1172 | # CONFIG_NLS is not set | 1289 | # CONFIG_NLS is not set |
1173 | 1290 | ||
1174 | # | 1291 | # |
1292 | # Distributed Lock Manager | ||
1293 | # | ||
1294 | # CONFIG_DLM is not set | ||
1295 | |||
1296 | # | ||
1175 | # Profiling support | 1297 | # Profiling support |
1176 | # | 1298 | # |
1177 | # CONFIG_PROFILING is not set | 1299 | # CONFIG_PROFILING is not set |
@@ -1180,8 +1302,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1180 | # Kernel hacking | 1302 | # Kernel hacking |
1181 | # | 1303 | # |
1182 | # CONFIG_PRINTK_TIME is not set | 1304 | # CONFIG_PRINTK_TIME is not set |
1305 | CONFIG_ENABLE_MUST_CHECK=y | ||
1183 | CONFIG_MAGIC_SYSRQ=y | 1306 | CONFIG_MAGIC_SYSRQ=y |
1184 | # CONFIG_UNUSED_SYMBOLS is not set | 1307 | # CONFIG_UNUSED_SYMBOLS is not set |
1308 | # CONFIG_DEBUG_FS is not set | ||
1309 | # CONFIG_HEADERS_CHECK is not set | ||
1185 | CONFIG_DEBUG_KERNEL=y | 1310 | CONFIG_DEBUG_KERNEL=y |
1186 | CONFIG_LOG_BUF_SHIFT=14 | 1311 | CONFIG_LOG_BUF_SHIFT=14 |
1187 | CONFIG_DETECT_SOFTLOCKUP=y | 1312 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -1197,14 +1322,12 @@ CONFIG_DETECT_SOFTLOCKUP=y | |||
1197 | # CONFIG_DEBUG_KOBJECT is not set | 1322 | # CONFIG_DEBUG_KOBJECT is not set |
1198 | CONFIG_DEBUG_BUGVERBOSE=y | 1323 | CONFIG_DEBUG_BUGVERBOSE=y |
1199 | # CONFIG_DEBUG_INFO is not set | 1324 | # CONFIG_DEBUG_INFO is not set |
1200 | # CONFIG_DEBUG_FS is not set | ||
1201 | # CONFIG_DEBUG_VM is not set | 1325 | # CONFIG_DEBUG_VM is not set |
1326 | # CONFIG_DEBUG_LIST is not set | ||
1202 | CONFIG_FRAME_POINTER=y | 1327 | CONFIG_FRAME_POINTER=y |
1203 | # CONFIG_UNWIND_INFO is not set | ||
1204 | # CONFIG_FORCED_INLINING is not set | 1328 | # CONFIG_FORCED_INLINING is not set |
1205 | # CONFIG_RCU_TORTURE_TEST is not set | 1329 | # CONFIG_RCU_TORTURE_TEST is not set |
1206 | CONFIG_DEBUG_USER=y | 1330 | CONFIG_DEBUG_USER=y |
1207 | # CONFIG_DEBUG_WAITQ is not set | ||
1208 | # CONFIG_DEBUG_ERRORS is not set | 1331 | # CONFIG_DEBUG_ERRORS is not set |
1209 | CONFIG_DEBUG_LL=y | 1332 | CONFIG_DEBUG_LL=y |
1210 | # CONFIG_DEBUG_ICEDCC is not set | 1333 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -1212,13 +1335,48 @@ CONFIG_DEBUG_LL=y | |||
1212 | # | 1335 | # |
1213 | # Security options | 1336 | # Security options |
1214 | # | 1337 | # |
1215 | # CONFIG_KEYS is not set | 1338 | CONFIG_KEYS=y |
1339 | CONFIG_KEYS_DEBUG_PROC_KEYS=y | ||
1216 | # CONFIG_SECURITY is not set | 1340 | # CONFIG_SECURITY is not set |
1217 | 1341 | ||
1218 | # | 1342 | # |
1219 | # Cryptographic options | 1343 | # Cryptographic options |
1220 | # | 1344 | # |
1221 | # CONFIG_CRYPTO is not set | 1345 | CONFIG_CRYPTO=y |
1346 | CONFIG_CRYPTO_ALGAPI=y | ||
1347 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1348 | CONFIG_CRYPTO_HASH=y | ||
1349 | CONFIG_CRYPTO_MANAGER=y | ||
1350 | CONFIG_CRYPTO_HMAC=y | ||
1351 | CONFIG_CRYPTO_XCBC=y | ||
1352 | CONFIG_CRYPTO_NULL=y | ||
1353 | CONFIG_CRYPTO_MD4=y | ||
1354 | CONFIG_CRYPTO_MD5=y | ||
1355 | CONFIG_CRYPTO_SHA1=y | ||
1356 | CONFIG_CRYPTO_SHA256=y | ||
1357 | CONFIG_CRYPTO_SHA512=y | ||
1358 | CONFIG_CRYPTO_WP512=y | ||
1359 | CONFIG_CRYPTO_TGR192=y | ||
1360 | CONFIG_CRYPTO_GF128MUL=y | ||
1361 | CONFIG_CRYPTO_ECB=y | ||
1362 | CONFIG_CRYPTO_CBC=y | ||
1363 | CONFIG_CRYPTO_LRW=y | ||
1364 | CONFIG_CRYPTO_DES=y | ||
1365 | CONFIG_CRYPTO_BLOWFISH=y | ||
1366 | CONFIG_CRYPTO_TWOFISH=y | ||
1367 | CONFIG_CRYPTO_TWOFISH_COMMON=y | ||
1368 | CONFIG_CRYPTO_SERPENT=y | ||
1369 | CONFIG_CRYPTO_AES=y | ||
1370 | CONFIG_CRYPTO_CAST5=y | ||
1371 | CONFIG_CRYPTO_CAST6=y | ||
1372 | CONFIG_CRYPTO_TEA=y | ||
1373 | CONFIG_CRYPTO_ARC4=y | ||
1374 | CONFIG_CRYPTO_KHAZAD=y | ||
1375 | CONFIG_CRYPTO_ANUBIS=y | ||
1376 | CONFIG_CRYPTO_DEFLATE=y | ||
1377 | CONFIG_CRYPTO_MICHAEL_MIC=y | ||
1378 | CONFIG_CRYPTO_CRC32C=y | ||
1379 | # CONFIG_CRYPTO_TEST is not set | ||
1222 | 1380 | ||
1223 | # | 1381 | # |
1224 | # Hardware crypto devices | 1382 | # Hardware crypto devices |
@@ -1227,10 +1385,12 @@ CONFIG_DEBUG_LL=y | |||
1227 | # | 1385 | # |
1228 | # Library routines | 1386 | # Library routines |
1229 | # | 1387 | # |
1388 | CONFIG_BITREVERSE=y | ||
1230 | # CONFIG_CRC_CCITT is not set | 1389 | # CONFIG_CRC_CCITT is not set |
1231 | # CONFIG_CRC16 is not set | 1390 | # CONFIG_CRC16 is not set |
1232 | CONFIG_CRC32=y | 1391 | CONFIG_CRC32=y |
1233 | # CONFIG_LIBCRC32C is not set | 1392 | CONFIG_LIBCRC32C=y |
1234 | CONFIG_ZLIB_INFLATE=y | 1393 | CONFIG_ZLIB_INFLATE=y |
1235 | CONFIG_ZLIB_DEFLATE=y | 1394 | CONFIG_ZLIB_DEFLATE=y |
1236 | CONFIG_PLIST=y | 1395 | CONFIG_PLIST=y |
1396 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/iop33x_defconfig b/arch/arm/configs/iop33x_defconfig index 2a8fc153969d..fa271bce8ff7 100644 --- a/arch/arm/configs/iop33x_defconfig +++ b/arch/arm/configs/iop33x_defconfig | |||
@@ -1,15 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc7 | 3 | # Linux kernel version: 2.6.20-rc1 |
4 | # Tue Sep 19 00:30:42 2006 | 4 | # Sat Dec 16 06:05:34 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
9 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | 10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y |
10 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
11 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
12 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
13 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
14 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
15 | CONFIG_VECTORS_BASE=0xffff0000 | 18 | CONFIG_VECTORS_BASE=0xffff0000 |
@@ -29,18 +32,22 @@ CONFIG_LOCALVERSION="" | |||
29 | CONFIG_LOCALVERSION_AUTO=y | 32 | CONFIG_LOCALVERSION_AUTO=y |
30 | CONFIG_SWAP=y | 33 | CONFIG_SWAP=y |
31 | CONFIG_SYSVIPC=y | 34 | CONFIG_SYSVIPC=y |
35 | # CONFIG_IPC_NS is not set | ||
32 | # CONFIG_POSIX_MQUEUE is not set | 36 | # CONFIG_POSIX_MQUEUE is not set |
33 | CONFIG_BSD_PROCESS_ACCT=y | 37 | CONFIG_BSD_PROCESS_ACCT=y |
34 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 38 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
35 | # CONFIG_TASKSTATS is not set | 39 | # CONFIG_TASKSTATS is not set |
36 | CONFIG_SYSCTL=y | 40 | # CONFIG_UTS_NS is not set |
37 | # CONFIG_AUDIT is not set | 41 | # CONFIG_AUDIT is not set |
38 | # CONFIG_IKCONFIG is not set | 42 | # CONFIG_IKCONFIG is not set |
43 | CONFIG_SYSFS_DEPRECATED=y | ||
39 | # CONFIG_RELAY is not set | 44 | # CONFIG_RELAY is not set |
40 | CONFIG_INITRAMFS_SOURCE="" | 45 | CONFIG_INITRAMFS_SOURCE="" |
41 | CONFIG_UID16=y | ||
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 46 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
47 | CONFIG_SYSCTL=y | ||
43 | # CONFIG_EMBEDDED is not set | 48 | # CONFIG_EMBEDDED is not set |
49 | CONFIG_UID16=y | ||
50 | CONFIG_SYSCTL_SYSCALL=y | ||
44 | CONFIG_KALLSYMS=y | 51 | CONFIG_KALLSYMS=y |
45 | CONFIG_KALLSYMS_ALL=y | 52 | CONFIG_KALLSYMS_ALL=y |
46 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -49,12 +56,12 @@ CONFIG_PRINTK=y | |||
49 | CONFIG_BUG=y | 56 | CONFIG_BUG=y |
50 | CONFIG_ELF_CORE=y | 57 | CONFIG_ELF_CORE=y |
51 | CONFIG_BASE_FULL=y | 58 | CONFIG_BASE_FULL=y |
52 | CONFIG_RT_MUTEXES=y | ||
53 | CONFIG_FUTEX=y | 59 | CONFIG_FUTEX=y |
54 | CONFIG_EPOLL=y | 60 | CONFIG_EPOLL=y |
55 | CONFIG_SHMEM=y | 61 | CONFIG_SHMEM=y |
56 | CONFIG_SLAB=y | 62 | CONFIG_SLAB=y |
57 | CONFIG_VM_EVENT_COUNTERS=y | 63 | CONFIG_VM_EVENT_COUNTERS=y |
64 | CONFIG_RT_MUTEXES=y | ||
58 | # CONFIG_TINY_SHMEM is not set | 65 | # CONFIG_TINY_SHMEM is not set |
59 | CONFIG_BASE_SMALL=0 | 66 | CONFIG_BASE_SMALL=0 |
60 | # CONFIG_SLOB is not set | 67 | # CONFIG_SLOB is not set |
@@ -72,7 +79,10 @@ CONFIG_KMOD=y | |||
72 | # | 79 | # |
73 | # Block layer | 80 | # Block layer |
74 | # | 81 | # |
82 | CONFIG_BLOCK=y | ||
83 | # CONFIG_LBD is not set | ||
75 | # CONFIG_BLK_DEV_IO_TRACE is not set | 84 | # CONFIG_BLK_DEV_IO_TRACE is not set |
85 | # CONFIG_LSF is not set | ||
76 | 86 | ||
77 | # | 87 | # |
78 | # IO Schedulers | 88 | # IO Schedulers |
@@ -106,6 +116,7 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
106 | # CONFIG_ARCH_IMX is not set | 116 | # CONFIG_ARCH_IMX is not set |
107 | # CONFIG_ARCH_IOP32X is not set | 117 | # CONFIG_ARCH_IOP32X is not set |
108 | CONFIG_ARCH_IOP33X=y | 118 | CONFIG_ARCH_IOP33X=y |
119 | # CONFIG_ARCH_IOP13XX is not set | ||
109 | # CONFIG_ARCH_IXP4XX is not set | 120 | # CONFIG_ARCH_IXP4XX is not set |
110 | # CONFIG_ARCH_IXP2000 is not set | 121 | # CONFIG_ARCH_IXP2000 is not set |
111 | # CONFIG_ARCH_IXP23XX is not set | 122 | # CONFIG_ARCH_IXP23XX is not set |
@@ -139,17 +150,22 @@ CONFIG_CPU_32v5=y | |||
139 | CONFIG_CPU_ABRT_EV5T=y | 150 | CONFIG_CPU_ABRT_EV5T=y |
140 | CONFIG_CPU_CACHE_VIVT=y | 151 | CONFIG_CPU_CACHE_VIVT=y |
141 | CONFIG_CPU_TLB_V4WBI=y | 152 | CONFIG_CPU_TLB_V4WBI=y |
153 | CONFIG_CPU_CP15=y | ||
154 | CONFIG_CPU_CP15_MMU=y | ||
142 | 155 | ||
143 | # | 156 | # |
144 | # Processor Features | 157 | # Processor Features |
145 | # | 158 | # |
146 | # CONFIG_ARM_THUMB is not set | 159 | # CONFIG_ARM_THUMB is not set |
160 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
161 | # CONFIG_IWMMXT is not set | ||
147 | CONFIG_XSCALE_PMU=y | 162 | CONFIG_XSCALE_PMU=y |
148 | 163 | ||
149 | # | 164 | # |
150 | # Bus support | 165 | # Bus support |
151 | # | 166 | # |
152 | CONFIG_PCI=y | 167 | CONFIG_PCI=y |
168 | # CONFIG_PCI_MULTITHREAD_PROBE is not set | ||
153 | # CONFIG_PCI_DEBUG is not set | 169 | # CONFIG_PCI_DEBUG is not set |
154 | 170 | ||
155 | # | 171 | # |
@@ -223,6 +239,7 @@ CONFIG_PACKET_MMAP=y | |||
223 | CONFIG_UNIX=y | 239 | CONFIG_UNIX=y |
224 | CONFIG_XFRM=y | 240 | CONFIG_XFRM=y |
225 | # CONFIG_XFRM_USER is not set | 241 | # CONFIG_XFRM_USER is not set |
242 | # CONFIG_XFRM_SUB_POLICY is not set | ||
226 | # CONFIG_NET_KEY is not set | 243 | # CONFIG_NET_KEY is not set |
227 | CONFIG_INET=y | 244 | CONFIG_INET=y |
228 | CONFIG_IP_MULTICAST=y | 245 | CONFIG_IP_MULTICAST=y |
@@ -244,13 +261,29 @@ CONFIG_IP_PNP_BOOTP=y | |||
244 | # CONFIG_INET_TUNNEL is not set | 261 | # CONFIG_INET_TUNNEL is not set |
245 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 262 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
246 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 263 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
264 | CONFIG_INET_XFRM_MODE_BEET=y | ||
247 | CONFIG_INET_DIAG=y | 265 | CONFIG_INET_DIAG=y |
248 | CONFIG_INET_TCP_DIAG=y | 266 | CONFIG_INET_TCP_DIAG=y |
249 | # CONFIG_TCP_CONG_ADVANCED is not set | 267 | # CONFIG_TCP_CONG_ADVANCED is not set |
250 | CONFIG_TCP_CONG_BIC=y | 268 | CONFIG_TCP_CONG_CUBIC=y |
251 | # CONFIG_IPV6 is not set | 269 | CONFIG_DEFAULT_TCP_CONG="cubic" |
270 | # CONFIG_TCP_MD5SIG is not set | ||
271 | CONFIG_IPV6=y | ||
272 | # CONFIG_IPV6_PRIVACY is not set | ||
273 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
274 | # CONFIG_INET6_AH is not set | ||
275 | # CONFIG_INET6_ESP is not set | ||
276 | # CONFIG_INET6_IPCOMP is not set | ||
277 | # CONFIG_IPV6_MIP6 is not set | ||
252 | # CONFIG_INET6_XFRM_TUNNEL is not set | 278 | # CONFIG_INET6_XFRM_TUNNEL is not set |
253 | # CONFIG_INET6_TUNNEL is not set | 279 | # CONFIG_INET6_TUNNEL is not set |
280 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
281 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
282 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
283 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
284 | # CONFIG_IPV6_SIT is not set | ||
285 | # CONFIG_IPV6_TUNNEL is not set | ||
286 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
254 | # CONFIG_NETWORK_SECMARK is not set | 287 | # CONFIG_NETWORK_SECMARK is not set |
255 | # CONFIG_NETFILTER is not set | 288 | # CONFIG_NETFILTER is not set |
256 | 289 | ||
@@ -277,7 +310,6 @@ CONFIG_TCP_CONG_BIC=y | |||
277 | # CONFIG_ATALK is not set | 310 | # CONFIG_ATALK is not set |
278 | # CONFIG_X25 is not set | 311 | # CONFIG_X25 is not set |
279 | # CONFIG_LAPB is not set | 312 | # CONFIG_LAPB is not set |
280 | # CONFIG_NET_DIVERT is not set | ||
281 | # CONFIG_ECONET is not set | 313 | # CONFIG_ECONET is not set |
282 | # CONFIG_WAN_ROUTER is not set | 314 | # CONFIG_WAN_ROUTER is not set |
283 | 315 | ||
@@ -336,6 +368,7 @@ CONFIG_MTD_BLOCK=y | |||
336 | # CONFIG_NFTL is not set | 368 | # CONFIG_NFTL is not set |
337 | # CONFIG_INFTL is not set | 369 | # CONFIG_INFTL is not set |
338 | # CONFIG_RFD_FTL is not set | 370 | # CONFIG_RFD_FTL is not set |
371 | # CONFIG_SSFDC is not set | ||
339 | 372 | ||
340 | # | 373 | # |
341 | # RAM/ROM/Flash chip drivers | 374 | # RAM/ROM/Flash chip drivers |
@@ -423,7 +456,7 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | |||
423 | # CONFIG_BLK_DEV_UMEM is not set | 456 | # CONFIG_BLK_DEV_UMEM is not set |
424 | # CONFIG_BLK_DEV_COW_COMMON is not set | 457 | # CONFIG_BLK_DEV_COW_COMMON is not set |
425 | # CONFIG_BLK_DEV_LOOP is not set | 458 | # CONFIG_BLK_DEV_LOOP is not set |
426 | # CONFIG_BLK_DEV_NBD is not set | 459 | CONFIG_BLK_DEV_NBD=y |
427 | # CONFIG_BLK_DEV_SX8 is not set | 460 | # CONFIG_BLK_DEV_SX8 is not set |
428 | CONFIG_BLK_DEV_RAM=y | 461 | CONFIG_BLK_DEV_RAM=y |
429 | CONFIG_BLK_DEV_RAM_COUNT=16 | 462 | CONFIG_BLK_DEV_RAM_COUNT=16 |
@@ -443,6 +476,8 @@ CONFIG_BLK_DEV_INITRD=y | |||
443 | # | 476 | # |
444 | # CONFIG_RAID_ATTRS is not set | 477 | # CONFIG_RAID_ATTRS is not set |
445 | CONFIG_SCSI=y | 478 | CONFIG_SCSI=y |
479 | # CONFIG_SCSI_TGT is not set | ||
480 | # CONFIG_SCSI_NETLINK is not set | ||
446 | CONFIG_SCSI_PROC_FS=y | 481 | CONFIG_SCSI_PROC_FS=y |
447 | 482 | ||
448 | # | 483 | # |
@@ -461,14 +496,16 @@ CONFIG_CHR_DEV_SG=y | |||
461 | # CONFIG_SCSI_MULTI_LUN is not set | 496 | # CONFIG_SCSI_MULTI_LUN is not set |
462 | # CONFIG_SCSI_CONSTANTS is not set | 497 | # CONFIG_SCSI_CONSTANTS is not set |
463 | # CONFIG_SCSI_LOGGING is not set | 498 | # CONFIG_SCSI_LOGGING is not set |
499 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
464 | 500 | ||
465 | # | 501 | # |
466 | # SCSI Transport Attributes | 502 | # SCSI Transports |
467 | # | 503 | # |
468 | # CONFIG_SCSI_SPI_ATTRS is not set | 504 | # CONFIG_SCSI_SPI_ATTRS is not set |
469 | # CONFIG_SCSI_FC_ATTRS is not set | 505 | # CONFIG_SCSI_FC_ATTRS is not set |
470 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 506 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
471 | # CONFIG_SCSI_SAS_ATTRS is not set | 507 | # CONFIG_SCSI_SAS_ATTRS is not set |
508 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
472 | 509 | ||
473 | # | 510 | # |
474 | # SCSI low-level drivers | 511 | # SCSI low-level drivers |
@@ -481,26 +518,34 @@ CONFIG_CHR_DEV_SG=y | |||
481 | # CONFIG_SCSI_AIC7XXX is not set | 518 | # CONFIG_SCSI_AIC7XXX is not set |
482 | # CONFIG_SCSI_AIC7XXX_OLD is not set | 519 | # CONFIG_SCSI_AIC7XXX_OLD is not set |
483 | # CONFIG_SCSI_AIC79XX is not set | 520 | # CONFIG_SCSI_AIC79XX is not set |
521 | # CONFIG_SCSI_AIC94XX is not set | ||
484 | # CONFIG_SCSI_DPT_I2O is not set | 522 | # CONFIG_SCSI_DPT_I2O is not set |
523 | # CONFIG_SCSI_ARCMSR is not set | ||
485 | # CONFIG_MEGARAID_NEWGEN is not set | 524 | # CONFIG_MEGARAID_NEWGEN is not set |
486 | # CONFIG_MEGARAID_LEGACY is not set | 525 | # CONFIG_MEGARAID_LEGACY is not set |
487 | # CONFIG_MEGARAID_SAS is not set | 526 | # CONFIG_MEGARAID_SAS is not set |
488 | # CONFIG_SCSI_SATA is not set | ||
489 | # CONFIG_SCSI_HPTIOP is not set | 527 | # CONFIG_SCSI_HPTIOP is not set |
490 | # CONFIG_SCSI_DMX3191D is not set | 528 | # CONFIG_SCSI_DMX3191D is not set |
491 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 529 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
492 | # CONFIG_SCSI_IPS is not set | 530 | # CONFIG_SCSI_IPS is not set |
493 | # CONFIG_SCSI_INITIO is not set | 531 | # CONFIG_SCSI_INITIO is not set |
494 | # CONFIG_SCSI_INIA100 is not set | 532 | # CONFIG_SCSI_INIA100 is not set |
533 | # CONFIG_SCSI_STEX is not set | ||
495 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 534 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
496 | # CONFIG_SCSI_IPR is not set | ||
497 | # CONFIG_SCSI_QLOGIC_1280 is not set | 535 | # CONFIG_SCSI_QLOGIC_1280 is not set |
498 | # CONFIG_SCSI_QLA_FC is not set | 536 | # CONFIG_SCSI_QLA_FC is not set |
537 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
499 | # CONFIG_SCSI_LPFC is not set | 538 | # CONFIG_SCSI_LPFC is not set |
500 | # CONFIG_SCSI_DC395x is not set | 539 | # CONFIG_SCSI_DC395x is not set |
501 | # CONFIG_SCSI_DC390T is not set | 540 | # CONFIG_SCSI_DC390T is not set |
502 | # CONFIG_SCSI_NSP32 is not set | 541 | # CONFIG_SCSI_NSP32 is not set |
503 | # CONFIG_SCSI_DEBUG is not set | 542 | # CONFIG_SCSI_DEBUG is not set |
543 | # CONFIG_SCSI_SRP is not set | ||
544 | |||
545 | # | ||
546 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
547 | # | ||
548 | # CONFIG_ATA is not set | ||
504 | 549 | ||
505 | # | 550 | # |
506 | # Multi-device support (RAID and LVM) | 551 | # Multi-device support (RAID and LVM) |
@@ -515,6 +560,7 @@ CONFIG_MD_RAID1=y | |||
515 | # CONFIG_MD_MULTIPATH is not set | 560 | # CONFIG_MD_MULTIPATH is not set |
516 | # CONFIG_MD_FAULTY is not set | 561 | # CONFIG_MD_FAULTY is not set |
517 | CONFIG_BLK_DEV_DM=y | 562 | CONFIG_BLK_DEV_DM=y |
563 | # CONFIG_DM_DEBUG is not set | ||
518 | # CONFIG_DM_CRYPT is not set | 564 | # CONFIG_DM_CRYPT is not set |
519 | # CONFIG_DM_SNAPSHOT is not set | 565 | # CONFIG_DM_SNAPSHOT is not set |
520 | # CONFIG_DM_MIRROR is not set | 566 | # CONFIG_DM_MIRROR is not set |
@@ -580,6 +626,7 @@ CONFIG_E1000_NAPI=y | |||
580 | # CONFIG_SK98LIN is not set | 626 | # CONFIG_SK98LIN is not set |
581 | # CONFIG_TIGON3 is not set | 627 | # CONFIG_TIGON3 is not set |
582 | # CONFIG_BNX2 is not set | 628 | # CONFIG_BNX2 is not set |
629 | # CONFIG_QLA3XXX is not set | ||
583 | 630 | ||
584 | # | 631 | # |
585 | # Ethernet (10000 Mbit) | 632 | # Ethernet (10000 Mbit) |
@@ -588,6 +635,7 @@ CONFIG_E1000_NAPI=y | |||
588 | # CONFIG_IXGB is not set | 635 | # CONFIG_IXGB is not set |
589 | # CONFIG_S2IO is not set | 636 | # CONFIG_S2IO is not set |
590 | # CONFIG_MYRI10GE is not set | 637 | # CONFIG_MYRI10GE is not set |
638 | # CONFIG_NETXEN_NIC is not set | ||
591 | 639 | ||
592 | # | 640 | # |
593 | # Token Ring devices | 641 | # Token Ring devices |
@@ -622,6 +670,7 @@ CONFIG_E1000_NAPI=y | |||
622 | # Input device support | 670 | # Input device support |
623 | # | 671 | # |
624 | CONFIG_INPUT=y | 672 | CONFIG_INPUT=y |
673 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
625 | 674 | ||
626 | # | 675 | # |
627 | # Userland interfaces | 676 | # Userland interfaces |
@@ -693,10 +742,6 @@ CONFIG_HW_RANDOM=y | |||
693 | # CONFIG_DTLK is not set | 742 | # CONFIG_DTLK is not set |
694 | # CONFIG_R3964 is not set | 743 | # CONFIG_R3964 is not set |
695 | # CONFIG_APPLICOM is not set | 744 | # CONFIG_APPLICOM is not set |
696 | |||
697 | # | ||
698 | # Ftape, the floppy tape device driver | ||
699 | # | ||
700 | # CONFIG_DRM is not set | 745 | # CONFIG_DRM is not set |
701 | # CONFIG_RAW_DRIVER is not set | 746 | # CONFIG_RAW_DRIVER is not set |
702 | 747 | ||
@@ -704,7 +749,6 @@ CONFIG_HW_RANDOM=y | |||
704 | # TPM devices | 749 | # TPM devices |
705 | # | 750 | # |
706 | # CONFIG_TCG_TPM is not set | 751 | # CONFIG_TCG_TPM is not set |
707 | # CONFIG_TELCLOCK is not set | ||
708 | 752 | ||
709 | # | 753 | # |
710 | # I2C support | 754 | # I2C support |
@@ -769,6 +813,7 @@ CONFIG_I2C_IOP3XX=y | |||
769 | # | 813 | # |
770 | # Dallas's 1-wire bus | 814 | # Dallas's 1-wire bus |
771 | # | 815 | # |
816 | # CONFIG_W1 is not set | ||
772 | 817 | ||
773 | # | 818 | # |
774 | # Hardware Monitoring support | 819 | # Hardware Monitoring support |
@@ -802,15 +847,18 @@ CONFIG_HWMON=y | |||
802 | # CONFIG_SENSORS_LM92 is not set | 847 | # CONFIG_SENSORS_LM92 is not set |
803 | # CONFIG_SENSORS_MAX1619 is not set | 848 | # CONFIG_SENSORS_MAX1619 is not set |
804 | # CONFIG_SENSORS_PC87360 is not set | 849 | # CONFIG_SENSORS_PC87360 is not set |
850 | # CONFIG_SENSORS_PC87427 is not set | ||
805 | # CONFIG_SENSORS_SIS5595 is not set | 851 | # CONFIG_SENSORS_SIS5595 is not set |
806 | # CONFIG_SENSORS_SMSC47M1 is not set | 852 | # CONFIG_SENSORS_SMSC47M1 is not set |
807 | # CONFIG_SENSORS_SMSC47M192 is not set | 853 | # CONFIG_SENSORS_SMSC47M192 is not set |
808 | # CONFIG_SENSORS_SMSC47B397 is not set | 854 | # CONFIG_SENSORS_SMSC47B397 is not set |
809 | # CONFIG_SENSORS_VIA686A is not set | 855 | # CONFIG_SENSORS_VIA686A is not set |
856 | # CONFIG_SENSORS_VT1211 is not set | ||
810 | # CONFIG_SENSORS_VT8231 is not set | 857 | # CONFIG_SENSORS_VT8231 is not set |
811 | # CONFIG_SENSORS_W83781D is not set | 858 | # CONFIG_SENSORS_W83781D is not set |
812 | # CONFIG_SENSORS_W83791D is not set | 859 | # CONFIG_SENSORS_W83791D is not set |
813 | # CONFIG_SENSORS_W83792D is not set | 860 | # CONFIG_SENSORS_W83792D is not set |
861 | # CONFIG_SENSORS_W83793 is not set | ||
814 | # CONFIG_SENSORS_W83L785TS is not set | 862 | # CONFIG_SENSORS_W83L785TS is not set |
815 | # CONFIG_SENSORS_W83627HF is not set | 863 | # CONFIG_SENSORS_W83627HF is not set |
816 | # CONFIG_SENSORS_W83627EHF is not set | 864 | # CONFIG_SENSORS_W83627EHF is not set |
@@ -819,6 +867,8 @@ CONFIG_HWMON=y | |||
819 | # | 867 | # |
820 | # Misc devices | 868 | # Misc devices |
821 | # | 869 | # |
870 | # CONFIG_SGI_IOC4 is not set | ||
871 | # CONFIG_TIFM_CORE is not set | ||
822 | 872 | ||
823 | # | 873 | # |
824 | # LED devices | 874 | # LED devices |
@@ -837,7 +887,6 @@ CONFIG_HWMON=y | |||
837 | # Multimedia devices | 887 | # Multimedia devices |
838 | # | 888 | # |
839 | # CONFIG_VIDEO_DEV is not set | 889 | # CONFIG_VIDEO_DEV is not set |
840 | CONFIG_VIDEO_V4L2=y | ||
841 | 890 | ||
842 | # | 891 | # |
843 | # Digital Video Broadcasting Devices | 892 | # Digital Video Broadcasting Devices |
@@ -863,6 +912,11 @@ CONFIG_DUMMY_CONSOLE=y | |||
863 | # CONFIG_SOUND is not set | 912 | # CONFIG_SOUND is not set |
864 | 913 | ||
865 | # | 914 | # |
915 | # HID Devices | ||
916 | # | ||
917 | CONFIG_HID=y | ||
918 | |||
919 | # | ||
866 | # USB support | 920 | # USB support |
867 | # | 921 | # |
868 | CONFIG_USB_ARCH_HAS_HCD=y | 922 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -900,6 +954,7 @@ CONFIG_EXT3_FS=y | |||
900 | CONFIG_EXT3_FS_XATTR=y | 954 | CONFIG_EXT3_FS_XATTR=y |
901 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 955 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
902 | # CONFIG_EXT3_FS_SECURITY is not set | 956 | # CONFIG_EXT3_FS_SECURITY is not set |
957 | # CONFIG_EXT4DEV_FS is not set | ||
903 | CONFIG_JBD=y | 958 | CONFIG_JBD=y |
904 | # CONFIG_JBD_DEBUG is not set | 959 | # CONFIG_JBD_DEBUG is not set |
905 | CONFIG_FS_MBCACHE=y | 960 | CONFIG_FS_MBCACHE=y |
@@ -911,6 +966,7 @@ CONFIG_XFS_FS=y | |||
911 | CONFIG_XFS_SECURITY=y | 966 | CONFIG_XFS_SECURITY=y |
912 | CONFIG_XFS_POSIX_ACL=y | 967 | CONFIG_XFS_POSIX_ACL=y |
913 | # CONFIG_XFS_RT is not set | 968 | # CONFIG_XFS_RT is not set |
969 | # CONFIG_GFS2_FS is not set | ||
914 | # CONFIG_OCFS2_FS is not set | 970 | # CONFIG_OCFS2_FS is not set |
915 | # CONFIG_MINIX_FS is not set | 971 | # CONFIG_MINIX_FS is not set |
916 | # CONFIG_ROMFS_FS is not set | 972 | # CONFIG_ROMFS_FS is not set |
@@ -939,8 +995,10 @@ CONFIG_DNOTIFY=y | |||
939 | # Pseudo filesystems | 995 | # Pseudo filesystems |
940 | # | 996 | # |
941 | CONFIG_PROC_FS=y | 997 | CONFIG_PROC_FS=y |
998 | CONFIG_PROC_SYSCTL=y | ||
942 | CONFIG_SYSFS=y | 999 | CONFIG_SYSFS=y |
943 | CONFIG_TMPFS=y | 1000 | CONFIG_TMPFS=y |
1001 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
944 | # CONFIG_HUGETLB_PAGE is not set | 1002 | # CONFIG_HUGETLB_PAGE is not set |
945 | CONFIG_RAMFS=y | 1003 | CONFIG_RAMFS=y |
946 | # CONFIG_CONFIGFS_FS is not set | 1004 | # CONFIG_CONFIGFS_FS is not set |
@@ -1019,6 +1077,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1019 | # CONFIG_NLS is not set | 1077 | # CONFIG_NLS is not set |
1020 | 1078 | ||
1021 | # | 1079 | # |
1080 | # Distributed Lock Manager | ||
1081 | # | ||
1082 | # CONFIG_DLM is not set | ||
1083 | |||
1084 | # | ||
1022 | # Profiling support | 1085 | # Profiling support |
1023 | # | 1086 | # |
1024 | # CONFIG_PROFILING is not set | 1087 | # CONFIG_PROFILING is not set |
@@ -1027,8 +1090,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1027 | # Kernel hacking | 1090 | # Kernel hacking |
1028 | # | 1091 | # |
1029 | # CONFIG_PRINTK_TIME is not set | 1092 | # CONFIG_PRINTK_TIME is not set |
1093 | CONFIG_ENABLE_MUST_CHECK=y | ||
1030 | CONFIG_MAGIC_SYSRQ=y | 1094 | CONFIG_MAGIC_SYSRQ=y |
1031 | # CONFIG_UNUSED_SYMBOLS is not set | 1095 | # CONFIG_UNUSED_SYMBOLS is not set |
1096 | # CONFIG_DEBUG_FS is not set | ||
1097 | # CONFIG_HEADERS_CHECK is not set | ||
1032 | CONFIG_DEBUG_KERNEL=y | 1098 | CONFIG_DEBUG_KERNEL=y |
1033 | CONFIG_LOG_BUF_SHIFT=14 | 1099 | CONFIG_LOG_BUF_SHIFT=14 |
1034 | CONFIG_DETECT_SOFTLOCKUP=y | 1100 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -1044,14 +1110,12 @@ CONFIG_DETECT_SOFTLOCKUP=y | |||
1044 | # CONFIG_DEBUG_KOBJECT is not set | 1110 | # CONFIG_DEBUG_KOBJECT is not set |
1045 | CONFIG_DEBUG_BUGVERBOSE=y | 1111 | CONFIG_DEBUG_BUGVERBOSE=y |
1046 | # CONFIG_DEBUG_INFO is not set | 1112 | # CONFIG_DEBUG_INFO is not set |
1047 | # CONFIG_DEBUG_FS is not set | ||
1048 | # CONFIG_DEBUG_VM is not set | 1113 | # CONFIG_DEBUG_VM is not set |
1114 | # CONFIG_DEBUG_LIST is not set | ||
1049 | CONFIG_FRAME_POINTER=y | 1115 | CONFIG_FRAME_POINTER=y |
1050 | # CONFIG_UNWIND_INFO is not set | ||
1051 | # CONFIG_FORCED_INLINING is not set | 1116 | # CONFIG_FORCED_INLINING is not set |
1052 | # CONFIG_RCU_TORTURE_TEST is not set | 1117 | # CONFIG_RCU_TORTURE_TEST is not set |
1053 | CONFIG_DEBUG_USER=y | 1118 | CONFIG_DEBUG_USER=y |
1054 | # CONFIG_DEBUG_WAITQ is not set | ||
1055 | # CONFIG_DEBUG_ERRORS is not set | 1119 | # CONFIG_DEBUG_ERRORS is not set |
1056 | CONFIG_DEBUG_LL=y | 1120 | CONFIG_DEBUG_LL=y |
1057 | # CONFIG_DEBUG_ICEDCC is not set | 1121 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -1068,10 +1132,6 @@ CONFIG_DEBUG_LL=y | |||
1068 | # CONFIG_CRYPTO is not set | 1132 | # CONFIG_CRYPTO is not set |
1069 | 1133 | ||
1070 | # | 1134 | # |
1071 | # Hardware crypto devices | ||
1072 | # | ||
1073 | |||
1074 | # | ||
1075 | # Library routines | 1135 | # Library routines |
1076 | # | 1136 | # |
1077 | # CONFIG_CRC_CCITT is not set | 1137 | # CONFIG_CRC_CCITT is not set |
@@ -1079,3 +1139,4 @@ CONFIG_DEBUG_LL=y | |||
1079 | # CONFIG_CRC32 is not set | 1139 | # CONFIG_CRC32 is not set |
1080 | # CONFIG_LIBCRC32C is not set | 1140 | # CONFIG_LIBCRC32C is not set |
1081 | CONFIG_PLIST=y | 1141 | CONFIG_PLIST=y |
1142 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/ixp2000_defconfig b/arch/arm/configs/ixp2000_defconfig index 27b3e31a8ad8..f8f9793b526f 100644 --- a/arch/arm/configs/ixp2000_defconfig +++ b/arch/arm/configs/ixp2000_defconfig | |||
@@ -1,14 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc1 | 3 | # Linux kernel version: 2.6.20-rc1 |
4 | # Sun Jul 9 15:28:50 2006 | 4 | # Sat Dec 16 06:05:39 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
9 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
10 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
11 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
12 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
13 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
14 | CONFIG_VECTORS_BASE=0xffff0000 | 18 | CONFIG_VECTORS_BASE=0xffff0000 |
@@ -28,17 +32,22 @@ CONFIG_LOCALVERSION="" | |||
28 | CONFIG_LOCALVERSION_AUTO=y | 32 | CONFIG_LOCALVERSION_AUTO=y |
29 | CONFIG_SWAP=y | 33 | CONFIG_SWAP=y |
30 | CONFIG_SYSVIPC=y | 34 | CONFIG_SYSVIPC=y |
35 | # CONFIG_IPC_NS is not set | ||
31 | # CONFIG_POSIX_MQUEUE is not set | 36 | # CONFIG_POSIX_MQUEUE is not set |
32 | CONFIG_BSD_PROCESS_ACCT=y | 37 | CONFIG_BSD_PROCESS_ACCT=y |
33 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 38 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
34 | CONFIG_SYSCTL=y | 39 | # CONFIG_TASKSTATS is not set |
40 | # CONFIG_UTS_NS is not set | ||
35 | # CONFIG_AUDIT is not set | 41 | # CONFIG_AUDIT is not set |
36 | # CONFIG_IKCONFIG is not set | 42 | # CONFIG_IKCONFIG is not set |
43 | CONFIG_SYSFS_DEPRECATED=y | ||
37 | # CONFIG_RELAY is not set | 44 | # CONFIG_RELAY is not set |
38 | CONFIG_INITRAMFS_SOURCE="" | 45 | CONFIG_INITRAMFS_SOURCE="" |
39 | CONFIG_UID16=y | ||
40 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 46 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
47 | CONFIG_SYSCTL=y | ||
41 | CONFIG_EMBEDDED=y | 48 | CONFIG_EMBEDDED=y |
49 | CONFIG_UID16=y | ||
50 | CONFIG_SYSCTL_SYSCALL=y | ||
42 | CONFIG_KALLSYMS=y | 51 | CONFIG_KALLSYMS=y |
43 | # CONFIG_KALLSYMS_ALL is not set | 52 | # CONFIG_KALLSYMS_ALL is not set |
44 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -47,12 +56,12 @@ CONFIG_PRINTK=y | |||
47 | CONFIG_BUG=y | 56 | CONFIG_BUG=y |
48 | CONFIG_ELF_CORE=y | 57 | CONFIG_ELF_CORE=y |
49 | CONFIG_BASE_FULL=y | 58 | CONFIG_BASE_FULL=y |
50 | CONFIG_RT_MUTEXES=y | ||
51 | CONFIG_FUTEX=y | 59 | CONFIG_FUTEX=y |
52 | CONFIG_EPOLL=y | 60 | CONFIG_EPOLL=y |
53 | CONFIG_SHMEM=y | 61 | CONFIG_SHMEM=y |
54 | CONFIG_SLAB=y | 62 | CONFIG_SLAB=y |
55 | CONFIG_VM_EVENT_COUNTERS=y | 63 | CONFIG_VM_EVENT_COUNTERS=y |
64 | CONFIG_RT_MUTEXES=y | ||
56 | # CONFIG_TINY_SHMEM is not set | 65 | # CONFIG_TINY_SHMEM is not set |
57 | CONFIG_BASE_SMALL=0 | 66 | CONFIG_BASE_SMALL=0 |
58 | # CONFIG_SLOB is not set | 67 | # CONFIG_SLOB is not set |
@@ -70,7 +79,10 @@ CONFIG_KMOD=y | |||
70 | # | 79 | # |
71 | # Block layer | 80 | # Block layer |
72 | # | 81 | # |
82 | CONFIG_BLOCK=y | ||
83 | # CONFIG_LBD is not set | ||
73 | # CONFIG_BLK_DEV_IO_TRACE is not set | 84 | # CONFIG_BLK_DEV_IO_TRACE is not set |
85 | # CONFIG_LSF is not set | ||
74 | 86 | ||
75 | # | 87 | # |
76 | # IO Schedulers | 88 | # IO Schedulers |
@@ -102,7 +114,9 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
102 | # CONFIG_ARCH_NETX is not set | 114 | # CONFIG_ARCH_NETX is not set |
103 | # CONFIG_ARCH_H720X is not set | 115 | # CONFIG_ARCH_H720X is not set |
104 | # CONFIG_ARCH_IMX is not set | 116 | # CONFIG_ARCH_IMX is not set |
105 | # CONFIG_ARCH_IOP3XX is not set | 117 | # CONFIG_ARCH_IOP32X is not set |
118 | # CONFIG_ARCH_IOP33X is not set | ||
119 | # CONFIG_ARCH_IOP13XX is not set | ||
106 | # CONFIG_ARCH_IXP4XX is not set | 120 | # CONFIG_ARCH_IXP4XX is not set |
107 | CONFIG_ARCH_IXP2000=y | 121 | CONFIG_ARCH_IXP2000=y |
108 | # CONFIG_ARCH_IXP23XX is not set | 122 | # CONFIG_ARCH_IXP23XX is not set |
@@ -143,24 +157,28 @@ CONFIG_CPU_32v5=y | |||
143 | CONFIG_CPU_ABRT_EV5T=y | 157 | CONFIG_CPU_ABRT_EV5T=y |
144 | CONFIG_CPU_CACHE_VIVT=y | 158 | CONFIG_CPU_CACHE_VIVT=y |
145 | CONFIG_CPU_TLB_V4WBI=y | 159 | CONFIG_CPU_TLB_V4WBI=y |
160 | CONFIG_CPU_CP15=y | ||
161 | CONFIG_CPU_CP15_MMU=y | ||
146 | 162 | ||
147 | # | 163 | # |
148 | # Processor Features | 164 | # Processor Features |
149 | # | 165 | # |
150 | # CONFIG_ARM_THUMB is not set | 166 | # CONFIG_ARM_THUMB is not set |
151 | CONFIG_CPU_BIG_ENDIAN=y | 167 | CONFIG_CPU_BIG_ENDIAN=y |
168 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
169 | # CONFIG_IWMMXT is not set | ||
152 | CONFIG_XSCALE_PMU=y | 170 | CONFIG_XSCALE_PMU=y |
153 | 171 | ||
154 | # | 172 | # |
155 | # Bus support | 173 | # Bus support |
156 | # | 174 | # |
157 | CONFIG_PCI=y | 175 | CONFIG_PCI=y |
176 | # CONFIG_PCI_MULTITHREAD_PROBE is not set | ||
158 | # CONFIG_PCI_DEBUG is not set | 177 | # CONFIG_PCI_DEBUG is not set |
159 | 178 | ||
160 | # | 179 | # |
161 | # PCCARD (PCMCIA/CardBus) support | 180 | # PCCARD (PCMCIA/CardBus) support |
162 | # | 181 | # |
163 | # CONFIG_PCCARD is not set | ||
164 | 182 | ||
165 | # | 183 | # |
166 | # Kernel Features | 184 | # Kernel Features |
@@ -228,6 +246,7 @@ CONFIG_PACKET_MMAP=y | |||
228 | CONFIG_UNIX=y | 246 | CONFIG_UNIX=y |
229 | CONFIG_XFRM=y | 247 | CONFIG_XFRM=y |
230 | # CONFIG_XFRM_USER is not set | 248 | # CONFIG_XFRM_USER is not set |
249 | # CONFIG_XFRM_SUB_POLICY is not set | ||
231 | # CONFIG_NET_KEY is not set | 250 | # CONFIG_NET_KEY is not set |
232 | CONFIG_INET=y | 251 | CONFIG_INET=y |
233 | # CONFIG_IP_MULTICAST is not set | 252 | # CONFIG_IP_MULTICAST is not set |
@@ -248,13 +267,29 @@ CONFIG_SYN_COOKIES=y | |||
248 | # CONFIG_INET_TUNNEL is not set | 267 | # CONFIG_INET_TUNNEL is not set |
249 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 268 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
250 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 269 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
270 | CONFIG_INET_XFRM_MODE_BEET=y | ||
251 | CONFIG_INET_DIAG=y | 271 | CONFIG_INET_DIAG=y |
252 | CONFIG_INET_TCP_DIAG=y | 272 | CONFIG_INET_TCP_DIAG=y |
253 | # CONFIG_TCP_CONG_ADVANCED is not set | 273 | # CONFIG_TCP_CONG_ADVANCED is not set |
254 | CONFIG_TCP_CONG_BIC=y | 274 | CONFIG_TCP_CONG_CUBIC=y |
255 | # CONFIG_IPV6 is not set | 275 | CONFIG_DEFAULT_TCP_CONG="cubic" |
276 | # CONFIG_TCP_MD5SIG is not set | ||
277 | CONFIG_IPV6=y | ||
278 | # CONFIG_IPV6_PRIVACY is not set | ||
279 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
280 | # CONFIG_INET6_AH is not set | ||
281 | # CONFIG_INET6_ESP is not set | ||
282 | # CONFIG_INET6_IPCOMP is not set | ||
283 | # CONFIG_IPV6_MIP6 is not set | ||
256 | # CONFIG_INET6_XFRM_TUNNEL is not set | 284 | # CONFIG_INET6_XFRM_TUNNEL is not set |
257 | # CONFIG_INET6_TUNNEL is not set | 285 | # CONFIG_INET6_TUNNEL is not set |
286 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
287 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
288 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
289 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
290 | # CONFIG_IPV6_SIT is not set | ||
291 | # CONFIG_IPV6_TUNNEL is not set | ||
292 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
258 | # CONFIG_NETWORK_SECMARK is not set | 293 | # CONFIG_NETWORK_SECMARK is not set |
259 | # CONFIG_NETFILTER is not set | 294 | # CONFIG_NETFILTER is not set |
260 | 295 | ||
@@ -281,7 +316,6 @@ CONFIG_TCP_CONG_BIC=y | |||
281 | # CONFIG_ATALK is not set | 316 | # CONFIG_ATALK is not set |
282 | # CONFIG_X25 is not set | 317 | # CONFIG_X25 is not set |
283 | # CONFIG_LAPB is not set | 318 | # CONFIG_LAPB is not set |
284 | # CONFIG_NET_DIVERT is not set | ||
285 | # CONFIG_ECONET is not set | 319 | # CONFIG_ECONET is not set |
286 | # CONFIG_WAN_ROUTER is not set | 320 | # CONFIG_WAN_ROUTER is not set |
287 | 321 | ||
@@ -308,7 +342,6 @@ CONFIG_TCP_CONG_BIC=y | |||
308 | # | 342 | # |
309 | CONFIG_STANDALONE=y | 343 | CONFIG_STANDALONE=y |
310 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | 344 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set |
311 | # CONFIG_FW_LOADER is not set | ||
312 | # CONFIG_DEBUG_DRIVER is not set | 345 | # CONFIG_DEBUG_DRIVER is not set |
313 | # CONFIG_SYS_HYPERVISOR is not set | 346 | # CONFIG_SYS_HYPERVISOR is not set |
314 | 347 | ||
@@ -340,6 +373,7 @@ CONFIG_MTD_BLOCK=y | |||
340 | # CONFIG_NFTL is not set | 373 | # CONFIG_NFTL is not set |
341 | # CONFIG_INFTL is not set | 374 | # CONFIG_INFTL is not set |
342 | # CONFIG_RFD_FTL is not set | 375 | # CONFIG_RFD_FTL is not set |
376 | # CONFIG_SSFDC is not set | ||
343 | 377 | ||
344 | # | 378 | # |
345 | # RAM/ROM/Flash chip drivers | 379 | # RAM/ROM/Flash chip drivers |
@@ -422,11 +456,12 @@ CONFIG_MTD_IXP2000=y | |||
422 | # CONFIG_BLK_DEV_COW_COMMON is not set | 456 | # CONFIG_BLK_DEV_COW_COMMON is not set |
423 | CONFIG_BLK_DEV_LOOP=y | 457 | CONFIG_BLK_DEV_LOOP=y |
424 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 458 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
425 | # CONFIG_BLK_DEV_NBD is not set | 459 | CONFIG_BLK_DEV_NBD=y |
426 | # CONFIG_BLK_DEV_SX8 is not set | 460 | # CONFIG_BLK_DEV_SX8 is not set |
427 | CONFIG_BLK_DEV_RAM=y | 461 | CONFIG_BLK_DEV_RAM=y |
428 | CONFIG_BLK_DEV_RAM_COUNT=16 | 462 | CONFIG_BLK_DEV_RAM_COUNT=16 |
429 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 463 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
464 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
430 | CONFIG_BLK_DEV_INITRD=y | 465 | CONFIG_BLK_DEV_INITRD=y |
431 | # CONFIG_CDROM_PKTCDVD is not set | 466 | # CONFIG_CDROM_PKTCDVD is not set |
432 | # CONFIG_ATA_OVER_ETH is not set | 467 | # CONFIG_ATA_OVER_ETH is not set |
@@ -436,6 +471,12 @@ CONFIG_BLK_DEV_INITRD=y | |||
436 | # | 471 | # |
437 | # CONFIG_RAID_ATTRS is not set | 472 | # CONFIG_RAID_ATTRS is not set |
438 | # CONFIG_SCSI is not set | 473 | # CONFIG_SCSI is not set |
474 | # CONFIG_SCSI_NETLINK is not set | ||
475 | |||
476 | # | ||
477 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
478 | # | ||
479 | # CONFIG_ATA is not set | ||
439 | 480 | ||
440 | # | 481 | # |
441 | # Multi-device support (RAID and LVM) | 482 | # Multi-device support (RAID and LVM) |
@@ -501,8 +542,8 @@ CONFIG_NET_PCI=y | |||
501 | # CONFIG_FORCEDETH is not set | 542 | # CONFIG_FORCEDETH is not set |
502 | CONFIG_CS89x0=y | 543 | CONFIG_CS89x0=y |
503 | # CONFIG_DGRS is not set | 544 | # CONFIG_DGRS is not set |
504 | CONFIG_EEPRO100=y | 545 | # CONFIG_EEPRO100 is not set |
505 | # CONFIG_E100 is not set | 546 | CONFIG_E100=y |
506 | # CONFIG_FEALNX is not set | 547 | # CONFIG_FEALNX is not set |
507 | # CONFIG_NATSEMI is not set | 548 | # CONFIG_NATSEMI is not set |
508 | # CONFIG_NE2K_PCI is not set | 549 | # CONFIG_NE2K_PCI is not set |
@@ -532,6 +573,7 @@ CONFIG_ENP2611_MSF_NET=y | |||
532 | # CONFIG_VIA_VELOCITY is not set | 573 | # CONFIG_VIA_VELOCITY is not set |
533 | # CONFIG_TIGON3 is not set | 574 | # CONFIG_TIGON3 is not set |
534 | # CONFIG_BNX2 is not set | 575 | # CONFIG_BNX2 is not set |
576 | # CONFIG_QLA3XXX is not set | ||
535 | 577 | ||
536 | # | 578 | # |
537 | # Ethernet (10000 Mbit) | 579 | # Ethernet (10000 Mbit) |
@@ -540,6 +582,7 @@ CONFIG_ENP2611_MSF_NET=y | |||
540 | # CONFIG_IXGB is not set | 582 | # CONFIG_IXGB is not set |
541 | # CONFIG_S2IO is not set | 583 | # CONFIG_S2IO is not set |
542 | # CONFIG_MYRI10GE is not set | 584 | # CONFIG_MYRI10GE is not set |
585 | # CONFIG_NETXEN_NIC is not set | ||
543 | 586 | ||
544 | # | 587 | # |
545 | # Token Ring devices | 588 | # Token Ring devices |
@@ -555,7 +598,6 @@ CONFIG_ENP2611_MSF_NET=y | |||
555 | # Wan interfaces | 598 | # Wan interfaces |
556 | # | 599 | # |
557 | CONFIG_WAN=y | 600 | CONFIG_WAN=y |
558 | # CONFIG_DSCC4 is not set | ||
559 | # CONFIG_LANMEDIA is not set | 601 | # CONFIG_LANMEDIA is not set |
560 | CONFIG_HDLC=y | 602 | CONFIG_HDLC=y |
561 | CONFIG_HDLC_RAW=y | 603 | CONFIG_HDLC_RAW=y |
@@ -571,6 +613,7 @@ CONFIG_HDLC_PPP=y | |||
571 | # CONFIG_WANXL is not set | 613 | # CONFIG_WANXL is not set |
572 | # CONFIG_PC300 is not set | 614 | # CONFIG_PC300 is not set |
573 | # CONFIG_FARSYNC is not set | 615 | # CONFIG_FARSYNC is not set |
616 | # CONFIG_DSCC4 is not set | ||
574 | CONFIG_DLCI=y | 617 | CONFIG_DLCI=y |
575 | CONFIG_DLCI_COUNT=24 | 618 | CONFIG_DLCI_COUNT=24 |
576 | CONFIG_DLCI_MAX=8 | 619 | CONFIG_DLCI_MAX=8 |
@@ -592,6 +635,7 @@ CONFIG_DLCI_MAX=8 | |||
592 | # Input device support | 635 | # Input device support |
593 | # | 636 | # |
594 | CONFIG_INPUT=y | 637 | CONFIG_INPUT=y |
638 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
595 | 639 | ||
596 | # | 640 | # |
597 | # Userland interfaces | 641 | # Userland interfaces |
@@ -673,10 +717,6 @@ CONFIG_IXP2000_WATCHDOG=y | |||
673 | # CONFIG_DTLK is not set | 717 | # CONFIG_DTLK is not set |
674 | # CONFIG_R3964 is not set | 718 | # CONFIG_R3964 is not set |
675 | # CONFIG_APPLICOM is not set | 719 | # CONFIG_APPLICOM is not set |
676 | |||
677 | # | ||
678 | # Ftape, the floppy tape device driver | ||
679 | # | ||
680 | # CONFIG_DRM is not set | 720 | # CONFIG_DRM is not set |
681 | # CONFIG_RAW_DRIVER is not set | 721 | # CONFIG_RAW_DRIVER is not set |
682 | 722 | ||
@@ -684,7 +724,6 @@ CONFIG_IXP2000_WATCHDOG=y | |||
684 | # TPM devices | 724 | # TPM devices |
685 | # | 725 | # |
686 | # CONFIG_TCG_TPM is not set | 726 | # CONFIG_TCG_TPM is not set |
687 | # CONFIG_TELCLOCK is not set | ||
688 | 727 | ||
689 | # | 728 | # |
690 | # I2C support | 729 | # I2C support |
@@ -749,6 +788,7 @@ CONFIG_SENSORS_EEPROM=y | |||
749 | # | 788 | # |
750 | # Dallas's 1-wire bus | 789 | # Dallas's 1-wire bus |
751 | # | 790 | # |
791 | # CONFIG_W1 is not set | ||
752 | 792 | ||
753 | # | 793 | # |
754 | # Hardware Monitoring support | 794 | # Hardware Monitoring support |
@@ -782,15 +822,18 @@ CONFIG_HWMON=y | |||
782 | # CONFIG_SENSORS_LM92 is not set | 822 | # CONFIG_SENSORS_LM92 is not set |
783 | # CONFIG_SENSORS_MAX1619 is not set | 823 | # CONFIG_SENSORS_MAX1619 is not set |
784 | # CONFIG_SENSORS_PC87360 is not set | 824 | # CONFIG_SENSORS_PC87360 is not set |
825 | # CONFIG_SENSORS_PC87427 is not set | ||
785 | # CONFIG_SENSORS_SIS5595 is not set | 826 | # CONFIG_SENSORS_SIS5595 is not set |
786 | # CONFIG_SENSORS_SMSC47M1 is not set | 827 | # CONFIG_SENSORS_SMSC47M1 is not set |
787 | # CONFIG_SENSORS_SMSC47M192 is not set | 828 | # CONFIG_SENSORS_SMSC47M192 is not set |
788 | # CONFIG_SENSORS_SMSC47B397 is not set | 829 | # CONFIG_SENSORS_SMSC47B397 is not set |
789 | # CONFIG_SENSORS_VIA686A is not set | 830 | # CONFIG_SENSORS_VIA686A is not set |
831 | # CONFIG_SENSORS_VT1211 is not set | ||
790 | # CONFIG_SENSORS_VT8231 is not set | 832 | # CONFIG_SENSORS_VT8231 is not set |
791 | # CONFIG_SENSORS_W83781D is not set | 833 | # CONFIG_SENSORS_W83781D is not set |
792 | # CONFIG_SENSORS_W83791D is not set | 834 | # CONFIG_SENSORS_W83791D is not set |
793 | # CONFIG_SENSORS_W83792D is not set | 835 | # CONFIG_SENSORS_W83792D is not set |
836 | # CONFIG_SENSORS_W83793 is not set | ||
794 | # CONFIG_SENSORS_W83L785TS is not set | 837 | # CONFIG_SENSORS_W83L785TS is not set |
795 | # CONFIG_SENSORS_W83627HF is not set | 838 | # CONFIG_SENSORS_W83627HF is not set |
796 | # CONFIG_SENSORS_W83627EHF is not set | 839 | # CONFIG_SENSORS_W83627EHF is not set |
@@ -799,6 +842,8 @@ CONFIG_HWMON=y | |||
799 | # | 842 | # |
800 | # Misc devices | 843 | # Misc devices |
801 | # | 844 | # |
845 | # CONFIG_SGI_IOC4 is not set | ||
846 | # CONFIG_TIFM_CORE is not set | ||
802 | 847 | ||
803 | # | 848 | # |
804 | # LED devices | 849 | # LED devices |
@@ -817,7 +862,6 @@ CONFIG_HWMON=y | |||
817 | # Multimedia devices | 862 | # Multimedia devices |
818 | # | 863 | # |
819 | # CONFIG_VIDEO_DEV is not set | 864 | # CONFIG_VIDEO_DEV is not set |
820 | CONFIG_VIDEO_V4L2=y | ||
821 | 865 | ||
822 | # | 866 | # |
823 | # Digital Video Broadcasting Devices | 867 | # Digital Video Broadcasting Devices |
@@ -829,6 +873,7 @@ CONFIG_VIDEO_V4L2=y | |||
829 | # | 873 | # |
830 | # CONFIG_FIRMWARE_EDID is not set | 874 | # CONFIG_FIRMWARE_EDID is not set |
831 | # CONFIG_FB is not set | 875 | # CONFIG_FB is not set |
876 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
832 | 877 | ||
833 | # | 878 | # |
834 | # Sound | 879 | # Sound |
@@ -836,6 +881,11 @@ CONFIG_VIDEO_V4L2=y | |||
836 | # CONFIG_SOUND is not set | 881 | # CONFIG_SOUND is not set |
837 | 882 | ||
838 | # | 883 | # |
884 | # HID Devices | ||
885 | # | ||
886 | CONFIG_HID=y | ||
887 | |||
888 | # | ||
839 | # USB support | 889 | # USB support |
840 | # | 890 | # |
841 | CONFIG_USB_ARCH_HAS_HCD=y | 891 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -875,6 +925,7 @@ CONFIG_EXT3_FS=y | |||
875 | CONFIG_EXT3_FS_XATTR=y | 925 | CONFIG_EXT3_FS_XATTR=y |
876 | CONFIG_EXT3_FS_POSIX_ACL=y | 926 | CONFIG_EXT3_FS_POSIX_ACL=y |
877 | # CONFIG_EXT3_FS_SECURITY is not set | 927 | # CONFIG_EXT3_FS_SECURITY is not set |
928 | # CONFIG_EXT4DEV_FS is not set | ||
878 | CONFIG_JBD=y | 929 | CONFIG_JBD=y |
879 | # CONFIG_JBD_DEBUG is not set | 930 | # CONFIG_JBD_DEBUG is not set |
880 | CONFIG_FS_MBCACHE=y | 931 | CONFIG_FS_MBCACHE=y |
@@ -882,6 +933,7 @@ CONFIG_FS_MBCACHE=y | |||
882 | # CONFIG_JFS_FS is not set | 933 | # CONFIG_JFS_FS is not set |
883 | CONFIG_FS_POSIX_ACL=y | 934 | CONFIG_FS_POSIX_ACL=y |
884 | # CONFIG_XFS_FS is not set | 935 | # CONFIG_XFS_FS is not set |
936 | # CONFIG_GFS2_FS is not set | ||
885 | # CONFIG_OCFS2_FS is not set | 937 | # CONFIG_OCFS2_FS is not set |
886 | # CONFIG_MINIX_FS is not set | 938 | # CONFIG_MINIX_FS is not set |
887 | # CONFIG_ROMFS_FS is not set | 939 | # CONFIG_ROMFS_FS is not set |
@@ -910,8 +962,10 @@ CONFIG_DNOTIFY=y | |||
910 | # Pseudo filesystems | 962 | # Pseudo filesystems |
911 | # | 963 | # |
912 | CONFIG_PROC_FS=y | 964 | CONFIG_PROC_FS=y |
965 | CONFIG_PROC_SYSCTL=y | ||
913 | CONFIG_SYSFS=y | 966 | CONFIG_SYSFS=y |
914 | CONFIG_TMPFS=y | 967 | CONFIG_TMPFS=y |
968 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
915 | # CONFIG_HUGETLB_PAGE is not set | 969 | # CONFIG_HUGETLB_PAGE is not set |
916 | CONFIG_RAMFS=y | 970 | CONFIG_RAMFS=y |
917 | # CONFIG_CONFIGFS_FS is not set | 971 | # CONFIG_CONFIGFS_FS is not set |
@@ -961,7 +1015,6 @@ CONFIG_SUNRPC=y | |||
961 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1015 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
962 | # CONFIG_SMB_FS is not set | 1016 | # CONFIG_SMB_FS is not set |
963 | # CONFIG_CIFS is not set | 1017 | # CONFIG_CIFS is not set |
964 | # CONFIG_CIFS_DEBUG2 is not set | ||
965 | # CONFIG_NCP_FS is not set | 1018 | # CONFIG_NCP_FS is not set |
966 | # CONFIG_CODA_FS is not set | 1019 | # CONFIG_CODA_FS is not set |
967 | # CONFIG_AFS_FS is not set | 1020 | # CONFIG_AFS_FS is not set |
@@ -994,6 +1047,11 @@ CONFIG_MSDOS_PARTITION=y | |||
994 | # CONFIG_NLS is not set | 1047 | # CONFIG_NLS is not set |
995 | 1048 | ||
996 | # | 1049 | # |
1050 | # Distributed Lock Manager | ||
1051 | # | ||
1052 | # CONFIG_DLM is not set | ||
1053 | |||
1054 | # | ||
997 | # Profiling support | 1055 | # Profiling support |
998 | # | 1056 | # |
999 | # CONFIG_PROFILING is not set | 1057 | # CONFIG_PROFILING is not set |
@@ -1002,8 +1060,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1002 | # Kernel hacking | 1060 | # Kernel hacking |
1003 | # | 1061 | # |
1004 | # CONFIG_PRINTK_TIME is not set | 1062 | # CONFIG_PRINTK_TIME is not set |
1063 | CONFIG_ENABLE_MUST_CHECK=y | ||
1005 | CONFIG_MAGIC_SYSRQ=y | 1064 | CONFIG_MAGIC_SYSRQ=y |
1006 | # CONFIG_UNUSED_SYMBOLS is not set | 1065 | # CONFIG_UNUSED_SYMBOLS is not set |
1066 | # CONFIG_DEBUG_FS is not set | ||
1067 | # CONFIG_HEADERS_CHECK is not set | ||
1007 | CONFIG_DEBUG_KERNEL=y | 1068 | CONFIG_DEBUG_KERNEL=y |
1008 | CONFIG_LOG_BUF_SHIFT=14 | 1069 | CONFIG_LOG_BUF_SHIFT=14 |
1009 | CONFIG_DETECT_SOFTLOCKUP=y | 1070 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -1019,14 +1080,12 @@ CONFIG_DEBUG_MUTEXES=y | |||
1019 | # CONFIG_DEBUG_KOBJECT is not set | 1080 | # CONFIG_DEBUG_KOBJECT is not set |
1020 | CONFIG_DEBUG_BUGVERBOSE=y | 1081 | CONFIG_DEBUG_BUGVERBOSE=y |
1021 | # CONFIG_DEBUG_INFO is not set | 1082 | # CONFIG_DEBUG_INFO is not set |
1022 | # CONFIG_DEBUG_FS is not set | ||
1023 | # CONFIG_DEBUG_VM is not set | 1083 | # CONFIG_DEBUG_VM is not set |
1084 | # CONFIG_DEBUG_LIST is not set | ||
1024 | CONFIG_FRAME_POINTER=y | 1085 | CONFIG_FRAME_POINTER=y |
1025 | # CONFIG_UNWIND_INFO is not set | ||
1026 | CONFIG_FORCED_INLINING=y | 1086 | CONFIG_FORCED_INLINING=y |
1027 | # CONFIG_RCU_TORTURE_TEST is not set | 1087 | # CONFIG_RCU_TORTURE_TEST is not set |
1028 | CONFIG_DEBUG_USER=y | 1088 | CONFIG_DEBUG_USER=y |
1029 | # CONFIG_DEBUG_WAITQ is not set | ||
1030 | CONFIG_DEBUG_ERRORS=y | 1089 | CONFIG_DEBUG_ERRORS=y |
1031 | CONFIG_DEBUG_LL=y | 1090 | CONFIG_DEBUG_LL=y |
1032 | # CONFIG_DEBUG_ICEDCC is not set | 1091 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -1043,12 +1102,9 @@ CONFIG_DEBUG_LL=y | |||
1043 | # CONFIG_CRYPTO is not set | 1102 | # CONFIG_CRYPTO is not set |
1044 | 1103 | ||
1045 | # | 1104 | # |
1046 | # Hardware crypto devices | ||
1047 | # | ||
1048 | |||
1049 | # | ||
1050 | # Library routines | 1105 | # Library routines |
1051 | # | 1106 | # |
1107 | CONFIG_BITREVERSE=y | ||
1052 | # CONFIG_CRC_CCITT is not set | 1108 | # CONFIG_CRC_CCITT is not set |
1053 | # CONFIG_CRC16 is not set | 1109 | # CONFIG_CRC16 is not set |
1054 | CONFIG_CRC32=y | 1110 | CONFIG_CRC32=y |
@@ -1056,3 +1112,4 @@ CONFIG_CRC32=y | |||
1056 | CONFIG_ZLIB_INFLATE=y | 1112 | CONFIG_ZLIB_INFLATE=y |
1057 | CONFIG_ZLIB_DEFLATE=y | 1113 | CONFIG_ZLIB_DEFLATE=y |
1058 | CONFIG_PLIST=y | 1114 | CONFIG_PLIST=y |
1115 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/ixp23xx_defconfig b/arch/arm/configs/ixp23xx_defconfig index 7b18997083ce..27cf022dd807 100644 --- a/arch/arm/configs/ixp23xx_defconfig +++ b/arch/arm/configs/ixp23xx_defconfig | |||
@@ -1,14 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc1 | 3 | # Linux kernel version: 2.6.20-rc1 |
4 | # Sun Jul 9 14:13:35 2006 | 4 | # Sat Dec 16 06:05:45 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
9 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
10 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
11 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
12 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
13 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
14 | CONFIG_VECTORS_BASE=0xffff0000 | 18 | CONFIG_VECTORS_BASE=0xffff0000 |
@@ -28,17 +32,22 @@ CONFIG_LOCALVERSION="" | |||
28 | CONFIG_LOCALVERSION_AUTO=y | 32 | CONFIG_LOCALVERSION_AUTO=y |
29 | CONFIG_SWAP=y | 33 | CONFIG_SWAP=y |
30 | CONFIG_SYSVIPC=y | 34 | CONFIG_SYSVIPC=y |
35 | # CONFIG_IPC_NS is not set | ||
31 | # CONFIG_POSIX_MQUEUE is not set | 36 | # CONFIG_POSIX_MQUEUE is not set |
32 | CONFIG_BSD_PROCESS_ACCT=y | 37 | CONFIG_BSD_PROCESS_ACCT=y |
33 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 38 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
34 | CONFIG_SYSCTL=y | 39 | # CONFIG_TASKSTATS is not set |
40 | # CONFIG_UTS_NS is not set | ||
35 | # CONFIG_AUDIT is not set | 41 | # CONFIG_AUDIT is not set |
36 | # CONFIG_IKCONFIG is not set | 42 | # CONFIG_IKCONFIG is not set |
43 | CONFIG_SYSFS_DEPRECATED=y | ||
37 | # CONFIG_RELAY is not set | 44 | # CONFIG_RELAY is not set |
38 | CONFIG_INITRAMFS_SOURCE="" | 45 | CONFIG_INITRAMFS_SOURCE="" |
39 | CONFIG_UID16=y | ||
40 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 46 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
47 | CONFIG_SYSCTL=y | ||
41 | CONFIG_EMBEDDED=y | 48 | CONFIG_EMBEDDED=y |
49 | CONFIG_UID16=y | ||
50 | CONFIG_SYSCTL_SYSCALL=y | ||
42 | CONFIG_KALLSYMS=y | 51 | CONFIG_KALLSYMS=y |
43 | # CONFIG_KALLSYMS_ALL is not set | 52 | # CONFIG_KALLSYMS_ALL is not set |
44 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -47,12 +56,12 @@ CONFIG_PRINTK=y | |||
47 | CONFIG_BUG=y | 56 | CONFIG_BUG=y |
48 | CONFIG_ELF_CORE=y | 57 | CONFIG_ELF_CORE=y |
49 | CONFIG_BASE_FULL=y | 58 | CONFIG_BASE_FULL=y |
50 | CONFIG_RT_MUTEXES=y | ||
51 | CONFIG_FUTEX=y | 59 | CONFIG_FUTEX=y |
52 | CONFIG_EPOLL=y | 60 | CONFIG_EPOLL=y |
53 | CONFIG_SHMEM=y | 61 | CONFIG_SHMEM=y |
54 | CONFIG_SLAB=y | 62 | CONFIG_SLAB=y |
55 | CONFIG_VM_EVENT_COUNTERS=y | 63 | CONFIG_VM_EVENT_COUNTERS=y |
64 | CONFIG_RT_MUTEXES=y | ||
56 | # CONFIG_TINY_SHMEM is not set | 65 | # CONFIG_TINY_SHMEM is not set |
57 | CONFIG_BASE_SMALL=0 | 66 | CONFIG_BASE_SMALL=0 |
58 | # CONFIG_SLOB is not set | 67 | # CONFIG_SLOB is not set |
@@ -70,7 +79,10 @@ CONFIG_KMOD=y | |||
70 | # | 79 | # |
71 | # Block layer | 80 | # Block layer |
72 | # | 81 | # |
82 | CONFIG_BLOCK=y | ||
83 | # CONFIG_LBD is not set | ||
73 | # CONFIG_BLK_DEV_IO_TRACE is not set | 84 | # CONFIG_BLK_DEV_IO_TRACE is not set |
85 | # CONFIG_LSF is not set | ||
74 | 86 | ||
75 | # | 87 | # |
76 | # IO Schedulers | 88 | # IO Schedulers |
@@ -102,7 +114,9 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
102 | # CONFIG_ARCH_NETX is not set | 114 | # CONFIG_ARCH_NETX is not set |
103 | # CONFIG_ARCH_H720X is not set | 115 | # CONFIG_ARCH_H720X is not set |
104 | # CONFIG_ARCH_IMX is not set | 116 | # CONFIG_ARCH_IMX is not set |
105 | # CONFIG_ARCH_IOP3XX is not set | 117 | # CONFIG_ARCH_IOP32X is not set |
118 | # CONFIG_ARCH_IOP33X is not set | ||
119 | # CONFIG_ARCH_IOP13XX is not set | ||
106 | # CONFIG_ARCH_IXP4XX is not set | 120 | # CONFIG_ARCH_IXP4XX is not set |
107 | # CONFIG_ARCH_IXP2000 is not set | 121 | # CONFIG_ARCH_IXP2000 is not set |
108 | CONFIG_ARCH_IXP23XX=y | 122 | CONFIG_ARCH_IXP23XX=y |
@@ -137,6 +151,8 @@ CONFIG_CPU_32v5=y | |||
137 | CONFIG_CPU_ABRT_EV5T=y | 151 | CONFIG_CPU_ABRT_EV5T=y |
138 | CONFIG_CPU_CACHE_VIVT=y | 152 | CONFIG_CPU_CACHE_VIVT=y |
139 | CONFIG_CPU_TLB_V4WBI=y | 153 | CONFIG_CPU_TLB_V4WBI=y |
154 | CONFIG_CPU_CP15=y | ||
155 | CONFIG_CPU_CP15_MMU=y | ||
140 | CONFIG_IO_36=y | 156 | CONFIG_IO_36=y |
141 | 157 | ||
142 | # | 158 | # |
@@ -144,11 +160,15 @@ CONFIG_IO_36=y | |||
144 | # | 160 | # |
145 | # CONFIG_ARM_THUMB is not set | 161 | # CONFIG_ARM_THUMB is not set |
146 | CONFIG_CPU_BIG_ENDIAN=y | 162 | CONFIG_CPU_BIG_ENDIAN=y |
163 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
164 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
165 | # CONFIG_IWMMXT is not set | ||
147 | 166 | ||
148 | # | 167 | # |
149 | # Bus support | 168 | # Bus support |
150 | # | 169 | # |
151 | CONFIG_PCI=y | 170 | CONFIG_PCI=y |
171 | # CONFIG_PCI_MULTITHREAD_PROBE is not set | ||
152 | # CONFIG_PCI_DEBUG is not set | 172 | # CONFIG_PCI_DEBUG is not set |
153 | 173 | ||
154 | # | 174 | # |
@@ -222,6 +242,7 @@ CONFIG_PACKET_MMAP=y | |||
222 | CONFIG_UNIX=y | 242 | CONFIG_UNIX=y |
223 | CONFIG_XFRM=y | 243 | CONFIG_XFRM=y |
224 | # CONFIG_XFRM_USER is not set | 244 | # CONFIG_XFRM_USER is not set |
245 | # CONFIG_XFRM_SUB_POLICY is not set | ||
225 | # CONFIG_NET_KEY is not set | 246 | # CONFIG_NET_KEY is not set |
226 | CONFIG_INET=y | 247 | CONFIG_INET=y |
227 | # CONFIG_IP_MULTICAST is not set | 248 | # CONFIG_IP_MULTICAST is not set |
@@ -242,13 +263,29 @@ CONFIG_SYN_COOKIES=y | |||
242 | # CONFIG_INET_TUNNEL is not set | 263 | # CONFIG_INET_TUNNEL is not set |
243 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 264 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
244 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 265 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
266 | CONFIG_INET_XFRM_MODE_BEET=y | ||
245 | CONFIG_INET_DIAG=y | 267 | CONFIG_INET_DIAG=y |
246 | CONFIG_INET_TCP_DIAG=y | 268 | CONFIG_INET_TCP_DIAG=y |
247 | # CONFIG_TCP_CONG_ADVANCED is not set | 269 | # CONFIG_TCP_CONG_ADVANCED is not set |
248 | CONFIG_TCP_CONG_BIC=y | 270 | CONFIG_TCP_CONG_CUBIC=y |
249 | # CONFIG_IPV6 is not set | 271 | CONFIG_DEFAULT_TCP_CONG="cubic" |
272 | # CONFIG_TCP_MD5SIG is not set | ||
273 | CONFIG_IPV6=y | ||
274 | # CONFIG_IPV6_PRIVACY is not set | ||
275 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
276 | # CONFIG_INET6_AH is not set | ||
277 | # CONFIG_INET6_ESP is not set | ||
278 | # CONFIG_INET6_IPCOMP is not set | ||
279 | # CONFIG_IPV6_MIP6 is not set | ||
250 | # CONFIG_INET6_XFRM_TUNNEL is not set | 280 | # CONFIG_INET6_XFRM_TUNNEL is not set |
251 | # CONFIG_INET6_TUNNEL is not set | 281 | # CONFIG_INET6_TUNNEL is not set |
282 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
283 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
284 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
285 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
286 | # CONFIG_IPV6_SIT is not set | ||
287 | # CONFIG_IPV6_TUNNEL is not set | ||
288 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
252 | # CONFIG_NETWORK_SECMARK is not set | 289 | # CONFIG_NETWORK_SECMARK is not set |
253 | # CONFIG_NETFILTER is not set | 290 | # CONFIG_NETFILTER is not set |
254 | 291 | ||
@@ -275,7 +312,6 @@ CONFIG_TCP_CONG_BIC=y | |||
275 | # CONFIG_ATALK is not set | 312 | # CONFIG_ATALK is not set |
276 | # CONFIG_X25 is not set | 313 | # CONFIG_X25 is not set |
277 | # CONFIG_LAPB is not set | 314 | # CONFIG_LAPB is not set |
278 | # CONFIG_NET_DIVERT is not set | ||
279 | # CONFIG_ECONET is not set | 315 | # CONFIG_ECONET is not set |
280 | # CONFIG_WAN_ROUTER is not set | 316 | # CONFIG_WAN_ROUTER is not set |
281 | 317 | ||
@@ -334,6 +370,7 @@ CONFIG_MTD_BLOCK=y | |||
334 | # CONFIG_NFTL is not set | 370 | # CONFIG_NFTL is not set |
335 | # CONFIG_INFTL is not set | 371 | # CONFIG_INFTL is not set |
336 | # CONFIG_RFD_FTL is not set | 372 | # CONFIG_RFD_FTL is not set |
373 | # CONFIG_SSFDC is not set | ||
337 | 374 | ||
338 | # | 375 | # |
339 | # RAM/ROM/Flash chip drivers | 376 | # RAM/ROM/Flash chip drivers |
@@ -418,12 +455,13 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | |||
418 | # CONFIG_BLK_DEV_COW_COMMON is not set | 455 | # CONFIG_BLK_DEV_COW_COMMON is not set |
419 | CONFIG_BLK_DEV_LOOP=y | 456 | CONFIG_BLK_DEV_LOOP=y |
420 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 457 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
421 | # CONFIG_BLK_DEV_NBD is not set | 458 | CONFIG_BLK_DEV_NBD=y |
422 | # CONFIG_BLK_DEV_SX8 is not set | 459 | # CONFIG_BLK_DEV_SX8 is not set |
423 | # CONFIG_BLK_DEV_UB is not set | 460 | # CONFIG_BLK_DEV_UB is not set |
424 | CONFIG_BLK_DEV_RAM=y | 461 | CONFIG_BLK_DEV_RAM=y |
425 | CONFIG_BLK_DEV_RAM_COUNT=16 | 462 | CONFIG_BLK_DEV_RAM_COUNT=16 |
426 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 463 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
464 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
427 | CONFIG_BLK_DEV_INITRD=y | 465 | CONFIG_BLK_DEV_INITRD=y |
428 | # CONFIG_CDROM_PKTCDVD is not set | 466 | # CONFIG_CDROM_PKTCDVD is not set |
429 | # CONFIG_ATA_OVER_ETH is not set | 467 | # CONFIG_ATA_OVER_ETH is not set |
@@ -432,6 +470,7 @@ CONFIG_BLK_DEV_INITRD=y | |||
432 | # ATA/ATAPI/MFM/RLL support | 470 | # ATA/ATAPI/MFM/RLL support |
433 | # | 471 | # |
434 | CONFIG_IDE=y | 472 | CONFIG_IDE=y |
473 | CONFIG_IDE_MAX_HWIFS=4 | ||
435 | CONFIG_BLK_DEV_IDE=y | 474 | CONFIG_BLK_DEV_IDE=y |
436 | 475 | ||
437 | # | 476 | # |
@@ -455,7 +494,6 @@ CONFIG_BLK_DEV_IDEPCI=y | |||
455 | # CONFIG_BLK_DEV_OFFBOARD is not set | 494 | # CONFIG_BLK_DEV_OFFBOARD is not set |
456 | # CONFIG_BLK_DEV_GENERIC is not set | 495 | # CONFIG_BLK_DEV_GENERIC is not set |
457 | # CONFIG_BLK_DEV_OPTI621 is not set | 496 | # CONFIG_BLK_DEV_OPTI621 is not set |
458 | # CONFIG_BLK_DEV_SL82C105 is not set | ||
459 | CONFIG_BLK_DEV_IDEDMA_PCI=y | 497 | CONFIG_BLK_DEV_IDEDMA_PCI=y |
460 | # CONFIG_BLK_DEV_IDEDMA_FORCED is not set | 498 | # CONFIG_BLK_DEV_IDEDMA_FORCED is not set |
461 | # CONFIG_IDEDMA_PCI_AUTO is not set | 499 | # CONFIG_IDEDMA_PCI_AUTO is not set |
@@ -469,6 +507,7 @@ CONFIG_BLK_DEV_IDEDMA_PCI=y | |||
469 | # CONFIG_BLK_DEV_CS5530 is not set | 507 | # CONFIG_BLK_DEV_CS5530 is not set |
470 | # CONFIG_BLK_DEV_HPT34X is not set | 508 | # CONFIG_BLK_DEV_HPT34X is not set |
471 | # CONFIG_BLK_DEV_HPT366 is not set | 509 | # CONFIG_BLK_DEV_HPT366 is not set |
510 | # CONFIG_BLK_DEV_JMICRON is not set | ||
472 | # CONFIG_BLK_DEV_SC1200 is not set | 511 | # CONFIG_BLK_DEV_SC1200 is not set |
473 | # CONFIG_BLK_DEV_PIIX is not set | 512 | # CONFIG_BLK_DEV_PIIX is not set |
474 | # CONFIG_BLK_DEV_IT821X is not set | 513 | # CONFIG_BLK_DEV_IT821X is not set |
@@ -477,6 +516,7 @@ CONFIG_BLK_DEV_IDEDMA_PCI=y | |||
477 | # CONFIG_BLK_DEV_PDC202XX_NEW is not set | 516 | # CONFIG_BLK_DEV_PDC202XX_NEW is not set |
478 | # CONFIG_BLK_DEV_SVWKS is not set | 517 | # CONFIG_BLK_DEV_SVWKS is not set |
479 | CONFIG_BLK_DEV_SIIMAGE=y | 518 | CONFIG_BLK_DEV_SIIMAGE=y |
519 | # CONFIG_BLK_DEV_SL82C105 is not set | ||
480 | # CONFIG_BLK_DEV_SLC90E66 is not set | 520 | # CONFIG_BLK_DEV_SLC90E66 is not set |
481 | # CONFIG_BLK_DEV_TRM290 is not set | 521 | # CONFIG_BLK_DEV_TRM290 is not set |
482 | # CONFIG_BLK_DEV_VIA82CXXX is not set | 522 | # CONFIG_BLK_DEV_VIA82CXXX is not set |
@@ -491,6 +531,8 @@ CONFIG_BLK_DEV_IDEDMA=y | |||
491 | # | 531 | # |
492 | # CONFIG_RAID_ATTRS is not set | 532 | # CONFIG_RAID_ATTRS is not set |
493 | CONFIG_SCSI=y | 533 | CONFIG_SCSI=y |
534 | # CONFIG_SCSI_TGT is not set | ||
535 | # CONFIG_SCSI_NETLINK is not set | ||
494 | CONFIG_SCSI_PROC_FS=y | 536 | CONFIG_SCSI_PROC_FS=y |
495 | 537 | ||
496 | # | 538 | # |
@@ -509,14 +551,16 @@ CONFIG_BLK_DEV_SD=y | |||
509 | # CONFIG_SCSI_MULTI_LUN is not set | 551 | # CONFIG_SCSI_MULTI_LUN is not set |
510 | # CONFIG_SCSI_CONSTANTS is not set | 552 | # CONFIG_SCSI_CONSTANTS is not set |
511 | # CONFIG_SCSI_LOGGING is not set | 553 | # CONFIG_SCSI_LOGGING is not set |
554 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
512 | 555 | ||
513 | # | 556 | # |
514 | # SCSI Transport Attributes | 557 | # SCSI Transports |
515 | # | 558 | # |
516 | # CONFIG_SCSI_SPI_ATTRS is not set | 559 | # CONFIG_SCSI_SPI_ATTRS is not set |
517 | # CONFIG_SCSI_FC_ATTRS is not set | 560 | # CONFIG_SCSI_FC_ATTRS is not set |
518 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 561 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
519 | # CONFIG_SCSI_SAS_ATTRS is not set | 562 | # CONFIG_SCSI_SAS_ATTRS is not set |
563 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
520 | 564 | ||
521 | # | 565 | # |
522 | # SCSI low-level drivers | 566 | # SCSI low-level drivers |
@@ -529,26 +573,34 @@ CONFIG_BLK_DEV_SD=y | |||
529 | # CONFIG_SCSI_AIC7XXX is not set | 573 | # CONFIG_SCSI_AIC7XXX is not set |
530 | # CONFIG_SCSI_AIC7XXX_OLD is not set | 574 | # CONFIG_SCSI_AIC7XXX_OLD is not set |
531 | # CONFIG_SCSI_AIC79XX is not set | 575 | # CONFIG_SCSI_AIC79XX is not set |
576 | # CONFIG_SCSI_AIC94XX is not set | ||
532 | # CONFIG_SCSI_DPT_I2O is not set | 577 | # CONFIG_SCSI_DPT_I2O is not set |
578 | # CONFIG_SCSI_ARCMSR is not set | ||
533 | # CONFIG_MEGARAID_NEWGEN is not set | 579 | # CONFIG_MEGARAID_NEWGEN is not set |
534 | # CONFIG_MEGARAID_LEGACY is not set | 580 | # CONFIG_MEGARAID_LEGACY is not set |
535 | # CONFIG_MEGARAID_SAS is not set | 581 | # CONFIG_MEGARAID_SAS is not set |
536 | # CONFIG_SCSI_SATA is not set | ||
537 | # CONFIG_SCSI_HPTIOP is not set | 582 | # CONFIG_SCSI_HPTIOP is not set |
538 | # CONFIG_SCSI_DMX3191D is not set | 583 | # CONFIG_SCSI_DMX3191D is not set |
539 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 584 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
540 | # CONFIG_SCSI_IPS is not set | 585 | # CONFIG_SCSI_IPS is not set |
541 | # CONFIG_SCSI_INITIO is not set | 586 | # CONFIG_SCSI_INITIO is not set |
542 | # CONFIG_SCSI_INIA100 is not set | 587 | # CONFIG_SCSI_INIA100 is not set |
588 | # CONFIG_SCSI_STEX is not set | ||
543 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 589 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
544 | # CONFIG_SCSI_IPR is not set | ||
545 | # CONFIG_SCSI_QLOGIC_1280 is not set | 590 | # CONFIG_SCSI_QLOGIC_1280 is not set |
546 | # CONFIG_SCSI_QLA_FC is not set | 591 | # CONFIG_SCSI_QLA_FC is not set |
592 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
547 | # CONFIG_SCSI_LPFC is not set | 593 | # CONFIG_SCSI_LPFC is not set |
548 | # CONFIG_SCSI_DC395x is not set | 594 | # CONFIG_SCSI_DC395x is not set |
549 | # CONFIG_SCSI_DC390T is not set | 595 | # CONFIG_SCSI_DC390T is not set |
550 | # CONFIG_SCSI_NSP32 is not set | 596 | # CONFIG_SCSI_NSP32 is not set |
551 | # CONFIG_SCSI_DEBUG is not set | 597 | # CONFIG_SCSI_DEBUG is not set |
598 | # CONFIG_SCSI_SRP is not set | ||
599 | |||
600 | # | ||
601 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
602 | # | ||
603 | # CONFIG_ATA is not set | ||
552 | 604 | ||
553 | # | 605 | # |
554 | # Multi-device support (RAID and LVM) | 606 | # Multi-device support (RAID and LVM) |
@@ -649,6 +701,7 @@ CONFIG_E1000_NAPI=y | |||
649 | # CONFIG_VIA_VELOCITY is not set | 701 | # CONFIG_VIA_VELOCITY is not set |
650 | # CONFIG_TIGON3 is not set | 702 | # CONFIG_TIGON3 is not set |
651 | # CONFIG_BNX2 is not set | 703 | # CONFIG_BNX2 is not set |
704 | # CONFIG_QLA3XXX is not set | ||
652 | 705 | ||
653 | # | 706 | # |
654 | # Ethernet (10000 Mbit) | 707 | # Ethernet (10000 Mbit) |
@@ -657,6 +710,7 @@ CONFIG_E1000_NAPI=y | |||
657 | # CONFIG_IXGB is not set | 710 | # CONFIG_IXGB is not set |
658 | # CONFIG_S2IO is not set | 711 | # CONFIG_S2IO is not set |
659 | # CONFIG_MYRI10GE is not set | 712 | # CONFIG_MYRI10GE is not set |
713 | # CONFIG_NETXEN_NIC is not set | ||
660 | 714 | ||
661 | # | 715 | # |
662 | # Token Ring devices | 716 | # Token Ring devices |
@@ -672,7 +726,6 @@ CONFIG_E1000_NAPI=y | |||
672 | # Wan interfaces | 726 | # Wan interfaces |
673 | # | 727 | # |
674 | CONFIG_WAN=y | 728 | CONFIG_WAN=y |
675 | # CONFIG_DSCC4 is not set | ||
676 | # CONFIG_LANMEDIA is not set | 729 | # CONFIG_LANMEDIA is not set |
677 | CONFIG_HDLC=y | 730 | CONFIG_HDLC=y |
678 | CONFIG_HDLC_RAW=y | 731 | CONFIG_HDLC_RAW=y |
@@ -688,6 +741,7 @@ CONFIG_HDLC_PPP=y | |||
688 | # CONFIG_WANXL is not set | 741 | # CONFIG_WANXL is not set |
689 | # CONFIG_PC300 is not set | 742 | # CONFIG_PC300 is not set |
690 | # CONFIG_FARSYNC is not set | 743 | # CONFIG_FARSYNC is not set |
744 | # CONFIG_DSCC4 is not set | ||
691 | CONFIG_DLCI=y | 745 | CONFIG_DLCI=y |
692 | CONFIG_DLCI_COUNT=24 | 746 | CONFIG_DLCI_COUNT=24 |
693 | CONFIG_DLCI_MAX=8 | 747 | CONFIG_DLCI_MAX=8 |
@@ -710,6 +764,7 @@ CONFIG_DLCI_MAX=8 | |||
710 | # Input device support | 764 | # Input device support |
711 | # | 765 | # |
712 | CONFIG_INPUT=y | 766 | CONFIG_INPUT=y |
767 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
713 | 768 | ||
714 | # | 769 | # |
715 | # Userland interfaces | 770 | # Userland interfaces |
@@ -795,10 +850,6 @@ CONFIG_WATCHDOG=y | |||
795 | # CONFIG_DTLK is not set | 850 | # CONFIG_DTLK is not set |
796 | # CONFIG_R3964 is not set | 851 | # CONFIG_R3964 is not set |
797 | # CONFIG_APPLICOM is not set | 852 | # CONFIG_APPLICOM is not set |
798 | |||
799 | # | ||
800 | # Ftape, the floppy tape device driver | ||
801 | # | ||
802 | # CONFIG_DRM is not set | 853 | # CONFIG_DRM is not set |
803 | # CONFIG_RAW_DRIVER is not set | 854 | # CONFIG_RAW_DRIVER is not set |
804 | 855 | ||
@@ -806,7 +857,6 @@ CONFIG_WATCHDOG=y | |||
806 | # TPM devices | 857 | # TPM devices |
807 | # | 858 | # |
808 | # CONFIG_TCG_TPM is not set | 859 | # CONFIG_TCG_TPM is not set |
809 | # CONFIG_TELCLOCK is not set | ||
810 | 860 | ||
811 | # | 861 | # |
812 | # I2C support | 862 | # I2C support |
@@ -870,6 +920,7 @@ CONFIG_SENSORS_EEPROM=y | |||
870 | # | 920 | # |
871 | # Dallas's 1-wire bus | 921 | # Dallas's 1-wire bus |
872 | # | 922 | # |
923 | # CONFIG_W1 is not set | ||
873 | 924 | ||
874 | # | 925 | # |
875 | # Hardware Monitoring support | 926 | # Hardware Monitoring support |
@@ -903,15 +954,18 @@ CONFIG_HWMON=y | |||
903 | # CONFIG_SENSORS_LM92 is not set | 954 | # CONFIG_SENSORS_LM92 is not set |
904 | # CONFIG_SENSORS_MAX1619 is not set | 955 | # CONFIG_SENSORS_MAX1619 is not set |
905 | # CONFIG_SENSORS_PC87360 is not set | 956 | # CONFIG_SENSORS_PC87360 is not set |
957 | # CONFIG_SENSORS_PC87427 is not set | ||
906 | # CONFIG_SENSORS_SIS5595 is not set | 958 | # CONFIG_SENSORS_SIS5595 is not set |
907 | # CONFIG_SENSORS_SMSC47M1 is not set | 959 | # CONFIG_SENSORS_SMSC47M1 is not set |
908 | # CONFIG_SENSORS_SMSC47M192 is not set | 960 | # CONFIG_SENSORS_SMSC47M192 is not set |
909 | # CONFIG_SENSORS_SMSC47B397 is not set | 961 | # CONFIG_SENSORS_SMSC47B397 is not set |
910 | # CONFIG_SENSORS_VIA686A is not set | 962 | # CONFIG_SENSORS_VIA686A is not set |
963 | # CONFIG_SENSORS_VT1211 is not set | ||
911 | # CONFIG_SENSORS_VT8231 is not set | 964 | # CONFIG_SENSORS_VT8231 is not set |
912 | # CONFIG_SENSORS_W83781D is not set | 965 | # CONFIG_SENSORS_W83781D is not set |
913 | # CONFIG_SENSORS_W83791D is not set | 966 | # CONFIG_SENSORS_W83791D is not set |
914 | # CONFIG_SENSORS_W83792D is not set | 967 | # CONFIG_SENSORS_W83792D is not set |
968 | # CONFIG_SENSORS_W83793 is not set | ||
915 | # CONFIG_SENSORS_W83L785TS is not set | 969 | # CONFIG_SENSORS_W83L785TS is not set |
916 | # CONFIG_SENSORS_W83627HF is not set | 970 | # CONFIG_SENSORS_W83627HF is not set |
917 | # CONFIG_SENSORS_W83627EHF is not set | 971 | # CONFIG_SENSORS_W83627EHF is not set |
@@ -920,6 +974,8 @@ CONFIG_HWMON=y | |||
920 | # | 974 | # |
921 | # Misc devices | 975 | # Misc devices |
922 | # | 976 | # |
977 | # CONFIG_SGI_IOC4 is not set | ||
978 | # CONFIG_TIFM_CORE is not set | ||
923 | 979 | ||
924 | # | 980 | # |
925 | # LED devices | 981 | # LED devices |
@@ -938,7 +994,6 @@ CONFIG_HWMON=y | |||
938 | # Multimedia devices | 994 | # Multimedia devices |
939 | # | 995 | # |
940 | # CONFIG_VIDEO_DEV is not set | 996 | # CONFIG_VIDEO_DEV is not set |
941 | CONFIG_VIDEO_V4L2=y | ||
942 | 997 | ||
943 | # | 998 | # |
944 | # Digital Video Broadcasting Devices | 999 | # Digital Video Broadcasting Devices |
@@ -951,6 +1006,7 @@ CONFIG_VIDEO_V4L2=y | |||
951 | # | 1006 | # |
952 | # CONFIG_FIRMWARE_EDID is not set | 1007 | # CONFIG_FIRMWARE_EDID is not set |
953 | # CONFIG_FB is not set | 1008 | # CONFIG_FB is not set |
1009 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
954 | 1010 | ||
955 | # | 1011 | # |
956 | # Sound | 1012 | # Sound |
@@ -958,6 +1014,11 @@ CONFIG_VIDEO_V4L2=y | |||
958 | # CONFIG_SOUND is not set | 1014 | # CONFIG_SOUND is not set |
959 | 1015 | ||
960 | # | 1016 | # |
1017 | # HID Devices | ||
1018 | # | ||
1019 | CONFIG_HID=y | ||
1020 | |||
1021 | # | ||
961 | # USB support | 1022 | # USB support |
962 | # | 1023 | # |
963 | CONFIG_USB_ARCH_HAS_HCD=y | 1024 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -972,6 +1033,7 @@ CONFIG_USB=y | |||
972 | # CONFIG_USB_DEVICEFS is not set | 1033 | # CONFIG_USB_DEVICEFS is not set |
973 | # CONFIG_USB_BANDWIDTH is not set | 1034 | # CONFIG_USB_BANDWIDTH is not set |
974 | # CONFIG_USB_DYNAMIC_MINORS is not set | 1035 | # CONFIG_USB_DYNAMIC_MINORS is not set |
1036 | # CONFIG_USB_MULTITHREAD_PROBE is not set | ||
975 | # CONFIG_USB_OTG is not set | 1037 | # CONFIG_USB_OTG is not set |
976 | 1038 | ||
977 | # | 1039 | # |
@@ -1012,6 +1074,7 @@ CONFIG_USB_STORAGE=y | |||
1012 | # CONFIG_USB_STORAGE_SDDR55 is not set | 1074 | # CONFIG_USB_STORAGE_SDDR55 is not set |
1013 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | 1075 | # CONFIG_USB_STORAGE_JUMPSHOT is not set |
1014 | # CONFIG_USB_STORAGE_ALAUDA is not set | 1076 | # CONFIG_USB_STORAGE_ALAUDA is not set |
1077 | # CONFIG_USB_STORAGE_KARMA is not set | ||
1015 | # CONFIG_USB_LIBUSUAL is not set | 1078 | # CONFIG_USB_LIBUSUAL is not set |
1016 | 1079 | ||
1017 | # | 1080 | # |
@@ -1050,6 +1113,7 @@ CONFIG_USB_STORAGE=y | |||
1050 | # CONFIG_USB_KAWETH is not set | 1113 | # CONFIG_USB_KAWETH is not set |
1051 | # CONFIG_USB_PEGASUS is not set | 1114 | # CONFIG_USB_PEGASUS is not set |
1052 | # CONFIG_USB_RTL8150 is not set | 1115 | # CONFIG_USB_RTL8150 is not set |
1116 | # CONFIG_USB_USBNET_MII is not set | ||
1053 | # CONFIG_USB_USBNET is not set | 1117 | # CONFIG_USB_USBNET is not set |
1054 | CONFIG_USB_MON=y | 1118 | CONFIG_USB_MON=y |
1055 | 1119 | ||
@@ -1067,19 +1131,21 @@ CONFIG_USB_MON=y | |||
1067 | # | 1131 | # |
1068 | # CONFIG_USB_EMI62 is not set | 1132 | # CONFIG_USB_EMI62 is not set |
1069 | # CONFIG_USB_EMI26 is not set | 1133 | # CONFIG_USB_EMI26 is not set |
1134 | # CONFIG_USB_ADUTUX is not set | ||
1070 | # CONFIG_USB_AUERSWALD is not set | 1135 | # CONFIG_USB_AUERSWALD is not set |
1071 | # CONFIG_USB_RIO500 is not set | 1136 | # CONFIG_USB_RIO500 is not set |
1072 | # CONFIG_USB_LEGOTOWER is not set | 1137 | # CONFIG_USB_LEGOTOWER is not set |
1073 | # CONFIG_USB_LCD is not set | 1138 | # CONFIG_USB_LCD is not set |
1074 | # CONFIG_USB_LED is not set | 1139 | # CONFIG_USB_LED is not set |
1075 | # CONFIG_USB_CY7C63 is not set | 1140 | # CONFIG_USB_CYPRESS_CY7C63 is not set |
1076 | # CONFIG_USB_CYTHERM is not set | 1141 | # CONFIG_USB_CYTHERM is not set |
1077 | # CONFIG_USB_PHIDGETKIT is not set | 1142 | # CONFIG_USB_PHIDGET is not set |
1078 | # CONFIG_USB_PHIDGETSERVO is not set | ||
1079 | # CONFIG_USB_IDMOUSE is not set | 1143 | # CONFIG_USB_IDMOUSE is not set |
1144 | # CONFIG_USB_FTDI_ELAN is not set | ||
1080 | # CONFIG_USB_APPLEDISPLAY is not set | 1145 | # CONFIG_USB_APPLEDISPLAY is not set |
1081 | # CONFIG_USB_SISUSBVGA is not set | 1146 | # CONFIG_USB_SISUSBVGA is not set |
1082 | # CONFIG_USB_LD is not set | 1147 | # CONFIG_USB_LD is not set |
1148 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1083 | 1149 | ||
1084 | # | 1150 | # |
1085 | # USB DSL modem support | 1151 | # USB DSL modem support |
@@ -1113,6 +1179,7 @@ CONFIG_EXT3_FS=y | |||
1113 | CONFIG_EXT3_FS_XATTR=y | 1179 | CONFIG_EXT3_FS_XATTR=y |
1114 | CONFIG_EXT3_FS_POSIX_ACL=y | 1180 | CONFIG_EXT3_FS_POSIX_ACL=y |
1115 | # CONFIG_EXT3_FS_SECURITY is not set | 1181 | # CONFIG_EXT3_FS_SECURITY is not set |
1182 | # CONFIG_EXT4DEV_FS is not set | ||
1116 | CONFIG_JBD=y | 1183 | CONFIG_JBD=y |
1117 | # CONFIG_JBD_DEBUG is not set | 1184 | # CONFIG_JBD_DEBUG is not set |
1118 | CONFIG_FS_MBCACHE=y | 1185 | CONFIG_FS_MBCACHE=y |
@@ -1120,6 +1187,7 @@ CONFIG_FS_MBCACHE=y | |||
1120 | # CONFIG_JFS_FS is not set | 1187 | # CONFIG_JFS_FS is not set |
1121 | CONFIG_FS_POSIX_ACL=y | 1188 | CONFIG_FS_POSIX_ACL=y |
1122 | # CONFIG_XFS_FS is not set | 1189 | # CONFIG_XFS_FS is not set |
1190 | # CONFIG_GFS2_FS is not set | ||
1123 | # CONFIG_OCFS2_FS is not set | 1191 | # CONFIG_OCFS2_FS is not set |
1124 | # CONFIG_MINIX_FS is not set | 1192 | # CONFIG_MINIX_FS is not set |
1125 | # CONFIG_ROMFS_FS is not set | 1193 | # CONFIG_ROMFS_FS is not set |
@@ -1150,8 +1218,10 @@ CONFIG_FAT_DEFAULT_CODEPAGE=437 | |||
1150 | # Pseudo filesystems | 1218 | # Pseudo filesystems |
1151 | # | 1219 | # |
1152 | CONFIG_PROC_FS=y | 1220 | CONFIG_PROC_FS=y |
1221 | CONFIG_PROC_SYSCTL=y | ||
1153 | CONFIG_SYSFS=y | 1222 | CONFIG_SYSFS=y |
1154 | CONFIG_TMPFS=y | 1223 | CONFIG_TMPFS=y |
1224 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1155 | # CONFIG_HUGETLB_PAGE is not set | 1225 | # CONFIG_HUGETLB_PAGE is not set |
1156 | CONFIG_RAMFS=y | 1226 | CONFIG_RAMFS=y |
1157 | # CONFIG_CONFIGFS_FS is not set | 1227 | # CONFIG_CONFIGFS_FS is not set |
@@ -1201,7 +1271,6 @@ CONFIG_SUNRPC=y | |||
1201 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1271 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
1202 | # CONFIG_SMB_FS is not set | 1272 | # CONFIG_SMB_FS is not set |
1203 | # CONFIG_CIFS is not set | 1273 | # CONFIG_CIFS is not set |
1204 | # CONFIG_CIFS_DEBUG2 is not set | ||
1205 | # CONFIG_NCP_FS is not set | 1274 | # CONFIG_NCP_FS is not set |
1206 | # CONFIG_CODA_FS is not set | 1275 | # CONFIG_CODA_FS is not set |
1207 | # CONFIG_AFS_FS is not set | 1276 | # CONFIG_AFS_FS is not set |
@@ -1273,6 +1342,11 @@ CONFIG_NLS_CODEPAGE_437=y | |||
1273 | # CONFIG_NLS_UTF8 is not set | 1342 | # CONFIG_NLS_UTF8 is not set |
1274 | 1343 | ||
1275 | # | 1344 | # |
1345 | # Distributed Lock Manager | ||
1346 | # | ||
1347 | # CONFIG_DLM is not set | ||
1348 | |||
1349 | # | ||
1276 | # Profiling support | 1350 | # Profiling support |
1277 | # | 1351 | # |
1278 | # CONFIG_PROFILING is not set | 1352 | # CONFIG_PROFILING is not set |
@@ -1281,8 +1355,11 @@ CONFIG_NLS_CODEPAGE_437=y | |||
1281 | # Kernel hacking | 1355 | # Kernel hacking |
1282 | # | 1356 | # |
1283 | # CONFIG_PRINTK_TIME is not set | 1357 | # CONFIG_PRINTK_TIME is not set |
1358 | CONFIG_ENABLE_MUST_CHECK=y | ||
1284 | CONFIG_MAGIC_SYSRQ=y | 1359 | CONFIG_MAGIC_SYSRQ=y |
1285 | # CONFIG_UNUSED_SYMBOLS is not set | 1360 | # CONFIG_UNUSED_SYMBOLS is not set |
1361 | # CONFIG_DEBUG_FS is not set | ||
1362 | # CONFIG_HEADERS_CHECK is not set | ||
1286 | CONFIG_DEBUG_KERNEL=y | 1363 | CONFIG_DEBUG_KERNEL=y |
1287 | CONFIG_LOG_BUF_SHIFT=14 | 1364 | CONFIG_LOG_BUF_SHIFT=14 |
1288 | CONFIG_DETECT_SOFTLOCKUP=y | 1365 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -1298,14 +1375,12 @@ CONFIG_DEBUG_MUTEXES=y | |||
1298 | # CONFIG_DEBUG_KOBJECT is not set | 1375 | # CONFIG_DEBUG_KOBJECT is not set |
1299 | CONFIG_DEBUG_BUGVERBOSE=y | 1376 | CONFIG_DEBUG_BUGVERBOSE=y |
1300 | # CONFIG_DEBUG_INFO is not set | 1377 | # CONFIG_DEBUG_INFO is not set |
1301 | # CONFIG_DEBUG_FS is not set | ||
1302 | # CONFIG_DEBUG_VM is not set | 1378 | # CONFIG_DEBUG_VM is not set |
1379 | # CONFIG_DEBUG_LIST is not set | ||
1303 | CONFIG_FRAME_POINTER=y | 1380 | CONFIG_FRAME_POINTER=y |
1304 | # CONFIG_UNWIND_INFO is not set | ||
1305 | CONFIG_FORCED_INLINING=y | 1381 | CONFIG_FORCED_INLINING=y |
1306 | # CONFIG_RCU_TORTURE_TEST is not set | 1382 | # CONFIG_RCU_TORTURE_TEST is not set |
1307 | CONFIG_DEBUG_USER=y | 1383 | CONFIG_DEBUG_USER=y |
1308 | # CONFIG_DEBUG_WAITQ is not set | ||
1309 | CONFIG_DEBUG_ERRORS=y | 1384 | CONFIG_DEBUG_ERRORS=y |
1310 | CONFIG_DEBUG_LL=y | 1385 | CONFIG_DEBUG_LL=y |
1311 | # CONFIG_DEBUG_ICEDCC is not set | 1386 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -1322,12 +1397,9 @@ CONFIG_DEBUG_LL=y | |||
1322 | # CONFIG_CRYPTO is not set | 1397 | # CONFIG_CRYPTO is not set |
1323 | 1398 | ||
1324 | # | 1399 | # |
1325 | # Hardware crypto devices | ||
1326 | # | ||
1327 | |||
1328 | # | ||
1329 | # Library routines | 1400 | # Library routines |
1330 | # | 1401 | # |
1402 | CONFIG_BITREVERSE=y | ||
1331 | # CONFIG_CRC_CCITT is not set | 1403 | # CONFIG_CRC_CCITT is not set |
1332 | # CONFIG_CRC16 is not set | 1404 | # CONFIG_CRC16 is not set |
1333 | CONFIG_CRC32=y | 1405 | CONFIG_CRC32=y |
@@ -1335,3 +1407,4 @@ CONFIG_CRC32=y | |||
1335 | CONFIG_ZLIB_INFLATE=y | 1407 | CONFIG_ZLIB_INFLATE=y |
1336 | CONFIG_ZLIB_DEFLATE=y | 1408 | CONFIG_ZLIB_DEFLATE=y |
1337 | CONFIG_PLIST=y | 1409 | CONFIG_PLIST=y |
1410 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/ixp4xx_defconfig b/arch/arm/configs/ixp4xx_defconfig index fac7c3b240c0..fabf74c51a88 100644 --- a/arch/arm/configs/ixp4xx_defconfig +++ b/arch/arm/configs/ixp4xx_defconfig | |||
@@ -1243,7 +1243,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1243 | CONFIG_FRAME_POINTER=y | 1243 | CONFIG_FRAME_POINTER=y |
1244 | # CONFIG_RCU_TORTURE_TEST is not set | 1244 | # CONFIG_RCU_TORTURE_TEST is not set |
1245 | # CONFIG_DEBUG_USER is not set | 1245 | # CONFIG_DEBUG_USER is not set |
1246 | # CONFIG_DEBUG_WAITQ is not set | ||
1247 | CONFIG_DEBUG_ERRORS=y | 1246 | CONFIG_DEBUG_ERRORS=y |
1248 | CONFIG_DEBUG_LL=y | 1247 | CONFIG_DEBUG_LL=y |
1249 | # CONFIG_DEBUG_ICEDCC is not set | 1248 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/jornada720_defconfig b/arch/arm/configs/jornada720_defconfig index 80a6fd97eb32..0c556289a3f4 100644 --- a/arch/arm/configs/jornada720_defconfig +++ b/arch/arm/configs/jornada720_defconfig | |||
@@ -889,7 +889,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
889 | # CONFIG_DEBUG_FS is not set | 889 | # CONFIG_DEBUG_FS is not set |
890 | CONFIG_FRAME_POINTER=y | 890 | CONFIG_FRAME_POINTER=y |
891 | # CONFIG_DEBUG_USER is not set | 891 | # CONFIG_DEBUG_USER is not set |
892 | # CONFIG_DEBUG_WAITQ is not set | ||
893 | CONFIG_DEBUG_ERRORS=y | 892 | CONFIG_DEBUG_ERRORS=y |
894 | CONFIG_DEBUG_LL=y | 893 | CONFIG_DEBUG_LL=y |
895 | # CONFIG_DEBUG_ICEDCC is not set | 894 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/kb9202_defconfig b/arch/arm/configs/kb9202_defconfig index b4cd4b414836..c16537d9d67a 100644 --- a/arch/arm/configs/kb9202_defconfig +++ b/arch/arm/configs/kb9202_defconfig | |||
@@ -437,7 +437,7 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
437 | # CONFIG_WATCHDOG is not set | 437 | # CONFIG_WATCHDOG is not set |
438 | # CONFIG_NVRAM is not set | 438 | # CONFIG_NVRAM is not set |
439 | # CONFIG_RTC is not set | 439 | # CONFIG_RTC is not set |
440 | # CONFIG_AT91_RTC is not set | 440 | # CONFIG_AT91RM9200_RTC is not set |
441 | # CONFIG_DTLK is not set | 441 | # CONFIG_DTLK is not set |
442 | # CONFIG_R3964 is not set | 442 | # CONFIG_R3964 is not set |
443 | 443 | ||
@@ -753,7 +753,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
753 | # CONFIG_DEBUG_FS is not set | 753 | # CONFIG_DEBUG_FS is not set |
754 | CONFIG_FRAME_POINTER=y | 754 | CONFIG_FRAME_POINTER=y |
755 | CONFIG_DEBUG_USER=y | 755 | CONFIG_DEBUG_USER=y |
756 | # CONFIG_DEBUG_WAITQ is not set | ||
757 | CONFIG_DEBUG_ERRORS=y | 756 | CONFIG_DEBUG_ERRORS=y |
758 | CONFIG_DEBUG_LL=y | 757 | CONFIG_DEBUG_LL=y |
759 | # CONFIG_DEBUG_ICEDCC is not set | 758 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/lpd270_defconfig b/arch/arm/configs/lpd270_defconfig index 4b29e099640d..a3bf5833b87a 100644 --- a/arch/arm/configs/lpd270_defconfig +++ b/arch/arm/configs/lpd270_defconfig | |||
@@ -1,14 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc1 | 3 | # Linux kernel version: 2.6.20-rc1 |
4 | # Sun Jul 9 14:15:23 2006 | 4 | # Sat Dec 16 06:05:51 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
9 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
10 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
11 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
12 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
13 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
14 | CONFIG_ARCH_MTD_XIP=y | 18 | CONFIG_ARCH_MTD_XIP=y |
@@ -29,16 +33,21 @@ CONFIG_LOCALVERSION="" | |||
29 | CONFIG_LOCALVERSION_AUTO=y | 33 | CONFIG_LOCALVERSION_AUTO=y |
30 | CONFIG_SWAP=y | 34 | CONFIG_SWAP=y |
31 | CONFIG_SYSVIPC=y | 35 | CONFIG_SYSVIPC=y |
36 | # CONFIG_IPC_NS is not set | ||
32 | # CONFIG_POSIX_MQUEUE is not set | 37 | # CONFIG_POSIX_MQUEUE is not set |
33 | # CONFIG_BSD_PROCESS_ACCT is not set | 38 | # CONFIG_BSD_PROCESS_ACCT is not set |
34 | CONFIG_SYSCTL=y | 39 | # CONFIG_TASKSTATS is not set |
40 | # CONFIG_UTS_NS is not set | ||
35 | # CONFIG_AUDIT is not set | 41 | # CONFIG_AUDIT is not set |
36 | # CONFIG_IKCONFIG is not set | 42 | # CONFIG_IKCONFIG is not set |
43 | CONFIG_SYSFS_DEPRECATED=y | ||
37 | # CONFIG_RELAY is not set | 44 | # CONFIG_RELAY is not set |
38 | CONFIG_INITRAMFS_SOURCE="" | 45 | CONFIG_INITRAMFS_SOURCE="" |
39 | CONFIG_UID16=y | ||
40 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 46 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
47 | CONFIG_SYSCTL=y | ||
41 | # CONFIG_EMBEDDED is not set | 48 | # CONFIG_EMBEDDED is not set |
49 | CONFIG_UID16=y | ||
50 | CONFIG_SYSCTL_SYSCALL=y | ||
42 | CONFIG_KALLSYMS=y | 51 | CONFIG_KALLSYMS=y |
43 | # CONFIG_KALLSYMS_ALL is not set | 52 | # CONFIG_KALLSYMS_ALL is not set |
44 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 53 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -47,12 +56,12 @@ CONFIG_PRINTK=y | |||
47 | CONFIG_BUG=y | 56 | CONFIG_BUG=y |
48 | CONFIG_ELF_CORE=y | 57 | CONFIG_ELF_CORE=y |
49 | CONFIG_BASE_FULL=y | 58 | CONFIG_BASE_FULL=y |
50 | CONFIG_RT_MUTEXES=y | ||
51 | CONFIG_FUTEX=y | 59 | CONFIG_FUTEX=y |
52 | CONFIG_EPOLL=y | 60 | CONFIG_EPOLL=y |
53 | CONFIG_SHMEM=y | 61 | CONFIG_SHMEM=y |
54 | CONFIG_SLAB=y | 62 | CONFIG_SLAB=y |
55 | CONFIG_VM_EVENT_COUNTERS=y | 63 | CONFIG_VM_EVENT_COUNTERS=y |
64 | CONFIG_RT_MUTEXES=y | ||
56 | # CONFIG_TINY_SHMEM is not set | 65 | # CONFIG_TINY_SHMEM is not set |
57 | CONFIG_BASE_SMALL=0 | 66 | CONFIG_BASE_SMALL=0 |
58 | # CONFIG_SLOB is not set | 67 | # CONFIG_SLOB is not set |
@@ -69,7 +78,10 @@ CONFIG_MODULES=y | |||
69 | # | 78 | # |
70 | # Block layer | 79 | # Block layer |
71 | # | 80 | # |
81 | CONFIG_BLOCK=y | ||
82 | # CONFIG_LBD is not set | ||
72 | # CONFIG_BLK_DEV_IO_TRACE is not set | 83 | # CONFIG_BLK_DEV_IO_TRACE is not set |
84 | # CONFIG_LSF is not set | ||
73 | 85 | ||
74 | # | 86 | # |
75 | # IO Schedulers | 87 | # IO Schedulers |
@@ -101,7 +113,9 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
101 | # CONFIG_ARCH_NETX is not set | 113 | # CONFIG_ARCH_NETX is not set |
102 | # CONFIG_ARCH_H720X is not set | 114 | # CONFIG_ARCH_H720X is not set |
103 | # CONFIG_ARCH_IMX is not set | 115 | # CONFIG_ARCH_IMX is not set |
104 | # CONFIG_ARCH_IOP3XX is not set | 116 | # CONFIG_ARCH_IOP32X is not set |
117 | # CONFIG_ARCH_IOP33X is not set | ||
118 | # CONFIG_ARCH_IOP13XX is not set | ||
105 | # CONFIG_ARCH_IXP4XX is not set | 119 | # CONFIG_ARCH_IXP4XX is not set |
106 | # CONFIG_ARCH_IXP2000 is not set | 120 | # CONFIG_ARCH_IXP2000 is not set |
107 | # CONFIG_ARCH_IXP23XX is not set | 121 | # CONFIG_ARCH_IXP23XX is not set |
@@ -125,7 +139,6 @@ CONFIG_MACH_LOGICPD_PXA270=y | |||
125 | # CONFIG_PXA_SHARPSL is not set | 139 | # CONFIG_PXA_SHARPSL is not set |
126 | # CONFIG_MACH_TRIZEPS4 is not set | 140 | # CONFIG_MACH_TRIZEPS4 is not set |
127 | CONFIG_PXA27x=y | 141 | CONFIG_PXA27x=y |
128 | CONFIG_IWMMXT=y | ||
129 | 142 | ||
130 | # | 143 | # |
131 | # Processor Type | 144 | # Processor Type |
@@ -136,11 +149,15 @@ CONFIG_CPU_32v5=y | |||
136 | CONFIG_CPU_ABRT_EV5T=y | 149 | CONFIG_CPU_ABRT_EV5T=y |
137 | CONFIG_CPU_CACHE_VIVT=y | 150 | CONFIG_CPU_CACHE_VIVT=y |
138 | CONFIG_CPU_TLB_V4WBI=y | 151 | CONFIG_CPU_TLB_V4WBI=y |
152 | CONFIG_CPU_CP15=y | ||
153 | CONFIG_CPU_CP15_MMU=y | ||
139 | 154 | ||
140 | # | 155 | # |
141 | # Processor Features | 156 | # Processor Features |
142 | # | 157 | # |
143 | # CONFIG_ARM_THUMB is not set | 158 | # CONFIG_ARM_THUMB is not set |
159 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
160 | CONFIG_IWMMXT=y | ||
144 | CONFIG_XSCALE_PMU=y | 161 | CONFIG_XSCALE_PMU=y |
145 | 162 | ||
146 | # | 163 | # |
@@ -217,6 +234,7 @@ CONFIG_NET=y | |||
217 | CONFIG_UNIX=y | 234 | CONFIG_UNIX=y |
218 | CONFIG_XFRM=y | 235 | CONFIG_XFRM=y |
219 | # CONFIG_XFRM_USER is not set | 236 | # CONFIG_XFRM_USER is not set |
237 | # CONFIG_XFRM_SUB_POLICY is not set | ||
220 | # CONFIG_NET_KEY is not set | 238 | # CONFIG_NET_KEY is not set |
221 | CONFIG_INET=y | 239 | CONFIG_INET=y |
222 | # CONFIG_IP_MULTICAST is not set | 240 | # CONFIG_IP_MULTICAST is not set |
@@ -237,13 +255,29 @@ CONFIG_IP_PNP_BOOTP=y | |||
237 | # CONFIG_INET_TUNNEL is not set | 255 | # CONFIG_INET_TUNNEL is not set |
238 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 256 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
239 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 257 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
258 | CONFIG_INET_XFRM_MODE_BEET=y | ||
240 | CONFIG_INET_DIAG=y | 259 | CONFIG_INET_DIAG=y |
241 | CONFIG_INET_TCP_DIAG=y | 260 | CONFIG_INET_TCP_DIAG=y |
242 | # CONFIG_TCP_CONG_ADVANCED is not set | 261 | # CONFIG_TCP_CONG_ADVANCED is not set |
243 | CONFIG_TCP_CONG_BIC=y | 262 | CONFIG_TCP_CONG_CUBIC=y |
244 | # CONFIG_IPV6 is not set | 263 | CONFIG_DEFAULT_TCP_CONG="cubic" |
264 | # CONFIG_TCP_MD5SIG is not set | ||
265 | CONFIG_IPV6=y | ||
266 | # CONFIG_IPV6_PRIVACY is not set | ||
267 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
268 | # CONFIG_INET6_AH is not set | ||
269 | # CONFIG_INET6_ESP is not set | ||
270 | # CONFIG_INET6_IPCOMP is not set | ||
271 | # CONFIG_IPV6_MIP6 is not set | ||
245 | # CONFIG_INET6_XFRM_TUNNEL is not set | 272 | # CONFIG_INET6_XFRM_TUNNEL is not set |
246 | # CONFIG_INET6_TUNNEL is not set | 273 | # CONFIG_INET6_TUNNEL is not set |
274 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
275 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
276 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
277 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
278 | # CONFIG_IPV6_SIT is not set | ||
279 | # CONFIG_IPV6_TUNNEL is not set | ||
280 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
247 | # CONFIG_NETWORK_SECMARK is not set | 281 | # CONFIG_NETWORK_SECMARK is not set |
248 | # CONFIG_NETFILTER is not set | 282 | # CONFIG_NETFILTER is not set |
249 | 283 | ||
@@ -270,7 +304,6 @@ CONFIG_TCP_CONG_BIC=y | |||
270 | # CONFIG_ATALK is not set | 304 | # CONFIG_ATALK is not set |
271 | # CONFIG_X25 is not set | 305 | # CONFIG_X25 is not set |
272 | # CONFIG_LAPB is not set | 306 | # CONFIG_LAPB is not set |
273 | # CONFIG_NET_DIVERT is not set | ||
274 | # CONFIG_ECONET is not set | 307 | # CONFIG_ECONET is not set |
275 | # CONFIG_WAN_ROUTER is not set | 308 | # CONFIG_WAN_ROUTER is not set |
276 | 309 | ||
@@ -329,6 +362,7 @@ CONFIG_MTD_BLOCK=y | |||
329 | # CONFIG_NFTL is not set | 362 | # CONFIG_NFTL is not set |
330 | # CONFIG_INFTL is not set | 363 | # CONFIG_INFTL is not set |
331 | # CONFIG_RFD_FTL is not set | 364 | # CONFIG_RFD_FTL is not set |
365 | # CONFIG_SSFDC is not set | ||
332 | 366 | ||
333 | # | 367 | # |
334 | # RAM/ROM/Flash chip drivers | 368 | # RAM/ROM/Flash chip drivers |
@@ -410,7 +444,7 @@ CONFIG_MTD_CFI_UTIL=y | |||
410 | # | 444 | # |
411 | # CONFIG_BLK_DEV_COW_COMMON is not set | 445 | # CONFIG_BLK_DEV_COW_COMMON is not set |
412 | # CONFIG_BLK_DEV_LOOP is not set | 446 | # CONFIG_BLK_DEV_LOOP is not set |
413 | # CONFIG_BLK_DEV_NBD is not set | 447 | CONFIG_BLK_DEV_NBD=y |
414 | # CONFIG_BLK_DEV_RAM is not set | 448 | # CONFIG_BLK_DEV_RAM is not set |
415 | # CONFIG_BLK_DEV_INITRD is not set | 449 | # CONFIG_BLK_DEV_INITRD is not set |
416 | # CONFIG_CDROM_PKTCDVD is not set | 450 | # CONFIG_CDROM_PKTCDVD is not set |
@@ -447,6 +481,12 @@ CONFIG_BLK_DEV_IDEDISK=y | |||
447 | # | 481 | # |
448 | # CONFIG_RAID_ATTRS is not set | 482 | # CONFIG_RAID_ATTRS is not set |
449 | # CONFIG_SCSI is not set | 483 | # CONFIG_SCSI is not set |
484 | # CONFIG_SCSI_NETLINK is not set | ||
485 | |||
486 | # | ||
487 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
488 | # | ||
489 | # CONFIG_ATA is not set | ||
450 | 490 | ||
451 | # | 491 | # |
452 | # Multi-device support (RAID and LVM) | 492 | # Multi-device support (RAID and LVM) |
@@ -526,6 +566,7 @@ CONFIG_SMC91X=y | |||
526 | # Input device support | 566 | # Input device support |
527 | # | 567 | # |
528 | CONFIG_INPUT=y | 568 | CONFIG_INPUT=y |
569 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
529 | 570 | ||
530 | # | 571 | # |
531 | # Userland interfaces | 572 | # Userland interfaces |
@@ -548,6 +589,7 @@ CONFIG_KEYBOARD_ATKBD=y | |||
548 | # CONFIG_KEYBOARD_LKKBD is not set | 589 | # CONFIG_KEYBOARD_LKKBD is not set |
549 | # CONFIG_KEYBOARD_XTKBD is not set | 590 | # CONFIG_KEYBOARD_XTKBD is not set |
550 | # CONFIG_KEYBOARD_NEWTON is not set | 591 | # CONFIG_KEYBOARD_NEWTON is not set |
592 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
551 | # CONFIG_INPUT_MOUSE is not set | 593 | # CONFIG_INPUT_MOUSE is not set |
552 | # CONFIG_INPUT_JOYSTICK is not set | 594 | # CONFIG_INPUT_JOYSTICK is not set |
553 | # CONFIG_INPUT_TOUCHSCREEN is not set | 595 | # CONFIG_INPUT_TOUCHSCREEN is not set |
@@ -600,17 +642,12 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
600 | # CONFIG_NVRAM is not set | 642 | # CONFIG_NVRAM is not set |
601 | # CONFIG_DTLK is not set | 643 | # CONFIG_DTLK is not set |
602 | # CONFIG_R3964 is not set | 644 | # CONFIG_R3964 is not set |
603 | |||
604 | # | ||
605 | # Ftape, the floppy tape device driver | ||
606 | # | ||
607 | # CONFIG_RAW_DRIVER is not set | 645 | # CONFIG_RAW_DRIVER is not set |
608 | 646 | ||
609 | # | 647 | # |
610 | # TPM devices | 648 | # TPM devices |
611 | # | 649 | # |
612 | # CONFIG_TCG_TPM is not set | 650 | # CONFIG_TCG_TPM is not set |
613 | # CONFIG_TELCLOCK is not set | ||
614 | 651 | ||
615 | # | 652 | # |
616 | # I2C support | 653 | # I2C support |
@@ -626,6 +663,7 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
626 | # | 663 | # |
627 | # Dallas's 1-wire bus | 664 | # Dallas's 1-wire bus |
628 | # | 665 | # |
666 | # CONFIG_W1 is not set | ||
629 | 667 | ||
630 | # | 668 | # |
631 | # Hardware Monitoring support | 669 | # Hardware Monitoring support |
@@ -634,11 +672,14 @@ CONFIG_HWMON=y | |||
634 | # CONFIG_HWMON_VID is not set | 672 | # CONFIG_HWMON_VID is not set |
635 | # CONFIG_SENSORS_ABITUGURU is not set | 673 | # CONFIG_SENSORS_ABITUGURU is not set |
636 | # CONFIG_SENSORS_F71805F is not set | 674 | # CONFIG_SENSORS_F71805F is not set |
675 | # CONFIG_SENSORS_PC87427 is not set | ||
676 | # CONFIG_SENSORS_VT1211 is not set | ||
637 | # CONFIG_HWMON_DEBUG_CHIP is not set | 677 | # CONFIG_HWMON_DEBUG_CHIP is not set |
638 | 678 | ||
639 | # | 679 | # |
640 | # Misc devices | 680 | # Misc devices |
641 | # | 681 | # |
682 | # CONFIG_TIFM_CORE is not set | ||
642 | 683 | ||
643 | # | 684 | # |
644 | # LED devices | 685 | # LED devices |
@@ -657,7 +698,6 @@ CONFIG_HWMON=y | |||
657 | # Multimedia devices | 698 | # Multimedia devices |
658 | # | 699 | # |
659 | # CONFIG_VIDEO_DEV is not set | 700 | # CONFIG_VIDEO_DEV is not set |
660 | CONFIG_VIDEO_V4L2=y | ||
661 | 701 | ||
662 | # | 702 | # |
663 | # Digital Video Broadcasting Devices | 703 | # Digital Video Broadcasting Devices |
@@ -679,6 +719,7 @@ CONFIG_FB_CFB_IMAGEBLIT=y | |||
679 | # CONFIG_FB_S1D13XXX is not set | 719 | # CONFIG_FB_S1D13XXX is not set |
680 | CONFIG_FB_PXA=y | 720 | CONFIG_FB_PXA=y |
681 | # CONFIG_FB_PXA_PARAMETERS is not set | 721 | # CONFIG_FB_PXA_PARAMETERS is not set |
722 | # CONFIG_FB_MBX is not set | ||
682 | # CONFIG_FB_VIRTUAL is not set | 723 | # CONFIG_FB_VIRTUAL is not set |
683 | 724 | ||
684 | # | 725 | # |
@@ -725,7 +766,6 @@ CONFIG_SND_VERBOSE_PROCFS=y | |||
725 | # Generic devices | 766 | # Generic devices |
726 | # | 767 | # |
727 | CONFIG_SND_AC97_CODEC=y | 768 | CONFIG_SND_AC97_CODEC=y |
728 | CONFIG_SND_AC97_BUS=y | ||
729 | # CONFIG_SND_DUMMY is not set | 769 | # CONFIG_SND_DUMMY is not set |
730 | # CONFIG_SND_MTPAV is not set | 770 | # CONFIG_SND_MTPAV is not set |
731 | # CONFIG_SND_SERIAL_U16550 is not set | 771 | # CONFIG_SND_SERIAL_U16550 is not set |
@@ -741,6 +781,12 @@ CONFIG_SND_PXA2XX_AC97=y | |||
741 | # Open Sound System | 781 | # Open Sound System |
742 | # | 782 | # |
743 | # CONFIG_SOUND_PRIME is not set | 783 | # CONFIG_SOUND_PRIME is not set |
784 | CONFIG_AC97_BUS=y | ||
785 | |||
786 | # | ||
787 | # HID Devices | ||
788 | # | ||
789 | CONFIG_HID=y | ||
744 | 790 | ||
745 | # | 791 | # |
746 | # USB support | 792 | # USB support |
@@ -777,10 +823,12 @@ CONFIG_EXT2_FS=y | |||
777 | # CONFIG_EXT2_FS_XATTR is not set | 823 | # CONFIG_EXT2_FS_XATTR is not set |
778 | # CONFIG_EXT2_FS_XIP is not set | 824 | # CONFIG_EXT2_FS_XIP is not set |
779 | # CONFIG_EXT3_FS is not set | 825 | # CONFIG_EXT3_FS is not set |
826 | # CONFIG_EXT4DEV_FS is not set | ||
780 | # CONFIG_REISERFS_FS is not set | 827 | # CONFIG_REISERFS_FS is not set |
781 | # CONFIG_JFS_FS is not set | 828 | # CONFIG_JFS_FS is not set |
782 | # CONFIG_FS_POSIX_ACL is not set | 829 | # CONFIG_FS_POSIX_ACL is not set |
783 | # CONFIG_XFS_FS is not set | 830 | # CONFIG_XFS_FS is not set |
831 | # CONFIG_GFS2_FS is not set | ||
784 | # CONFIG_OCFS2_FS is not set | 832 | # CONFIG_OCFS2_FS is not set |
785 | # CONFIG_MINIX_FS is not set | 833 | # CONFIG_MINIX_FS is not set |
786 | # CONFIG_ROMFS_FS is not set | 834 | # CONFIG_ROMFS_FS is not set |
@@ -811,6 +859,7 @@ CONFIG_FAT_DEFAULT_CODEPAGE=437 | |||
811 | # Pseudo filesystems | 859 | # Pseudo filesystems |
812 | # | 860 | # |
813 | CONFIG_PROC_FS=y | 861 | CONFIG_PROC_FS=y |
862 | CONFIG_PROC_SYSCTL=y | ||
814 | CONFIG_SYSFS=y | 863 | CONFIG_SYSFS=y |
815 | # CONFIG_TMPFS is not set | 864 | # CONFIG_TMPFS is not set |
816 | # CONFIG_HUGETLB_PAGE is not set | 865 | # CONFIG_HUGETLB_PAGE is not set |
@@ -860,7 +909,6 @@ CONFIG_SUNRPC=y | |||
860 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 909 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
861 | # CONFIG_SMB_FS is not set | 910 | # CONFIG_SMB_FS is not set |
862 | # CONFIG_CIFS is not set | 911 | # CONFIG_CIFS is not set |
863 | # CONFIG_CIFS_DEBUG2 is not set | ||
864 | # CONFIG_NCP_FS is not set | 912 | # CONFIG_NCP_FS is not set |
865 | # CONFIG_CODA_FS is not set | 913 | # CONFIG_CODA_FS is not set |
866 | # CONFIG_AFS_FS is not set | 914 | # CONFIG_AFS_FS is not set |
@@ -917,6 +965,11 @@ CONFIG_NLS_ISO8859_1=y | |||
917 | # CONFIG_NLS_UTF8 is not set | 965 | # CONFIG_NLS_UTF8 is not set |
918 | 966 | ||
919 | # | 967 | # |
968 | # Distributed Lock Manager | ||
969 | # | ||
970 | # CONFIG_DLM is not set | ||
971 | |||
972 | # | ||
920 | # Profiling support | 973 | # Profiling support |
921 | # | 974 | # |
922 | # CONFIG_PROFILING is not set | 975 | # CONFIG_PROFILING is not set |
@@ -925,8 +978,11 @@ CONFIG_NLS_ISO8859_1=y | |||
925 | # Kernel hacking | 978 | # Kernel hacking |
926 | # | 979 | # |
927 | # CONFIG_PRINTK_TIME is not set | 980 | # CONFIG_PRINTK_TIME is not set |
981 | CONFIG_ENABLE_MUST_CHECK=y | ||
928 | CONFIG_MAGIC_SYSRQ=y | 982 | CONFIG_MAGIC_SYSRQ=y |
929 | # CONFIG_UNUSED_SYMBOLS is not set | 983 | # CONFIG_UNUSED_SYMBOLS is not set |
984 | # CONFIG_DEBUG_FS is not set | ||
985 | # CONFIG_HEADERS_CHECK is not set | ||
930 | CONFIG_DEBUG_KERNEL=y | 986 | CONFIG_DEBUG_KERNEL=y |
931 | CONFIG_LOG_BUF_SHIFT=14 | 987 | CONFIG_LOG_BUF_SHIFT=14 |
932 | CONFIG_DETECT_SOFTLOCKUP=y | 988 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -942,14 +998,12 @@ CONFIG_DETECT_SOFTLOCKUP=y | |||
942 | # CONFIG_DEBUG_KOBJECT is not set | 998 | # CONFIG_DEBUG_KOBJECT is not set |
943 | CONFIG_DEBUG_BUGVERBOSE=y | 999 | CONFIG_DEBUG_BUGVERBOSE=y |
944 | CONFIG_DEBUG_INFO=y | 1000 | CONFIG_DEBUG_INFO=y |
945 | # CONFIG_DEBUG_FS is not set | ||
946 | # CONFIG_DEBUG_VM is not set | 1001 | # CONFIG_DEBUG_VM is not set |
1002 | # CONFIG_DEBUG_LIST is not set | ||
947 | CONFIG_FRAME_POINTER=y | 1003 | CONFIG_FRAME_POINTER=y |
948 | # CONFIG_UNWIND_INFO is not set | ||
949 | CONFIG_FORCED_INLINING=y | 1004 | CONFIG_FORCED_INLINING=y |
950 | # CONFIG_RCU_TORTURE_TEST is not set | 1005 | # CONFIG_RCU_TORTURE_TEST is not set |
951 | CONFIG_DEBUG_USER=y | 1006 | CONFIG_DEBUG_USER=y |
952 | # CONFIG_DEBUG_WAITQ is not set | ||
953 | CONFIG_DEBUG_ERRORS=y | 1007 | CONFIG_DEBUG_ERRORS=y |
954 | CONFIG_DEBUG_LL=y | 1008 | CONFIG_DEBUG_LL=y |
955 | # CONFIG_DEBUG_ICEDCC is not set | 1009 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -966,12 +1020,9 @@ CONFIG_DEBUG_LL=y | |||
966 | # CONFIG_CRYPTO is not set | 1020 | # CONFIG_CRYPTO is not set |
967 | 1021 | ||
968 | # | 1022 | # |
969 | # Hardware crypto devices | ||
970 | # | ||
971 | |||
972 | # | ||
973 | # Library routines | 1023 | # Library routines |
974 | # | 1024 | # |
1025 | CONFIG_BITREVERSE=y | ||
975 | # CONFIG_CRC_CCITT is not set | 1026 | # CONFIG_CRC_CCITT is not set |
976 | # CONFIG_CRC16 is not set | 1027 | # CONFIG_CRC16 is not set |
977 | CONFIG_CRC32=y | 1028 | CONFIG_CRC32=y |
@@ -979,3 +1030,4 @@ CONFIG_CRC32=y | |||
979 | CONFIG_ZLIB_INFLATE=y | 1030 | CONFIG_ZLIB_INFLATE=y |
980 | CONFIG_ZLIB_DEFLATE=y | 1031 | CONFIG_ZLIB_DEFLATE=y |
981 | CONFIG_PLIST=y | 1032 | CONFIG_PLIST=y |
1033 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/lpd7a400_defconfig b/arch/arm/configs/lpd7a400_defconfig index bf9cf9c6d2df..f8ac29d5c654 100644 --- a/arch/arm/configs/lpd7a400_defconfig +++ b/arch/arm/configs/lpd7a400_defconfig | |||
@@ -850,7 +850,6 @@ CONFIG_DEBUG_INFO=y | |||
850 | # CONFIG_DEBUG_FS is not set | 850 | # CONFIG_DEBUG_FS is not set |
851 | CONFIG_FRAME_POINTER=y | 851 | CONFIG_FRAME_POINTER=y |
852 | CONFIG_DEBUG_USER=y | 852 | CONFIG_DEBUG_USER=y |
853 | # CONFIG_DEBUG_WAITQ is not set | ||
854 | CONFIG_DEBUG_ERRORS=y | 853 | CONFIG_DEBUG_ERRORS=y |
855 | # CONFIG_DEBUG_LL is not set | 854 | # CONFIG_DEBUG_LL is not set |
856 | 855 | ||
diff --git a/arch/arm/configs/lpd7a404_defconfig b/arch/arm/configs/lpd7a404_defconfig index 3a57be32e849..46a0f7fe1fa5 100644 --- a/arch/arm/configs/lpd7a404_defconfig +++ b/arch/arm/configs/lpd7a404_defconfig | |||
@@ -1100,7 +1100,6 @@ CONFIG_FRAME_POINTER=y | |||
1100 | CONFIG_FORCED_INLINING=y | 1100 | CONFIG_FORCED_INLINING=y |
1101 | # CONFIG_RCU_TORTURE_TEST is not set | 1101 | # CONFIG_RCU_TORTURE_TEST is not set |
1102 | CONFIG_DEBUG_USER=y | 1102 | CONFIG_DEBUG_USER=y |
1103 | # CONFIG_DEBUG_WAITQ is not set | ||
1104 | CONFIG_DEBUG_ERRORS=y | 1103 | CONFIG_DEBUG_ERRORS=y |
1105 | # CONFIG_DEBUG_LL is not set | 1104 | # CONFIG_DEBUG_LL is not set |
1106 | 1105 | ||
diff --git a/arch/arm/configs/lubbock_defconfig b/arch/arm/configs/lubbock_defconfig index 81daadcbe0ba..e544bfbbde5d 100644 --- a/arch/arm/configs/lubbock_defconfig +++ b/arch/arm/configs/lubbock_defconfig | |||
@@ -772,7 +772,6 @@ CONFIG_DEBUG_INFO=y | |||
772 | # CONFIG_DEBUG_FS is not set | 772 | # CONFIG_DEBUG_FS is not set |
773 | CONFIG_FRAME_POINTER=y | 773 | CONFIG_FRAME_POINTER=y |
774 | CONFIG_DEBUG_USER=y | 774 | CONFIG_DEBUG_USER=y |
775 | # CONFIG_DEBUG_WAITQ is not set | ||
776 | CONFIG_DEBUG_ERRORS=y | 775 | CONFIG_DEBUG_ERRORS=y |
777 | CONFIG_DEBUG_LL=y | 776 | CONFIG_DEBUG_LL=y |
778 | # CONFIG_DEBUG_ICEDCC is not set | 777 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/mainstone_defconfig b/arch/arm/configs/mainstone_defconfig index b112bd75bda2..cc8c95b99292 100644 --- a/arch/arm/configs/mainstone_defconfig +++ b/arch/arm/configs/mainstone_defconfig | |||
@@ -766,7 +766,6 @@ CONFIG_DEBUG_INFO=y | |||
766 | # CONFIG_DEBUG_FS is not set | 766 | # CONFIG_DEBUG_FS is not set |
767 | CONFIG_FRAME_POINTER=y | 767 | CONFIG_FRAME_POINTER=y |
768 | CONFIG_DEBUG_USER=y | 768 | CONFIG_DEBUG_USER=y |
769 | # CONFIG_DEBUG_WAITQ is not set | ||
770 | CONFIG_DEBUG_ERRORS=y | 769 | CONFIG_DEBUG_ERRORS=y |
771 | CONFIG_DEBUG_LL=y | 770 | CONFIG_DEBUG_LL=y |
772 | # CONFIG_DEBUG_ICEDCC is not set | 771 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/mx1ads_defconfig b/arch/arm/configs/mx1ads_defconfig index d16f6cd6e039..577d7e1b5d42 100644 --- a/arch/arm/configs/mx1ads_defconfig +++ b/arch/arm/configs/mx1ads_defconfig | |||
@@ -691,7 +691,6 @@ CONFIG_DEBUG_INFO=y | |||
691 | # CONFIG_DEBUG_FS is not set | 691 | # CONFIG_DEBUG_FS is not set |
692 | CONFIG_FRAME_POINTER=y | 692 | CONFIG_FRAME_POINTER=y |
693 | CONFIG_DEBUG_USER=y | 693 | CONFIG_DEBUG_USER=y |
694 | # CONFIG_DEBUG_WAITQ is not set | ||
695 | CONFIG_DEBUG_ERRORS=y | 694 | CONFIG_DEBUG_ERRORS=y |
696 | # CONFIG_DEBUG_LL is not set | 695 | # CONFIG_DEBUG_LL is not set |
697 | 696 | ||
diff --git a/arch/arm/configs/neponset_defconfig b/arch/arm/configs/neponset_defconfig index df8168e57b7c..e86794a10fc0 100644 --- a/arch/arm/configs/neponset_defconfig +++ b/arch/arm/configs/neponset_defconfig | |||
@@ -1115,7 +1115,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1115 | # CONFIG_DEBUG_FS is not set | 1115 | # CONFIG_DEBUG_FS is not set |
1116 | CONFIG_FRAME_POINTER=y | 1116 | CONFIG_FRAME_POINTER=y |
1117 | CONFIG_DEBUG_USER=y | 1117 | CONFIG_DEBUG_USER=y |
1118 | # CONFIG_DEBUG_WAITQ is not set | ||
1119 | CONFIG_DEBUG_ERRORS=y | 1118 | CONFIG_DEBUG_ERRORS=y |
1120 | CONFIG_DEBUG_LL=y | 1119 | CONFIG_DEBUG_LL=y |
1121 | # CONFIG_DEBUG_ICEDCC is not set | 1120 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/netwinder_defconfig b/arch/arm/configs/netwinder_defconfig index 2cae1ead9f9b..c1a63a35c58d 100644 --- a/arch/arm/configs/netwinder_defconfig +++ b/arch/arm/configs/netwinder_defconfig | |||
@@ -994,7 +994,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
994 | # CONFIG_DEBUG_FS is not set | 994 | # CONFIG_DEBUG_FS is not set |
995 | CONFIG_FRAME_POINTER=y | 995 | CONFIG_FRAME_POINTER=y |
996 | CONFIG_DEBUG_USER=y | 996 | CONFIG_DEBUG_USER=y |
997 | # CONFIG_DEBUG_WAITQ is not set | ||
998 | # CONFIG_DEBUG_ERRORS is not set | 997 | # CONFIG_DEBUG_ERRORS is not set |
999 | # CONFIG_DEBUG_LL is not set | 998 | # CONFIG_DEBUG_LL is not set |
1000 | 999 | ||
diff --git a/arch/arm/configs/netx_defconfig b/arch/arm/configs/netx_defconfig index 61115a773382..57f32f39d0ff 100644 --- a/arch/arm/configs/netx_defconfig +++ b/arch/arm/configs/netx_defconfig | |||
@@ -872,7 +872,6 @@ CONFIG_FRAME_POINTER=y | |||
872 | CONFIG_FORCED_INLINING=y | 872 | CONFIG_FORCED_INLINING=y |
873 | # CONFIG_RCU_TORTURE_TEST is not set | 873 | # CONFIG_RCU_TORTURE_TEST is not set |
874 | # CONFIG_DEBUG_USER is not set | 874 | # CONFIG_DEBUG_USER is not set |
875 | # CONFIG_DEBUG_WAITQ is not set | ||
876 | CONFIG_DEBUG_ERRORS=y | 875 | CONFIG_DEBUG_ERRORS=y |
877 | # CONFIG_DEBUG_LL is not set | 876 | # CONFIG_DEBUG_LL is not set |
878 | 877 | ||
diff --git a/arch/arm/configs/onearm_defconfig b/arch/arm/configs/onearm_defconfig index 9b9f2155af35..650a248613e5 100644 --- a/arch/arm/configs/onearm_defconfig +++ b/arch/arm/configs/onearm_defconfig | |||
@@ -1,14 +1,18 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18-rc1 | 3 | # Linux kernel version: 2.6.20-rc1 |
4 | # Sun Jul 9 14:16:20 2006 | 4 | # Sat Dec 16 06:05:18 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | # CONFIG_GENERIC_TIME is not set | ||
7 | CONFIG_MMU=y | 8 | CONFIG_MMU=y |
8 | CONFIG_GENERIC_HARDIRQS=y | 9 | CONFIG_GENERIC_HARDIRQS=y |
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
9 | CONFIG_HARDIRQS_SW_RESEND=y | 11 | CONFIG_HARDIRQS_SW_RESEND=y |
10 | CONFIG_GENERIC_IRQ_PROBE=y | 12 | CONFIG_GENERIC_IRQ_PROBE=y |
11 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
12 | CONFIG_GENERIC_HWEIGHT=y | 16 | CONFIG_GENERIC_HWEIGHT=y |
13 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 17 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
14 | CONFIG_VECTORS_BASE=0xffff0000 | 18 | CONFIG_VECTORS_BASE=0xffff0000 |
@@ -28,16 +32,21 @@ CONFIG_LOCALVERSION="" | |||
28 | CONFIG_LOCALVERSION_AUTO=y | 32 | CONFIG_LOCALVERSION_AUTO=y |
29 | # CONFIG_SWAP is not set | 33 | # CONFIG_SWAP is not set |
30 | CONFIG_SYSVIPC=y | 34 | CONFIG_SYSVIPC=y |
35 | # CONFIG_IPC_NS is not set | ||
31 | # CONFIG_POSIX_MQUEUE is not set | 36 | # CONFIG_POSIX_MQUEUE is not set |
32 | # CONFIG_BSD_PROCESS_ACCT is not set | 37 | # CONFIG_BSD_PROCESS_ACCT is not set |
33 | CONFIG_SYSCTL=y | 38 | # CONFIG_TASKSTATS is not set |
39 | # CONFIG_UTS_NS is not set | ||
34 | # CONFIG_AUDIT is not set | 40 | # CONFIG_AUDIT is not set |
35 | # CONFIG_IKCONFIG is not set | 41 | # CONFIG_IKCONFIG is not set |
42 | CONFIG_SYSFS_DEPRECATED=y | ||
36 | # CONFIG_RELAY is not set | 43 | # CONFIG_RELAY is not set |
37 | CONFIG_INITRAMFS_SOURCE="" | 44 | CONFIG_INITRAMFS_SOURCE="" |
38 | CONFIG_UID16=y | ||
39 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 45 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
46 | CONFIG_SYSCTL=y | ||
40 | CONFIG_EMBEDDED=y | 47 | CONFIG_EMBEDDED=y |
48 | CONFIG_UID16=y | ||
49 | CONFIG_SYSCTL_SYSCALL=y | ||
41 | CONFIG_KALLSYMS=y | 50 | CONFIG_KALLSYMS=y |
42 | # CONFIG_KALLSYMS_ALL is not set | 51 | # CONFIG_KALLSYMS_ALL is not set |
43 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 52 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -46,12 +55,12 @@ CONFIG_PRINTK=y | |||
46 | CONFIG_BUG=y | 55 | CONFIG_BUG=y |
47 | CONFIG_ELF_CORE=y | 56 | CONFIG_ELF_CORE=y |
48 | CONFIG_BASE_FULL=y | 57 | CONFIG_BASE_FULL=y |
49 | CONFIG_RT_MUTEXES=y | ||
50 | CONFIG_FUTEX=y | 58 | CONFIG_FUTEX=y |
51 | CONFIG_EPOLL=y | 59 | CONFIG_EPOLL=y |
52 | CONFIG_SHMEM=y | 60 | CONFIG_SHMEM=y |
53 | CONFIG_SLAB=y | 61 | CONFIG_SLAB=y |
54 | CONFIG_VM_EVENT_COUNTERS=y | 62 | CONFIG_VM_EVENT_COUNTERS=y |
63 | CONFIG_RT_MUTEXES=y | ||
55 | # CONFIG_TINY_SHMEM is not set | 64 | # CONFIG_TINY_SHMEM is not set |
56 | CONFIG_BASE_SMALL=0 | 65 | CONFIG_BASE_SMALL=0 |
57 | # CONFIG_SLOB is not set | 66 | # CONFIG_SLOB is not set |
@@ -69,7 +78,10 @@ CONFIG_KMOD=y | |||
69 | # | 78 | # |
70 | # Block layer | 79 | # Block layer |
71 | # | 80 | # |
81 | CONFIG_BLOCK=y | ||
82 | # CONFIG_LBD is not set | ||
72 | # CONFIG_BLK_DEV_IO_TRACE is not set | 83 | # CONFIG_BLK_DEV_IO_TRACE is not set |
84 | # CONFIG_LSF is not set | ||
73 | 85 | ||
74 | # | 86 | # |
75 | # IO Schedulers | 87 | # IO Schedulers |
@@ -101,7 +113,9 @@ CONFIG_ARCH_AT91=y | |||
101 | # CONFIG_ARCH_NETX is not set | 113 | # CONFIG_ARCH_NETX is not set |
102 | # CONFIG_ARCH_H720X is not set | 114 | # CONFIG_ARCH_H720X is not set |
103 | # CONFIG_ARCH_IMX is not set | 115 | # CONFIG_ARCH_IMX is not set |
104 | # CONFIG_ARCH_IOP3XX is not set | 116 | # CONFIG_ARCH_IOP32X is not set |
117 | # CONFIG_ARCH_IOP33X is not set | ||
118 | # CONFIG_ARCH_IOP13XX is not set | ||
105 | # CONFIG_ARCH_IXP4XX is not set | 119 | # CONFIG_ARCH_IXP4XX is not set |
106 | # CONFIG_ARCH_IXP2000 is not set | 120 | # CONFIG_ARCH_IXP2000 is not set |
107 | # CONFIG_ARCH_IXP23XX is not set | 121 | # CONFIG_ARCH_IXP23XX is not set |
@@ -118,10 +132,6 @@ CONFIG_ARCH_AT91=y | |||
118 | # | 132 | # |
119 | # Atmel AT91 System-on-Chip | 133 | # Atmel AT91 System-on-Chip |
120 | # | 134 | # |
121 | |||
122 | # | ||
123 | # Atmel AT91 Processors | ||
124 | # | ||
125 | CONFIG_ARCH_AT91RM9200=y | 135 | CONFIG_ARCH_AT91RM9200=y |
126 | # CONFIG_ARCH_AT91SAM9260 is not set | 136 | # CONFIG_ARCH_AT91SAM9260 is not set |
127 | # CONFIG_ARCH_AT91SAM9261 is not set | 137 | # CONFIG_ARCH_AT91SAM9261 is not set |
@@ -140,6 +150,10 @@ CONFIG_MACH_ONEARM=y | |||
140 | # CONFIG_MACH_KAFA is not set | 150 | # CONFIG_MACH_KAFA is not set |
141 | 151 | ||
142 | # | 152 | # |
153 | # AT91 Board Options | ||
154 | # | ||
155 | |||
156 | # | ||
143 | # AT91 Feature Selections | 157 | # AT91 Feature Selections |
144 | # | 158 | # |
145 | CONFIG_AT91_PROGRAMMABLE_CLOCKS=y | 159 | CONFIG_AT91_PROGRAMMABLE_CLOCKS=y |
@@ -149,12 +163,14 @@ CONFIG_AT91_PROGRAMMABLE_CLOCKS=y | |||
149 | # | 163 | # |
150 | CONFIG_CPU_32=y | 164 | CONFIG_CPU_32=y |
151 | CONFIG_CPU_ARM920T=y | 165 | CONFIG_CPU_ARM920T=y |
152 | CONFIG_CPU_32v4=y | 166 | CONFIG_CPU_32v4T=y |
153 | CONFIG_CPU_ABRT_EV4T=y | 167 | CONFIG_CPU_ABRT_EV4T=y |
154 | CONFIG_CPU_CACHE_V4WT=y | 168 | CONFIG_CPU_CACHE_V4WT=y |
155 | CONFIG_CPU_CACHE_VIVT=y | 169 | CONFIG_CPU_CACHE_VIVT=y |
156 | CONFIG_CPU_COPY_V4WB=y | 170 | CONFIG_CPU_COPY_V4WB=y |
157 | CONFIG_CPU_TLB_V4WBI=y | 171 | CONFIG_CPU_TLB_V4WBI=y |
172 | CONFIG_CPU_CP15=y | ||
173 | CONFIG_CPU_CP15_MMU=y | ||
158 | 174 | ||
159 | # | 175 | # |
160 | # Processor Features | 176 | # Processor Features |
@@ -251,6 +267,7 @@ CONFIG_PACKET=y | |||
251 | CONFIG_UNIX=y | 267 | CONFIG_UNIX=y |
252 | CONFIG_XFRM=y | 268 | CONFIG_XFRM=y |
253 | # CONFIG_XFRM_USER is not set | 269 | # CONFIG_XFRM_USER is not set |
270 | # CONFIG_XFRM_SUB_POLICY is not set | ||
254 | # CONFIG_NET_KEY is not set | 271 | # CONFIG_NET_KEY is not set |
255 | CONFIG_INET=y | 272 | CONFIG_INET=y |
256 | # CONFIG_IP_MULTICAST is not set | 273 | # CONFIG_IP_MULTICAST is not set |
@@ -271,13 +288,29 @@ CONFIG_IP_PNP_BOOTP=y | |||
271 | # CONFIG_INET_TUNNEL is not set | 288 | # CONFIG_INET_TUNNEL is not set |
272 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 289 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
273 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 290 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
291 | CONFIG_INET_XFRM_MODE_BEET=y | ||
274 | CONFIG_INET_DIAG=y | 292 | CONFIG_INET_DIAG=y |
275 | CONFIG_INET_TCP_DIAG=y | 293 | CONFIG_INET_TCP_DIAG=y |
276 | # CONFIG_TCP_CONG_ADVANCED is not set | 294 | # CONFIG_TCP_CONG_ADVANCED is not set |
277 | CONFIG_TCP_CONG_BIC=y | 295 | CONFIG_TCP_CONG_CUBIC=y |
278 | # CONFIG_IPV6 is not set | 296 | CONFIG_DEFAULT_TCP_CONG="cubic" |
297 | # CONFIG_TCP_MD5SIG is not set | ||
298 | CONFIG_IPV6=y | ||
299 | # CONFIG_IPV6_PRIVACY is not set | ||
300 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
301 | # CONFIG_INET6_AH is not set | ||
302 | # CONFIG_INET6_ESP is not set | ||
303 | # CONFIG_INET6_IPCOMP is not set | ||
304 | # CONFIG_IPV6_MIP6 is not set | ||
279 | # CONFIG_INET6_XFRM_TUNNEL is not set | 305 | # CONFIG_INET6_XFRM_TUNNEL is not set |
280 | # CONFIG_INET6_TUNNEL is not set | 306 | # CONFIG_INET6_TUNNEL is not set |
307 | # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set | ||
308 | # CONFIG_INET6_XFRM_MODE_TUNNEL is not set | ||
309 | # CONFIG_INET6_XFRM_MODE_BEET is not set | ||
310 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
311 | # CONFIG_IPV6_SIT is not set | ||
312 | # CONFIG_IPV6_TUNNEL is not set | ||
313 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
281 | # CONFIG_NETWORK_SECMARK is not set | 314 | # CONFIG_NETWORK_SECMARK is not set |
282 | # CONFIG_NETFILTER is not set | 315 | # CONFIG_NETFILTER is not set |
283 | 316 | ||
@@ -304,7 +337,6 @@ CONFIG_TCP_CONG_BIC=y | |||
304 | # CONFIG_ATALK is not set | 337 | # CONFIG_ATALK is not set |
305 | # CONFIG_X25 is not set | 338 | # CONFIG_X25 is not set |
306 | # CONFIG_LAPB is not set | 339 | # CONFIG_LAPB is not set |
307 | # CONFIG_NET_DIVERT is not set | ||
308 | # CONFIG_ECONET is not set | 340 | # CONFIG_ECONET is not set |
309 | # CONFIG_WAN_ROUTER is not set | 341 | # CONFIG_WAN_ROUTER is not set |
310 | 342 | ||
@@ -360,6 +392,7 @@ CONFIG_MTD_BLOCK=y | |||
360 | # CONFIG_NFTL is not set | 392 | # CONFIG_NFTL is not set |
361 | # CONFIG_INFTL is not set | 393 | # CONFIG_INFTL is not set |
362 | # CONFIG_RFD_FTL is not set | 394 | # CONFIG_RFD_FTL is not set |
395 | # CONFIG_SSFDC is not set | ||
363 | 396 | ||
364 | # | 397 | # |
365 | # RAM/ROM/Flash chip drivers | 398 | # RAM/ROM/Flash chip drivers |
@@ -438,11 +471,12 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=0 | |||
438 | # | 471 | # |
439 | # CONFIG_BLK_DEV_COW_COMMON is not set | 472 | # CONFIG_BLK_DEV_COW_COMMON is not set |
440 | # CONFIG_BLK_DEV_LOOP is not set | 473 | # CONFIG_BLK_DEV_LOOP is not set |
441 | # CONFIG_BLK_DEV_NBD is not set | 474 | CONFIG_BLK_DEV_NBD=y |
442 | # CONFIG_BLK_DEV_UB is not set | 475 | # CONFIG_BLK_DEV_UB is not set |
443 | CONFIG_BLK_DEV_RAM=y | 476 | CONFIG_BLK_DEV_RAM=y |
444 | CONFIG_BLK_DEV_RAM_COUNT=16 | 477 | CONFIG_BLK_DEV_RAM_COUNT=16 |
445 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 478 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
479 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
446 | CONFIG_BLK_DEV_INITRD=y | 480 | CONFIG_BLK_DEV_INITRD=y |
447 | # CONFIG_CDROM_PKTCDVD is not set | 481 | # CONFIG_CDROM_PKTCDVD is not set |
448 | # CONFIG_ATA_OVER_ETH is not set | 482 | # CONFIG_ATA_OVER_ETH is not set |
@@ -457,6 +491,12 @@ CONFIG_BLK_DEV_INITRD=y | |||
457 | # | 491 | # |
458 | # CONFIG_RAID_ATTRS is not set | 492 | # CONFIG_RAID_ATTRS is not set |
459 | # CONFIG_SCSI is not set | 493 | # CONFIG_SCSI is not set |
494 | # CONFIG_SCSI_NETLINK is not set | ||
495 | |||
496 | # | ||
497 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
498 | # | ||
499 | # CONFIG_ATA is not set | ||
460 | 500 | ||
461 | # | 501 | # |
462 | # Multi-device support (RAID and LVM) | 502 | # Multi-device support (RAID and LVM) |
@@ -541,6 +581,7 @@ CONFIG_ARM_AT91_ETHER=y | |||
541 | # Input device support | 581 | # Input device support |
542 | # | 582 | # |
543 | CONFIG_INPUT=y | 583 | CONFIG_INPUT=y |
584 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
544 | 585 | ||
545 | # | 586 | # |
546 | # Userland interfaces | 587 | # Userland interfaces |
@@ -619,10 +660,6 @@ CONFIG_AT91RM9200_WATCHDOG=y | |||
619 | # CONFIG_R3964 is not set | 660 | # CONFIG_R3964 is not set |
620 | 661 | ||
621 | # | 662 | # |
622 | # Ftape, the floppy tape device driver | ||
623 | # | ||
624 | |||
625 | # | ||
626 | # PCMCIA character devices | 663 | # PCMCIA character devices |
627 | # | 664 | # |
628 | # CONFIG_SYNCLINK_CS is not set | 665 | # CONFIG_SYNCLINK_CS is not set |
@@ -634,7 +671,6 @@ CONFIG_AT91RM9200_WATCHDOG=y | |||
634 | # TPM devices | 671 | # TPM devices |
635 | # | 672 | # |
636 | # CONFIG_TCG_TPM is not set | 673 | # CONFIG_TCG_TPM is not set |
637 | # CONFIG_TELCLOCK is not set | ||
638 | 674 | ||
639 | # | 675 | # |
640 | # I2C support | 676 | # I2C support |
@@ -652,6 +688,7 @@ CONFIG_I2C_CHARDEV=y | |||
652 | # | 688 | # |
653 | # I2C Hardware Bus support | 689 | # I2C Hardware Bus support |
654 | # | 690 | # |
691 | # CONFIG_I2C_AT91 is not set | ||
655 | # CONFIG_I2C_OCORES is not set | 692 | # CONFIG_I2C_OCORES is not set |
656 | # CONFIG_I2C_PARPORT_LIGHT is not set | 693 | # CONFIG_I2C_PARPORT_LIGHT is not set |
657 | # CONFIG_I2C_STUB is not set | 694 | # CONFIG_I2C_STUB is not set |
@@ -681,6 +718,7 @@ CONFIG_I2C_CHARDEV=y | |||
681 | # | 718 | # |
682 | # Dallas's 1-wire bus | 719 | # Dallas's 1-wire bus |
683 | # | 720 | # |
721 | # CONFIG_W1 is not set | ||
684 | 722 | ||
685 | # | 723 | # |
686 | # Hardware Monitoring support | 724 | # Hardware Monitoring support |
@@ -714,12 +752,15 @@ CONFIG_HWMON=y | |||
714 | # CONFIG_SENSORS_LM92 is not set | 752 | # CONFIG_SENSORS_LM92 is not set |
715 | # CONFIG_SENSORS_MAX1619 is not set | 753 | # CONFIG_SENSORS_MAX1619 is not set |
716 | # CONFIG_SENSORS_PC87360 is not set | 754 | # CONFIG_SENSORS_PC87360 is not set |
755 | # CONFIG_SENSORS_PC87427 is not set | ||
717 | # CONFIG_SENSORS_SMSC47M1 is not set | 756 | # CONFIG_SENSORS_SMSC47M1 is not set |
718 | # CONFIG_SENSORS_SMSC47M192 is not set | 757 | # CONFIG_SENSORS_SMSC47M192 is not set |
719 | # CONFIG_SENSORS_SMSC47B397 is not set | 758 | # CONFIG_SENSORS_SMSC47B397 is not set |
759 | # CONFIG_SENSORS_VT1211 is not set | ||
720 | # CONFIG_SENSORS_W83781D is not set | 760 | # CONFIG_SENSORS_W83781D is not set |
721 | # CONFIG_SENSORS_W83791D is not set | 761 | # CONFIG_SENSORS_W83791D is not set |
722 | # CONFIG_SENSORS_W83792D is not set | 762 | # CONFIG_SENSORS_W83792D is not set |
763 | # CONFIG_SENSORS_W83793 is not set | ||
723 | # CONFIG_SENSORS_W83L785TS is not set | 764 | # CONFIG_SENSORS_W83L785TS is not set |
724 | # CONFIG_SENSORS_W83627HF is not set | 765 | # CONFIG_SENSORS_W83627HF is not set |
725 | # CONFIG_SENSORS_W83627EHF is not set | 766 | # CONFIG_SENSORS_W83627EHF is not set |
@@ -728,6 +769,7 @@ CONFIG_HWMON=y | |||
728 | # | 769 | # |
729 | # Misc devices | 770 | # Misc devices |
730 | # | 771 | # |
772 | # CONFIG_TIFM_CORE is not set | ||
731 | 773 | ||
732 | # | 774 | # |
733 | # LED devices | 775 | # LED devices |
@@ -746,7 +788,6 @@ CONFIG_HWMON=y | |||
746 | # Multimedia devices | 788 | # Multimedia devices |
747 | # | 789 | # |
748 | # CONFIG_VIDEO_DEV is not set | 790 | # CONFIG_VIDEO_DEV is not set |
749 | CONFIG_VIDEO_V4L2=y | ||
750 | 791 | ||
751 | # | 792 | # |
752 | # Digital Video Broadcasting Devices | 793 | # Digital Video Broadcasting Devices |
@@ -759,6 +800,7 @@ CONFIG_VIDEO_V4L2=y | |||
759 | # | 800 | # |
760 | # CONFIG_FIRMWARE_EDID is not set | 801 | # CONFIG_FIRMWARE_EDID is not set |
761 | # CONFIG_FB is not set | 802 | # CONFIG_FB is not set |
803 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
762 | 804 | ||
763 | # | 805 | # |
764 | # Sound | 806 | # Sound |
@@ -766,6 +808,11 @@ CONFIG_VIDEO_V4L2=y | |||
766 | # CONFIG_SOUND is not set | 808 | # CONFIG_SOUND is not set |
767 | 809 | ||
768 | # | 810 | # |
811 | # HID Devices | ||
812 | # | ||
813 | CONFIG_HID=y | ||
814 | |||
815 | # | ||
769 | # USB support | 816 | # USB support |
770 | # | 817 | # |
771 | CONFIG_USB_ARCH_HAS_HCD=y | 818 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -780,6 +827,7 @@ CONFIG_USB_DEBUG=y | |||
780 | CONFIG_USB_DEVICEFS=y | 827 | CONFIG_USB_DEVICEFS=y |
781 | # CONFIG_USB_BANDWIDTH is not set | 828 | # CONFIG_USB_BANDWIDTH is not set |
782 | # CONFIG_USB_DYNAMIC_MINORS is not set | 829 | # CONFIG_USB_DYNAMIC_MINORS is not set |
830 | # CONFIG_USB_MULTITHREAD_PROBE is not set | ||
783 | # CONFIG_USB_OTG is not set | 831 | # CONFIG_USB_OTG is not set |
784 | 832 | ||
785 | # | 833 | # |
@@ -804,7 +852,6 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
804 | # | 852 | # |
805 | # may also be needed; see USB_STORAGE Help for more information | 853 | # may also be needed; see USB_STORAGE Help for more information |
806 | # | 854 | # |
807 | # CONFIG_USB_STORAGE is not set | ||
808 | # CONFIG_USB_LIBUSUAL is not set | 855 | # CONFIG_USB_LIBUSUAL is not set |
809 | 856 | ||
810 | # | 857 | # |
@@ -842,6 +889,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
842 | # CONFIG_USB_KAWETH is not set | 889 | # CONFIG_USB_KAWETH is not set |
843 | # CONFIG_USB_PEGASUS is not set | 890 | # CONFIG_USB_PEGASUS is not set |
844 | # CONFIG_USB_RTL8150 is not set | 891 | # CONFIG_USB_RTL8150 is not set |
892 | # CONFIG_USB_USBNET_MII is not set | ||
845 | # CONFIG_USB_USBNET is not set | 893 | # CONFIG_USB_USBNET is not set |
846 | CONFIG_USB_MON=y | 894 | CONFIG_USB_MON=y |
847 | 895 | ||
@@ -859,18 +907,20 @@ CONFIG_USB_MON=y | |||
859 | # | 907 | # |
860 | # CONFIG_USB_EMI62 is not set | 908 | # CONFIG_USB_EMI62 is not set |
861 | # CONFIG_USB_EMI26 is not set | 909 | # CONFIG_USB_EMI26 is not set |
910 | # CONFIG_USB_ADUTUX is not set | ||
862 | # CONFIG_USB_AUERSWALD is not set | 911 | # CONFIG_USB_AUERSWALD is not set |
863 | # CONFIG_USB_RIO500 is not set | 912 | # CONFIG_USB_RIO500 is not set |
864 | # CONFIG_USB_LEGOTOWER is not set | 913 | # CONFIG_USB_LEGOTOWER is not set |
865 | # CONFIG_USB_LCD is not set | 914 | # CONFIG_USB_LCD is not set |
866 | # CONFIG_USB_LED is not set | 915 | # CONFIG_USB_LED is not set |
867 | # CONFIG_USB_CY7C63 is not set | 916 | # CONFIG_USB_CYPRESS_CY7C63 is not set |
868 | # CONFIG_USB_CYTHERM is not set | 917 | # CONFIG_USB_CYTHERM is not set |
869 | # CONFIG_USB_PHIDGETKIT is not set | 918 | # CONFIG_USB_PHIDGET is not set |
870 | # CONFIG_USB_PHIDGETSERVO is not set | ||
871 | # CONFIG_USB_IDMOUSE is not set | 919 | # CONFIG_USB_IDMOUSE is not set |
920 | # CONFIG_USB_FTDI_ELAN is not set | ||
872 | # CONFIG_USB_APPLEDISPLAY is not set | 921 | # CONFIG_USB_APPLEDISPLAY is not set |
873 | # CONFIG_USB_LD is not set | 922 | # CONFIG_USB_LD is not set |
923 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
874 | # CONFIG_USB_TEST is not set | 924 | # CONFIG_USB_TEST is not set |
875 | 925 | ||
876 | # | 926 | # |
@@ -897,6 +947,7 @@ CONFIG_USB_AT91=y | |||
897 | # CONFIG_USB_GADGETFS is not set | 947 | # CONFIG_USB_GADGETFS is not set |
898 | # CONFIG_USB_FILE_STORAGE is not set | 948 | # CONFIG_USB_FILE_STORAGE is not set |
899 | # CONFIG_USB_G_SERIAL is not set | 949 | # CONFIG_USB_G_SERIAL is not set |
950 | # CONFIG_USB_MIDI_GADGET is not set | ||
900 | 951 | ||
901 | # | 952 | # |
902 | # MMC/SD Card support | 953 | # MMC/SD Card support |
@@ -904,7 +955,8 @@ CONFIG_USB_AT91=y | |||
904 | CONFIG_MMC=y | 955 | CONFIG_MMC=y |
905 | # CONFIG_MMC_DEBUG is not set | 956 | # CONFIG_MMC_DEBUG is not set |
906 | CONFIG_MMC_BLOCK=y | 957 | CONFIG_MMC_BLOCK=y |
907 | CONFIG_MMC_AT91RM9200=y | 958 | # CONFIG_MMC_AT91 is not set |
959 | # CONFIG_MMC_TIFM_SD is not set | ||
908 | 960 | ||
909 | # | 961 | # |
910 | # Real Time Clock | 962 | # Real Time Clock |
@@ -919,10 +971,12 @@ CONFIG_EXT2_FS=y | |||
919 | # CONFIG_EXT2_FS_XATTR is not set | 971 | # CONFIG_EXT2_FS_XATTR is not set |
920 | # CONFIG_EXT2_FS_XIP is not set | 972 | # CONFIG_EXT2_FS_XIP is not set |
921 | # CONFIG_EXT3_FS is not set | 973 | # CONFIG_EXT3_FS is not set |
974 | # CONFIG_EXT4DEV_FS is not set | ||
922 | # CONFIG_REISERFS_FS is not set | 975 | # CONFIG_REISERFS_FS is not set |
923 | # CONFIG_JFS_FS is not set | 976 | # CONFIG_JFS_FS is not set |
924 | CONFIG_FS_POSIX_ACL=y | 977 | CONFIG_FS_POSIX_ACL=y |
925 | # CONFIG_XFS_FS is not set | 978 | # CONFIG_XFS_FS is not set |
979 | # CONFIG_GFS2_FS is not set | ||
926 | # CONFIG_OCFS2_FS is not set | 980 | # CONFIG_OCFS2_FS is not set |
927 | # CONFIG_MINIX_FS is not set | 981 | # CONFIG_MINIX_FS is not set |
928 | # CONFIG_ROMFS_FS is not set | 982 | # CONFIG_ROMFS_FS is not set |
@@ -951,8 +1005,10 @@ CONFIG_DNOTIFY=y | |||
951 | # Pseudo filesystems | 1005 | # Pseudo filesystems |
952 | # | 1006 | # |
953 | CONFIG_PROC_FS=y | 1007 | CONFIG_PROC_FS=y |
1008 | CONFIG_PROC_SYSCTL=y | ||
954 | CONFIG_SYSFS=y | 1009 | CONFIG_SYSFS=y |
955 | CONFIG_TMPFS=y | 1010 | CONFIG_TMPFS=y |
1011 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
956 | # CONFIG_HUGETLB_PAGE is not set | 1012 | # CONFIG_HUGETLB_PAGE is not set |
957 | CONFIG_RAMFS=y | 1013 | CONFIG_RAMFS=y |
958 | # CONFIG_CONFIGFS_FS is not set | 1014 | # CONFIG_CONFIGFS_FS is not set |
@@ -995,7 +1051,6 @@ CONFIG_SUNRPC=y | |||
995 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1051 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
996 | # CONFIG_SMB_FS is not set | 1052 | # CONFIG_SMB_FS is not set |
997 | # CONFIG_CIFS is not set | 1053 | # CONFIG_CIFS is not set |
998 | # CONFIG_CIFS_DEBUG2 is not set | ||
999 | # CONFIG_NCP_FS is not set | 1054 | # CONFIG_NCP_FS is not set |
1000 | # CONFIG_CODA_FS is not set | 1055 | # CONFIG_CODA_FS is not set |
1001 | # CONFIG_AFS_FS is not set | 1056 | # CONFIG_AFS_FS is not set |
@@ -1013,6 +1068,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1013 | # CONFIG_NLS is not set | 1068 | # CONFIG_NLS is not set |
1014 | 1069 | ||
1015 | # | 1070 | # |
1071 | # Distributed Lock Manager | ||
1072 | # | ||
1073 | # CONFIG_DLM is not set | ||
1074 | |||
1075 | # | ||
1016 | # Profiling support | 1076 | # Profiling support |
1017 | # | 1077 | # |
1018 | # CONFIG_PROFILING is not set | 1078 | # CONFIG_PROFILING is not set |
@@ -1021,8 +1081,11 @@ CONFIG_MSDOS_PARTITION=y | |||
1021 | # Kernel hacking | 1081 | # Kernel hacking |
1022 | # | 1082 | # |
1023 | # CONFIG_PRINTK_TIME is not set | 1083 | # CONFIG_PRINTK_TIME is not set |
1084 | CONFIG_ENABLE_MUST_CHECK=y | ||
1024 | # CONFIG_MAGIC_SYSRQ is not set | 1085 | # CONFIG_MAGIC_SYSRQ is not set |
1025 | # CONFIG_UNUSED_SYMBOLS is not set | 1086 | # CONFIG_UNUSED_SYMBOLS is not set |
1087 | # CONFIG_DEBUG_FS is not set | ||
1088 | # CONFIG_HEADERS_CHECK is not set | ||
1026 | CONFIG_DEBUG_KERNEL=y | 1089 | CONFIG_DEBUG_KERNEL=y |
1027 | CONFIG_LOG_BUF_SHIFT=14 | 1090 | CONFIG_LOG_BUF_SHIFT=14 |
1028 | CONFIG_DETECT_SOFTLOCKUP=y | 1091 | CONFIG_DETECT_SOFTLOCKUP=y |
@@ -1038,14 +1101,12 @@ CONFIG_DETECT_SOFTLOCKUP=y | |||
1038 | # CONFIG_DEBUG_KOBJECT is not set | 1101 | # CONFIG_DEBUG_KOBJECT is not set |
1039 | CONFIG_DEBUG_BUGVERBOSE=y | 1102 | CONFIG_DEBUG_BUGVERBOSE=y |
1040 | # CONFIG_DEBUG_INFO is not set | 1103 | # CONFIG_DEBUG_INFO is not set |
1041 | # CONFIG_DEBUG_FS is not set | ||
1042 | # CONFIG_DEBUG_VM is not set | 1104 | # CONFIG_DEBUG_VM is not set |
1105 | # CONFIG_DEBUG_LIST is not set | ||
1043 | CONFIG_FRAME_POINTER=y | 1106 | CONFIG_FRAME_POINTER=y |
1044 | # CONFIG_UNWIND_INFO is not set | ||
1045 | CONFIG_FORCED_INLINING=y | 1107 | CONFIG_FORCED_INLINING=y |
1046 | # CONFIG_RCU_TORTURE_TEST is not set | 1108 | # CONFIG_RCU_TORTURE_TEST is not set |
1047 | CONFIG_DEBUG_USER=y | 1109 | CONFIG_DEBUG_USER=y |
1048 | # CONFIG_DEBUG_WAITQ is not set | ||
1049 | # CONFIG_DEBUG_ERRORS is not set | 1110 | # CONFIG_DEBUG_ERRORS is not set |
1050 | CONFIG_DEBUG_LL=y | 1111 | CONFIG_DEBUG_LL=y |
1051 | # CONFIG_DEBUG_ICEDCC is not set | 1112 | # CONFIG_DEBUG_ICEDCC is not set |
@@ -1062,15 +1123,13 @@ CONFIG_DEBUG_LL=y | |||
1062 | # CONFIG_CRYPTO is not set | 1123 | # CONFIG_CRYPTO is not set |
1063 | 1124 | ||
1064 | # | 1125 | # |
1065 | # Hardware crypto devices | ||
1066 | # | ||
1067 | |||
1068 | # | ||
1069 | # Library routines | 1126 | # Library routines |
1070 | # | 1127 | # |
1128 | CONFIG_BITREVERSE=y | ||
1071 | # CONFIG_CRC_CCITT is not set | 1129 | # CONFIG_CRC_CCITT is not set |
1072 | # CONFIG_CRC16 is not set | 1130 | # CONFIG_CRC16 is not set |
1073 | CONFIG_CRC32=y | 1131 | CONFIG_CRC32=y |
1074 | # CONFIG_LIBCRC32C is not set | 1132 | # CONFIG_LIBCRC32C is not set |
1075 | CONFIG_ZLIB_INFLATE=y | 1133 | CONFIG_ZLIB_INFLATE=y |
1076 | CONFIG_PLIST=y | 1134 | CONFIG_PLIST=y |
1135 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/configs/pleb_defconfig b/arch/arm/configs/pleb_defconfig index 24e8bdd4cb91..a6b47ea8e465 100644 --- a/arch/arm/configs/pleb_defconfig +++ b/arch/arm/configs/pleb_defconfig | |||
@@ -721,7 +721,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
721 | # CONFIG_DEBUG_FS is not set | 721 | # CONFIG_DEBUG_FS is not set |
722 | CONFIG_FRAME_POINTER=y | 722 | CONFIG_FRAME_POINTER=y |
723 | # CONFIG_DEBUG_USER is not set | 723 | # CONFIG_DEBUG_USER is not set |
724 | # CONFIG_DEBUG_WAITQ is not set | ||
725 | # CONFIG_DEBUG_ERRORS is not set | 724 | # CONFIG_DEBUG_ERRORS is not set |
726 | # CONFIG_DEBUG_LL is not set | 725 | # CONFIG_DEBUG_LL is not set |
727 | 726 | ||
diff --git a/arch/arm/configs/pnx4008_defconfig b/arch/arm/configs/pnx4008_defconfig index a4989f44baaa..b5e11aa2e290 100644 --- a/arch/arm/configs/pnx4008_defconfig +++ b/arch/arm/configs/pnx4008_defconfig | |||
@@ -1604,7 +1604,6 @@ CONFIG_FRAME_POINTER=y | |||
1604 | CONFIG_FORCED_INLINING=y | 1604 | CONFIG_FORCED_INLINING=y |
1605 | # CONFIG_RCU_TORTURE_TEST is not set | 1605 | # CONFIG_RCU_TORTURE_TEST is not set |
1606 | # CONFIG_DEBUG_USER is not set | 1606 | # CONFIG_DEBUG_USER is not set |
1607 | # CONFIG_DEBUG_WAITQ is not set | ||
1608 | # CONFIG_DEBUG_ERRORS is not set | 1607 | # CONFIG_DEBUG_ERRORS is not set |
1609 | # CONFIG_DEBUG_LL is not set | 1608 | # CONFIG_DEBUG_LL is not set |
1610 | 1609 | ||
diff --git a/arch/arm/configs/pxa255-idp_defconfig b/arch/arm/configs/pxa255-idp_defconfig index b71d31a4bb56..46e5089df0ae 100644 --- a/arch/arm/configs/pxa255-idp_defconfig +++ b/arch/arm/configs/pxa255-idp_defconfig | |||
@@ -768,7 +768,6 @@ CONFIG_DEBUG_INFO=y | |||
768 | # CONFIG_DEBUG_FS is not set | 768 | # CONFIG_DEBUG_FS is not set |
769 | CONFIG_FRAME_POINTER=y | 769 | CONFIG_FRAME_POINTER=y |
770 | CONFIG_DEBUG_USER=y | 770 | CONFIG_DEBUG_USER=y |
771 | # CONFIG_DEBUG_WAITQ is not set | ||
772 | CONFIG_DEBUG_ERRORS=y | 771 | CONFIG_DEBUG_ERRORS=y |
773 | CONFIG_DEBUG_LL=y | 772 | CONFIG_DEBUG_LL=y |
774 | # CONFIG_DEBUG_ICEDCC is not set | 773 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/realview-smp_defconfig b/arch/arm/configs/realview-smp_defconfig index ffd905ff19f1..fc39ba1a89f3 100644 --- a/arch/arm/configs/realview-smp_defconfig +++ b/arch/arm/configs/realview-smp_defconfig | |||
@@ -967,7 +967,6 @@ CONFIG_FORCED_INLINING=y | |||
967 | # CONFIG_HEADERS_CHECK is not set | 967 | # CONFIG_HEADERS_CHECK is not set |
968 | # CONFIG_RCU_TORTURE_TEST is not set | 968 | # CONFIG_RCU_TORTURE_TEST is not set |
969 | CONFIG_DEBUG_USER=y | 969 | CONFIG_DEBUG_USER=y |
970 | # CONFIG_DEBUG_WAITQ is not set | ||
971 | CONFIG_DEBUG_ERRORS=y | 970 | CONFIG_DEBUG_ERRORS=y |
972 | CONFIG_DEBUG_LL=y | 971 | CONFIG_DEBUG_LL=y |
973 | # CONFIG_DEBUG_ICEDCC is not set | 972 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/realview_defconfig b/arch/arm/configs/realview_defconfig index 3f1ec4e304f7..accbf529ce5b 100644 --- a/arch/arm/configs/realview_defconfig +++ b/arch/arm/configs/realview_defconfig | |||
@@ -759,7 +759,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
759 | # CONFIG_DEBUG_FS is not set | 759 | # CONFIG_DEBUG_FS is not set |
760 | CONFIG_FRAME_POINTER=y | 760 | CONFIG_FRAME_POINTER=y |
761 | CONFIG_DEBUG_USER=y | 761 | CONFIG_DEBUG_USER=y |
762 | # CONFIG_DEBUG_WAITQ is not set | ||
763 | CONFIG_DEBUG_ERRORS=y | 762 | CONFIG_DEBUG_ERRORS=y |
764 | # CONFIG_DEBUG_LL is not set | 763 | # CONFIG_DEBUG_LL is not set |
765 | 764 | ||
diff --git a/arch/arm/configs/rpc_defconfig b/arch/arm/configs/rpc_defconfig index b498afdc03b6..bc091264d354 100644 --- a/arch/arm/configs/rpc_defconfig +++ b/arch/arm/configs/rpc_defconfig | |||
@@ -910,7 +910,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
910 | # CONFIG_DEBUG_FS is not set | 910 | # CONFIG_DEBUG_FS is not set |
911 | CONFIG_FRAME_POINTER=y | 911 | CONFIG_FRAME_POINTER=y |
912 | CONFIG_DEBUG_USER=y | 912 | CONFIG_DEBUG_USER=y |
913 | # CONFIG_DEBUG_WAITQ is not set | ||
914 | CONFIG_DEBUG_ERRORS=y | 913 | CONFIG_DEBUG_ERRORS=y |
915 | CONFIG_DEBUG_LL=y | 914 | CONFIG_DEBUG_LL=y |
916 | # CONFIG_DEBUG_ICEDCC is not set | 915 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/s3c2410_defconfig b/arch/arm/configs/s3c2410_defconfig index c0152393e494..3b31a33d0080 100644 --- a/arch/arm/configs/s3c2410_defconfig +++ b/arch/arm/configs/s3c2410_defconfig | |||
@@ -1319,7 +1319,6 @@ CONFIG_FORCED_INLINING=y | |||
1319 | # CONFIG_HEADERS_CHECK is not set | 1319 | # CONFIG_HEADERS_CHECK is not set |
1320 | # CONFIG_RCU_TORTURE_TEST is not set | 1320 | # CONFIG_RCU_TORTURE_TEST is not set |
1321 | CONFIG_DEBUG_USER=y | 1321 | CONFIG_DEBUG_USER=y |
1322 | # CONFIG_DEBUG_WAITQ is not set | ||
1323 | # CONFIG_DEBUG_ERRORS is not set | 1322 | # CONFIG_DEBUG_ERRORS is not set |
1324 | CONFIG_DEBUG_LL=y | 1323 | CONFIG_DEBUG_LL=y |
1325 | # CONFIG_DEBUG_ICEDCC is not set | 1324 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/shark_defconfig b/arch/arm/configs/shark_defconfig index c48d17062262..9b6561d119af 100644 --- a/arch/arm/configs/shark_defconfig +++ b/arch/arm/configs/shark_defconfig | |||
@@ -965,7 +965,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
965 | # CONFIG_DEBUG_FS is not set | 965 | # CONFIG_DEBUG_FS is not set |
966 | CONFIG_FRAME_POINTER=y | 966 | CONFIG_FRAME_POINTER=y |
967 | CONFIG_DEBUG_USER=y | 967 | CONFIG_DEBUG_USER=y |
968 | # CONFIG_DEBUG_WAITQ is not set | ||
969 | # CONFIG_DEBUG_ERRORS is not set | 968 | # CONFIG_DEBUG_ERRORS is not set |
970 | # CONFIG_DEBUG_LL is not set | 969 | # CONFIG_DEBUG_LL is not set |
971 | 970 | ||
diff --git a/arch/arm/configs/simpad_defconfig b/arch/arm/configs/simpad_defconfig index 140056a3507f..03f783e696b3 100644 --- a/arch/arm/configs/simpad_defconfig +++ b/arch/arm/configs/simpad_defconfig | |||
@@ -934,7 +934,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
934 | # CONFIG_DEBUG_FS is not set | 934 | # CONFIG_DEBUG_FS is not set |
935 | CONFIG_FRAME_POINTER=y | 935 | CONFIG_FRAME_POINTER=y |
936 | CONFIG_DEBUG_USER=y | 936 | CONFIG_DEBUG_USER=y |
937 | # CONFIG_DEBUG_WAITQ is not set | ||
938 | CONFIG_DEBUG_ERRORS=y | 937 | CONFIG_DEBUG_ERRORS=y |
939 | CONFIG_DEBUG_LL=y | 938 | CONFIG_DEBUG_LL=y |
940 | # CONFIG_DEBUG_ICEDCC is not set | 939 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/spitz_defconfig b/arch/arm/configs/spitz_defconfig index bd03238968c1..aa7a01179500 100644 --- a/arch/arm/configs/spitz_defconfig +++ b/arch/arm/configs/spitz_defconfig | |||
@@ -1406,7 +1406,6 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1406 | CONFIG_FRAME_POINTER=y | 1406 | CONFIG_FRAME_POINTER=y |
1407 | # CONFIG_RCU_TORTURE_TEST is not set | 1407 | # CONFIG_RCU_TORTURE_TEST is not set |
1408 | # CONFIG_DEBUG_USER is not set | 1408 | # CONFIG_DEBUG_USER is not set |
1409 | # CONFIG_DEBUG_WAITQ is not set | ||
1410 | CONFIG_DEBUG_ERRORS=y | 1409 | CONFIG_DEBUG_ERRORS=y |
1411 | CONFIG_DEBUG_LL=y | 1410 | CONFIG_DEBUG_LL=y |
1412 | # CONFIG_DEBUG_ICEDCC is not set | 1411 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/configs/versatile_defconfig b/arch/arm/configs/versatile_defconfig index f7bf6ef27d19..48dca69addae 100644 --- a/arch/arm/configs/versatile_defconfig +++ b/arch/arm/configs/versatile_defconfig | |||
@@ -972,7 +972,6 @@ CONFIG_FRAME_POINTER=y | |||
972 | CONFIG_FORCED_INLINING=y | 972 | CONFIG_FORCED_INLINING=y |
973 | # CONFIG_RCU_TORTURE_TEST is not set | 973 | # CONFIG_RCU_TORTURE_TEST is not set |
974 | CONFIG_DEBUG_USER=y | 974 | CONFIG_DEBUG_USER=y |
975 | # CONFIG_DEBUG_WAITQ is not set | ||
976 | CONFIG_DEBUG_ERRORS=y | 975 | CONFIG_DEBUG_ERRORS=y |
977 | CONFIG_DEBUG_LL=y | 976 | CONFIG_DEBUG_LL=y |
978 | # CONFIG_DEBUG_ICEDCC is not set | 977 | # CONFIG_DEBUG_ICEDCC is not set |
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 1320a0efca73..ab06a86e85d5 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile | |||
@@ -24,7 +24,9 @@ obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o | |||
24 | obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o | 24 | obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o |
25 | AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 | 25 | AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 |
26 | 26 | ||
27 | obj-$(CONFIG_IWMMXT) += iwmmxt.o iwmmxt-notifier.o | 27 | obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o |
28 | obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o | ||
29 | obj-$(CONFIG_IWMMXT) += iwmmxt.o | ||
28 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt | 30 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt |
29 | 31 | ||
30 | ifneq ($(CONFIG_ARCH_EBSA110),y) | 32 | ifneq ($(CONFIG_ARCH_EBSA110),y) |
diff --git a/arch/arm/kernel/apm.c b/arch/arm/kernel/apm.c index ecf4f9472d94..2c37b70b17ab 100644 --- a/arch/arm/kernel/apm.c +++ b/arch/arm/kernel/apm.c | |||
@@ -12,7 +12,6 @@ | |||
12 | */ | 12 | */ |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/poll.h> | 14 | #include <linux/poll.h> |
15 | #include <linux/timer.h> | ||
16 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
17 | #include <linux/proc_fs.h> | 16 | #include <linux/proc_fs.h> |
18 | #include <linux/miscdevice.h> | 17 | #include <linux/miscdevice.h> |
@@ -26,6 +25,7 @@ | |||
26 | #include <linux/init.h> | 25 | #include <linux/init.h> |
27 | #include <linux/completion.h> | 26 | #include <linux/completion.h> |
28 | #include <linux/kthread.h> | 27 | #include <linux/kthread.h> |
28 | #include <linux/delay.h> | ||
29 | 29 | ||
30 | #include <asm/apm.h> /* apm_power_info */ | 30 | #include <asm/apm.h> /* apm_power_info */ |
31 | #include <asm/system.h> | 31 | #include <asm/system.h> |
@@ -71,7 +71,8 @@ struct apm_user { | |||
71 | #define SUSPEND_PENDING 1 /* suspend pending read */ | 71 | #define SUSPEND_PENDING 1 /* suspend pending read */ |
72 | #define SUSPEND_READ 2 /* suspend read, pending ack */ | 72 | #define SUSPEND_READ 2 /* suspend read, pending ack */ |
73 | #define SUSPEND_ACKED 3 /* suspend acked */ | 73 | #define SUSPEND_ACKED 3 /* suspend acked */ |
74 | #define SUSPEND_DONE 4 /* suspend completed */ | 74 | #define SUSPEND_WAIT 4 /* waiting for suspend */ |
75 | #define SUSPEND_DONE 5 /* suspend completed */ | ||
75 | 76 | ||
76 | struct apm_queue queue; | 77 | struct apm_queue queue; |
77 | }; | 78 | }; |
@@ -101,6 +102,7 @@ static DECLARE_WAIT_QUEUE_HEAD(kapmd_wait); | |||
101 | static DEFINE_SPINLOCK(kapmd_queue_lock); | 102 | static DEFINE_SPINLOCK(kapmd_queue_lock); |
102 | static struct apm_queue kapmd_queue; | 103 | static struct apm_queue kapmd_queue; |
103 | 104 | ||
105 | static DEFINE_MUTEX(state_lock); | ||
104 | 106 | ||
105 | static const char driver_version[] = "1.13"; /* no spaces */ | 107 | static const char driver_version[] = "1.13"; /* no spaces */ |
106 | 108 | ||
@@ -148,38 +150,60 @@ static void queue_add_event(struct apm_queue *q, apm_event_t event) | |||
148 | q->events[q->event_head] = event; | 150 | q->events[q->event_head] = event; |
149 | } | 151 | } |
150 | 152 | ||
151 | static void queue_event_one_user(struct apm_user *as, apm_event_t event) | 153 | static void queue_event(apm_event_t event) |
152 | { | 154 | { |
153 | if (as->suser && as->writer) { | 155 | struct apm_user *as; |
154 | switch (event) { | ||
155 | case APM_SYS_SUSPEND: | ||
156 | case APM_USER_SUSPEND: | ||
157 | /* | ||
158 | * If this user already has a suspend pending, | ||
159 | * don't queue another one. | ||
160 | */ | ||
161 | if (as->suspend_state != SUSPEND_NONE) | ||
162 | return; | ||
163 | 156 | ||
164 | as->suspend_state = SUSPEND_PENDING; | 157 | down_read(&user_list_lock); |
165 | suspends_pending++; | 158 | list_for_each_entry(as, &apm_user_list, list) { |
166 | break; | 159 | if (as->reader) |
167 | } | 160 | queue_add_event(&as->queue, event); |
168 | } | 161 | } |
169 | queue_add_event(&as->queue, event); | 162 | up_read(&user_list_lock); |
163 | wake_up_interruptible(&apm_waitqueue); | ||
170 | } | 164 | } |
171 | 165 | ||
172 | static void queue_event(apm_event_t event, struct apm_user *sender) | 166 | /* |
167 | * queue_suspend_event - queue an APM suspend event. | ||
168 | * | ||
169 | * Check that we're in a state where we can suspend. If not, | ||
170 | * return -EBUSY. Otherwise, queue an event to all "writer" | ||
171 | * users. If there are no "writer" users, return '1' to | ||
172 | * indicate that we can immediately suspend. | ||
173 | */ | ||
174 | static int queue_suspend_event(apm_event_t event, struct apm_user *sender) | ||
173 | { | 175 | { |
174 | struct apm_user *as; | 176 | struct apm_user *as; |
177 | int ret = 1; | ||
175 | 178 | ||
179 | mutex_lock(&state_lock); | ||
176 | down_read(&user_list_lock); | 180 | down_read(&user_list_lock); |
181 | |||
182 | /* | ||
183 | * If a thread is still processing, we can't suspend, so reject | ||
184 | * the request. | ||
185 | */ | ||
177 | list_for_each_entry(as, &apm_user_list, list) { | 186 | list_for_each_entry(as, &apm_user_list, list) { |
178 | if (as != sender && as->reader) | 187 | if (as != sender && as->reader && as->writer && as->suser && |
179 | queue_event_one_user(as, event); | 188 | as->suspend_state != SUSPEND_NONE) { |
189 | ret = -EBUSY; | ||
190 | goto out; | ||
191 | } | ||
180 | } | 192 | } |
193 | |||
194 | list_for_each_entry(as, &apm_user_list, list) { | ||
195 | if (as != sender && as->reader && as->writer && as->suser) { | ||
196 | as->suspend_state = SUSPEND_PENDING; | ||
197 | suspends_pending++; | ||
198 | queue_add_event(&as->queue, event); | ||
199 | ret = 0; | ||
200 | } | ||
201 | } | ||
202 | out: | ||
181 | up_read(&user_list_lock); | 203 | up_read(&user_list_lock); |
204 | mutex_unlock(&state_lock); | ||
182 | wake_up_interruptible(&apm_waitqueue); | 205 | wake_up_interruptible(&apm_waitqueue); |
206 | return ret; | ||
183 | } | 207 | } |
184 | 208 | ||
185 | static void apm_suspend(void) | 209 | static void apm_suspend(void) |
@@ -191,17 +215,22 @@ static void apm_suspend(void) | |||
191 | * Anyone on the APM queues will think we're still suspended. | 215 | * Anyone on the APM queues will think we're still suspended. |
192 | * Send a message so everyone knows we're now awake again. | 216 | * Send a message so everyone knows we're now awake again. |
193 | */ | 217 | */ |
194 | queue_event(APM_NORMAL_RESUME, NULL); | 218 | queue_event(APM_NORMAL_RESUME); |
195 | 219 | ||
196 | /* | 220 | /* |
197 | * Finally, wake up anyone who is sleeping on the suspend. | 221 | * Finally, wake up anyone who is sleeping on the suspend. |
198 | */ | 222 | */ |
223 | mutex_lock(&state_lock); | ||
199 | down_read(&user_list_lock); | 224 | down_read(&user_list_lock); |
200 | list_for_each_entry(as, &apm_user_list, list) { | 225 | list_for_each_entry(as, &apm_user_list, list) { |
201 | as->suspend_result = err; | 226 | if (as->suspend_state == SUSPEND_WAIT || |
202 | as->suspend_state = SUSPEND_DONE; | 227 | as->suspend_state == SUSPEND_ACKED) { |
228 | as->suspend_result = err; | ||
229 | as->suspend_state = SUSPEND_DONE; | ||
230 | } | ||
203 | } | 231 | } |
204 | up_read(&user_list_lock); | 232 | up_read(&user_list_lock); |
233 | mutex_unlock(&state_lock); | ||
205 | 234 | ||
206 | wake_up(&apm_suspend_waitqueue); | 235 | wake_up(&apm_suspend_waitqueue); |
207 | } | 236 | } |
@@ -227,8 +256,11 @@ static ssize_t apm_read(struct file *fp, char __user *buf, size_t count, loff_t | |||
227 | if (copy_to_user(buf, &event, sizeof(event))) | 256 | if (copy_to_user(buf, &event, sizeof(event))) |
228 | break; | 257 | break; |
229 | 258 | ||
230 | if (event == APM_SYS_SUSPEND || event == APM_USER_SUSPEND) | 259 | mutex_lock(&state_lock); |
260 | if (as->suspend_state == SUSPEND_PENDING && | ||
261 | (event == APM_SYS_SUSPEND || event == APM_USER_SUSPEND)) | ||
231 | as->suspend_state = SUSPEND_READ; | 262 | as->suspend_state = SUSPEND_READ; |
263 | mutex_unlock(&state_lock); | ||
232 | 264 | ||
233 | buf += sizeof(event); | 265 | buf += sizeof(event); |
234 | i -= sizeof(event); | 266 | i -= sizeof(event); |
@@ -270,9 +302,13 @@ apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg) | |||
270 | 302 | ||
271 | switch (cmd) { | 303 | switch (cmd) { |
272 | case APM_IOC_SUSPEND: | 304 | case APM_IOC_SUSPEND: |
305 | mutex_lock(&state_lock); | ||
306 | |||
273 | as->suspend_result = -EINTR; | 307 | as->suspend_result = -EINTR; |
274 | 308 | ||
275 | if (as->suspend_state == SUSPEND_READ) { | 309 | if (as->suspend_state == SUSPEND_READ) { |
310 | int pending; | ||
311 | |||
276 | /* | 312 | /* |
277 | * If we read a suspend command from /dev/apm_bios, | 313 | * If we read a suspend command from /dev/apm_bios, |
278 | * then the corresponding APM_IOC_SUSPEND ioctl is | 314 | * then the corresponding APM_IOC_SUSPEND ioctl is |
@@ -280,47 +316,73 @@ apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg) | |||
280 | */ | 316 | */ |
281 | as->suspend_state = SUSPEND_ACKED; | 317 | as->suspend_state = SUSPEND_ACKED; |
282 | suspends_pending--; | 318 | suspends_pending--; |
319 | pending = suspends_pending == 0; | ||
320 | mutex_unlock(&state_lock); | ||
321 | |||
322 | /* | ||
323 | * If there are no further acknowledges required, | ||
324 | * suspend the system. | ||
325 | */ | ||
326 | if (pending) | ||
327 | apm_suspend(); | ||
328 | |||
329 | /* | ||
330 | * Wait for the suspend/resume to complete. If there | ||
331 | * are pending acknowledges, we wait here for them. | ||
332 | * | ||
333 | * Note: we need to ensure that the PM subsystem does | ||
334 | * not kick us out of the wait when it suspends the | ||
335 | * threads. | ||
336 | */ | ||
337 | flags = current->flags; | ||
338 | current->flags |= PF_NOFREEZE; | ||
339 | |||
340 | wait_event(apm_suspend_waitqueue, | ||
341 | as->suspend_state == SUSPEND_DONE); | ||
283 | } else { | 342 | } else { |
343 | as->suspend_state = SUSPEND_WAIT; | ||
344 | mutex_unlock(&state_lock); | ||
345 | |||
284 | /* | 346 | /* |
285 | * Otherwise it is a request to suspend the system. | 347 | * Otherwise it is a request to suspend the system. |
286 | * Queue an event for all readers, and expect an | 348 | * Queue an event for all readers, and expect an |
287 | * acknowledge from all writers who haven't already | 349 | * acknowledge from all writers who haven't already |
288 | * acknowledged. | 350 | * acknowledged. |
289 | */ | 351 | */ |
290 | queue_event(APM_USER_SUSPEND, as); | 352 | err = queue_suspend_event(APM_USER_SUSPEND, as); |
291 | } | 353 | if (err < 0) { |
292 | 354 | /* | |
293 | /* | 355 | * Avoid taking the lock here - this |
294 | * If there are no further acknowledges required, suspend | 356 | * should be fine. |
295 | * the system. | 357 | */ |
296 | */ | 358 | as->suspend_state = SUSPEND_NONE; |
297 | if (suspends_pending == 0) | 359 | break; |
298 | apm_suspend(); | 360 | } |
361 | |||
362 | if (err > 0) | ||
363 | apm_suspend(); | ||
299 | 364 | ||
300 | /* | 365 | /* |
301 | * Wait for the suspend/resume to complete. If there are | 366 | * Wait for the suspend/resume to complete. If there |
302 | * pending acknowledges, we wait here for them. | 367 | * are pending acknowledges, we wait here for them. |
303 | * | 368 | * |
304 | * Note that we need to ensure that the PM subsystem does | 369 | * Note: we need to ensure that the PM subsystem does |
305 | * not kick us out of the wait when it suspends the threads. | 370 | * not kick us out of the wait when it suspends the |
306 | */ | 371 | * threads. |
307 | flags = current->flags; | 372 | */ |
308 | current->flags |= PF_NOFREEZE; | 373 | flags = current->flags; |
374 | current->flags |= PF_NOFREEZE; | ||
309 | 375 | ||
310 | /* | ||
311 | * Note: do not allow a thread which is acking the suspend | ||
312 | * to escape until the resume is complete. | ||
313 | */ | ||
314 | if (as->suspend_state == SUSPEND_ACKED) | ||
315 | wait_event(apm_suspend_waitqueue, | ||
316 | as->suspend_state == SUSPEND_DONE); | ||
317 | else | ||
318 | wait_event_interruptible(apm_suspend_waitqueue, | 376 | wait_event_interruptible(apm_suspend_waitqueue, |
319 | as->suspend_state == SUSPEND_DONE); | 377 | as->suspend_state == SUSPEND_DONE); |
378 | } | ||
320 | 379 | ||
321 | current->flags = flags; | 380 | current->flags = flags; |
381 | |||
382 | mutex_lock(&state_lock); | ||
322 | err = as->suspend_result; | 383 | err = as->suspend_result; |
323 | as->suspend_state = SUSPEND_NONE; | 384 | as->suspend_state = SUSPEND_NONE; |
385 | mutex_unlock(&state_lock); | ||
324 | break; | 386 | break; |
325 | } | 387 | } |
326 | 388 | ||
@@ -330,6 +392,8 @@ apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg) | |||
330 | static int apm_release(struct inode * inode, struct file * filp) | 392 | static int apm_release(struct inode * inode, struct file * filp) |
331 | { | 393 | { |
332 | struct apm_user *as = filp->private_data; | 394 | struct apm_user *as = filp->private_data; |
395 | int pending = 0; | ||
396 | |||
333 | filp->private_data = NULL; | 397 | filp->private_data = NULL; |
334 | 398 | ||
335 | down_write(&user_list_lock); | 399 | down_write(&user_list_lock); |
@@ -342,11 +406,14 @@ static int apm_release(struct inode * inode, struct file * filp) | |||
342 | * need to balance suspends_pending, which means the | 406 | * need to balance suspends_pending, which means the |
343 | * possibility of sleeping. | 407 | * possibility of sleeping. |
344 | */ | 408 | */ |
409 | mutex_lock(&state_lock); | ||
345 | if (as->suspend_state != SUSPEND_NONE) { | 410 | if (as->suspend_state != SUSPEND_NONE) { |
346 | suspends_pending -= 1; | 411 | suspends_pending -= 1; |
347 | if (suspends_pending == 0) | 412 | pending = suspends_pending == 0; |
348 | apm_suspend(); | ||
349 | } | 413 | } |
414 | mutex_unlock(&state_lock); | ||
415 | if (pending) | ||
416 | apm_suspend(); | ||
350 | 417 | ||
351 | kfree(as); | 418 | kfree(as); |
352 | return 0; | 419 | return 0; |
@@ -356,7 +423,7 @@ static int apm_open(struct inode * inode, struct file * filp) | |||
356 | { | 423 | { |
357 | struct apm_user *as; | 424 | struct apm_user *as; |
358 | 425 | ||
359 | as = (struct apm_user *)kzalloc(sizeof(*as), GFP_KERNEL); | 426 | as = kzalloc(sizeof(*as), GFP_KERNEL); |
360 | if (as) { | 427 | if (as) { |
361 | /* | 428 | /* |
362 | * XXX - this is a tiny bit broken, when we consider BSD | 429 | * XXX - this is a tiny bit broken, when we consider BSD |
@@ -470,6 +537,7 @@ static int kapmd(void *arg) | |||
470 | { | 537 | { |
471 | do { | 538 | do { |
472 | apm_event_t event; | 539 | apm_event_t event; |
540 | int ret; | ||
473 | 541 | ||
474 | wait_event_interruptible(kapmd_wait, | 542 | wait_event_interruptible(kapmd_wait, |
475 | !queue_empty(&kapmd_queue) || kthread_should_stop()); | 543 | !queue_empty(&kapmd_queue) || kthread_should_stop()); |
@@ -489,13 +557,20 @@ static int kapmd(void *arg) | |||
489 | 557 | ||
490 | case APM_LOW_BATTERY: | 558 | case APM_LOW_BATTERY: |
491 | case APM_POWER_STATUS_CHANGE: | 559 | case APM_POWER_STATUS_CHANGE: |
492 | queue_event(event, NULL); | 560 | queue_event(event); |
493 | break; | 561 | break; |
494 | 562 | ||
495 | case APM_USER_SUSPEND: | 563 | case APM_USER_SUSPEND: |
496 | case APM_SYS_SUSPEND: | 564 | case APM_SYS_SUSPEND: |
497 | queue_event(event, NULL); | 565 | ret = queue_suspend_event(event, NULL); |
498 | if (suspends_pending == 0) | 566 | if (ret < 0) { |
567 | /* | ||
568 | * We were busy. Try again in 50ms. | ||
569 | */ | ||
570 | queue_add_event(&kapmd_queue, event); | ||
571 | msleep(50); | ||
572 | } | ||
573 | if (ret > 0) | ||
499 | apm_suspend(); | 574 | apm_suspend(); |
500 | break; | 575 | break; |
501 | 576 | ||
diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c index cc2d58d028e1..3c078e346753 100644 --- a/arch/arm/kernel/asm-offsets.c +++ b/arch/arm/kernel/asm-offsets.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <asm/mach/arch.h> | 15 | #include <asm/mach/arch.h> |
16 | #include <asm/thread_info.h> | 16 | #include <asm/thread_info.h> |
17 | #include <asm/memory.h> | 17 | #include <asm/memory.h> |
18 | #include <asm/procinfo.h> | ||
18 | 19 | ||
19 | /* | 20 | /* |
20 | * Make sure that the compiler and target are compatible. | 21 | * Make sure that the compiler and target are compatible. |
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 3173924a9b60..f7598cbc7ec5 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
@@ -110,7 +110,7 @@ | |||
110 | CALL(sys_ni_syscall) /* was sys_profil */ | 110 | CALL(sys_ni_syscall) /* was sys_profil */ |
111 | CALL(sys_statfs) | 111 | CALL(sys_statfs) |
112 | /* 100 */ CALL(sys_fstatfs) | 112 | /* 100 */ CALL(sys_fstatfs) |
113 | CALL(sys_ni_syscall) | 113 | CALL(sys_ni_syscall) /* sys_ioperm */ |
114 | CALL(OBSOLETE(ABI(sys_socketcall, sys_oabi_socketcall))) | 114 | CALL(OBSOLETE(ABI(sys_socketcall, sys_oabi_socketcall))) |
115 | CALL(sys_syslog) | 115 | CALL(sys_syslog) |
116 | CALL(sys_setitimer) | 116 | CALL(sys_setitimer) |
@@ -132,7 +132,7 @@ | |||
132 | /* 120 */ CALL(sys_clone_wrapper) | 132 | /* 120 */ CALL(sys_clone_wrapper) |
133 | CALL(sys_setdomainname) | 133 | CALL(sys_setdomainname) |
134 | CALL(sys_newuname) | 134 | CALL(sys_newuname) |
135 | CALL(sys_ni_syscall) | 135 | CALL(sys_ni_syscall) /* modify_ldt */ |
136 | CALL(sys_adjtimex) | 136 | CALL(sys_adjtimex) |
137 | /* 125 */ CALL(sys_mprotect) | 137 | /* 125 */ CALL(sys_mprotect) |
138 | CALL(sys_sigprocmask) | 138 | CALL(sys_sigprocmask) |
@@ -146,7 +146,7 @@ | |||
146 | CALL(sys_bdflush) | 146 | CALL(sys_bdflush) |
147 | /* 135 */ CALL(sys_sysfs) | 147 | /* 135 */ CALL(sys_sysfs) |
148 | CALL(sys_personality) | 148 | CALL(sys_personality) |
149 | CALL(sys_ni_syscall) /* CALL(_sys_afs_syscall) */ | 149 | CALL(sys_ni_syscall) /* reserved for afs_syscall */ |
150 | CALL(sys_setfsuid16) | 150 | CALL(sys_setfsuid16) |
151 | CALL(sys_setfsgid16) | 151 | CALL(sys_setfsgid16) |
152 | /* 140 */ CALL(sys_llseek) | 152 | /* 140 */ CALL(sys_llseek) |
@@ -175,7 +175,7 @@ | |||
175 | CALL(sys_arm_mremap) | 175 | CALL(sys_arm_mremap) |
176 | CALL(sys_setresuid16) | 176 | CALL(sys_setresuid16) |
177 | /* 165 */ CALL(sys_getresuid16) | 177 | /* 165 */ CALL(sys_getresuid16) |
178 | CALL(sys_ni_syscall) | 178 | CALL(sys_ni_syscall) /* vm86 */ |
179 | CALL(sys_ni_syscall) /* was sys_query_module */ | 179 | CALL(sys_ni_syscall) /* was sys_query_module */ |
180 | CALL(sys_poll) | 180 | CALL(sys_poll) |
181 | CALL(sys_nfsservctl) | 181 | CALL(sys_nfsservctl) |
@@ -197,8 +197,8 @@ | |||
197 | /* 185 */ CALL(sys_capset) | 197 | /* 185 */ CALL(sys_capset) |
198 | CALL(sys_sigaltstack_wrapper) | 198 | CALL(sys_sigaltstack_wrapper) |
199 | CALL(sys_sendfile) | 199 | CALL(sys_sendfile) |
200 | CALL(sys_ni_syscall) | 200 | CALL(sys_ni_syscall) /* getpmsg */ |
201 | CALL(sys_ni_syscall) | 201 | CALL(sys_ni_syscall) /* putpmsg */ |
202 | /* 190 */ CALL(sys_vfork_wrapper) | 202 | /* 190 */ CALL(sys_vfork_wrapper) |
203 | CALL(sys_getrlimit) | 203 | CALL(sys_getrlimit) |
204 | CALL(sys_mmap2) | 204 | CALL(sys_mmap2) |
@@ -331,6 +331,31 @@ | |||
331 | CALL(sys_mbind) | 331 | CALL(sys_mbind) |
332 | /* 320 */ CALL(sys_get_mempolicy) | 332 | /* 320 */ CALL(sys_get_mempolicy) |
333 | CALL(sys_set_mempolicy) | 333 | CALL(sys_set_mempolicy) |
334 | CALL(sys_openat) | ||
335 | CALL(sys_mkdirat) | ||
336 | CALL(sys_mknodat) | ||
337 | /* 325 */ CALL(sys_fchownat) | ||
338 | CALL(sys_futimesat) | ||
339 | CALL(sys_fstatat64) | ||
340 | CALL(sys_unlinkat) | ||
341 | CALL(sys_renameat) | ||
342 | /* 330 */ CALL(sys_linkat) | ||
343 | CALL(sys_symlinkat) | ||
344 | CALL(sys_readlinkat) | ||
345 | CALL(sys_fchmodat) | ||
346 | CALL(sys_faccessat) | ||
347 | /* 335 */ CALL(sys_ni_syscall) /* eventually pselect6 */ | ||
348 | CALL(sys_ni_syscall) /* eventually ppoll */ | ||
349 | CALL(sys_unshare) | ||
350 | CALL(sys_set_robust_list) | ||
351 | CALL(sys_get_robust_list) | ||
352 | /* 340 */ CALL(sys_splice) | ||
353 | CALL(sys_arm_sync_file_range) | ||
354 | CALL(sys_tee) | ||
355 | CALL(sys_vmsplice) | ||
356 | CALL(sys_move_pages) | ||
357 | /* 345 */ CALL(sys_getcpu) | ||
358 | CALL(sys_ni_syscall) /* eventually epoll_pwait */ | ||
334 | #ifndef syscalls_counted | 359 | #ifndef syscalls_counted |
335 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls | 360 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls |
336 | #define syscalls_counted | 361 | #define syscalls_counted |
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index b27513a0f11e..71257e3d513f 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c | |||
@@ -353,7 +353,7 @@ int ecard_readchunk(struct in_chunk_dir *cd, ecard_t *ec, int id, int num) | |||
353 | } | 353 | } |
354 | if (c_id(&excd) == 0x80) { /* loader */ | 354 | if (c_id(&excd) == 0x80) { /* loader */ |
355 | if (!ec->loader) { | 355 | if (!ec->loader) { |
356 | ec->loader = (loader_t)kmalloc(c_len(&excd), | 356 | ec->loader = kmalloc(c_len(&excd), |
357 | GFP_KERNEL); | 357 | GFP_KERNEL); |
358 | if (ec->loader) | 358 | if (ec->loader) |
359 | ecard_readbytes(ec->loader, ec, | 359 | ecard_readbytes(ec->loader, ec, |
@@ -529,7 +529,7 @@ static void ecard_dump_irq_state(void) | |||
529 | } | 529 | } |
530 | } | 530 | } |
531 | 531 | ||
532 | static void ecard_check_lockup(struct irqdesc *desc) | 532 | static void ecard_check_lockup(struct irq_desc *desc) |
533 | { | 533 | { |
534 | static unsigned long last; | 534 | static unsigned long last; |
535 | static int lockup; | 535 | static int lockup; |
@@ -567,7 +567,7 @@ static void ecard_check_lockup(struct irqdesc *desc) | |||
567 | } | 567 | } |
568 | 568 | ||
569 | static void | 569 | static void |
570 | ecard_irq_handler(unsigned int irq, struct irqdesc *desc) | 570 | ecard_irq_handler(unsigned int irq, struct irq_desc *desc) |
571 | { | 571 | { |
572 | ecard_t *ec; | 572 | ecard_t *ec; |
573 | int called = 0; | 573 | int called = 0; |
@@ -585,7 +585,7 @@ ecard_irq_handler(unsigned int irq, struct irqdesc *desc) | |||
585 | pending = ecard_default_ops.irqpending(ec); | 585 | pending = ecard_default_ops.irqpending(ec); |
586 | 586 | ||
587 | if (pending) { | 587 | if (pending) { |
588 | struct irqdesc *d = irq_desc + ec->irq; | 588 | struct irq_desc *d = irq_desc + ec->irq; |
589 | desc_handle_irq(ec->irq, d); | 589 | desc_handle_irq(ec->irq, d); |
590 | called ++; | 590 | called ++; |
591 | } | 591 | } |
@@ -609,7 +609,7 @@ static unsigned char first_set[] = | |||
609 | }; | 609 | }; |
610 | 610 | ||
611 | static void | 611 | static void |
612 | ecard_irqexp_handler(unsigned int irq, struct irqdesc *desc) | 612 | ecard_irqexp_handler(unsigned int irq, struct irq_desc *desc) |
613 | { | 613 | { |
614 | const unsigned int statusmask = 15; | 614 | const unsigned int statusmask = 15; |
615 | unsigned int status; | 615 | unsigned int status; |
@@ -1022,7 +1022,7 @@ ecard_probe(int slot, card_type_t type) | |||
1022 | if (slot < 8) { | 1022 | if (slot < 8) { |
1023 | ec->irq = 32 + slot; | 1023 | ec->irq = 32 + slot; |
1024 | set_irq_chip(ec->irq, &ecard_chip); | 1024 | set_irq_chip(ec->irq, &ecard_chip); |
1025 | set_irq_handler(ec->irq, do_level_IRQ); | 1025 | set_irq_handler(ec->irq, handle_level_irq); |
1026 | set_irq_flags(ec->irq, IRQF_VALID); | 1026 | set_irq_flags(ec->irq, IRQF_VALID); |
1027 | } | 1027 | } |
1028 | 1028 | ||
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index bd623b73445f..8517c3c3eb33 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -436,7 +436,7 @@ __und_usr: | |||
436 | usr_entry | 436 | usr_entry |
437 | 437 | ||
438 | tst r3, #PSR_T_BIT @ Thumb mode? | 438 | tst r3, #PSR_T_BIT @ Thumb mode? |
439 | bne fpundefinstr @ ignore FP | 439 | bne __und_usr_unknown @ ignore FP |
440 | sub r4, r2, #4 | 440 | sub r4, r2, #4 |
441 | 441 | ||
442 | @ | 442 | @ |
@@ -448,7 +448,7 @@ __und_usr: | |||
448 | @ | 448 | @ |
449 | 1: ldrt r0, [r4] | 449 | 1: ldrt r0, [r4] |
450 | adr r9, ret_from_exception | 450 | adr r9, ret_from_exception |
451 | adr lr, fpundefinstr | 451 | adr lr, __und_usr_unknown |
452 | @ | 452 | @ |
453 | @ fallthrough to call_fpe | 453 | @ fallthrough to call_fpe |
454 | @ | 454 | @ |
@@ -476,7 +476,9 @@ __und_usr: | |||
476 | * Emulators may wish to make use of the following registers: | 476 | * Emulators may wish to make use of the following registers: |
477 | * r0 = instruction opcode. | 477 | * r0 = instruction opcode. |
478 | * r2 = PC+4 | 478 | * r2 = PC+4 |
479 | * r9 = normal "successful" return address | ||
479 | * r10 = this threads thread_info structure. | 480 | * r10 = this threads thread_info structure. |
481 | * lr = unrecognised instruction return address | ||
480 | */ | 482 | */ |
481 | call_fpe: | 483 | call_fpe: |
482 | tst r0, #0x08000000 @ only CDP/CPRT/LDC/STC have bit 27 | 484 | tst r0, #0x08000000 @ only CDP/CPRT/LDC/STC have bit 27 |
@@ -545,10 +547,12 @@ do_fpe: | |||
545 | 547 | ||
546 | .data | 548 | .data |
547 | ENTRY(fp_enter) | 549 | ENTRY(fp_enter) |
548 | .word fpundefinstr | 550 | .word no_fp |
549 | .text | 551 | .text |
550 | 552 | ||
551 | fpundefinstr: | 553 | no_fp: mov pc, lr |
554 | |||
555 | __und_usr_unknown: | ||
552 | mov r0, sp | 556 | mov r0, sp |
553 | adr lr, ret_from_exception | 557 | adr lr, ret_from_exception |
554 | b do_undefinstr | 558 | b do_undefinstr |
@@ -589,10 +593,6 @@ ENTRY(__switch_to) | |||
589 | strex r5, r4, [ip] @ Clear exclusive monitor | 593 | strex r5, r4, [ip] @ Clear exclusive monitor |
590 | #endif | 594 | #endif |
591 | #endif | 595 | #endif |
592 | #if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT) | ||
593 | mra r4, r5, acc0 | ||
594 | stmia ip, {r4, r5} | ||
595 | #endif | ||
596 | #if defined(CONFIG_HAS_TLS_REG) | 596 | #if defined(CONFIG_HAS_TLS_REG) |
597 | mcr p15, 0, r3, c13, c0, 3 @ set TLS register | 597 | mcr p15, 0, r3, c13, c0, 3 @ set TLS register |
598 | #elif !defined(CONFIG_TLS_REG_EMUL) | 598 | #elif !defined(CONFIG_TLS_REG_EMUL) |
@@ -602,11 +602,6 @@ ENTRY(__switch_to) | |||
602 | #ifdef CONFIG_MMU | 602 | #ifdef CONFIG_MMU |
603 | mcr p15, 0, r6, c3, c0, 0 @ Set domain register | 603 | mcr p15, 0, r6, c3, c0, 0 @ Set domain register |
604 | #endif | 604 | #endif |
605 | #if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT) | ||
606 | add r4, r2, #TI_CPU_DOMAIN + 40 @ cpu_context_save->extra | ||
607 | ldmib r4, {r4, r5} | ||
608 | mar acc0, r4, r5 | ||
609 | #endif | ||
610 | mov r5, r0 | 605 | mov r5, r0 |
611 | add r4, r2, #TI_CPU_SAVE | 606 | add r4, r2, #TI_CPU_SAVE |
612 | ldr r0, =thread_notify_head | 607 | ldr r0, =thread_notify_head |
diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S index f359a189dcf2..0119c0d5f978 100644 --- a/arch/arm/kernel/head-nommu.S +++ b/arch/arm/kernel/head-nommu.S | |||
@@ -16,7 +16,6 @@ | |||
16 | 16 | ||
17 | #include <asm/assembler.h> | 17 | #include <asm/assembler.h> |
18 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
19 | #include <asm/procinfo.h> | ||
20 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
21 | #include <asm/asm-offsets.h> | 20 | #include <asm/asm-offsets.h> |
22 | #include <asm/thread_info.h> | 21 | #include <asm/thread_info.h> |
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index ebc3e74a7947..d994561816a1 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
@@ -16,37 +16,37 @@ | |||
16 | 16 | ||
17 | #include <asm/assembler.h> | 17 | #include <asm/assembler.h> |
18 | #include <asm/domain.h> | 18 | #include <asm/domain.h> |
19 | #include <asm/procinfo.h> | ||
20 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
21 | #include <asm/asm-offsets.h> | 20 | #include <asm/asm-offsets.h> |
22 | #include <asm/memory.h> | 21 | #include <asm/memory.h> |
23 | #include <asm/thread_info.h> | 22 | #include <asm/thread_info.h> |
24 | #include <asm/system.h> | 23 | #include <asm/system.h> |
25 | 24 | ||
26 | #define KERNEL_RAM_ADDR (PAGE_OFFSET + TEXT_OFFSET) | 25 | #define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET) |
26 | #define KERNEL_RAM_PADDR (PHYS_OFFSET + TEXT_OFFSET) | ||
27 | 27 | ||
28 | /* | 28 | /* |
29 | * swapper_pg_dir is the virtual address of the initial page table. | 29 | * swapper_pg_dir is the virtual address of the initial page table. |
30 | * We place the page tables 16K below KERNEL_RAM_ADDR. Therefore, we must | 30 | * We place the page tables 16K below KERNEL_RAM_VADDR. Therefore, we must |
31 | * make sure that KERNEL_RAM_ADDR is correctly set. Currently, we expect | 31 | * make sure that KERNEL_RAM_VADDR is correctly set. Currently, we expect |
32 | * the least significant 16 bits to be 0x8000, but we could probably | 32 | * the least significant 16 bits to be 0x8000, but we could probably |
33 | * relax this restriction to KERNEL_RAM_ADDR >= PAGE_OFFSET + 0x4000. | 33 | * relax this restriction to KERNEL_RAM_VADDR >= PAGE_OFFSET + 0x4000. |
34 | */ | 34 | */ |
35 | #if (KERNEL_RAM_ADDR & 0xffff) != 0x8000 | 35 | #if (KERNEL_RAM_VADDR & 0xffff) != 0x8000 |
36 | #error KERNEL_RAM_ADDR must start at 0xXXXX8000 | 36 | #error KERNEL_RAM_VADDR must start at 0xXXXX8000 |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | .globl swapper_pg_dir | 39 | .globl swapper_pg_dir |
40 | .equ swapper_pg_dir, KERNEL_RAM_ADDR - 0x4000 | 40 | .equ swapper_pg_dir, KERNEL_RAM_VADDR - 0x4000 |
41 | 41 | ||
42 | .macro pgtbl, rd | 42 | .macro pgtbl, rd |
43 | ldr \rd, =(__virt_to_phys(KERNEL_RAM_ADDR - 0x4000)) | 43 | ldr \rd, =(KERNEL_RAM_PADDR - 0x4000) |
44 | .endm | 44 | .endm |
45 | 45 | ||
46 | #ifdef CONFIG_XIP_KERNEL | 46 | #ifdef CONFIG_XIP_KERNEL |
47 | #define TEXTADDR XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR) | 47 | #define TEXTADDR XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR) |
48 | #else | 48 | #else |
49 | #define TEXTADDR KERNEL_RAM_ADDR | 49 | #define TEXTADDR KERNEL_RAM_VADDR |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | /* | 52 | /* |
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 2c4ff1cbe334..ec01f08f5642 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -112,7 +112,7 @@ static struct irq_desc bad_irq_desc = { | |||
112 | asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs) | 112 | asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs) |
113 | { | 113 | { |
114 | struct pt_regs *old_regs = set_irq_regs(regs); | 114 | struct pt_regs *old_regs = set_irq_regs(regs); |
115 | struct irqdesc *desc = irq_desc + irq; | 115 | struct irq_desc *desc = irq_desc + irq; |
116 | 116 | ||
117 | /* | 117 | /* |
118 | * Some hardware gives randomly wrong interrupts. Rather | 118 | * Some hardware gives randomly wrong interrupts. Rather |
@@ -134,7 +134,7 @@ asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs) | |||
134 | 134 | ||
135 | void set_irq_flags(unsigned int irq, unsigned int iflags) | 135 | void set_irq_flags(unsigned int irq, unsigned int iflags) |
136 | { | 136 | { |
137 | struct irqdesc *desc; | 137 | struct irq_desc *desc; |
138 | unsigned long flags; | 138 | unsigned long flags; |
139 | 139 | ||
140 | if (irq >= NR_IRQS) { | 140 | if (irq >= NR_IRQS) { |
@@ -171,7 +171,7 @@ void __init init_IRQ(void) | |||
171 | 171 | ||
172 | #ifdef CONFIG_HOTPLUG_CPU | 172 | #ifdef CONFIG_HOTPLUG_CPU |
173 | 173 | ||
174 | static void route_irq(struct irqdesc *desc, unsigned int irq, unsigned int cpu) | 174 | static void route_irq(struct irq_desc *desc, unsigned int irq, unsigned int cpu) |
175 | { | 175 | { |
176 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu); | 176 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu); |
177 | 177 | ||
@@ -190,7 +190,7 @@ void migrate_irqs(void) | |||
190 | unsigned int i, cpu = smp_processor_id(); | 190 | unsigned int i, cpu = smp_processor_id(); |
191 | 191 | ||
192 | for (i = 0; i < NR_IRQS; i++) { | 192 | for (i = 0; i < NR_IRQS; i++) { |
193 | struct irqdesc *desc = irq_desc + i; | 193 | struct irq_desc *desc = irq_desc + i; |
194 | 194 | ||
195 | if (desc->cpu == cpu) { | 195 | if (desc->cpu == cpu) { |
196 | unsigned int newcpu = any_online_cpu(desc->affinity); | 196 | unsigned int newcpu = any_online_cpu(desc->affinity); |
diff --git a/arch/arm/kernel/iwmmxt-notifier.c b/arch/arm/kernel/iwmmxt-notifier.c deleted file mode 100644 index 0d1a1db40062..000000000000 --- a/arch/arm/kernel/iwmmxt-notifier.c +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/kernel/iwmmxt-notifier.c | ||
3 | * | ||
4 | * XScale iWMMXt (Concan) context switching and handling | ||
5 | * | ||
6 | * Initial code: | ||
7 | * Copyright (c) 2003, Intel Corporation | ||
8 | * | ||
9 | * Full lazy switching support, optimizations and more, by Nicolas Pitre | ||
10 | * Copyright (c) 2003-2004, MontaVista Software, Inc. | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | #include <linux/module.h> | ||
18 | #include <linux/types.h> | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/signal.h> | ||
21 | #include <linux/sched.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <asm/thread_notify.h> | ||
24 | #include <asm/io.h> | ||
25 | |||
26 | static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t) | ||
27 | { | ||
28 | struct thread_info *thread = t; | ||
29 | |||
30 | switch (cmd) { | ||
31 | case THREAD_NOTIFY_FLUSH: | ||
32 | /* | ||
33 | * flush_thread() zeroes thread->fpstate, so no need | ||
34 | * to do anything here. | ||
35 | * | ||
36 | * FALLTHROUGH: Ensure we don't try to overwrite our newly | ||
37 | * initialised state information on the first fault. | ||
38 | */ | ||
39 | |||
40 | case THREAD_NOTIFY_RELEASE: | ||
41 | iwmmxt_task_release(thread); | ||
42 | break; | ||
43 | |||
44 | case THREAD_NOTIFY_SWITCH: | ||
45 | iwmmxt_task_switch(thread); | ||
46 | break; | ||
47 | } | ||
48 | |||
49 | return NOTIFY_DONE; | ||
50 | } | ||
51 | |||
52 | static struct notifier_block iwmmxt_notifier_block = { | ||
53 | .notifier_call = iwmmxt_do, | ||
54 | }; | ||
55 | |||
56 | static int __init iwmmxt_init(void) | ||
57 | { | ||
58 | thread_register_notifier(&iwmmxt_notifier_block); | ||
59 | |||
60 | return 0; | ||
61 | } | ||
62 | |||
63 | late_initcall(iwmmxt_init); | ||
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index bf35c178a877..a9e8f7e55fd6 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -281,67 +281,6 @@ void show_fpregs(struct user_fp *regs) | |||
281 | } | 281 | } |
282 | 282 | ||
283 | /* | 283 | /* |
284 | * Task structure and kernel stack allocation. | ||
285 | */ | ||
286 | struct thread_info_list { | ||
287 | unsigned long *head; | ||
288 | unsigned int nr; | ||
289 | }; | ||
290 | |||
291 | static DEFINE_PER_CPU(struct thread_info_list, thread_info_list) = { NULL, 0 }; | ||
292 | |||
293 | #define EXTRA_TASK_STRUCT 4 | ||
294 | |||
295 | struct thread_info *alloc_thread_info(struct task_struct *task) | ||
296 | { | ||
297 | struct thread_info *thread = NULL; | ||
298 | |||
299 | if (EXTRA_TASK_STRUCT) { | ||
300 | struct thread_info_list *th = &get_cpu_var(thread_info_list); | ||
301 | unsigned long *p = th->head; | ||
302 | |||
303 | if (p) { | ||
304 | th->head = (unsigned long *)p[0]; | ||
305 | th->nr -= 1; | ||
306 | } | ||
307 | put_cpu_var(thread_info_list); | ||
308 | |||
309 | thread = (struct thread_info *)p; | ||
310 | } | ||
311 | |||
312 | if (!thread) | ||
313 | thread = (struct thread_info *) | ||
314 | __get_free_pages(GFP_KERNEL, THREAD_SIZE_ORDER); | ||
315 | |||
316 | #ifdef CONFIG_DEBUG_STACK_USAGE | ||
317 | /* | ||
318 | * The stack must be cleared if you want SYSRQ-T to | ||
319 | * give sensible stack usage information | ||
320 | */ | ||
321 | if (thread) | ||
322 | memzero(thread, THREAD_SIZE); | ||
323 | #endif | ||
324 | return thread; | ||
325 | } | ||
326 | |||
327 | void free_thread_info(struct thread_info *thread) | ||
328 | { | ||
329 | if (EXTRA_TASK_STRUCT) { | ||
330 | struct thread_info_list *th = &get_cpu_var(thread_info_list); | ||
331 | if (th->nr < EXTRA_TASK_STRUCT) { | ||
332 | unsigned long *p = (unsigned long *)thread; | ||
333 | p[0] = (unsigned long)th->head; | ||
334 | th->head = p; | ||
335 | th->nr += 1; | ||
336 | put_cpu_var(thread_info_list); | ||
337 | return; | ||
338 | } | ||
339 | put_cpu_var(thread_info_list); | ||
340 | } | ||
341 | free_pages((unsigned long)thread, THREAD_SIZE_ORDER); | ||
342 | } | ||
343 | |||
344 | /* | ||
345 | * Free current thread data structures etc.. | 284 | * Free current thread data structures etc.. |
346 | */ | 285 | */ |
347 | void exit_thread(void) | 286 | void exit_thread(void) |
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 29efc9f82057..bbab134cd82d 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -354,12 +354,6 @@ static void __init setup_processor(void) | |||
354 | #ifndef CONFIG_ARM_THUMB | 354 | #ifndef CONFIG_ARM_THUMB |
355 | elf_hwcap &= ~HWCAP_THUMB; | 355 | elf_hwcap &= ~HWCAP_THUMB; |
356 | #endif | 356 | #endif |
357 | #ifndef CONFIG_VFP | ||
358 | elf_hwcap &= ~HWCAP_VFP; | ||
359 | #endif | ||
360 | #ifndef CONFIG_IWMMXT | ||
361 | elf_hwcap &= ~HWCAP_IWMMXT; | ||
362 | #endif | ||
363 | 357 | ||
364 | cpu_proc_init(); | 358 | cpu_proc_init(); |
365 | } | 359 | } |
@@ -441,16 +435,19 @@ __early_param("initrd=", early_initrd); | |||
441 | 435 | ||
442 | static void __init arm_add_memory(unsigned long start, unsigned long size) | 436 | static void __init arm_add_memory(unsigned long start, unsigned long size) |
443 | { | 437 | { |
438 | struct membank *bank; | ||
439 | |||
444 | /* | 440 | /* |
445 | * Ensure that start/size are aligned to a page boundary. | 441 | * Ensure that start/size are aligned to a page boundary. |
446 | * Size is appropriately rounded down, start is rounded up. | 442 | * Size is appropriately rounded down, start is rounded up. |
447 | */ | 443 | */ |
448 | size -= start & ~PAGE_MASK; | 444 | size -= start & ~PAGE_MASK; |
449 | 445 | ||
450 | meminfo.bank[meminfo.nr_banks].start = PAGE_ALIGN(start); | 446 | bank = &meminfo.bank[meminfo.nr_banks++]; |
451 | meminfo.bank[meminfo.nr_banks].size = size & PAGE_MASK; | 447 | |
452 | meminfo.bank[meminfo.nr_banks].node = PHYS_TO_NID(start); | 448 | bank->start = PAGE_ALIGN(start); |
453 | meminfo.nr_banks += 1; | 449 | bank->size = size & PAGE_MASK; |
450 | bank->node = PHYS_TO_NID(start); | ||
454 | } | 451 | } |
455 | 452 | ||
456 | /* | 453 | /* |
@@ -858,6 +855,7 @@ static const char *hwcap_str[] = { | |||
858 | "edsp", | 855 | "edsp", |
859 | "java", | 856 | "java", |
860 | "iwmmxt", | 857 | "iwmmxt", |
858 | "crunch", | ||
861 | NULL | 859 | NULL |
862 | }; | 860 | }; |
863 | 861 | ||
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 48cf7fffddf2..3843d3bab2dd 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -11,7 +11,9 @@ | |||
11 | #include <linux/signal.h> | 11 | #include <linux/signal.h> |
12 | #include <linux/ptrace.h> | 12 | #include <linux/ptrace.h> |
13 | #include <linux/personality.h> | 13 | #include <linux/personality.h> |
14 | #include <linux/freezer.h> | ||
14 | 15 | ||
16 | #include <asm/elf.h> | ||
15 | #include <asm/cacheflush.h> | 17 | #include <asm/cacheflush.h> |
16 | #include <asm/ucontext.h> | 18 | #include <asm/ucontext.h> |
17 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index 00c18d35913c..3d4fcbc16276 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c | |||
@@ -328,3 +328,16 @@ asmlinkage long sys_arm_fadvise64_64(int fd, int advice, | |||
328 | { | 328 | { |
329 | return sys_fadvise64_64(fd, offset, len, advice); | 329 | return sys_fadvise64_64(fd, offset, len, advice); |
330 | } | 330 | } |
331 | |||
332 | /* | ||
333 | * Yet more syscall fsckage - we can't fit sys_sync_file_range's | ||
334 | * arguments into the available registers with EABI. So, let's | ||
335 | * create an ARM specific syscall for this which has _sane_ | ||
336 | * arguments. (This incidentally also has an ABI-independent | ||
337 | * argument layout.) | ||
338 | */ | ||
339 | asmlinkage long sys_arm_sync_file_range(int fd, unsigned int flags, | ||
340 | loff_t offset, loff_t nbytes) | ||
341 | { | ||
342 | return sys_sync_file_range(fd, offset, nbytes, flags); | ||
343 | } | ||
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 6ff5e3ff6cb5..3c8cdcfe8d4a 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -29,6 +29,8 @@ | |||
29 | #include <linux/timer.h> | 29 | #include <linux/timer.h> |
30 | #include <linux/irq.h> | 30 | #include <linux/irq.h> |
31 | 31 | ||
32 | #include <linux/mc146818rtc.h> | ||
33 | |||
32 | #include <asm/leds.h> | 34 | #include <asm/leds.h> |
33 | #include <asm/thread_info.h> | 35 | #include <asm/thread_info.h> |
34 | #include <asm/mach/time.h> | 36 | #include <asm/mach/time.h> |
@@ -85,6 +87,17 @@ unsigned long long __attribute__((weak)) sched_clock(void) | |||
85 | return (unsigned long long)jiffies * (1000000000 / HZ); | 87 | return (unsigned long long)jiffies * (1000000000 / HZ); |
86 | } | 88 | } |
87 | 89 | ||
90 | /* | ||
91 | * An implementation of printk_clock() independent from | ||
92 | * sched_clock(). This avoids non-bootable kernels when | ||
93 | * printk_clock is enabled. | ||
94 | */ | ||
95 | unsigned long long printk_clock(void) | ||
96 | { | ||
97 | return (unsigned long long)(jiffies - INITIAL_JIFFIES) * | ||
98 | (1000000000 / HZ); | ||
99 | } | ||
100 | |||
88 | static unsigned long next_rtc_update; | 101 | static unsigned long next_rtc_update; |
89 | 102 | ||
90 | /* | 103 | /* |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index bede380c07a9..908915675edc 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <asm/uaccess.h> | 27 | #include <asm/uaccess.h> |
28 | #include <asm/unistd.h> | 28 | #include <asm/unistd.h> |
29 | #include <asm/traps.h> | 29 | #include <asm/traps.h> |
30 | #include <asm/io.h> | ||
30 | 31 | ||
31 | #include "ptrace.h" | 32 | #include "ptrace.h" |
32 | #include "signal.h" | 33 | #include "signal.h" |
@@ -631,12 +632,9 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs) | |||
631 | notify_die("unknown data abort code", regs, &info, instr, 0); | 632 | notify_die("unknown data abort code", regs, &info, instr, 0); |
632 | } | 633 | } |
633 | 634 | ||
634 | void __attribute__((noreturn)) __bug(const char *file, int line, void *data) | 635 | void __attribute__((noreturn)) __bug(const char *file, int line) |
635 | { | 636 | { |
636 | printk(KERN_CRIT"kernel BUG at %s:%d!", file, line); | 637 | printk(KERN_CRIT"kernel BUG at %s:%d!\n", file, line); |
637 | if (data) | ||
638 | printk(" - extra data = %p", data); | ||
639 | printk("\n"); | ||
640 | *(int *)0 = 0; | 638 | *(int *)0 = 0; |
641 | 639 | ||
642 | /* Avoid "noreturn function does return" */ | 640 | /* Avoid "noreturn function does return" */ |
diff --git a/arch/arm/kernel/xscale-cp0.c b/arch/arm/kernel/xscale-cp0.c new file mode 100644 index 000000000000..180000bfdc8f --- /dev/null +++ b/arch/arm/kernel/xscale-cp0.c | |||
@@ -0,0 +1,179 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/kernel/xscale-cp0.c | ||
3 | * | ||
4 | * XScale DSP and iWMMXt coprocessor context switching and handling | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #include <linux/module.h> | ||
12 | #include <linux/types.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/signal.h> | ||
15 | #include <linux/sched.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <asm/thread_notify.h> | ||
18 | #include <asm/io.h> | ||
19 | |||
20 | static inline void dsp_save_state(u32 *state) | ||
21 | { | ||
22 | __asm__ __volatile__ ( | ||
23 | "mrrc p0, 0, %0, %1, c0\n" | ||
24 | : "=r" (state[0]), "=r" (state[1])); | ||
25 | } | ||
26 | |||
27 | static inline void dsp_load_state(u32 *state) | ||
28 | { | ||
29 | __asm__ __volatile__ ( | ||
30 | "mcrr p0, 0, %0, %1, c0\n" | ||
31 | : : "r" (state[0]), "r" (state[1])); | ||
32 | } | ||
33 | |||
34 | static int dsp_do(struct notifier_block *self, unsigned long cmd, void *t) | ||
35 | { | ||
36 | struct thread_info *thread = t; | ||
37 | |||
38 | switch (cmd) { | ||
39 | case THREAD_NOTIFY_FLUSH: | ||
40 | thread->cpu_context.extra[0] = 0; | ||
41 | thread->cpu_context.extra[1] = 0; | ||
42 | break; | ||
43 | |||
44 | case THREAD_NOTIFY_SWITCH: | ||
45 | dsp_save_state(current_thread_info()->cpu_context.extra); | ||
46 | dsp_load_state(thread->cpu_context.extra); | ||
47 | break; | ||
48 | } | ||
49 | |||
50 | return NOTIFY_DONE; | ||
51 | } | ||
52 | |||
53 | static struct notifier_block dsp_notifier_block = { | ||
54 | .notifier_call = dsp_do, | ||
55 | }; | ||
56 | |||
57 | |||
58 | #ifdef CONFIG_IWMMXT | ||
59 | static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t) | ||
60 | { | ||
61 | struct thread_info *thread = t; | ||
62 | |||
63 | switch (cmd) { | ||
64 | case THREAD_NOTIFY_FLUSH: | ||
65 | /* | ||
66 | * flush_thread() zeroes thread->fpstate, so no need | ||
67 | * to do anything here. | ||
68 | * | ||
69 | * FALLTHROUGH: Ensure we don't try to overwrite our newly | ||
70 | * initialised state information on the first fault. | ||
71 | */ | ||
72 | |||
73 | case THREAD_NOTIFY_RELEASE: | ||
74 | iwmmxt_task_release(thread); | ||
75 | break; | ||
76 | |||
77 | case THREAD_NOTIFY_SWITCH: | ||
78 | iwmmxt_task_switch(thread); | ||
79 | break; | ||
80 | } | ||
81 | |||
82 | return NOTIFY_DONE; | ||
83 | } | ||
84 | |||
85 | static struct notifier_block iwmmxt_notifier_block = { | ||
86 | .notifier_call = iwmmxt_do, | ||
87 | }; | ||
88 | #endif | ||
89 | |||
90 | |||
91 | static u32 __init xscale_cp_access_read(void) | ||
92 | { | ||
93 | u32 value; | ||
94 | |||
95 | __asm__ __volatile__ ( | ||
96 | "mrc p15, 0, %0, c15, c1, 0\n\t" | ||
97 | : "=r" (value)); | ||
98 | |||
99 | return value; | ||
100 | } | ||
101 | |||
102 | static void __init xscale_cp_access_write(u32 value) | ||
103 | { | ||
104 | u32 temp; | ||
105 | |||
106 | __asm__ __volatile__ ( | ||
107 | "mcr p15, 0, %1, c15, c1, 0\n\t" | ||
108 | "mrc p15, 0, %0, c15, c1, 0\n\t" | ||
109 | "mov %0, %0\n\t" | ||
110 | "sub pc, pc, #4\n\t" | ||
111 | : "=r" (temp) : "r" (value)); | ||
112 | } | ||
113 | |||
114 | /* | ||
115 | * Detect whether we have a MAC coprocessor (40 bit register) or an | ||
116 | * iWMMXt coprocessor (64 bit registers) by loading 00000100:00000000 | ||
117 | * into a coprocessor register and reading it back, and checking | ||
118 | * whether the upper word survived intact. | ||
119 | */ | ||
120 | static int __init cpu_has_iwmmxt(void) | ||
121 | { | ||
122 | u32 lo; | ||
123 | u32 hi; | ||
124 | |||
125 | /* | ||
126 | * This sequence is interpreted by the DSP coprocessor as: | ||
127 | * mar acc0, %2, %3 | ||
128 | * mra %0, %1, acc0 | ||
129 | * | ||
130 | * And by the iWMMXt coprocessor as: | ||
131 | * tmcrr wR0, %2, %3 | ||
132 | * tmrrc %0, %1, wR0 | ||
133 | */ | ||
134 | __asm__ __volatile__ ( | ||
135 | "mcrr p0, 0, %2, %3, c0\n" | ||
136 | "mrrc p0, 0, %0, %1, c0\n" | ||
137 | : "=r" (lo), "=r" (hi) | ||
138 | : "r" (0), "r" (0x100)); | ||
139 | |||
140 | return !!hi; | ||
141 | } | ||
142 | |||
143 | |||
144 | /* | ||
145 | * If we detect that the CPU has iWMMXt (and CONFIG_IWMMXT=y), we | ||
146 | * disable CP0/CP1 on boot, and let call_fpe() and the iWMMXt lazy | ||
147 | * switch code handle iWMMXt context switching. If on the other | ||
148 | * hand the CPU has a DSP coprocessor, we keep access to CP0 enabled | ||
149 | * all the time, and save/restore acc0 on context switch in non-lazy | ||
150 | * fashion. | ||
151 | */ | ||
152 | static int __init xscale_cp0_init(void) | ||
153 | { | ||
154 | u32 cp_access; | ||
155 | |||
156 | cp_access = xscale_cp_access_read() & ~3; | ||
157 | xscale_cp_access_write(cp_access | 1); | ||
158 | |||
159 | if (cpu_has_iwmmxt()) { | ||
160 | #ifndef CONFIG_IWMMXT | ||
161 | printk(KERN_WARNING "CAUTION: XScale iWMMXt coprocessor " | ||
162 | "detected, but kernel support is missing.\n"); | ||
163 | #else | ||
164 | printk(KERN_INFO "XScale iWMMXt coprocessor detected.\n"); | ||
165 | elf_hwcap |= HWCAP_IWMMXT; | ||
166 | thread_register_notifier(&iwmmxt_notifier_block); | ||
167 | #endif | ||
168 | } else { | ||
169 | printk(KERN_INFO "XScale DSP coprocessor detected.\n"); | ||
170 | thread_register_notifier(&dsp_notifier_block); | ||
171 | cp_access |= 1; | ||
172 | } | ||
173 | |||
174 | xscale_cp_access_write(cp_access); | ||
175 | |||
176 | return 0; | ||
177 | } | ||
178 | |||
179 | late_initcall(xscale_cp0_init); | ||
diff --git a/arch/arm/mach-aaec2000/core.c b/arch/arm/mach-aaec2000/core.c index fe3d297d682d..a950160fcfb6 100644 --- a/arch/arm/mach-aaec2000/core.c +++ b/arch/arm/mach-aaec2000/core.c | |||
@@ -82,7 +82,7 @@ static void aaec2000_int_unmask(unsigned int irq) | |||
82 | IRQ_INTENS |= (1 << irq); | 82 | IRQ_INTENS |= (1 << irq); |
83 | } | 83 | } |
84 | 84 | ||
85 | static struct irqchip aaec2000_irq_chip = { | 85 | static struct irq_chip aaec2000_irq_chip = { |
86 | .ack = aaec2000_int_ack, | 86 | .ack = aaec2000_int_ack, |
87 | .mask = aaec2000_int_mask, | 87 | .mask = aaec2000_int_mask, |
88 | .unmask = aaec2000_int_unmask, | 88 | .unmask = aaec2000_int_unmask, |
@@ -93,7 +93,7 @@ void __init aaec2000_init_irq(void) | |||
93 | unsigned int i; | 93 | unsigned int i; |
94 | 94 | ||
95 | for (i = 0; i < NR_IRQS; i++) { | 95 | for (i = 0; i < NR_IRQS; i++) { |
96 | set_irq_handler(i, do_level_IRQ); | 96 | set_irq_handler(i, handle_level_irq); |
97 | set_irq_chip(i, &aaec2000_irq_chip); | 97 | set_irq_chip(i, &aaec2000_irq_chip); |
98 | set_irq_flags(i, IRQF_VALID); | 98 | set_irq_flags(i, IRQF_VALID); |
99 | } | 99 | } |
diff --git a/arch/arm/mach-at91rm9200/Kconfig b/arch/arm/mach-at91rm9200/Kconfig index 2f85e8693b1b..9f11db8af233 100644 --- a/arch/arm/mach-at91rm9200/Kconfig +++ b/arch/arm/mach-at91rm9200/Kconfig | |||
@@ -2,7 +2,8 @@ if ARCH_AT91 | |||
2 | 2 | ||
3 | menu "Atmel AT91 System-on-Chip" | 3 | menu "Atmel AT91 System-on-Chip" |
4 | 4 | ||
5 | comment "Atmel AT91 Processors" | 5 | choice |
6 | prompt "Atmel AT91 Processor" | ||
6 | 7 | ||
7 | config ARCH_AT91RM9200 | 8 | config ARCH_AT91RM9200 |
8 | bool "AT91RM9200" | 9 | bool "AT91RM9200" |
@@ -13,6 +14,8 @@ config ARCH_AT91SAM9260 | |||
13 | config ARCH_AT91SAM9261 | 14 | config ARCH_AT91SAM9261 |
14 | bool "AT91SAM9261" | 15 | bool "AT91SAM9261" |
15 | 16 | ||
17 | endchoice | ||
18 | |||
16 | # ---------------------------------------------------------- | 19 | # ---------------------------------------------------------- |
17 | 20 | ||
18 | if ARCH_AT91RM9200 | 21 | if ARCH_AT91RM9200 |
@@ -33,7 +36,6 @@ config ARCH_AT91RM9200DK | |||
33 | Select this if you are using Atmel's AT91RM9200-DK Development board. | 36 | Select this if you are using Atmel's AT91RM9200-DK Development board. |
34 | (Discontinued) | 37 | (Discontinued) |
35 | 38 | ||
36 | |||
37 | config MACH_AT91RM9200EK | 39 | config MACH_AT91RM9200EK |
38 | bool "Atmel AT91RM9200-EK Evaluation Kit" | 40 | bool "Atmel AT91RM9200-EK Evaluation Kit" |
39 | depends on ARCH_AT91RM9200 | 41 | depends on ARCH_AT91RM9200 |
@@ -90,6 +92,13 @@ if ARCH_AT91SAM9260 | |||
90 | 92 | ||
91 | comment "AT91SAM9260 Board Type" | 93 | comment "AT91SAM9260 Board Type" |
92 | 94 | ||
95 | config MACH_AT91SAM9260EK | ||
96 | bool "Atmel AT91SAM9260-EK Evaluation Kit" | ||
97 | depends on ARCH_AT91SAM9260 | ||
98 | help | ||
99 | Select this if you are using Atmel's AT91SAM9260-EK Evaluation Kit. | ||
100 | <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3933> | ||
101 | |||
93 | endif | 102 | endif |
94 | 103 | ||
95 | # ---------------------------------------------------------- | 104 | # ---------------------------------------------------------- |
@@ -98,8 +107,31 @@ if ARCH_AT91SAM9261 | |||
98 | 107 | ||
99 | comment "AT91SAM9261 Board Type" | 108 | comment "AT91SAM9261 Board Type" |
100 | 109 | ||
110 | config MACH_AT91SAM9261EK | ||
111 | bool "Atmel AT91SAM9261-EK Evaluation Kit" | ||
112 | depends on ARCH_AT91SAM9261 | ||
113 | help | ||
114 | Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit. | ||
115 | <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820> | ||
116 | |||
101 | endif | 117 | endif |
102 | 118 | ||
119 | # ---------------------------------------------------------- | ||
120 | |||
121 | comment "AT91 Board Options" | ||
122 | |||
123 | config MTD_AT91_DATAFLASH_CARD | ||
124 | bool "Enable DataFlash Card support" | ||
125 | depends on (ARCH_AT91RM9200DK || MACH_AT91RM9200EK || MACH_AT91SAM9260EK || MACH_AT91SAM9261EK) | ||
126 | help | ||
127 | Enable support for the DataFlash card. | ||
128 | |||
129 | config MTD_NAND_AT91_BUSWIDTH_16 | ||
130 | bool "Enable 16-bit data bus interface to NAND flash" | ||
131 | depends on (MACH_AT91SAM9261EK || MACH_AT91SAM9260EK) | ||
132 | help | ||
133 | On AT91SAM926x boards both types of NAND flash can be present | ||
134 | (8 and 16 bit data bus width). | ||
103 | 135 | ||
104 | # ---------------------------------------------------------- | 136 | # ---------------------------------------------------------- |
105 | 137 | ||
diff --git a/arch/arm/mach-at91rm9200/Makefile b/arch/arm/mach-at91rm9200/Makefile index c174805c24e5..cf777007847a 100644 --- a/arch/arm/mach-at91rm9200/Makefile +++ b/arch/arm/mach-at91rm9200/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := clock.o irq.o gpio.o devices.o | 5 | obj-y := clock.o irq.o gpio.o |
6 | obj-m := | 6 | obj-m := |
7 | obj-n := | 7 | obj-n := |
8 | obj- := | 8 | obj- := |
@@ -10,11 +10,11 @@ obj- := | |||
10 | obj-$(CONFIG_PM) += pm.o | 10 | obj-$(CONFIG_PM) += pm.o |
11 | 11 | ||
12 | # CPU-specific support | 12 | # CPU-specific support |
13 | obj-$(CONFIG_ARCH_AT91RM9200) += at91rm9200.o at91rm9200_time.o | 13 | obj-$(CONFIG_ARCH_AT91RM9200) += at91rm9200.o at91rm9200_time.o at91rm9200_devices.o |
14 | obj-$(CONFIG_ARCH_AT91SAM9260) += | 14 | obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260.o at91sam926x_time.o at91sam9260_devices.o |
15 | obj-$(CONFIG_ARCH_AT91SAM9261) += | 15 | obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261.o at91sam926x_time.o at91sam9261_devices.o |
16 | 16 | ||
17 | # AT91RM9200 Board-specific support | 17 | # AT91RM9200 board-specific support |
18 | obj-$(CONFIG_MACH_ONEARM) += board-1arm.o | 18 | obj-$(CONFIG_MACH_ONEARM) += board-1arm.o |
19 | obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o | 19 | obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o |
20 | obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o | 20 | obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o |
@@ -26,8 +26,10 @@ obj-$(CONFIG_MACH_ATEB9200) += board-eb9200.o | |||
26 | obj-$(CONFIG_MACH_KAFA) += board-kafa.o | 26 | obj-$(CONFIG_MACH_KAFA) += board-kafa.o |
27 | 27 | ||
28 | # AT91SAM9260 board-specific support | 28 | # AT91SAM9260 board-specific support |
29 | obj-$(CONFIG_MACH_AT91SAM9260EK) += board-sam9260ek.o | ||
29 | 30 | ||
30 | # AT91SAM9261 board-specific support | 31 | # AT91SAM9261 board-specific support |
32 | obj-$(CONFIG_MACH_AT91SAM9261EK) += board-sam9261ek.o | ||
31 | 33 | ||
32 | # LEDs support | 34 | # LEDs support |
33 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o | 35 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o |
diff --git a/arch/arm/mach-at91rm9200/at91rm9200.c b/arch/arm/mach-at91rm9200/at91rm9200.c index dcf6136fedf9..a92e9a495b07 100644 --- a/arch/arm/mach-at91rm9200/at91rm9200.c +++ b/arch/arm/mach-at91rm9200/at91rm9200.c | |||
@@ -14,8 +14,10 @@ | |||
14 | 14 | ||
15 | #include <asm/mach/arch.h> | 15 | #include <asm/mach/arch.h> |
16 | #include <asm/mach/map.h> | 16 | #include <asm/mach/map.h> |
17 | #include <asm/arch/at91rm9200.h> | ||
18 | #include <asm/arch/at91_pmc.h> | ||
19 | #include <asm/arch/at91_st.h> | ||
17 | 20 | ||
18 | #include <asm/hardware.h> | ||
19 | #include "generic.h" | 21 | #include "generic.h" |
20 | #include "clock.h" | 22 | #include "clock.h" |
21 | 23 | ||
@@ -26,32 +28,12 @@ static struct map_desc at91rm9200_io_desc[] __initdata = { | |||
26 | .length = SZ_4K, | 28 | .length = SZ_4K, |
27 | .type = MT_DEVICE, | 29 | .type = MT_DEVICE, |
28 | }, { | 30 | }, { |
29 | .virtual = AT91_VA_BASE_SPI, | ||
30 | .pfn = __phys_to_pfn(AT91RM9200_BASE_SPI), | ||
31 | .length = SZ_16K, | ||
32 | .type = MT_DEVICE, | ||
33 | }, { | ||
34 | .virtual = AT91_VA_BASE_EMAC, | 31 | .virtual = AT91_VA_BASE_EMAC, |
35 | .pfn = __phys_to_pfn(AT91RM9200_BASE_EMAC), | 32 | .pfn = __phys_to_pfn(AT91RM9200_BASE_EMAC), |
36 | .length = SZ_16K, | 33 | .length = SZ_16K, |
37 | .type = MT_DEVICE, | 34 | .type = MT_DEVICE, |
38 | }, { | 35 | }, { |
39 | .virtual = AT91_VA_BASE_TWI, | 36 | .virtual = AT91_IO_VIRT_BASE - AT91RM9200_SRAM_SIZE, |
40 | .pfn = __phys_to_pfn(AT91RM9200_BASE_TWI), | ||
41 | .length = SZ_16K, | ||
42 | .type = MT_DEVICE, | ||
43 | }, { | ||
44 | .virtual = AT91_VA_BASE_MCI, | ||
45 | .pfn = __phys_to_pfn(AT91RM9200_BASE_MCI), | ||
46 | .length = SZ_16K, | ||
47 | .type = MT_DEVICE, | ||
48 | }, { | ||
49 | .virtual = AT91_VA_BASE_UDP, | ||
50 | .pfn = __phys_to_pfn(AT91RM9200_BASE_UDP), | ||
51 | .length = SZ_16K, | ||
52 | .type = MT_DEVICE, | ||
53 | }, { | ||
54 | .virtual = AT91_SRAM_VIRT_BASE, | ||
55 | .pfn = __phys_to_pfn(AT91RM9200_SRAM_BASE), | 37 | .pfn = __phys_to_pfn(AT91RM9200_SRAM_BASE), |
56 | .length = AT91RM9200_SRAM_SIZE, | 38 | .length = AT91RM9200_SRAM_SIZE, |
57 | .type = MT_DEVICE, | 39 | .type = MT_DEVICE, |
@@ -222,6 +204,16 @@ static struct at91_gpio_bank at91rm9200_gpio[] = { | |||
222 | } | 204 | } |
223 | }; | 205 | }; |
224 | 206 | ||
207 | static void at91rm9200_reset(void) | ||
208 | { | ||
209 | /* | ||
210 | * Perform a hardware reset with the use of the Watchdog timer. | ||
211 | */ | ||
212 | at91_sys_write(AT91_ST_WDMR, AT91_ST_RSTEN | AT91_ST_EXTEN | 1); | ||
213 | at91_sys_write(AT91_ST_CR, AT91_ST_WDRST); | ||
214 | } | ||
215 | |||
216 | |||
225 | /* -------------------------------------------------------------------- | 217 | /* -------------------------------------------------------------------- |
226 | * AT91RM9200 processor initialization | 218 | * AT91RM9200 processor initialization |
227 | * -------------------------------------------------------------------- */ | 219 | * -------------------------------------------------------------------- */ |
@@ -230,6 +222,12 @@ void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks | |||
230 | /* Map peripherals */ | 222 | /* Map peripherals */ |
231 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); | 223 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); |
232 | 224 | ||
225 | at91_arch_reset = at91rm9200_reset; | ||
226 | at91_extern_irq = (1 << AT91RM9200_ID_IRQ0) | (1 << AT91RM9200_ID_IRQ1) | ||
227 | | (1 << AT91RM9200_ID_IRQ2) | (1 << AT91RM9200_ID_IRQ3) | ||
228 | | (1 << AT91RM9200_ID_IRQ4) | (1 << AT91RM9200_ID_IRQ5) | ||
229 | | (1 << AT91RM9200_ID_IRQ6); | ||
230 | |||
233 | /* Init clock subsystem */ | 231 | /* Init clock subsystem */ |
234 | at91_clock_init(main_clock); | 232 | at91_clock_init(main_clock); |
235 | 233 | ||
diff --git a/arch/arm/mach-at91rm9200/devices.c b/arch/arm/mach-at91rm9200/at91rm9200_devices.c index 059824376629..4641b99db0ee 100644 --- a/arch/arm/mach-at91rm9200/devices.c +++ b/arch/arm/mach-at91rm9200/at91rm9200_devices.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91rm9200/devices.c | 2 | * arch/arm/mach-at91rm9200/at91rm9200_devices.c |
3 | * | 3 | * |
4 | * Copyright (C) 2005 Thibaut VARENE <varenet@parisc-linux.org> | 4 | * Copyright (C) 2005 Thibaut VARENE <varenet@parisc-linux.org> |
5 | * Copyright (C) 2005 David Brownell | 5 | * Copyright (C) 2005 David Brownell |
@@ -15,9 +15,10 @@ | |||
15 | 15 | ||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | 17 | ||
18 | #include <asm/hardware.h> | ||
19 | #include <asm/arch/board.h> | 18 | #include <asm/arch/board.h> |
20 | #include <asm/arch/gpio.h> | 19 | #include <asm/arch/gpio.h> |
20 | #include <asm/arch/at91rm9200.h> | ||
21 | #include <asm/arch/at91rm9200_mc.h> | ||
21 | 22 | ||
22 | #include "generic.h" | 23 | #include "generic.h" |
23 | 24 | ||
@@ -33,7 +34,7 @@ | |||
33 | static u64 ohci_dmamask = 0xffffffffUL; | 34 | static u64 ohci_dmamask = 0xffffffffUL; |
34 | static struct at91_usbh_data usbh_data; | 35 | static struct at91_usbh_data usbh_data; |
35 | 36 | ||
36 | static struct resource at91_usbh_resources[] = { | 37 | static struct resource usbh_resources[] = { |
37 | [0] = { | 38 | [0] = { |
38 | .start = AT91RM9200_UHP_BASE, | 39 | .start = AT91RM9200_UHP_BASE, |
39 | .end = AT91RM9200_UHP_BASE + SZ_1M - 1, | 40 | .end = AT91RM9200_UHP_BASE + SZ_1M - 1, |
@@ -54,8 +55,8 @@ static struct platform_device at91rm9200_usbh_device = { | |||
54 | .coherent_dma_mask = 0xffffffff, | 55 | .coherent_dma_mask = 0xffffffff, |
55 | .platform_data = &usbh_data, | 56 | .platform_data = &usbh_data, |
56 | }, | 57 | }, |
57 | .resource = at91_usbh_resources, | 58 | .resource = usbh_resources, |
58 | .num_resources = ARRAY_SIZE(at91_usbh_resources), | 59 | .num_resources = ARRAY_SIZE(usbh_resources), |
59 | }; | 60 | }; |
60 | 61 | ||
61 | void __init at91_add_device_usbh(struct at91_usbh_data *data) | 62 | void __init at91_add_device_usbh(struct at91_usbh_data *data) |
@@ -78,7 +79,7 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {} | |||
78 | #ifdef CONFIG_USB_GADGET_AT91 | 79 | #ifdef CONFIG_USB_GADGET_AT91 |
79 | static struct at91_udc_data udc_data; | 80 | static struct at91_udc_data udc_data; |
80 | 81 | ||
81 | static struct resource at91_udc_resources[] = { | 82 | static struct resource udc_resources[] = { |
82 | [0] = { | 83 | [0] = { |
83 | .start = AT91RM9200_BASE_UDP, | 84 | .start = AT91RM9200_BASE_UDP, |
84 | .end = AT91RM9200_BASE_UDP + SZ_16K - 1, | 85 | .end = AT91RM9200_BASE_UDP + SZ_16K - 1, |
@@ -97,8 +98,8 @@ static struct platform_device at91rm9200_udc_device = { | |||
97 | .dev = { | 98 | .dev = { |
98 | .platform_data = &udc_data, | 99 | .platform_data = &udc_data, |
99 | }, | 100 | }, |
100 | .resource = at91_udc_resources, | 101 | .resource = udc_resources, |
101 | .num_resources = ARRAY_SIZE(at91_udc_resources), | 102 | .num_resources = ARRAY_SIZE(udc_resources), |
102 | }; | 103 | }; |
103 | 104 | ||
104 | void __init at91_add_device_udc(struct at91_udc_data *data) | 105 | void __init at91_add_device_udc(struct at91_udc_data *data) |
@@ -129,7 +130,7 @@ void __init at91_add_device_udc(struct at91_udc_data *data) {} | |||
129 | static u64 eth_dmamask = 0xffffffffUL; | 130 | static u64 eth_dmamask = 0xffffffffUL; |
130 | static struct at91_eth_data eth_data; | 131 | static struct at91_eth_data eth_data; |
131 | 132 | ||
132 | static struct resource at91_eth_resources[] = { | 133 | static struct resource eth_resources[] = { |
133 | [0] = { | 134 | [0] = { |
134 | .start = AT91_VA_BASE_EMAC, | 135 | .start = AT91_VA_BASE_EMAC, |
135 | .end = AT91_VA_BASE_EMAC + SZ_16K - 1, | 136 | .end = AT91_VA_BASE_EMAC + SZ_16K - 1, |
@@ -150,8 +151,8 @@ static struct platform_device at91rm9200_eth_device = { | |||
150 | .coherent_dma_mask = 0xffffffff, | 151 | .coherent_dma_mask = 0xffffffff, |
151 | .platform_data = ð_data, | 152 | .platform_data = ð_data, |
152 | }, | 153 | }, |
153 | .resource = at91_eth_resources, | 154 | .resource = eth_resources, |
154 | .num_resources = ARRAY_SIZE(at91_eth_resources), | 155 | .num_resources = ARRAY_SIZE(eth_resources), |
155 | }; | 156 | }; |
156 | 157 | ||
157 | void __init at91_add_device_eth(struct at91_eth_data *data) | 158 | void __init at91_add_device_eth(struct at91_eth_data *data) |
@@ -202,11 +203,13 @@ void __init at91_add_device_eth(struct at91_eth_data *data) {} | |||
202 | #if defined(CONFIG_AT91_CF) || defined(CONFIG_AT91_CF_MODULE) | 203 | #if defined(CONFIG_AT91_CF) || defined(CONFIG_AT91_CF_MODULE) |
203 | static struct at91_cf_data cf_data; | 204 | static struct at91_cf_data cf_data; |
204 | 205 | ||
205 | static struct resource at91_cf_resources[] = { | 206 | #define CF_BASE AT91_CHIPSELECT_4 |
207 | |||
208 | static struct resource cf_resources[] = { | ||
206 | [0] = { | 209 | [0] = { |
207 | .start = AT91_CF_BASE, | 210 | .start = CF_BASE, |
208 | /* ties up CS4, CS5 and CS6 */ | 211 | /* ties up CS4, CS5 and CS6 */ |
209 | .end = AT91_CF_BASE + (0x30000000 - 1), | 212 | .end = CF_BASE + (0x30000000 - 1), |
210 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, | 213 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, |
211 | }, | 214 | }, |
212 | }; | 215 | }; |
@@ -217,15 +220,38 @@ static struct platform_device at91rm9200_cf_device = { | |||
217 | .dev = { | 220 | .dev = { |
218 | .platform_data = &cf_data, | 221 | .platform_data = &cf_data, |
219 | }, | 222 | }, |
220 | .resource = at91_cf_resources, | 223 | .resource = cf_resources, |
221 | .num_resources = ARRAY_SIZE(at91_cf_resources), | 224 | .num_resources = ARRAY_SIZE(cf_resources), |
222 | }; | 225 | }; |
223 | 226 | ||
224 | void __init at91_add_device_cf(struct at91_cf_data *data) | 227 | void __init at91_add_device_cf(struct at91_cf_data *data) |
225 | { | 228 | { |
229 | unsigned int csa; | ||
230 | |||
226 | if (!data) | 231 | if (!data) |
227 | return; | 232 | return; |
228 | 233 | ||
234 | data->chipselect = 4; /* can only use EBI ChipSelect 4 */ | ||
235 | |||
236 | /* CF takes over CS4, CS5, CS6 */ | ||
237 | csa = at91_sys_read(AT91_EBI_CSA); | ||
238 | at91_sys_write(AT91_EBI_CSA, csa | AT91_EBI_CS4A_SMC_COMPACTFLASH); | ||
239 | |||
240 | /* | ||
241 | * Static memory controller timing adjustments. | ||
242 | * REVISIT: these timings are in terms of MCK cycles, so | ||
243 | * when MCK changes (cpufreq etc) so must these values... | ||
244 | */ | ||
245 | at91_sys_write(AT91_SMC_CSR(4), | ||
246 | AT91_SMC_ACSS_STD | ||
247 | | AT91_SMC_DBW_16 | ||
248 | | AT91_SMC_BAT | ||
249 | | AT91_SMC_WSEN | ||
250 | | AT91_SMC_NWS_(32) /* wait states */ | ||
251 | | AT91_SMC_RWSETUP_(6) /* setup time */ | ||
252 | | AT91_SMC_RWHOLD_(4) /* hold time */ | ||
253 | ); | ||
254 | |||
229 | /* input/irq */ | 255 | /* input/irq */ |
230 | if (data->irq_pin) { | 256 | if (data->irq_pin) { |
231 | at91_set_gpio_input(data->irq_pin, 1); | 257 | at91_set_gpio_input(data->irq_pin, 1); |
@@ -245,6 +271,9 @@ void __init at91_add_device_cf(struct at91_cf_data *data) | |||
245 | at91_set_A_periph(AT91_PIN_PC11, 0); /* NCS5/CFCE1 */ | 271 | at91_set_A_periph(AT91_PIN_PC11, 0); /* NCS5/CFCE1 */ |
246 | at91_set_A_periph(AT91_PIN_PC12, 0); /* NCS6/CFCE2 */ | 272 | at91_set_A_periph(AT91_PIN_PC12, 0); /* NCS6/CFCE2 */ |
247 | 273 | ||
274 | /* nWAIT is _not_ a default setting */ | ||
275 | at91_set_A_periph(AT91_PIN_PC6, 1); /* nWAIT */ | ||
276 | |||
248 | cf_data = *data; | 277 | cf_data = *data; |
249 | platform_device_register(&at91rm9200_cf_device); | 278 | platform_device_register(&at91rm9200_cf_device); |
250 | } | 279 | } |
@@ -257,11 +286,11 @@ void __init at91_add_device_cf(struct at91_cf_data *data) {} | |||
257 | * MMC / SD | 286 | * MMC / SD |
258 | * -------------------------------------------------------------------- */ | 287 | * -------------------------------------------------------------------- */ |
259 | 288 | ||
260 | #if defined(CONFIG_MMC_AT91RM9200) || defined(CONFIG_MMC_AT91RM9200_MODULE) | 289 | #if defined(CONFIG_MMC_AT91) || defined(CONFIG_MMC_AT91_MODULE) |
261 | static u64 mmc_dmamask = 0xffffffffUL; | 290 | static u64 mmc_dmamask = 0xffffffffUL; |
262 | static struct at91_mmc_data mmc_data; | 291 | static struct at91_mmc_data mmc_data; |
263 | 292 | ||
264 | static struct resource at91_mmc_resources[] = { | 293 | static struct resource mmc_resources[] = { |
265 | [0] = { | 294 | [0] = { |
266 | .start = AT91RM9200_BASE_MCI, | 295 | .start = AT91RM9200_BASE_MCI, |
267 | .end = AT91RM9200_BASE_MCI + SZ_16K - 1, | 296 | .end = AT91RM9200_BASE_MCI + SZ_16K - 1, |
@@ -282,8 +311,8 @@ static struct platform_device at91rm9200_mmc_device = { | |||
282 | .coherent_dma_mask = 0xffffffff, | 311 | .coherent_dma_mask = 0xffffffff, |
283 | .platform_data = &mmc_data, | 312 | .platform_data = &mmc_data, |
284 | }, | 313 | }, |
285 | .resource = at91_mmc_resources, | 314 | .resource = mmc_resources, |
286 | .num_resources = ARRAY_SIZE(at91_mmc_resources), | 315 | .num_resources = ARRAY_SIZE(mmc_resources), |
287 | }; | 316 | }; |
288 | 317 | ||
289 | void __init at91_add_device_mmc(struct at91_mmc_data *data) | 318 | void __init at91_add_device_mmc(struct at91_mmc_data *data) |
@@ -298,31 +327,33 @@ void __init at91_add_device_mmc(struct at91_mmc_data *data) | |||
298 | } | 327 | } |
299 | if (data->wp_pin) | 328 | if (data->wp_pin) |
300 | at91_set_gpio_input(data->wp_pin, 1); | 329 | at91_set_gpio_input(data->wp_pin, 1); |
330 | if (data->vcc_pin) | ||
331 | at91_set_gpio_output(data->vcc_pin, 0); | ||
301 | 332 | ||
302 | /* CLK */ | 333 | /* CLK */ |
303 | at91_set_A_periph(AT91_PIN_PA27, 0); | 334 | at91_set_A_periph(AT91_PIN_PA27, 0); |
304 | 335 | ||
305 | if (data->is_b) { | 336 | if (data->slot_b) { |
306 | /* CMD */ | 337 | /* CMD */ |
307 | at91_set_B_periph(AT91_PIN_PA8, 0); | 338 | at91_set_B_periph(AT91_PIN_PA8, 1); |
308 | 339 | ||
309 | /* DAT0, maybe DAT1..DAT3 */ | 340 | /* DAT0, maybe DAT1..DAT3 */ |
310 | at91_set_B_periph(AT91_PIN_PA9, 0); | 341 | at91_set_B_periph(AT91_PIN_PA9, 1); |
311 | if (data->wire4) { | 342 | if (data->wire4) { |
312 | at91_set_B_periph(AT91_PIN_PA10, 0); | 343 | at91_set_B_periph(AT91_PIN_PA10, 1); |
313 | at91_set_B_periph(AT91_PIN_PA11, 0); | 344 | at91_set_B_periph(AT91_PIN_PA11, 1); |
314 | at91_set_B_periph(AT91_PIN_PA12, 0); | 345 | at91_set_B_periph(AT91_PIN_PA12, 1); |
315 | } | 346 | } |
316 | } else { | 347 | } else { |
317 | /* CMD */ | 348 | /* CMD */ |
318 | at91_set_A_periph(AT91_PIN_PA28, 0); | 349 | at91_set_A_periph(AT91_PIN_PA28, 1); |
319 | 350 | ||
320 | /* DAT0, maybe DAT1..DAT3 */ | 351 | /* DAT0, maybe DAT1..DAT3 */ |
321 | at91_set_A_periph(AT91_PIN_PA29, 0); | 352 | at91_set_A_periph(AT91_PIN_PA29, 1); |
322 | if (data->wire4) { | 353 | if (data->wire4) { |
323 | at91_set_B_periph(AT91_PIN_PB3, 0); | 354 | at91_set_B_periph(AT91_PIN_PB3, 1); |
324 | at91_set_B_periph(AT91_PIN_PB4, 0); | 355 | at91_set_B_periph(AT91_PIN_PB4, 1); |
325 | at91_set_B_periph(AT91_PIN_PB5, 0); | 356 | at91_set_B_periph(AT91_PIN_PB5, 1); |
326 | } | 357 | } |
327 | } | 358 | } |
328 | 359 | ||
@@ -341,29 +372,45 @@ void __init at91_add_device_mmc(struct at91_mmc_data *data) {} | |||
341 | #if defined(CONFIG_MTD_NAND_AT91) || defined(CONFIG_MTD_NAND_AT91_MODULE) | 372 | #if defined(CONFIG_MTD_NAND_AT91) || defined(CONFIG_MTD_NAND_AT91_MODULE) |
342 | static struct at91_nand_data nand_data; | 373 | static struct at91_nand_data nand_data; |
343 | 374 | ||
344 | static struct resource at91_nand_resources[] = { | 375 | #define NAND_BASE AT91_CHIPSELECT_3 |
376 | |||
377 | static struct resource nand_resources[] = { | ||
345 | { | 378 | { |
346 | .start = AT91_SMARTMEDIA_BASE, | 379 | .start = NAND_BASE, |
347 | .end = AT91_SMARTMEDIA_BASE + SZ_8M - 1, | 380 | .end = NAND_BASE + SZ_8M - 1, |
348 | .flags = IORESOURCE_MEM, | 381 | .flags = IORESOURCE_MEM, |
349 | } | 382 | } |
350 | }; | 383 | }; |
351 | 384 | ||
352 | static struct platform_device at91_nand_device = { | 385 | static struct platform_device at91rm9200_nand_device = { |
353 | .name = "at91_nand", | 386 | .name = "at91_nand", |
354 | .id = -1, | 387 | .id = -1, |
355 | .dev = { | 388 | .dev = { |
356 | .platform_data = &nand_data, | 389 | .platform_data = &nand_data, |
357 | }, | 390 | }, |
358 | .resource = at91_nand_resources, | 391 | .resource = nand_resources, |
359 | .num_resources = ARRAY_SIZE(at91_nand_resources), | 392 | .num_resources = ARRAY_SIZE(nand_resources), |
360 | }; | 393 | }; |
361 | 394 | ||
362 | void __init at91_add_device_nand(struct at91_nand_data *data) | 395 | void __init at91_add_device_nand(struct at91_nand_data *data) |
363 | { | 396 | { |
397 | unsigned int csa; | ||
398 | |||
364 | if (!data) | 399 | if (!data) |
365 | return; | 400 | return; |
366 | 401 | ||
402 | /* enable the address range of CS3 */ | ||
403 | csa = at91_sys_read(AT91_EBI_CSA); | ||
404 | at91_sys_write(AT91_EBI_CSA, csa | AT91_EBI_CS3A_SMC_SMARTMEDIA); | ||
405 | |||
406 | /* set the bus interface characteristics */ | ||
407 | at91_sys_write(AT91_SMC_CSR(3), AT91_SMC_ACSS_STD | AT91_SMC_DBW_8 | AT91_SMC_WSEN | ||
408 | | AT91_SMC_NWS_(5) | ||
409 | | AT91_SMC_TDF_(1) | ||
410 | | AT91_SMC_RWSETUP_(0) /* tDS Data Set up Time 30 - ns */ | ||
411 | | AT91_SMC_RWHOLD_(1) /* tDH Data Hold Time 20 - ns */ | ||
412 | ); | ||
413 | |||
367 | /* enable pin */ | 414 | /* enable pin */ |
368 | if (data->enable_pin) | 415 | if (data->enable_pin) |
369 | at91_set_gpio_output(data->enable_pin, 1); | 416 | at91_set_gpio_output(data->enable_pin, 1); |
@@ -380,7 +427,7 @@ void __init at91_add_device_nand(struct at91_nand_data *data) | |||
380 | at91_set_A_periph(AT91_PIN_PC3, 0); /* SMWE */ | 427 | at91_set_A_periph(AT91_PIN_PC3, 0); /* SMWE */ |
381 | 428 | ||
382 | nand_data = *data; | 429 | nand_data = *data; |
383 | platform_device_register(&at91_nand_device); | 430 | platform_device_register(&at91rm9200_nand_device); |
384 | } | 431 | } |
385 | #else | 432 | #else |
386 | void __init at91_add_device_nand(struct at91_nand_data *data) {} | 433 | void __init at91_add_device_nand(struct at91_nand_data *data) {} |
@@ -392,10 +439,25 @@ void __init at91_add_device_nand(struct at91_nand_data *data) {} | |||
392 | * -------------------------------------------------------------------- */ | 439 | * -------------------------------------------------------------------- */ |
393 | 440 | ||
394 | #if defined(CONFIG_I2C_AT91) || defined(CONFIG_I2C_AT91_MODULE) | 441 | #if defined(CONFIG_I2C_AT91) || defined(CONFIG_I2C_AT91_MODULE) |
442 | |||
443 | static struct resource twi_resources[] = { | ||
444 | [0] = { | ||
445 | .start = AT91RM9200_BASE_TWI, | ||
446 | .end = AT91RM9200_BASE_TWI + SZ_16K - 1, | ||
447 | .flags = IORESOURCE_MEM, | ||
448 | }, | ||
449 | [1] = { | ||
450 | .start = AT91RM9200_ID_TWI, | ||
451 | .end = AT91RM9200_ID_TWI, | ||
452 | .flags = IORESOURCE_IRQ, | ||
453 | }, | ||
454 | }; | ||
455 | |||
395 | static struct platform_device at91rm9200_twi_device = { | 456 | static struct platform_device at91rm9200_twi_device = { |
396 | .name = "at91_i2c", | 457 | .name = "at91_i2c", |
397 | .id = -1, | 458 | .id = -1, |
398 | .num_resources = 0, | 459 | .resource = twi_resources, |
460 | .num_resources = ARRAY_SIZE(twi_resources), | ||
399 | }; | 461 | }; |
400 | 462 | ||
401 | void __init at91_add_device_i2c(void) | 463 | void __init at91_add_device_i2c(void) |
@@ -421,7 +483,7 @@ void __init at91_add_device_i2c(void) {} | |||
421 | #if defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE) || defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE) | 483 | #if defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE) || defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE) |
422 | static u64 spi_dmamask = 0xffffffffUL; | 484 | static u64 spi_dmamask = 0xffffffffUL; |
423 | 485 | ||
424 | static struct resource at91_spi_resources[] = { | 486 | static struct resource spi_resources[] = { |
425 | [0] = { | 487 | [0] = { |
426 | .start = AT91RM9200_BASE_SPI, | 488 | .start = AT91RM9200_BASE_SPI, |
427 | .end = AT91RM9200_BASE_SPI + SZ_16K - 1, | 489 | .end = AT91RM9200_BASE_SPI + SZ_16K - 1, |
@@ -438,14 +500,14 @@ static struct platform_device at91rm9200_spi_device = { | |||
438 | .name = "at91_spi", | 500 | .name = "at91_spi", |
439 | .id = 0, | 501 | .id = 0, |
440 | .dev = { | 502 | .dev = { |
441 | .dma_mask = &spi_dmamask, | 503 | .dma_mask = &spi_dmamask, |
442 | .coherent_dma_mask = 0xffffffff, | 504 | .coherent_dma_mask = 0xffffffff, |
443 | }, | 505 | }, |
444 | .resource = at91_spi_resources, | 506 | .resource = spi_resources, |
445 | .num_resources = ARRAY_SIZE(at91_spi_resources), | 507 | .num_resources = ARRAY_SIZE(spi_resources), |
446 | }; | 508 | }; |
447 | 509 | ||
448 | static const unsigned at91_spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 }; | 510 | static const unsigned spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 }; |
449 | 511 | ||
450 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | 512 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) |
451 | { | 513 | { |
@@ -461,7 +523,7 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | |||
461 | if (devices[i].controller_data) | 523 | if (devices[i].controller_data) |
462 | cs_pin = (unsigned long) devices[i].controller_data; | 524 | cs_pin = (unsigned long) devices[i].controller_data; |
463 | else | 525 | else |
464 | cs_pin = at91_spi_standard_cs[devices[i].chip_select]; | 526 | cs_pin = spi_standard_cs[devices[i].chip_select]; |
465 | 527 | ||
466 | #ifdef CONFIG_SPI_AT91_MANUAL_CS | 528 | #ifdef CONFIG_SPI_AT91_MANUAL_CS |
467 | at91_set_gpio_output(cs_pin, 1); | 529 | at91_set_gpio_output(cs_pin, 1); |
@@ -474,7 +536,7 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | |||
474 | } | 536 | } |
475 | 537 | ||
476 | spi_register_board_info(devices, nr_devices); | 538 | spi_register_board_info(devices, nr_devices); |
477 | at91_clock_associate("spi0_clk", &at91rm9200_spi_device.dev, "spi"); | 539 | at91_clock_associate("spi_clk", &at91rm9200_spi_device.dev, "spi"); |
478 | platform_device_register(&at91rm9200_spi_device); | 540 | platform_device_register(&at91rm9200_spi_device); |
479 | } | 541 | } |
480 | #else | 542 | #else |
@@ -486,7 +548,7 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | |||
486 | * RTC | 548 | * RTC |
487 | * -------------------------------------------------------------------- */ | 549 | * -------------------------------------------------------------------- */ |
488 | 550 | ||
489 | #if defined(CONFIG_RTC_DRV_AT91) || defined(CONFIG_RTC_DRV_AT91_MODULE) | 551 | #if defined(CONFIG_RTC_DRV_AT91RM9200) || defined(CONFIG_RTC_DRV_AT91RM9200_MODULE) |
490 | static struct platform_device at91rm9200_rtc_device = { | 552 | static struct platform_device at91rm9200_rtc_device = { |
491 | .name = "at91_rtc", | 553 | .name = "at91_rtc", |
492 | .id = -1, | 554 | .id = -1, |
@@ -506,7 +568,7 @@ static void __init at91_add_device_rtc(void) {} | |||
506 | * Watchdog | 568 | * Watchdog |
507 | * -------------------------------------------------------------------- */ | 569 | * -------------------------------------------------------------------- */ |
508 | 570 | ||
509 | #if defined(CONFIG_AT91_WATCHDOG) || defined(CONFIG_AT91_WATCHDOG_MODULE) | 571 | #if defined(CONFIG_AT91RM9200_WATCHDOG) || defined(CONFIG_AT91RM9200_WATCHDOG_MODULE) |
510 | static struct platform_device at91rm9200_wdt_device = { | 572 | static struct platform_device at91rm9200_wdt_device = { |
511 | .name = "at91_wdt", | 573 | .name = "at91_wdt", |
512 | .id = -1, | 574 | .id = -1, |
diff --git a/arch/arm/mach-at91rm9200/at91rm9200_time.c b/arch/arm/mach-at91rm9200/at91rm9200_time.c index 07c9cea8961d..b999e192a7e9 100644 --- a/arch/arm/mach-at91rm9200/at91rm9200_time.c +++ b/arch/arm/mach-at91rm9200/at91rm9200_time.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #include <asm/io.h> | 30 | #include <asm/io.h> |
31 | #include <asm/mach/time.h> | 31 | #include <asm/mach/time.h> |
32 | 32 | ||
33 | #include <asm/arch/at91_st.h> | ||
34 | |||
33 | static unsigned long last_crtr; | 35 | static unsigned long last_crtr; |
34 | 36 | ||
35 | /* | 37 | /* |
@@ -99,6 +101,9 @@ void at91rm9200_timer_reset(void) | |||
99 | /* Set Period Interval timer */ | 101 | /* Set Period Interval timer */ |
100 | at91_sys_write(AT91_ST_PIMR, LATCH); | 102 | at91_sys_write(AT91_ST_PIMR, LATCH); |
101 | 103 | ||
104 | /* Clear any pending interrupts */ | ||
105 | (void) at91_sys_read(AT91_ST_SR); | ||
106 | |||
102 | /* Enable Period Interval Timer interrupt */ | 107 | /* Enable Period Interval Timer interrupt */ |
103 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); | 108 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); |
104 | } | 109 | } |
diff --git a/arch/arm/mach-at91rm9200/at91sam9260.c b/arch/arm/mach-at91rm9200/at91sam9260.c new file mode 100644 index 000000000000..203f073a53e6 --- /dev/null +++ b/arch/arm/mach-at91rm9200/at91sam9260.c | |||
@@ -0,0 +1,294 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91rm9200/at91sam9260.c | ||
3 | * | ||
4 | * Copyright (C) 2006 SAN People | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | |||
15 | #include <asm/mach/arch.h> | ||
16 | #include <asm/mach/map.h> | ||
17 | #include <asm/arch/at91sam9260.h> | ||
18 | #include <asm/arch/at91_pmc.h> | ||
19 | |||
20 | #include "generic.h" | ||
21 | #include "clock.h" | ||
22 | |||
23 | static struct map_desc at91sam9260_io_desc[] __initdata = { | ||
24 | { | ||
25 | .virtual = AT91_VA_BASE_SYS, | ||
26 | .pfn = __phys_to_pfn(AT91_BASE_SYS), | ||
27 | .length = SZ_16K, | ||
28 | .type = MT_DEVICE, | ||
29 | }, { | ||
30 | .virtual = AT91_IO_VIRT_BASE - AT91SAM9260_SRAM0_SIZE, | ||
31 | .pfn = __phys_to_pfn(AT91SAM9260_SRAM0_BASE), | ||
32 | .length = AT91SAM9260_SRAM0_SIZE, | ||
33 | .type = MT_DEVICE, | ||
34 | }, { | ||
35 | .virtual = AT91_IO_VIRT_BASE - AT91SAM9260_SRAM0_SIZE - AT91SAM9260_SRAM1_SIZE, | ||
36 | .pfn = __phys_to_pfn(AT91SAM9260_SRAM1_BASE), | ||
37 | .length = AT91SAM9260_SRAM1_SIZE, | ||
38 | .type = MT_DEVICE, | ||
39 | }, | ||
40 | }; | ||
41 | |||
42 | /* -------------------------------------------------------------------- | ||
43 | * Clocks | ||
44 | * -------------------------------------------------------------------- */ | ||
45 | |||
46 | /* | ||
47 | * The peripheral clocks. | ||
48 | */ | ||
49 | static struct clk pioA_clk = { | ||
50 | .name = "pioA_clk", | ||
51 | .pmc_mask = 1 << AT91SAM9260_ID_PIOA, | ||
52 | .type = CLK_TYPE_PERIPHERAL, | ||
53 | }; | ||
54 | static struct clk pioB_clk = { | ||
55 | .name = "pioB_clk", | ||
56 | .pmc_mask = 1 << AT91SAM9260_ID_PIOB, | ||
57 | .type = CLK_TYPE_PERIPHERAL, | ||
58 | }; | ||
59 | static struct clk pioC_clk = { | ||
60 | .name = "pioC_clk", | ||
61 | .pmc_mask = 1 << AT91SAM9260_ID_PIOC, | ||
62 | .type = CLK_TYPE_PERIPHERAL, | ||
63 | }; | ||
64 | static struct clk adc_clk = { | ||
65 | .name = "adc_clk", | ||
66 | .pmc_mask = 1 << AT91SAM9260_ID_ADC, | ||
67 | .type = CLK_TYPE_PERIPHERAL, | ||
68 | }; | ||
69 | static struct clk usart0_clk = { | ||
70 | .name = "usart0_clk", | ||
71 | .pmc_mask = 1 << AT91SAM9260_ID_US0, | ||
72 | .type = CLK_TYPE_PERIPHERAL, | ||
73 | }; | ||
74 | static struct clk usart1_clk = { | ||
75 | .name = "usart1_clk", | ||
76 | .pmc_mask = 1 << AT91SAM9260_ID_US1, | ||
77 | .type = CLK_TYPE_PERIPHERAL, | ||
78 | }; | ||
79 | static struct clk usart2_clk = { | ||
80 | .name = "usart2_clk", | ||
81 | .pmc_mask = 1 << AT91SAM9260_ID_US2, | ||
82 | .type = CLK_TYPE_PERIPHERAL, | ||
83 | }; | ||
84 | static struct clk mmc_clk = { | ||
85 | .name = "mci_clk", | ||
86 | .pmc_mask = 1 << AT91SAM9260_ID_MCI, | ||
87 | .type = CLK_TYPE_PERIPHERAL, | ||
88 | }; | ||
89 | static struct clk udc_clk = { | ||
90 | .name = "udc_clk", | ||
91 | .pmc_mask = 1 << AT91SAM9260_ID_UDP, | ||
92 | .type = CLK_TYPE_PERIPHERAL, | ||
93 | }; | ||
94 | static struct clk twi_clk = { | ||
95 | .name = "twi_clk", | ||
96 | .pmc_mask = 1 << AT91SAM9260_ID_TWI, | ||
97 | .type = CLK_TYPE_PERIPHERAL, | ||
98 | }; | ||
99 | static struct clk spi0_clk = { | ||
100 | .name = "spi0_clk", | ||
101 | .pmc_mask = 1 << AT91SAM9260_ID_SPI0, | ||
102 | .type = CLK_TYPE_PERIPHERAL, | ||
103 | }; | ||
104 | static struct clk spi1_clk = { | ||
105 | .name = "spi1_clk", | ||
106 | .pmc_mask = 1 << AT91SAM9260_ID_SPI1, | ||
107 | .type = CLK_TYPE_PERIPHERAL, | ||
108 | }; | ||
109 | static struct clk ohci_clk = { | ||
110 | .name = "ohci_clk", | ||
111 | .pmc_mask = 1 << AT91SAM9260_ID_UHP, | ||
112 | .type = CLK_TYPE_PERIPHERAL, | ||
113 | }; | ||
114 | static struct clk ether_clk = { | ||
115 | .name = "ether_clk", | ||
116 | .pmc_mask = 1 << AT91SAM9260_ID_EMAC, | ||
117 | .type = CLK_TYPE_PERIPHERAL, | ||
118 | }; | ||
119 | static struct clk isi_clk = { | ||
120 | .name = "isi_clk", | ||
121 | .pmc_mask = 1 << AT91SAM9260_ID_ISI, | ||
122 | .type = CLK_TYPE_PERIPHERAL, | ||
123 | }; | ||
124 | static struct clk usart3_clk = { | ||
125 | .name = "usart3_clk", | ||
126 | .pmc_mask = 1 << AT91SAM9260_ID_US3, | ||
127 | .type = CLK_TYPE_PERIPHERAL, | ||
128 | }; | ||
129 | static struct clk usart4_clk = { | ||
130 | .name = "usart4_clk", | ||
131 | .pmc_mask = 1 << AT91SAM9260_ID_US4, | ||
132 | .type = CLK_TYPE_PERIPHERAL, | ||
133 | }; | ||
134 | static struct clk usart5_clk = { | ||
135 | .name = "usart5_clk", | ||
136 | .pmc_mask = 1 << AT91SAM9260_ID_US5, | ||
137 | .type = CLK_TYPE_PERIPHERAL, | ||
138 | }; | ||
139 | |||
140 | static struct clk *periph_clocks[] __initdata = { | ||
141 | &pioA_clk, | ||
142 | &pioB_clk, | ||
143 | &pioC_clk, | ||
144 | &adc_clk, | ||
145 | &usart0_clk, | ||
146 | &usart1_clk, | ||
147 | &usart2_clk, | ||
148 | &mmc_clk, | ||
149 | &udc_clk, | ||
150 | &twi_clk, | ||
151 | &spi0_clk, | ||
152 | &spi1_clk, | ||
153 | // ssc | ||
154 | // tc0 .. tc2 | ||
155 | &ohci_clk, | ||
156 | ðer_clk, | ||
157 | &isi_clk, | ||
158 | &usart3_clk, | ||
159 | &usart4_clk, | ||
160 | &usart5_clk, | ||
161 | // tc3 .. tc5 | ||
162 | // irq0 .. irq2 | ||
163 | }; | ||
164 | |||
165 | /* | ||
166 | * The two programmable clocks. | ||
167 | * You must configure pin multiplexing to bring these signals out. | ||
168 | */ | ||
169 | static struct clk pck0 = { | ||
170 | .name = "pck0", | ||
171 | .pmc_mask = AT91_PMC_PCK0, | ||
172 | .type = CLK_TYPE_PROGRAMMABLE, | ||
173 | .id = 0, | ||
174 | }; | ||
175 | static struct clk pck1 = { | ||
176 | .name = "pck1", | ||
177 | .pmc_mask = AT91_PMC_PCK1, | ||
178 | .type = CLK_TYPE_PROGRAMMABLE, | ||
179 | .id = 1, | ||
180 | }; | ||
181 | |||
182 | static void __init at91sam9260_register_clocks(void) | ||
183 | { | ||
184 | int i; | ||
185 | |||
186 | for (i = 0; i < ARRAY_SIZE(periph_clocks); i++) | ||
187 | clk_register(periph_clocks[i]); | ||
188 | |||
189 | clk_register(&pck0); | ||
190 | clk_register(&pck1); | ||
191 | } | ||
192 | |||
193 | /* -------------------------------------------------------------------- | ||
194 | * GPIO | ||
195 | * -------------------------------------------------------------------- */ | ||
196 | |||
197 | static struct at91_gpio_bank at91sam9260_gpio[] = { | ||
198 | { | ||
199 | .id = AT91SAM9260_ID_PIOA, | ||
200 | .offset = AT91_PIOA, | ||
201 | .clock = &pioA_clk, | ||
202 | }, { | ||
203 | .id = AT91SAM9260_ID_PIOB, | ||
204 | .offset = AT91_PIOB, | ||
205 | .clock = &pioB_clk, | ||
206 | }, { | ||
207 | .id = AT91SAM9260_ID_PIOC, | ||
208 | .offset = AT91_PIOC, | ||
209 | .clock = &pioC_clk, | ||
210 | } | ||
211 | }; | ||
212 | |||
213 | static void at91sam9260_reset(void) | ||
214 | { | ||
215 | #warning "Implement CPU reset" | ||
216 | } | ||
217 | |||
218 | |||
219 | /* -------------------------------------------------------------------- | ||
220 | * AT91SAM9260 processor initialization | ||
221 | * -------------------------------------------------------------------- */ | ||
222 | |||
223 | void __init at91sam9260_initialize(unsigned long main_clock) | ||
224 | { | ||
225 | /* Map peripherals */ | ||
226 | iotable_init(at91sam9260_io_desc, ARRAY_SIZE(at91sam9260_io_desc)); | ||
227 | |||
228 | at91_arch_reset = at91sam9260_reset; | ||
229 | at91_extern_irq = (1 << AT91SAM9260_ID_IRQ0) | (1 << AT91SAM9260_ID_IRQ1) | ||
230 | | (1 << AT91SAM9260_ID_IRQ2); | ||
231 | |||
232 | /* Init clock subsystem */ | ||
233 | at91_clock_init(main_clock); | ||
234 | |||
235 | /* Register the processor-specific clocks */ | ||
236 | at91sam9260_register_clocks(); | ||
237 | |||
238 | /* Register GPIO subsystem */ | ||
239 | at91_gpio_init(at91sam9260_gpio, 3); | ||
240 | } | ||
241 | |||
242 | /* -------------------------------------------------------------------- | ||
243 | * Interrupt initialization | ||
244 | * -------------------------------------------------------------------- */ | ||
245 | |||
246 | /* | ||
247 | * The default interrupt priority levels (0 = lowest, 7 = highest). | ||
248 | */ | ||
249 | static unsigned int at91sam9260_default_irq_priority[NR_AIC_IRQS] __initdata = { | ||
250 | 7, /* Advanced Interrupt Controller */ | ||
251 | 7, /* System Peripherals */ | ||
252 | 0, /* Parallel IO Controller A */ | ||
253 | 0, /* Parallel IO Controller B */ | ||
254 | 0, /* Parallel IO Controller C */ | ||
255 | 0, /* Analog-to-Digital Converter */ | ||
256 | 6, /* USART 0 */ | ||
257 | 6, /* USART 1 */ | ||
258 | 6, /* USART 2 */ | ||
259 | 0, /* Multimedia Card Interface */ | ||
260 | 4, /* USB Device Port */ | ||
261 | 0, /* Two-Wire Interface */ | ||
262 | 6, /* Serial Peripheral Interface 0 */ | ||
263 | 6, /* Serial Peripheral Interface 1 */ | ||
264 | 5, /* Serial Synchronous Controller */ | ||
265 | 0, | ||
266 | 0, | ||
267 | 0, /* Timer Counter 0 */ | ||
268 | 0, /* Timer Counter 1 */ | ||
269 | 0, /* Timer Counter 2 */ | ||
270 | 3, /* USB Host port */ | ||
271 | 3, /* Ethernet */ | ||
272 | 0, /* Image Sensor Interface */ | ||
273 | 6, /* USART 3 */ | ||
274 | 6, /* USART 4 */ | ||
275 | 6, /* USART 5 */ | ||
276 | 0, /* Timer Counter 3 */ | ||
277 | 0, /* Timer Counter 4 */ | ||
278 | 0, /* Timer Counter 5 */ | ||
279 | 0, /* Advanced Interrupt Controller */ | ||
280 | 0, /* Advanced Interrupt Controller */ | ||
281 | 0, /* Advanced Interrupt Controller */ | ||
282 | }; | ||
283 | |||
284 | void __init at91sam9260_init_interrupts(unsigned int priority[NR_AIC_IRQS]) | ||
285 | { | ||
286 | if (!priority) | ||
287 | priority = at91sam9260_default_irq_priority; | ||
288 | |||
289 | /* Initialize the AIC interrupt controller */ | ||
290 | at91_aic_init(priority); | ||
291 | |||
292 | /* Enable GPIO interrupts */ | ||
293 | at91_gpio_irq_setup(); | ||
294 | } | ||
diff --git a/arch/arm/mach-at91rm9200/at91sam9260_devices.c b/arch/arm/mach-at91rm9200/at91sam9260_devices.c new file mode 100644 index 000000000000..f42d3a40ec3c --- /dev/null +++ b/arch/arm/mach-at91rm9200/at91sam9260_devices.c | |||
@@ -0,0 +1,867 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91rm9200/at91sam9260_devices.c | ||
3 | * | ||
4 | * Copyright (C) 2006 Atmel | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | */ | ||
12 | #include <asm/mach/arch.h> | ||
13 | #include <asm/mach/map.h> | ||
14 | |||
15 | #include <linux/platform_device.h> | ||
16 | |||
17 | #include <asm/arch/board.h> | ||
18 | #include <asm/arch/gpio.h> | ||
19 | #include <asm/arch/at91sam9260.h> | ||
20 | #include <asm/arch/at91sam926x_mc.h> | ||
21 | #include <asm/arch/at91sam9260_matrix.h> | ||
22 | |||
23 | #include "generic.h" | ||
24 | |||
25 | #define SZ_512 0x00000200 | ||
26 | #define SZ_256 0x00000100 | ||
27 | #define SZ_16 0x00000010 | ||
28 | |||
29 | /* -------------------------------------------------------------------- | ||
30 | * USB Host | ||
31 | * -------------------------------------------------------------------- */ | ||
32 | |||
33 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | ||
34 | static u64 ohci_dmamask = 0xffffffffUL; | ||
35 | static struct at91_usbh_data usbh_data; | ||
36 | |||
37 | static struct resource usbh_resources[] = { | ||
38 | [0] = { | ||
39 | .start = AT91SAM9260_UHP_BASE, | ||
40 | .end = AT91SAM9260_UHP_BASE + SZ_1M - 1, | ||
41 | .flags = IORESOURCE_MEM, | ||
42 | }, | ||
43 | [1] = { | ||
44 | .start = AT91SAM9260_ID_UHP, | ||
45 | .end = AT91SAM9260_ID_UHP, | ||
46 | .flags = IORESOURCE_IRQ, | ||
47 | }, | ||
48 | }; | ||
49 | |||
50 | static struct platform_device at91_usbh_device = { | ||
51 | .name = "at91_ohci", | ||
52 | .id = -1, | ||
53 | .dev = { | ||
54 | .dma_mask = &ohci_dmamask, | ||
55 | .coherent_dma_mask = 0xffffffff, | ||
56 | .platform_data = &usbh_data, | ||
57 | }, | ||
58 | .resource = usbh_resources, | ||
59 | .num_resources = ARRAY_SIZE(usbh_resources), | ||
60 | }; | ||
61 | |||
62 | void __init at91_add_device_usbh(struct at91_usbh_data *data) | ||
63 | { | ||
64 | if (!data) | ||
65 | return; | ||
66 | |||
67 | usbh_data = *data; | ||
68 | platform_device_register(&at91_usbh_device); | ||
69 | } | ||
70 | #else | ||
71 | void __init at91_add_device_usbh(struct at91_usbh_data *data) {} | ||
72 | #endif | ||
73 | |||
74 | |||
75 | /* -------------------------------------------------------------------- | ||
76 | * USB Device (Gadget) | ||
77 | * -------------------------------------------------------------------- */ | ||
78 | |||
79 | #ifdef CONFIG_USB_GADGET_AT91 | ||
80 | static struct at91_udc_data udc_data; | ||
81 | |||
82 | static struct resource udc_resources[] = { | ||
83 | [0] = { | ||
84 | .start = AT91SAM9260_BASE_UDP, | ||
85 | .end = AT91SAM9260_BASE_UDP + SZ_16K - 1, | ||
86 | .flags = IORESOURCE_MEM, | ||
87 | }, | ||
88 | [1] = { | ||
89 | .start = AT91SAM9260_ID_UDP, | ||
90 | .end = AT91SAM9260_ID_UDP, | ||
91 | .flags = IORESOURCE_IRQ, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct platform_device at91_udc_device = { | ||
96 | .name = "at91_udc", | ||
97 | .id = -1, | ||
98 | .dev = { | ||
99 | .platform_data = &udc_data, | ||
100 | }, | ||
101 | .resource = udc_resources, | ||
102 | .num_resources = ARRAY_SIZE(udc_resources), | ||
103 | }; | ||
104 | |||
105 | void __init at91_add_device_udc(struct at91_udc_data *data) | ||
106 | { | ||
107 | if (!data) | ||
108 | return; | ||
109 | |||
110 | if (data->vbus_pin) { | ||
111 | at91_set_gpio_input(data->vbus_pin, 0); | ||
112 | at91_set_deglitch(data->vbus_pin, 1); | ||
113 | } | ||
114 | |||
115 | /* Pullup pin is handled internally by USB device peripheral */ | ||
116 | |||
117 | udc_data = *data; | ||
118 | platform_device_register(&at91_udc_device); | ||
119 | } | ||
120 | #else | ||
121 | void __init at91_add_device_udc(struct at91_udc_data *data) {} | ||
122 | #endif | ||
123 | |||
124 | |||
125 | /* -------------------------------------------------------------------- | ||
126 | * Ethernet | ||
127 | * -------------------------------------------------------------------- */ | ||
128 | |||
129 | #if defined(CONFIG_MACB) || defined(CONFIG_MACB_MODULE) | ||
130 | static u64 eth_dmamask = 0xffffffffUL; | ||
131 | static struct eth_platform_data eth_data; | ||
132 | |||
133 | static struct resource eth_resources[] = { | ||
134 | [0] = { | ||
135 | .start = AT91SAM9260_BASE_EMAC, | ||
136 | .end = AT91SAM9260_BASE_EMAC + SZ_16K - 1, | ||
137 | .flags = IORESOURCE_MEM, | ||
138 | }, | ||
139 | [1] = { | ||
140 | .start = AT91SAM9260_ID_EMAC, | ||
141 | .end = AT91SAM9260_ID_EMAC, | ||
142 | .flags = IORESOURCE_IRQ, | ||
143 | }, | ||
144 | }; | ||
145 | |||
146 | static struct platform_device at91sam9260_eth_device = { | ||
147 | .name = "macb", | ||
148 | .id = -1, | ||
149 | .dev = { | ||
150 | .dma_mask = ð_dmamask, | ||
151 | .coherent_dma_mask = 0xffffffff, | ||
152 | .platform_data = ð_data, | ||
153 | }, | ||
154 | .resource = eth_resources, | ||
155 | .num_resources = ARRAY_SIZE(eth_resources), | ||
156 | }; | ||
157 | |||
158 | void __init at91_add_device_eth(struct eth_platform_data *data) | ||
159 | { | ||
160 | if (!data) | ||
161 | return; | ||
162 | |||
163 | if (data->phy_irq_pin) { | ||
164 | at91_set_gpio_input(data->phy_irq_pin, 0); | ||
165 | at91_set_deglitch(data->phy_irq_pin, 1); | ||
166 | } | ||
167 | |||
168 | /* Pins used for MII and RMII */ | ||
169 | at91_set_A_periph(AT91_PIN_PA19, 0); /* ETXCK_EREFCK */ | ||
170 | at91_set_A_periph(AT91_PIN_PA17, 0); /* ERXDV */ | ||
171 | at91_set_A_periph(AT91_PIN_PA14, 0); /* ERX0 */ | ||
172 | at91_set_A_periph(AT91_PIN_PA15, 0); /* ERX1 */ | ||
173 | at91_set_A_periph(AT91_PIN_PA18, 0); /* ERXER */ | ||
174 | at91_set_A_periph(AT91_PIN_PA16, 0); /* ETXEN */ | ||
175 | at91_set_A_periph(AT91_PIN_PA12, 0); /* ETX0 */ | ||
176 | at91_set_A_periph(AT91_PIN_PA13, 0); /* ETX1 */ | ||
177 | at91_set_A_periph(AT91_PIN_PA21, 0); /* EMDIO */ | ||
178 | at91_set_A_periph(AT91_PIN_PA20, 0); /* EMDC */ | ||
179 | |||
180 | if (!data->is_rmii) { | ||
181 | at91_set_B_periph(AT91_PIN_PA28, 0); /* ECRS */ | ||
182 | at91_set_B_periph(AT91_PIN_PA29, 0); /* ECOL */ | ||
183 | at91_set_B_periph(AT91_PIN_PA25, 0); /* ERX2 */ | ||
184 | at91_set_B_periph(AT91_PIN_PA26, 0); /* ERX3 */ | ||
185 | at91_set_B_periph(AT91_PIN_PA27, 0); /* ERXCK */ | ||
186 | at91_set_B_periph(AT91_PIN_PA23, 0); /* ETX2 */ | ||
187 | at91_set_B_periph(AT91_PIN_PA24, 0); /* ETX3 */ | ||
188 | at91_set_B_periph(AT91_PIN_PA22, 0); /* ETXER */ | ||
189 | } | ||
190 | |||
191 | eth_data = *data; | ||
192 | platform_device_register(&at91sam9260_eth_device); | ||
193 | } | ||
194 | #else | ||
195 | void __init at91_add_device_eth(struct eth_platform_data *data) {} | ||
196 | #endif | ||
197 | |||
198 | |||
199 | /* -------------------------------------------------------------------- | ||
200 | * MMC / SD | ||
201 | * -------------------------------------------------------------------- */ | ||
202 | |||
203 | #if defined(CONFIG_MMC_AT91) || defined(CONFIG_MMC_AT91_MODULE) | ||
204 | static u64 mmc_dmamask = 0xffffffffUL; | ||
205 | static struct at91_mmc_data mmc_data; | ||
206 | |||
207 | static struct resource mmc_resources[] = { | ||
208 | [0] = { | ||
209 | .start = AT91SAM9260_BASE_MCI, | ||
210 | .end = AT91SAM9260_BASE_MCI + SZ_16K - 1, | ||
211 | .flags = IORESOURCE_MEM, | ||
212 | }, | ||
213 | [1] = { | ||
214 | .start = AT91SAM9260_ID_MCI, | ||
215 | .end = AT91SAM9260_ID_MCI, | ||
216 | .flags = IORESOURCE_IRQ, | ||
217 | }, | ||
218 | }; | ||
219 | |||
220 | static struct platform_device at91sam9260_mmc_device = { | ||
221 | .name = "at91_mci", | ||
222 | .id = -1, | ||
223 | .dev = { | ||
224 | .dma_mask = &mmc_dmamask, | ||
225 | .coherent_dma_mask = 0xffffffff, | ||
226 | .platform_data = &mmc_data, | ||
227 | }, | ||
228 | .resource = mmc_resources, | ||
229 | .num_resources = ARRAY_SIZE(mmc_resources), | ||
230 | }; | ||
231 | |||
232 | void __init at91_add_device_mmc(struct at91_mmc_data *data) | ||
233 | { | ||
234 | if (!data) | ||
235 | return; | ||
236 | |||
237 | /* input/irq */ | ||
238 | if (data->det_pin) { | ||
239 | at91_set_gpio_input(data->det_pin, 1); | ||
240 | at91_set_deglitch(data->det_pin, 1); | ||
241 | } | ||
242 | if (data->wp_pin) | ||
243 | at91_set_gpio_input(data->wp_pin, 1); | ||
244 | if (data->vcc_pin) | ||
245 | at91_set_gpio_output(data->vcc_pin, 0); | ||
246 | |||
247 | /* CLK */ | ||
248 | at91_set_A_periph(AT91_PIN_PA8, 0); | ||
249 | |||
250 | if (data->slot_b) { | ||
251 | /* CMD */ | ||
252 | at91_set_B_periph(AT91_PIN_PA1, 1); | ||
253 | |||
254 | /* DAT0, maybe DAT1..DAT3 */ | ||
255 | at91_set_B_periph(AT91_PIN_PA0, 1); | ||
256 | if (data->wire4) { | ||
257 | at91_set_B_periph(AT91_PIN_PA5, 1); | ||
258 | at91_set_B_periph(AT91_PIN_PA4, 1); | ||
259 | at91_set_B_periph(AT91_PIN_PA3, 1); | ||
260 | } | ||
261 | } else { | ||
262 | /* CMD */ | ||
263 | at91_set_A_periph(AT91_PIN_PA7, 1); | ||
264 | |||
265 | /* DAT0, maybe DAT1..DAT3 */ | ||
266 | at91_set_A_periph(AT91_PIN_PA6, 1); | ||
267 | if (data->wire4) { | ||
268 | at91_set_A_periph(AT91_PIN_PA9, 1); | ||
269 | at91_set_A_periph(AT91_PIN_PA10, 1); | ||
270 | at91_set_A_periph(AT91_PIN_PA11, 1); | ||
271 | } | ||
272 | } | ||
273 | |||
274 | mmc_data = *data; | ||
275 | platform_device_register(&at91sam9260_mmc_device); | ||
276 | } | ||
277 | #else | ||
278 | void __init at91_add_device_mmc(struct at91_mmc_data *data) {} | ||
279 | #endif | ||
280 | |||
281 | |||
282 | /* -------------------------------------------------------------------- | ||
283 | * NAND / SmartMedia | ||
284 | * -------------------------------------------------------------------- */ | ||
285 | |||
286 | #if defined(CONFIG_MTD_NAND_AT91) || defined(CONFIG_MTD_NAND_AT91_MODULE) | ||
287 | static struct at91_nand_data nand_data; | ||
288 | |||
289 | #define NAND_BASE AT91_CHIPSELECT_3 | ||
290 | |||
291 | static struct resource nand_resources[] = { | ||
292 | { | ||
293 | .start = NAND_BASE, | ||
294 | .end = NAND_BASE + SZ_8M - 1, | ||
295 | .flags = IORESOURCE_MEM, | ||
296 | } | ||
297 | }; | ||
298 | |||
299 | static struct platform_device at91sam9260_nand_device = { | ||
300 | .name = "at91_nand", | ||
301 | .id = -1, | ||
302 | .dev = { | ||
303 | .platform_data = &nand_data, | ||
304 | }, | ||
305 | .resource = nand_resources, | ||
306 | .num_resources = ARRAY_SIZE(nand_resources), | ||
307 | }; | ||
308 | |||
309 | void __init at91_add_device_nand(struct at91_nand_data *data) | ||
310 | { | ||
311 | unsigned long csa, mode; | ||
312 | |||
313 | if (!data) | ||
314 | return; | ||
315 | |||
316 | csa = at91_sys_read(AT91_MATRIX_EBICSA); | ||
317 | at91_sys_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC); | ||
318 | |||
319 | /* set the bus interface characteristics */ | ||
320 | at91_sys_write(AT91_SMC_SETUP(3), AT91_SMC_NWESETUP_(0) | AT91_SMC_NCS_WRSETUP_(0) | ||
321 | | AT91_SMC_NRDSETUP_(0) | AT91_SMC_NCS_RDSETUP_(0)); | ||
322 | |||
323 | at91_sys_write(AT91_SMC_PULSE(3), AT91_SMC_NWEPULSE_(2) | AT91_SMC_NCS_WRPULSE_(5) | ||
324 | | AT91_SMC_NRDPULSE_(2) | AT91_SMC_NCS_RDPULSE_(5)); | ||
325 | |||
326 | at91_sys_write(AT91_SMC_CYCLE(3), AT91_SMC_NWECYCLE_(7) | AT91_SMC_NRDCYCLE_(7)); | ||
327 | |||
328 | if (data->bus_width_16) | ||
329 | mode = AT91_SMC_DBW_16; | ||
330 | else | ||
331 | mode = AT91_SMC_DBW_8; | ||
332 | at91_sys_write(AT91_SMC_MODE(3), mode | AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_EXNWMODE_DISABLE | AT91_SMC_TDF_(1)); | ||
333 | |||
334 | /* enable pin */ | ||
335 | if (data->enable_pin) | ||
336 | at91_set_gpio_output(data->enable_pin, 1); | ||
337 | |||
338 | /* ready/busy pin */ | ||
339 | if (data->rdy_pin) | ||
340 | at91_set_gpio_input(data->rdy_pin, 1); | ||
341 | |||
342 | /* card detect pin */ | ||
343 | if (data->det_pin) | ||
344 | at91_set_gpio_input(data->det_pin, 1); | ||
345 | |||
346 | nand_data = *data; | ||
347 | platform_device_register(&at91sam9260_nand_device); | ||
348 | } | ||
349 | #else | ||
350 | void __init at91_add_device_nand(struct at91_nand_data *data) {} | ||
351 | #endif | ||
352 | |||
353 | |||
354 | /* -------------------------------------------------------------------- | ||
355 | * TWI (i2c) | ||
356 | * -------------------------------------------------------------------- */ | ||
357 | |||
358 | #if defined(CONFIG_I2C_AT91) || defined(CONFIG_I2C_AT91_MODULE) | ||
359 | |||
360 | static struct resource twi_resources[] = { | ||
361 | [0] = { | ||
362 | .start = AT91SAM9260_BASE_TWI, | ||
363 | .end = AT91SAM9260_BASE_TWI + SZ_16K - 1, | ||
364 | .flags = IORESOURCE_MEM, | ||
365 | }, | ||
366 | [1] = { | ||
367 | .start = AT91SAM9260_ID_TWI, | ||
368 | .end = AT91SAM9260_ID_TWI, | ||
369 | .flags = IORESOURCE_IRQ, | ||
370 | }, | ||
371 | }; | ||
372 | |||
373 | static struct platform_device at91sam9260_twi_device = { | ||
374 | .name = "at91_i2c", | ||
375 | .id = -1, | ||
376 | .resource = twi_resources, | ||
377 | .num_resources = ARRAY_SIZE(twi_resources), | ||
378 | }; | ||
379 | |||
380 | void __init at91_add_device_i2c(void) | ||
381 | { | ||
382 | /* pins used for TWI interface */ | ||
383 | at91_set_A_periph(AT91_PIN_PA23, 0); /* TWD */ | ||
384 | at91_set_multi_drive(AT91_PIN_PA23, 1); | ||
385 | |||
386 | at91_set_A_periph(AT91_PIN_PA24, 0); /* TWCK */ | ||
387 | at91_set_multi_drive(AT91_PIN_PA24, 1); | ||
388 | |||
389 | platform_device_register(&at91sam9260_twi_device); | ||
390 | } | ||
391 | #else | ||
392 | void __init at91_add_device_i2c(void) {} | ||
393 | #endif | ||
394 | |||
395 | |||
396 | /* -------------------------------------------------------------------- | ||
397 | * SPI | ||
398 | * -------------------------------------------------------------------- */ | ||
399 | |||
400 | #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE) | ||
401 | static u64 spi_dmamask = 0xffffffffUL; | ||
402 | |||
403 | static struct resource spi0_resources[] = { | ||
404 | [0] = { | ||
405 | .start = AT91SAM9260_BASE_SPI0, | ||
406 | .end = AT91SAM9260_BASE_SPI0 + SZ_16K - 1, | ||
407 | .flags = IORESOURCE_MEM, | ||
408 | }, | ||
409 | [1] = { | ||
410 | .start = AT91SAM9260_ID_SPI0, | ||
411 | .end = AT91SAM9260_ID_SPI0, | ||
412 | .flags = IORESOURCE_IRQ, | ||
413 | }, | ||
414 | }; | ||
415 | |||
416 | static struct platform_device at91sam9260_spi0_device = { | ||
417 | .name = "atmel_spi", | ||
418 | .id = 0, | ||
419 | .dev = { | ||
420 | .dma_mask = &spi_dmamask, | ||
421 | .coherent_dma_mask = 0xffffffff, | ||
422 | }, | ||
423 | .resource = spi0_resources, | ||
424 | .num_resources = ARRAY_SIZE(spi0_resources), | ||
425 | }; | ||
426 | |||
427 | static const unsigned spi0_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PC11, AT91_PIN_PC16, AT91_PIN_PC17 }; | ||
428 | |||
429 | static struct resource spi1_resources[] = { | ||
430 | [0] = { | ||
431 | .start = AT91SAM9260_BASE_SPI1, | ||
432 | .end = AT91SAM9260_BASE_SPI1 + SZ_16K - 1, | ||
433 | .flags = IORESOURCE_MEM, | ||
434 | }, | ||
435 | [1] = { | ||
436 | .start = AT91SAM9260_ID_SPI1, | ||
437 | .end = AT91SAM9260_ID_SPI1, | ||
438 | .flags = IORESOURCE_IRQ, | ||
439 | }, | ||
440 | }; | ||
441 | |||
442 | static struct platform_device at91sam9260_spi1_device = { | ||
443 | .name = "atmel_spi", | ||
444 | .id = 1, | ||
445 | .dev = { | ||
446 | .dma_mask = &spi_dmamask, | ||
447 | .coherent_dma_mask = 0xffffffff, | ||
448 | }, | ||
449 | .resource = spi1_resources, | ||
450 | .num_resources = ARRAY_SIZE(spi1_resources), | ||
451 | }; | ||
452 | |||
453 | static const unsigned spi1_standard_cs[4] = { AT91_PIN_PB3, AT91_PIN_PC5, AT91_PIN_PC4, AT91_PIN_PC3 }; | ||
454 | |||
455 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | ||
456 | { | ||
457 | int i; | ||
458 | unsigned long cs_pin; | ||
459 | short enable_spi0 = 0; | ||
460 | short enable_spi1 = 0; | ||
461 | |||
462 | /* Choose SPI chip-selects */ | ||
463 | for (i = 0; i < nr_devices; i++) { | ||
464 | if (devices[i].controller_data) | ||
465 | cs_pin = (unsigned long) devices[i].controller_data; | ||
466 | else if (devices[i].bus_num == 0) | ||
467 | cs_pin = spi0_standard_cs[devices[i].chip_select]; | ||
468 | else | ||
469 | cs_pin = spi1_standard_cs[devices[i].chip_select]; | ||
470 | |||
471 | if (devices[i].bus_num == 0) | ||
472 | enable_spi0 = 1; | ||
473 | else | ||
474 | enable_spi1 = 1; | ||
475 | |||
476 | /* enable chip-select pin */ | ||
477 | at91_set_gpio_output(cs_pin, 1); | ||
478 | |||
479 | /* pass chip-select pin to driver */ | ||
480 | devices[i].controller_data = (void *) cs_pin; | ||
481 | } | ||
482 | |||
483 | spi_register_board_info(devices, nr_devices); | ||
484 | |||
485 | /* Configure SPI bus(es) */ | ||
486 | if (enable_spi0) { | ||
487 | at91_set_A_periph(AT91_PIN_PA0, 0); /* SPI0_MISO */ | ||
488 | at91_set_A_periph(AT91_PIN_PA1, 0); /* SPI0_MOSI */ | ||
489 | at91_set_A_periph(AT91_PIN_PA2, 0); /* SPI1_SPCK */ | ||
490 | |||
491 | at91_clock_associate("spi0_clk", &at91sam9260_spi0_device.dev, "spi_clk"); | ||
492 | platform_device_register(&at91sam9260_spi0_device); | ||
493 | } | ||
494 | if (enable_spi1) { | ||
495 | at91_set_A_periph(AT91_PIN_PB0, 0); /* SPI1_MISO */ | ||
496 | at91_set_A_periph(AT91_PIN_PB1, 0); /* SPI1_MOSI */ | ||
497 | at91_set_A_periph(AT91_PIN_PB2, 0); /* SPI1_SPCK */ | ||
498 | |||
499 | at91_clock_associate("spi1_clk", &at91sam9260_spi1_device.dev, "spi_clk"); | ||
500 | platform_device_register(&at91sam9260_spi1_device); | ||
501 | } | ||
502 | } | ||
503 | #else | ||
504 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) {} | ||
505 | #endif | ||
506 | |||
507 | |||
508 | /* -------------------------------------------------------------------- | ||
509 | * LEDs | ||
510 | * -------------------------------------------------------------------- */ | ||
511 | |||
512 | #if defined(CONFIG_LEDS) | ||
513 | u8 at91_leds_cpu; | ||
514 | u8 at91_leds_timer; | ||
515 | |||
516 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | ||
517 | { | ||
518 | at91_leds_cpu = cpu_led; | ||
519 | at91_leds_timer = timer_led; | ||
520 | } | ||
521 | #else | ||
522 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} | ||
523 | #endif | ||
524 | |||
525 | |||
526 | /* -------------------------------------------------------------------- | ||
527 | * UART | ||
528 | * -------------------------------------------------------------------- */ | ||
529 | #if defined(CONFIG_SERIAL_ATMEL) | ||
530 | static struct resource dbgu_resources[] = { | ||
531 | [0] = { | ||
532 | .start = AT91_VA_BASE_SYS + AT91_DBGU, | ||
533 | .end = AT91_VA_BASE_SYS + AT91_DBGU + SZ_512 - 1, | ||
534 | .flags = IORESOURCE_MEM, | ||
535 | }, | ||
536 | [1] = { | ||
537 | .start = AT91_ID_SYS, | ||
538 | .end = AT91_ID_SYS, | ||
539 | .flags = IORESOURCE_IRQ, | ||
540 | }, | ||
541 | }; | ||
542 | |||
543 | static struct atmel_uart_data dbgu_data = { | ||
544 | .use_dma_tx = 0, | ||
545 | .use_dma_rx = 0, /* DBGU not capable of receive DMA */ | ||
546 | .regs = (void __iomem *)(AT91_VA_BASE_SYS + AT91_DBGU), | ||
547 | }; | ||
548 | |||
549 | static struct platform_device at91sam9260_dbgu_device = { | ||
550 | .name = "atmel_usart", | ||
551 | .id = 0, | ||
552 | .dev = { | ||
553 | .platform_data = &dbgu_data, | ||
554 | .coherent_dma_mask = 0xffffffff, | ||
555 | }, | ||
556 | .resource = dbgu_resources, | ||
557 | .num_resources = ARRAY_SIZE(dbgu_resources), | ||
558 | }; | ||
559 | |||
560 | static inline void configure_dbgu_pins(void) | ||
561 | { | ||
562 | at91_set_A_periph(AT91_PIN_PB14, 0); /* DRXD */ | ||
563 | at91_set_A_periph(AT91_PIN_PB15, 1); /* DTXD */ | ||
564 | } | ||
565 | |||
566 | static struct resource uart0_resources[] = { | ||
567 | [0] = { | ||
568 | .start = AT91SAM9260_BASE_US0, | ||
569 | .end = AT91SAM9260_BASE_US0 + SZ_16K - 1, | ||
570 | .flags = IORESOURCE_MEM, | ||
571 | }, | ||
572 | [1] = { | ||
573 | .start = AT91SAM9260_ID_US0, | ||
574 | .end = AT91SAM9260_ID_US0, | ||
575 | .flags = IORESOURCE_IRQ, | ||
576 | }, | ||
577 | }; | ||
578 | |||
579 | static struct atmel_uart_data uart0_data = { | ||
580 | .use_dma_tx = 1, | ||
581 | .use_dma_rx = 1, | ||
582 | }; | ||
583 | |||
584 | static struct platform_device at91sam9260_uart0_device = { | ||
585 | .name = "atmel_usart", | ||
586 | .id = 1, | ||
587 | .dev = { | ||
588 | .platform_data = &uart0_data, | ||
589 | .coherent_dma_mask = 0xffffffff, | ||
590 | }, | ||
591 | .resource = uart0_resources, | ||
592 | .num_resources = ARRAY_SIZE(uart0_resources), | ||
593 | }; | ||
594 | |||
595 | static inline void configure_usart0_pins(void) | ||
596 | { | ||
597 | at91_set_A_periph(AT91_PIN_PB4, 1); /* TXD0 */ | ||
598 | at91_set_A_periph(AT91_PIN_PB5, 0); /* RXD0 */ | ||
599 | at91_set_A_periph(AT91_PIN_PB26, 0); /* RTS0 */ | ||
600 | at91_set_A_periph(AT91_PIN_PB27, 0); /* CTS0 */ | ||
601 | at91_set_A_periph(AT91_PIN_PB24, 0); /* DTR0 */ | ||
602 | at91_set_A_periph(AT91_PIN_PB22, 0); /* DSR0 */ | ||
603 | at91_set_A_periph(AT91_PIN_PB23, 0); /* DCD0 */ | ||
604 | at91_set_A_periph(AT91_PIN_PB25, 0); /* RI0 */ | ||
605 | } | ||
606 | |||
607 | static struct resource uart1_resources[] = { | ||
608 | [0] = { | ||
609 | .start = AT91SAM9260_BASE_US1, | ||
610 | .end = AT91SAM9260_BASE_US1 + SZ_16K - 1, | ||
611 | .flags = IORESOURCE_MEM, | ||
612 | }, | ||
613 | [1] = { | ||
614 | .start = AT91SAM9260_ID_US1, | ||
615 | .end = AT91SAM9260_ID_US1, | ||
616 | .flags = IORESOURCE_IRQ, | ||
617 | }, | ||
618 | }; | ||
619 | |||
620 | static struct atmel_uart_data uart1_data = { | ||
621 | .use_dma_tx = 1, | ||
622 | .use_dma_rx = 1, | ||
623 | }; | ||
624 | |||
625 | static struct platform_device at91sam9260_uart1_device = { | ||
626 | .name = "atmel_usart", | ||
627 | .id = 2, | ||
628 | .dev = { | ||
629 | .platform_data = &uart1_data, | ||
630 | .coherent_dma_mask = 0xffffffff, | ||
631 | }, | ||
632 | .resource = uart1_resources, | ||
633 | .num_resources = ARRAY_SIZE(uart1_resources), | ||
634 | }; | ||
635 | |||
636 | static inline void configure_usart1_pins(void) | ||
637 | { | ||
638 | at91_set_A_periph(AT91_PIN_PB6, 1); /* TXD1 */ | ||
639 | at91_set_A_periph(AT91_PIN_PB7, 0); /* RXD1 */ | ||
640 | at91_set_A_periph(AT91_PIN_PB28, 0); /* RTS1 */ | ||
641 | at91_set_A_periph(AT91_PIN_PB29, 0); /* CTS1 */ | ||
642 | } | ||
643 | |||
644 | static struct resource uart2_resources[] = { | ||
645 | [0] = { | ||
646 | .start = AT91SAM9260_BASE_US2, | ||
647 | .end = AT91SAM9260_BASE_US2 + SZ_16K - 1, | ||
648 | .flags = IORESOURCE_MEM, | ||
649 | }, | ||
650 | [1] = { | ||
651 | .start = AT91SAM9260_ID_US2, | ||
652 | .end = AT91SAM9260_ID_US2, | ||
653 | .flags = IORESOURCE_IRQ, | ||
654 | }, | ||
655 | }; | ||
656 | |||
657 | static struct atmel_uart_data uart2_data = { | ||
658 | .use_dma_tx = 1, | ||
659 | .use_dma_rx = 1, | ||
660 | }; | ||
661 | |||
662 | static struct platform_device at91sam9260_uart2_device = { | ||
663 | .name = "atmel_usart", | ||
664 | .id = 3, | ||
665 | .dev = { | ||
666 | .platform_data = &uart2_data, | ||
667 | .coherent_dma_mask = 0xffffffff, | ||
668 | }, | ||
669 | .resource = uart2_resources, | ||
670 | .num_resources = ARRAY_SIZE(uart2_resources), | ||
671 | }; | ||
672 | |||
673 | static inline void configure_usart2_pins(void) | ||
674 | { | ||
675 | at91_set_A_periph(AT91_PIN_PB8, 1); /* TXD2 */ | ||
676 | at91_set_A_periph(AT91_PIN_PB9, 0); /* RXD2 */ | ||
677 | } | ||
678 | |||
679 | static struct resource uart3_resources[] = { | ||
680 | [0] = { | ||
681 | .start = AT91SAM9260_BASE_US3, | ||
682 | .end = AT91SAM9260_BASE_US3 + SZ_16K - 1, | ||
683 | .flags = IORESOURCE_MEM, | ||
684 | }, | ||
685 | [1] = { | ||
686 | .start = AT91SAM9260_ID_US3, | ||
687 | .end = AT91SAM9260_ID_US3, | ||
688 | .flags = IORESOURCE_IRQ, | ||
689 | }, | ||
690 | }; | ||
691 | |||
692 | static struct atmel_uart_data uart3_data = { | ||
693 | .use_dma_tx = 1, | ||
694 | .use_dma_rx = 1, | ||
695 | }; | ||
696 | |||
697 | static struct platform_device at91sam9260_uart3_device = { | ||
698 | .name = "atmel_usart", | ||
699 | .id = 4, | ||
700 | .dev = { | ||
701 | .platform_data = &uart3_data, | ||
702 | .coherent_dma_mask = 0xffffffff, | ||
703 | }, | ||
704 | .resource = uart3_resources, | ||
705 | .num_resources = ARRAY_SIZE(uart3_resources), | ||
706 | }; | ||
707 | |||
708 | static inline void configure_usart3_pins(void) | ||
709 | { | ||
710 | at91_set_A_periph(AT91_PIN_PB10, 1); /* TXD3 */ | ||
711 | at91_set_A_periph(AT91_PIN_PB11, 0); /* RXD3 */ | ||
712 | } | ||
713 | |||
714 | static struct resource uart4_resources[] = { | ||
715 | [0] = { | ||
716 | .start = AT91SAM9260_BASE_US4, | ||
717 | .end = AT91SAM9260_BASE_US4 + SZ_16K - 1, | ||
718 | .flags = IORESOURCE_MEM, | ||
719 | }, | ||
720 | [1] = { | ||
721 | .start = AT91SAM9260_ID_US4, | ||
722 | .end = AT91SAM9260_ID_US4, | ||
723 | .flags = IORESOURCE_IRQ, | ||
724 | }, | ||
725 | }; | ||
726 | |||
727 | static struct atmel_uart_data uart4_data = { | ||
728 | .use_dma_tx = 1, | ||
729 | .use_dma_rx = 1, | ||
730 | }; | ||
731 | |||
732 | static struct platform_device at91sam9260_uart4_device = { | ||
733 | .name = "atmel_usart", | ||
734 | .id = 5, | ||
735 | .dev = { | ||
736 | .platform_data = &uart4_data, | ||
737 | .coherent_dma_mask = 0xffffffff, | ||
738 | }, | ||
739 | .resource = uart4_resources, | ||
740 | .num_resources = ARRAY_SIZE(uart4_resources), | ||
741 | }; | ||
742 | |||
743 | static inline void configure_usart4_pins(void) | ||
744 | { | ||
745 | at91_set_B_periph(AT91_PIN_PA31, 1); /* TXD4 */ | ||
746 | at91_set_B_periph(AT91_PIN_PA30, 0); /* RXD4 */ | ||
747 | } | ||
748 | |||
749 | static struct resource uart5_resources[] = { | ||
750 | [0] = { | ||
751 | .start = AT91SAM9260_BASE_US5, | ||
752 | .end = AT91SAM9260_BASE_US5 + SZ_16K - 1, | ||
753 | .flags = IORESOURCE_MEM, | ||
754 | }, | ||
755 | [1] = { | ||
756 | .start = AT91SAM9260_ID_US5, | ||
757 | .end = AT91SAM9260_ID_US5, | ||
758 | .flags = IORESOURCE_IRQ, | ||
759 | }, | ||
760 | }; | ||
761 | |||
762 | static struct atmel_uart_data uart5_data = { | ||
763 | .use_dma_tx = 1, | ||
764 | .use_dma_rx = 1, | ||
765 | }; | ||
766 | |||
767 | static struct platform_device at91sam9260_uart5_device = { | ||
768 | .name = "atmel_usart", | ||
769 | .id = 6, | ||
770 | .dev = { | ||
771 | .platform_data = &uart5_data, | ||
772 | .coherent_dma_mask = 0xffffffff, | ||
773 | }, | ||
774 | .resource = uart5_resources, | ||
775 | .num_resources = ARRAY_SIZE(uart5_resources), | ||
776 | }; | ||
777 | |||
778 | static inline void configure_usart5_pins(void) | ||
779 | { | ||
780 | at91_set_A_periph(AT91_PIN_PB12, 1); /* TXD5 */ | ||
781 | at91_set_A_periph(AT91_PIN_PB13, 0); /* RXD5 */ | ||
782 | } | ||
783 | |||
784 | struct platform_device *at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | ||
785 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
786 | |||
787 | void __init at91_init_serial(struct at91_uart_config *config) | ||
788 | { | ||
789 | int i; | ||
790 | |||
791 | /* Fill in list of supported UARTs */ | ||
792 | for (i = 0; i < config->nr_tty; i++) { | ||
793 | switch (config->tty_map[i]) { | ||
794 | case 0: | ||
795 | configure_usart0_pins(); | ||
796 | at91_uarts[i] = &at91sam9260_uart0_device; | ||
797 | at91_clock_associate("usart0_clk", &at91sam9260_uart0_device.dev, "usart"); | ||
798 | break; | ||
799 | case 1: | ||
800 | configure_usart1_pins(); | ||
801 | at91_uarts[i] = &at91sam9260_uart1_device; | ||
802 | at91_clock_associate("usart1_clk", &at91sam9260_uart1_device.dev, "usart"); | ||
803 | break; | ||
804 | case 2: | ||
805 | configure_usart2_pins(); | ||
806 | at91_uarts[i] = &at91sam9260_uart2_device; | ||
807 | at91_clock_associate("usart2_clk", &at91sam9260_uart2_device.dev, "usart"); | ||
808 | break; | ||
809 | case 3: | ||
810 | configure_usart3_pins(); | ||
811 | at91_uarts[i] = &at91sam9260_uart3_device; | ||
812 | at91_clock_associate("usart3_clk", &at91sam9260_uart3_device.dev, "usart"); | ||
813 | break; | ||
814 | case 4: | ||
815 | configure_usart4_pins(); | ||
816 | at91_uarts[i] = &at91sam9260_uart4_device; | ||
817 | at91_clock_associate("usart4_clk", &at91sam9260_uart4_device.dev, "usart"); | ||
818 | break; | ||
819 | case 5: | ||
820 | configure_usart5_pins(); | ||
821 | at91_uarts[i] = &at91sam9260_uart5_device; | ||
822 | at91_clock_associate("usart5_clk", &at91sam9260_uart5_device.dev, "usart"); | ||
823 | break; | ||
824 | case 6: | ||
825 | configure_dbgu_pins(); | ||
826 | at91_uarts[i] = &at91sam9260_dbgu_device; | ||
827 | at91_clock_associate("mck", &at91sam9260_dbgu_device.dev, "usart"); | ||
828 | break; | ||
829 | default: | ||
830 | continue; | ||
831 | } | ||
832 | at91_uarts[i]->id = i; /* update ID number to mapped ID */ | ||
833 | } | ||
834 | |||
835 | /* Set serial console device */ | ||
836 | if (config->console_tty < ATMEL_MAX_UART) | ||
837 | atmel_default_console_device = at91_uarts[config->console_tty]; | ||
838 | if (!atmel_default_console_device) | ||
839 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
840 | } | ||
841 | |||
842 | void __init at91_add_device_serial(void) | ||
843 | { | ||
844 | int i; | ||
845 | |||
846 | for (i = 0; i < ATMEL_MAX_UART; i++) { | ||
847 | if (at91_uarts[i]) | ||
848 | platform_device_register(at91_uarts[i]); | ||
849 | } | ||
850 | } | ||
851 | #else | ||
852 | void __init at91_init_serial(struct at91_uart_config *config) {} | ||
853 | void __init at91_add_device_serial(void) {} | ||
854 | #endif | ||
855 | |||
856 | |||
857 | /* -------------------------------------------------------------------- */ | ||
858 | /* | ||
859 | * These devices are always present and don't need any board-specific | ||
860 | * setup. | ||
861 | */ | ||
862 | static int __init at91_add_standard_devices(void) | ||
863 | { | ||
864 | return 0; | ||
865 | } | ||
866 | |||
867 | arch_initcall(at91_add_standard_devices); | ||
diff --git a/arch/arm/mach-at91rm9200/at91sam9261.c b/arch/arm/mach-at91rm9200/at91sam9261.c new file mode 100644 index 000000000000..5a82f35da2e9 --- /dev/null +++ b/arch/arm/mach-at91rm9200/at91sam9261.c | |||
@@ -0,0 +1,289 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91rm9200/at91sam9261.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | |||
15 | #include <asm/mach/arch.h> | ||
16 | #include <asm/mach/map.h> | ||
17 | #include <asm/arch/at91sam9261.h> | ||
18 | #include <asm/arch/at91_pmc.h> | ||
19 | |||
20 | #include "generic.h" | ||
21 | #include "clock.h" | ||
22 | |||
23 | static struct map_desc at91sam9261_io_desc[] __initdata = { | ||
24 | { | ||
25 | .virtual = AT91_VA_BASE_SYS, | ||
26 | .pfn = __phys_to_pfn(AT91_BASE_SYS), | ||
27 | .length = SZ_16K, | ||
28 | .type = MT_DEVICE, | ||
29 | }, { | ||
30 | .virtual = AT91_IO_VIRT_BASE - AT91SAM9261_SRAM_SIZE, | ||
31 | .pfn = __phys_to_pfn(AT91SAM9261_SRAM_BASE), | ||
32 | .length = AT91SAM9261_SRAM_SIZE, | ||
33 | .type = MT_DEVICE, | ||
34 | }, | ||
35 | }; | ||
36 | |||
37 | /* -------------------------------------------------------------------- | ||
38 | * Clocks | ||
39 | * -------------------------------------------------------------------- */ | ||
40 | |||
41 | /* | ||
42 | * The peripheral clocks. | ||
43 | */ | ||
44 | static struct clk pioA_clk = { | ||
45 | .name = "pioA_clk", | ||
46 | .pmc_mask = 1 << AT91SAM9261_ID_PIOA, | ||
47 | .type = CLK_TYPE_PERIPHERAL, | ||
48 | }; | ||
49 | static struct clk pioB_clk = { | ||
50 | .name = "pioB_clk", | ||
51 | .pmc_mask = 1 << AT91SAM9261_ID_PIOB, | ||
52 | .type = CLK_TYPE_PERIPHERAL, | ||
53 | }; | ||
54 | static struct clk pioC_clk = { | ||
55 | .name = "pioC_clk", | ||
56 | .pmc_mask = 1 << AT91SAM9261_ID_PIOC, | ||
57 | .type = CLK_TYPE_PERIPHERAL, | ||
58 | }; | ||
59 | static struct clk usart0_clk = { | ||
60 | .name = "usart0_clk", | ||
61 | .pmc_mask = 1 << AT91SAM9261_ID_US0, | ||
62 | .type = CLK_TYPE_PERIPHERAL, | ||
63 | }; | ||
64 | static struct clk usart1_clk = { | ||
65 | .name = "usart1_clk", | ||
66 | .pmc_mask = 1 << AT91SAM9261_ID_US1, | ||
67 | .type = CLK_TYPE_PERIPHERAL, | ||
68 | }; | ||
69 | static struct clk usart2_clk = { | ||
70 | .name = "usart2_clk", | ||
71 | .pmc_mask = 1 << AT91SAM9261_ID_US2, | ||
72 | .type = CLK_TYPE_PERIPHERAL, | ||
73 | }; | ||
74 | static struct clk mmc_clk = { | ||
75 | .name = "mci_clk", | ||
76 | .pmc_mask = 1 << AT91SAM9261_ID_MCI, | ||
77 | .type = CLK_TYPE_PERIPHERAL, | ||
78 | }; | ||
79 | static struct clk udc_clk = { | ||
80 | .name = "udc_clk", | ||
81 | .pmc_mask = 1 << AT91SAM9261_ID_UDP, | ||
82 | .type = CLK_TYPE_PERIPHERAL, | ||
83 | }; | ||
84 | static struct clk twi_clk = { | ||
85 | .name = "twi_clk", | ||
86 | .pmc_mask = 1 << AT91SAM9261_ID_TWI, | ||
87 | .type = CLK_TYPE_PERIPHERAL, | ||
88 | }; | ||
89 | static struct clk spi0_clk = { | ||
90 | .name = "spi0_clk", | ||
91 | .pmc_mask = 1 << AT91SAM9261_ID_SPI0, | ||
92 | .type = CLK_TYPE_PERIPHERAL, | ||
93 | }; | ||
94 | static struct clk spi1_clk = { | ||
95 | .name = "spi1_clk", | ||
96 | .pmc_mask = 1 << AT91SAM9261_ID_SPI1, | ||
97 | .type = CLK_TYPE_PERIPHERAL, | ||
98 | }; | ||
99 | static struct clk ohci_clk = { | ||
100 | .name = "ohci_clk", | ||
101 | .pmc_mask = 1 << AT91SAM9261_ID_UHP, | ||
102 | .type = CLK_TYPE_PERIPHERAL, | ||
103 | }; | ||
104 | static struct clk lcdc_clk = { | ||
105 | .name = "lcdc_clk", | ||
106 | .pmc_mask = 1 << AT91SAM9261_ID_LCDC, | ||
107 | .type = CLK_TYPE_PERIPHERAL, | ||
108 | }; | ||
109 | |||
110 | static struct clk *periph_clocks[] __initdata = { | ||
111 | &pioA_clk, | ||
112 | &pioB_clk, | ||
113 | &pioC_clk, | ||
114 | &usart0_clk, | ||
115 | &usart1_clk, | ||
116 | &usart2_clk, | ||
117 | &mmc_clk, | ||
118 | &udc_clk, | ||
119 | &twi_clk, | ||
120 | &spi0_clk, | ||
121 | &spi1_clk, | ||
122 | // ssc 0 .. ssc2 | ||
123 | // tc0 .. tc2 | ||
124 | &ohci_clk, | ||
125 | &lcdc_clk, | ||
126 | // irq0 .. irq2 | ||
127 | }; | ||
128 | |||
129 | /* | ||
130 | * The four programmable clocks. | ||
131 | * You must configure pin multiplexing to bring these signals out. | ||
132 | */ | ||
133 | static struct clk pck0 = { | ||
134 | .name = "pck0", | ||
135 | .pmc_mask = AT91_PMC_PCK0, | ||
136 | .type = CLK_TYPE_PROGRAMMABLE, | ||
137 | .id = 0, | ||
138 | }; | ||
139 | static struct clk pck1 = { | ||
140 | .name = "pck1", | ||
141 | .pmc_mask = AT91_PMC_PCK1, | ||
142 | .type = CLK_TYPE_PROGRAMMABLE, | ||
143 | .id = 1, | ||
144 | }; | ||
145 | static struct clk pck2 = { | ||
146 | .name = "pck2", | ||
147 | .pmc_mask = AT91_PMC_PCK2, | ||
148 | .type = CLK_TYPE_PROGRAMMABLE, | ||
149 | .id = 2, | ||
150 | }; | ||
151 | static struct clk pck3 = { | ||
152 | .name = "pck3", | ||
153 | .pmc_mask = AT91_PMC_PCK3, | ||
154 | .type = CLK_TYPE_PROGRAMMABLE, | ||
155 | .id = 3, | ||
156 | }; | ||
157 | |||
158 | /* HClocks */ | ||
159 | static struct clk hck0 = { | ||
160 | .name = "hck0", | ||
161 | .pmc_mask = AT91_PMC_HCK0, | ||
162 | .type = CLK_TYPE_SYSTEM, | ||
163 | .id = 0, | ||
164 | }; | ||
165 | static struct clk hck1 = { | ||
166 | .name = "hck1", | ||
167 | .pmc_mask = AT91_PMC_HCK1, | ||
168 | .type = CLK_TYPE_SYSTEM, | ||
169 | .id = 1, | ||
170 | }; | ||
171 | |||
172 | static void __init at91sam9261_register_clocks(void) | ||
173 | { | ||
174 | int i; | ||
175 | |||
176 | for (i = 0; i < ARRAY_SIZE(periph_clocks); i++) | ||
177 | clk_register(periph_clocks[i]); | ||
178 | |||
179 | clk_register(&pck0); | ||
180 | clk_register(&pck1); | ||
181 | clk_register(&pck2); | ||
182 | clk_register(&pck3); | ||
183 | |||
184 | clk_register(&hck0); | ||
185 | clk_register(&hck1); | ||
186 | } | ||
187 | |||
188 | /* -------------------------------------------------------------------- | ||
189 | * GPIO | ||
190 | * -------------------------------------------------------------------- */ | ||
191 | |||
192 | static struct at91_gpio_bank at91sam9261_gpio[] = { | ||
193 | { | ||
194 | .id = AT91SAM9261_ID_PIOA, | ||
195 | .offset = AT91_PIOA, | ||
196 | .clock = &pioA_clk, | ||
197 | }, { | ||
198 | .id = AT91SAM9261_ID_PIOB, | ||
199 | .offset = AT91_PIOB, | ||
200 | .clock = &pioB_clk, | ||
201 | }, { | ||
202 | .id = AT91SAM9261_ID_PIOC, | ||
203 | .offset = AT91_PIOC, | ||
204 | .clock = &pioC_clk, | ||
205 | } | ||
206 | }; | ||
207 | |||
208 | static void at91sam9261_reset(void) | ||
209 | { | ||
210 | #warning "Implement CPU reset" | ||
211 | } | ||
212 | |||
213 | |||
214 | /* -------------------------------------------------------------------- | ||
215 | * AT91SAM9261 processor initialization | ||
216 | * -------------------------------------------------------------------- */ | ||
217 | |||
218 | void __init at91sam9261_initialize(unsigned long main_clock) | ||
219 | { | ||
220 | /* Map peripherals */ | ||
221 | iotable_init(at91sam9261_io_desc, ARRAY_SIZE(at91sam9261_io_desc)); | ||
222 | |||
223 | at91_arch_reset = at91sam9261_reset; | ||
224 | at91_extern_irq = (1 << AT91SAM9261_ID_IRQ0) | (1 << AT91SAM9261_ID_IRQ1) | ||
225 | | (1 << AT91SAM9261_ID_IRQ2); | ||
226 | |||
227 | /* Init clock subsystem */ | ||
228 | at91_clock_init(main_clock); | ||
229 | |||
230 | /* Register the processor-specific clocks */ | ||
231 | at91sam9261_register_clocks(); | ||
232 | |||
233 | /* Register GPIO subsystem */ | ||
234 | at91_gpio_init(at91sam9261_gpio, 3); | ||
235 | } | ||
236 | |||
237 | /* -------------------------------------------------------------------- | ||
238 | * Interrupt initialization | ||
239 | * -------------------------------------------------------------------- */ | ||
240 | |||
241 | /* | ||
242 | * The default interrupt priority levels (0 = lowest, 7 = highest). | ||
243 | */ | ||
244 | static unsigned int at91sam9261_default_irq_priority[NR_AIC_IRQS] __initdata = { | ||
245 | 7, /* Advanced Interrupt Controller */ | ||
246 | 7, /* System Peripherals */ | ||
247 | 0, /* Parallel IO Controller A */ | ||
248 | 0, /* Parallel IO Controller B */ | ||
249 | 0, /* Parallel IO Controller C */ | ||
250 | 0, | ||
251 | 6, /* USART 0 */ | ||
252 | 6, /* USART 1 */ | ||
253 | 6, /* USART 2 */ | ||
254 | 0, /* Multimedia Card Interface */ | ||
255 | 4, /* USB Device Port */ | ||
256 | 0, /* Two-Wire Interface */ | ||
257 | 6, /* Serial Peripheral Interface 0 */ | ||
258 | 6, /* Serial Peripheral Interface 1 */ | ||
259 | 5, /* Serial Synchronous Controller 0 */ | ||
260 | 5, /* Serial Synchronous Controller 1 */ | ||
261 | 5, /* Serial Synchronous Controller 2 */ | ||
262 | 0, /* Timer Counter 0 */ | ||
263 | 0, /* Timer Counter 1 */ | ||
264 | 0, /* Timer Counter 2 */ | ||
265 | 3, /* USB Host port */ | ||
266 | 3, /* LCD Controller */ | ||
267 | 0, | ||
268 | 0, | ||
269 | 0, | ||
270 | 0, | ||
271 | 0, | ||
272 | 0, | ||
273 | 0, | ||
274 | 0, /* Advanced Interrupt Controller */ | ||
275 | 0, /* Advanced Interrupt Controller */ | ||
276 | 0, /* Advanced Interrupt Controller */ | ||
277 | }; | ||
278 | |||
279 | void __init at91sam9261_init_interrupts(unsigned int priority[NR_AIC_IRQS]) | ||
280 | { | ||
281 | if (!priority) | ||
282 | priority = at91sam9261_default_irq_priority; | ||
283 | |||
284 | /* Initialize the AIC interrupt controller */ | ||
285 | at91_aic_init(priority); | ||
286 | |||
287 | /* Enable GPIO interrupts */ | ||
288 | at91_gpio_irq_setup(); | ||
289 | } | ||
diff --git a/arch/arm/mach-at91rm9200/at91sam9261_devices.c b/arch/arm/mach-at91rm9200/at91sam9261_devices.c new file mode 100644 index 000000000000..ed1d79081b35 --- /dev/null +++ b/arch/arm/mach-at91rm9200/at91sam9261_devices.c | |||
@@ -0,0 +1,741 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91rm9200/at91sam9261_devices.c | ||
3 | * | ||
4 | * Copyright (C) 2005 Thibaut VARENE <varenet@parisc-linux.org> | ||
5 | * Copyright (C) 2005 David Brownell | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | #include <asm/mach/arch.h> | ||
14 | #include <asm/mach/map.h> | ||
15 | |||
16 | #include <linux/platform_device.h> | ||
17 | |||
18 | #include <asm/arch/board.h> | ||
19 | #include <asm/arch/gpio.h> | ||
20 | #include <asm/arch/at91sam9261.h> | ||
21 | #include <asm/arch/at91sam9261_matrix.h> | ||
22 | #include <asm/arch/at91sam926x_mc.h> | ||
23 | |||
24 | #include "generic.h" | ||
25 | |||
26 | #define SZ_512 0x00000200 | ||
27 | #define SZ_256 0x00000100 | ||
28 | #define SZ_16 0x00000010 | ||
29 | |||
30 | /* -------------------------------------------------------------------- | ||
31 | * USB Host | ||
32 | * -------------------------------------------------------------------- */ | ||
33 | |||
34 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | ||
35 | static u64 ohci_dmamask = 0xffffffffUL; | ||
36 | static struct at91_usbh_data usbh_data; | ||
37 | |||
38 | static struct resource usbh_resources[] = { | ||
39 | [0] = { | ||
40 | .start = AT91SAM9261_UHP_BASE, | ||
41 | .end = AT91SAM9261_UHP_BASE + SZ_1M - 1, | ||
42 | .flags = IORESOURCE_MEM, | ||
43 | }, | ||
44 | [1] = { | ||
45 | .start = AT91SAM9261_ID_UHP, | ||
46 | .end = AT91SAM9261_ID_UHP, | ||
47 | .flags = IORESOURCE_IRQ, | ||
48 | }, | ||
49 | }; | ||
50 | |||
51 | static struct platform_device at91sam9261_usbh_device = { | ||
52 | .name = "at91_ohci", | ||
53 | .id = -1, | ||
54 | .dev = { | ||
55 | .dma_mask = &ohci_dmamask, | ||
56 | .coherent_dma_mask = 0xffffffff, | ||
57 | .platform_data = &usbh_data, | ||
58 | }, | ||
59 | .resource = usbh_resources, | ||
60 | .num_resources = ARRAY_SIZE(usbh_resources), | ||
61 | }; | ||
62 | |||
63 | void __init at91_add_device_usbh(struct at91_usbh_data *data) | ||
64 | { | ||
65 | if (!data) | ||
66 | return; | ||
67 | |||
68 | usbh_data = *data; | ||
69 | platform_device_register(&at91sam9261_usbh_device); | ||
70 | } | ||
71 | #else | ||
72 | void __init at91_add_device_usbh(struct at91_usbh_data *data) {} | ||
73 | #endif | ||
74 | |||
75 | |||
76 | /* -------------------------------------------------------------------- | ||
77 | * USB Device (Gadget) | ||
78 | * -------------------------------------------------------------------- */ | ||
79 | |||
80 | #ifdef CONFIG_USB_GADGET_AT91 | ||
81 | static struct at91_udc_data udc_data; | ||
82 | |||
83 | static struct resource udc_resources[] = { | ||
84 | [0] = { | ||
85 | .start = AT91SAM9261_BASE_UDP, | ||
86 | .end = AT91SAM9261_BASE_UDP + SZ_16K - 1, | ||
87 | .flags = IORESOURCE_MEM, | ||
88 | }, | ||
89 | [1] = { | ||
90 | .start = AT91SAM9261_ID_UDP, | ||
91 | .end = AT91SAM9261_ID_UDP, | ||
92 | .flags = IORESOURCE_IRQ, | ||
93 | }, | ||
94 | }; | ||
95 | |||
96 | static struct platform_device at91sam9261_udc_device = { | ||
97 | .name = "at91_udc", | ||
98 | .id = -1, | ||
99 | .dev = { | ||
100 | .platform_data = &udc_data, | ||
101 | }, | ||
102 | .resource = udc_resources, | ||
103 | .num_resources = ARRAY_SIZE(udc_resources), | ||
104 | }; | ||
105 | |||
106 | void __init at91_add_device_udc(struct at91_udc_data *data) | ||
107 | { | ||
108 | unsigned long x; | ||
109 | |||
110 | if (!data) | ||
111 | return; | ||
112 | |||
113 | if (data->vbus_pin) { | ||
114 | at91_set_gpio_input(data->vbus_pin, 0); | ||
115 | at91_set_deglitch(data->vbus_pin, 1); | ||
116 | } | ||
117 | |||
118 | /* Pullup pin is handled internally */ | ||
119 | x = at91_sys_read(AT91_MATRIX_USBPUCR); | ||
120 | at91_sys_write(AT91_MATRIX_USBPUCR, x | AT91_MATRIX_USBPUCR_PUON); | ||
121 | |||
122 | udc_data = *data; | ||
123 | platform_device_register(&at91sam9261_udc_device); | ||
124 | } | ||
125 | #else | ||
126 | void __init at91_add_device_udc(struct at91_udc_data *data) {} | ||
127 | #endif | ||
128 | |||
129 | /* -------------------------------------------------------------------- | ||
130 | * MMC / SD | ||
131 | * -------------------------------------------------------------------- */ | ||
132 | |||
133 | #if defined(CONFIG_MMC_AT91) || defined(CONFIG_MMC_AT91_MODULE) | ||
134 | static u64 mmc_dmamask = 0xffffffffUL; | ||
135 | static struct at91_mmc_data mmc_data; | ||
136 | |||
137 | static struct resource mmc_resources[] = { | ||
138 | [0] = { | ||
139 | .start = AT91SAM9261_BASE_MCI, | ||
140 | .end = AT91SAM9261_BASE_MCI + SZ_16K - 1, | ||
141 | .flags = IORESOURCE_MEM, | ||
142 | }, | ||
143 | [1] = { | ||
144 | .start = AT91SAM9261_ID_MCI, | ||
145 | .end = AT91SAM9261_ID_MCI, | ||
146 | .flags = IORESOURCE_IRQ, | ||
147 | }, | ||
148 | }; | ||
149 | |||
150 | static struct platform_device at91sam9261_mmc_device = { | ||
151 | .name = "at91_mci", | ||
152 | .id = -1, | ||
153 | .dev = { | ||
154 | .dma_mask = &mmc_dmamask, | ||
155 | .coherent_dma_mask = 0xffffffff, | ||
156 | .platform_data = &mmc_data, | ||
157 | }, | ||
158 | .resource = mmc_resources, | ||
159 | .num_resources = ARRAY_SIZE(mmc_resources), | ||
160 | }; | ||
161 | |||
162 | void __init at91_add_device_mmc(struct at91_mmc_data *data) | ||
163 | { | ||
164 | if (!data) | ||
165 | return; | ||
166 | |||
167 | /* input/irq */ | ||
168 | if (data->det_pin) { | ||
169 | at91_set_gpio_input(data->det_pin, 1); | ||
170 | at91_set_deglitch(data->det_pin, 1); | ||
171 | } | ||
172 | if (data->wp_pin) | ||
173 | at91_set_gpio_input(data->wp_pin, 1); | ||
174 | if (data->vcc_pin) | ||
175 | at91_set_gpio_output(data->vcc_pin, 0); | ||
176 | |||
177 | /* CLK */ | ||
178 | at91_set_B_periph(AT91_PIN_PA2, 0); | ||
179 | |||
180 | /* CMD */ | ||
181 | at91_set_B_periph(AT91_PIN_PA1, 1); | ||
182 | |||
183 | /* DAT0, maybe DAT1..DAT3 */ | ||
184 | at91_set_B_periph(AT91_PIN_PA0, 1); | ||
185 | if (data->wire4) { | ||
186 | at91_set_B_periph(AT91_PIN_PA4, 1); | ||
187 | at91_set_B_periph(AT91_PIN_PA5, 1); | ||
188 | at91_set_B_periph(AT91_PIN_PA6, 1); | ||
189 | } | ||
190 | |||
191 | mmc_data = *data; | ||
192 | platform_device_register(&at91sam9261_mmc_device); | ||
193 | } | ||
194 | #else | ||
195 | void __init at91_add_device_mmc(struct at91_mmc_data *data) {} | ||
196 | #endif | ||
197 | |||
198 | |||
199 | /* -------------------------------------------------------------------- | ||
200 | * NAND / SmartMedia | ||
201 | * -------------------------------------------------------------------- */ | ||
202 | |||
203 | #if defined(CONFIG_MTD_NAND_AT91) || defined(CONFIG_MTD_NAND_AT91_MODULE) | ||
204 | static struct at91_nand_data nand_data; | ||
205 | |||
206 | #define NAND_BASE AT91_CHIPSELECT_3 | ||
207 | |||
208 | static struct resource nand_resources[] = { | ||
209 | { | ||
210 | .start = NAND_BASE, | ||
211 | .end = NAND_BASE + SZ_256M - 1, | ||
212 | .flags = IORESOURCE_MEM, | ||
213 | } | ||
214 | }; | ||
215 | |||
216 | static struct platform_device at91_nand_device = { | ||
217 | .name = "at91_nand", | ||
218 | .id = -1, | ||
219 | .dev = { | ||
220 | .platform_data = &nand_data, | ||
221 | }, | ||
222 | .resource = nand_resources, | ||
223 | .num_resources = ARRAY_SIZE(nand_resources), | ||
224 | }; | ||
225 | |||
226 | void __init at91_add_device_nand(struct at91_nand_data *data) | ||
227 | { | ||
228 | unsigned long csa, mode; | ||
229 | |||
230 | if (!data) | ||
231 | return; | ||
232 | |||
233 | csa = at91_sys_read(AT91_MATRIX_EBICSA); | ||
234 | at91_sys_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC); | ||
235 | |||
236 | /* set the bus interface characteristics */ | ||
237 | at91_sys_write(AT91_SMC_SETUP(3), AT91_SMC_NWESETUP_(0) | AT91_SMC_NCS_WRSETUP_(0) | ||
238 | | AT91_SMC_NRDSETUP_(0) | AT91_SMC_NCS_RDSETUP_(0)); | ||
239 | |||
240 | at91_sys_write(AT91_SMC_PULSE(3), AT91_SMC_NWEPULSE_(2) | AT91_SMC_NCS_WRPULSE_(5) | ||
241 | | AT91_SMC_NRDPULSE_(2) | AT91_SMC_NCS_RDPULSE_(5)); | ||
242 | |||
243 | at91_sys_write(AT91_SMC_CYCLE(3), AT91_SMC_NWECYCLE_(7) | AT91_SMC_NRDCYCLE_(7)); | ||
244 | |||
245 | if (data->bus_width_16) | ||
246 | mode = AT91_SMC_DBW_16; | ||
247 | else | ||
248 | mode = AT91_SMC_DBW_8; | ||
249 | at91_sys_write(AT91_SMC_MODE(3), mode | AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_EXNWMODE_DISABLE | AT91_SMC_TDF_(1)); | ||
250 | |||
251 | /* enable pin */ | ||
252 | if (data->enable_pin) | ||
253 | at91_set_gpio_output(data->enable_pin, 1); | ||
254 | |||
255 | /* ready/busy pin */ | ||
256 | if (data->rdy_pin) | ||
257 | at91_set_gpio_input(data->rdy_pin, 1); | ||
258 | |||
259 | /* card detect pin */ | ||
260 | if (data->det_pin) | ||
261 | at91_set_gpio_input(data->det_pin, 1); | ||
262 | |||
263 | at91_set_A_periph(AT91_PIN_PC0, 0); /* NANDOE */ | ||
264 | at91_set_A_periph(AT91_PIN_PC1, 0); /* NANDWE */ | ||
265 | |||
266 | nand_data = *data; | ||
267 | platform_device_register(&at91_nand_device); | ||
268 | } | ||
269 | |||
270 | #else | ||
271 | void __init at91_add_device_nand(struct at91_nand_data *data) {} | ||
272 | #endif | ||
273 | |||
274 | |||
275 | /* -------------------------------------------------------------------- | ||
276 | * TWI (i2c) | ||
277 | * -------------------------------------------------------------------- */ | ||
278 | |||
279 | #if defined(CONFIG_I2C_AT91) || defined(CONFIG_I2C_AT91_MODULE) | ||
280 | |||
281 | static struct resource twi_resources[] = { | ||
282 | [0] = { | ||
283 | .start = AT91SAM9261_BASE_TWI, | ||
284 | .end = AT91SAM9261_BASE_TWI + SZ_16K - 1, | ||
285 | .flags = IORESOURCE_MEM, | ||
286 | }, | ||
287 | [1] = { | ||
288 | .start = AT91SAM9261_ID_TWI, | ||
289 | .end = AT91SAM9261_ID_TWI, | ||
290 | .flags = IORESOURCE_IRQ, | ||
291 | }, | ||
292 | }; | ||
293 | |||
294 | static struct platform_device at91sam9261_twi_device = { | ||
295 | .name = "at91_i2c", | ||
296 | .id = -1, | ||
297 | .resource = twi_resources, | ||
298 | .num_resources = ARRAY_SIZE(twi_resources), | ||
299 | }; | ||
300 | |||
301 | void __init at91_add_device_i2c(void) | ||
302 | { | ||
303 | /* pins used for TWI interface */ | ||
304 | at91_set_A_periph(AT91_PIN_PA7, 0); /* TWD */ | ||
305 | at91_set_multi_drive(AT91_PIN_PA7, 1); | ||
306 | |||
307 | at91_set_A_periph(AT91_PIN_PA8, 0); /* TWCK */ | ||
308 | at91_set_multi_drive(AT91_PIN_PA8, 1); | ||
309 | |||
310 | platform_device_register(&at91sam9261_twi_device); | ||
311 | } | ||
312 | #else | ||
313 | void __init at91_add_device_i2c(void) {} | ||
314 | #endif | ||
315 | |||
316 | |||
317 | /* -------------------------------------------------------------------- | ||
318 | * SPI | ||
319 | * -------------------------------------------------------------------- */ | ||
320 | |||
321 | #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE) | ||
322 | static u64 spi_dmamask = 0xffffffffUL; | ||
323 | |||
324 | static struct resource spi0_resources[] = { | ||
325 | [0] = { | ||
326 | .start = AT91SAM9261_BASE_SPI0, | ||
327 | .end = AT91SAM9261_BASE_SPI0 + SZ_16K - 1, | ||
328 | .flags = IORESOURCE_MEM, | ||
329 | }, | ||
330 | [1] = { | ||
331 | .start = AT91SAM9261_ID_SPI0, | ||
332 | .end = AT91SAM9261_ID_SPI0, | ||
333 | .flags = IORESOURCE_IRQ, | ||
334 | }, | ||
335 | }; | ||
336 | |||
337 | static struct platform_device at91sam9261_spi0_device = { | ||
338 | .name = "atmel_spi", | ||
339 | .id = 0, | ||
340 | .dev = { | ||
341 | .dma_mask = &spi_dmamask, | ||
342 | .coherent_dma_mask = 0xffffffff, | ||
343 | }, | ||
344 | .resource = spi0_resources, | ||
345 | .num_resources = ARRAY_SIZE(spi0_resources), | ||
346 | }; | ||
347 | |||
348 | static const unsigned spi0_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 }; | ||
349 | |||
350 | static struct resource spi1_resources[] = { | ||
351 | [0] = { | ||
352 | .start = AT91SAM9261_BASE_SPI1, | ||
353 | .end = AT91SAM9261_BASE_SPI1 + SZ_16K - 1, | ||
354 | .flags = IORESOURCE_MEM, | ||
355 | }, | ||
356 | [1] = { | ||
357 | .start = AT91SAM9261_ID_SPI1, | ||
358 | .end = AT91SAM9261_ID_SPI1, | ||
359 | .flags = IORESOURCE_IRQ, | ||
360 | }, | ||
361 | }; | ||
362 | |||
363 | static struct platform_device at91sam9261_spi1_device = { | ||
364 | .name = "atmel_spi", | ||
365 | .id = 1, | ||
366 | .dev = { | ||
367 | .dma_mask = &spi_dmamask, | ||
368 | .coherent_dma_mask = 0xffffffff, | ||
369 | }, | ||
370 | .resource = spi1_resources, | ||
371 | .num_resources = ARRAY_SIZE(spi1_resources), | ||
372 | }; | ||
373 | |||
374 | static const unsigned spi1_standard_cs[4] = { AT91_PIN_PB28, AT91_PIN_PA24, AT91_PIN_PA25, AT91_PIN_PA26 }; | ||
375 | |||
376 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | ||
377 | { | ||
378 | int i; | ||
379 | unsigned long cs_pin; | ||
380 | short enable_spi0 = 0; | ||
381 | short enable_spi1 = 0; | ||
382 | |||
383 | /* Choose SPI chip-selects */ | ||
384 | for (i = 0; i < nr_devices; i++) { | ||
385 | if (devices[i].controller_data) | ||
386 | cs_pin = (unsigned long) devices[i].controller_data; | ||
387 | else if (devices[i].bus_num == 0) | ||
388 | cs_pin = spi0_standard_cs[devices[i].chip_select]; | ||
389 | else | ||
390 | cs_pin = spi1_standard_cs[devices[i].chip_select]; | ||
391 | |||
392 | if (devices[i].bus_num == 0) | ||
393 | enable_spi0 = 1; | ||
394 | else | ||
395 | enable_spi1 = 1; | ||
396 | |||
397 | /* enable chip-select pin */ | ||
398 | at91_set_gpio_output(cs_pin, 1); | ||
399 | |||
400 | /* pass chip-select pin to driver */ | ||
401 | devices[i].controller_data = (void *) cs_pin; | ||
402 | } | ||
403 | |||
404 | spi_register_board_info(devices, nr_devices); | ||
405 | |||
406 | /* Configure SPI bus(es) */ | ||
407 | if (enable_spi0) { | ||
408 | at91_set_A_periph(AT91_PIN_PA0, 0); /* SPI0_MISO */ | ||
409 | at91_set_A_periph(AT91_PIN_PA1, 0); /* SPI0_MOSI */ | ||
410 | at91_set_A_periph(AT91_PIN_PA2, 0); /* SPI0_SPCK */ | ||
411 | |||
412 | at91_clock_associate("spi0_clk", &at91sam9261_spi0_device.dev, "spi_clk"); | ||
413 | platform_device_register(&at91sam9261_spi0_device); | ||
414 | } | ||
415 | if (enable_spi1) { | ||
416 | at91_set_A_periph(AT91_PIN_PB30, 0); /* SPI1_MISO */ | ||
417 | at91_set_A_periph(AT91_PIN_PB31, 0); /* SPI1_MOSI */ | ||
418 | at91_set_A_periph(AT91_PIN_PB29, 0); /* SPI1_SPCK */ | ||
419 | |||
420 | at91_clock_associate("spi1_clk", &at91sam9261_spi1_device.dev, "spi_clk"); | ||
421 | platform_device_register(&at91sam9261_spi1_device); | ||
422 | } | ||
423 | } | ||
424 | #else | ||
425 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) {} | ||
426 | #endif | ||
427 | |||
428 | |||
429 | /* -------------------------------------------------------------------- | ||
430 | * LCD Controller | ||
431 | * -------------------------------------------------------------------- */ | ||
432 | |||
433 | #if defined(CONFIG_FB_AT91) || defined(CONFIG_FB_AT91_MODULE) | ||
434 | static u64 lcdc_dmamask = 0xffffffffUL; | ||
435 | static struct at91fb_info lcdc_data; | ||
436 | |||
437 | static struct resource lcdc_resources[] = { | ||
438 | [0] = { | ||
439 | .start = AT91SAM9261_LCDC_BASE, | ||
440 | .end = AT91SAM9261_LCDC_BASE + SZ_4K - 1, | ||
441 | .flags = IORESOURCE_MEM, | ||
442 | }, | ||
443 | [1] = { | ||
444 | .start = AT91SAM9261_ID_LCDC, | ||
445 | .end = AT91SAM9261_ID_LCDC, | ||
446 | .flags = IORESOURCE_IRQ, | ||
447 | }, | ||
448 | #if defined(CONFIG_FB_INTSRAM) | ||
449 | [2] = { | ||
450 | .start = AT91SAM9261_SRAM_BASE, | ||
451 | .end = AT91SAM9261_SRAM_BASE + AT91SAM9261_SRAM_SIZE - 1, | ||
452 | .flags = IORESOURCE_MEM, | ||
453 | }, | ||
454 | #endif | ||
455 | }; | ||
456 | |||
457 | static struct platform_device at91_lcdc_device = { | ||
458 | .name = "at91-fb", | ||
459 | .id = 0, | ||
460 | .dev = { | ||
461 | .dma_mask = &lcdc_dmamask, | ||
462 | .coherent_dma_mask = 0xffffffff, | ||
463 | .platform_data = &lcdc_data, | ||
464 | }, | ||
465 | .resource = lcdc_resources, | ||
466 | .num_resources = ARRAY_SIZE(lcdc_resources), | ||
467 | }; | ||
468 | |||
469 | void __init at91_add_device_lcdc(struct at91fb_info *data) | ||
470 | { | ||
471 | if (!data) { | ||
472 | return; | ||
473 | } | ||
474 | |||
475 | at91_set_A_periph(AT91_PIN_PB1, 0); /* LCDHSYNC */ | ||
476 | at91_set_A_periph(AT91_PIN_PB2, 0); /* LCDDOTCK */ | ||
477 | at91_set_A_periph(AT91_PIN_PB3, 0); /* LCDDEN */ | ||
478 | at91_set_A_periph(AT91_PIN_PB4, 0); /* LCDCC */ | ||
479 | at91_set_A_periph(AT91_PIN_PB7, 0); /* LCDD2 */ | ||
480 | at91_set_A_periph(AT91_PIN_PB8, 0); /* LCDD3 */ | ||
481 | at91_set_A_periph(AT91_PIN_PB9, 0); /* LCDD4 */ | ||
482 | at91_set_A_periph(AT91_PIN_PB10, 0); /* LCDD5 */ | ||
483 | at91_set_A_periph(AT91_PIN_PB11, 0); /* LCDD6 */ | ||
484 | at91_set_A_periph(AT91_PIN_PB12, 0); /* LCDD7 */ | ||
485 | at91_set_A_periph(AT91_PIN_PB15, 0); /* LCDD10 */ | ||
486 | at91_set_A_periph(AT91_PIN_PB16, 0); /* LCDD11 */ | ||
487 | at91_set_A_periph(AT91_PIN_PB17, 0); /* LCDD12 */ | ||
488 | at91_set_A_periph(AT91_PIN_PB18, 0); /* LCDD13 */ | ||
489 | at91_set_A_periph(AT91_PIN_PB19, 0); /* LCDD14 */ | ||
490 | at91_set_A_periph(AT91_PIN_PB20, 0); /* LCDD15 */ | ||
491 | at91_set_B_periph(AT91_PIN_PB23, 0); /* LCDD18 */ | ||
492 | at91_set_B_periph(AT91_PIN_PB24, 0); /* LCDD19 */ | ||
493 | at91_set_B_periph(AT91_PIN_PB25, 0); /* LCDD20 */ | ||
494 | at91_set_B_periph(AT91_PIN_PB26, 0); /* LCDD21 */ | ||
495 | at91_set_B_periph(AT91_PIN_PB27, 0); /* LCDD22 */ | ||
496 | at91_set_B_periph(AT91_PIN_PB28, 0); /* LCDD23 */ | ||
497 | |||
498 | lcdc_data = *data; | ||
499 | platform_device_register(&at91_lcdc_device); | ||
500 | } | ||
501 | #else | ||
502 | void __init at91_add_device_lcdc(struct at91fb_info *data) {} | ||
503 | #endif | ||
504 | |||
505 | |||
506 | /* -------------------------------------------------------------------- | ||
507 | * LEDs | ||
508 | * -------------------------------------------------------------------- */ | ||
509 | |||
510 | #if defined(CONFIG_LEDS) | ||
511 | u8 at91_leds_cpu; | ||
512 | u8 at91_leds_timer; | ||
513 | |||
514 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | ||
515 | { | ||
516 | at91_leds_cpu = cpu_led; | ||
517 | at91_leds_timer = timer_led; | ||
518 | } | ||
519 | #else | ||
520 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} | ||
521 | #endif | ||
522 | |||
523 | |||
524 | /* -------------------------------------------------------------------- | ||
525 | * UART | ||
526 | * -------------------------------------------------------------------- */ | ||
527 | |||
528 | #if defined(CONFIG_SERIAL_ATMEL) | ||
529 | static struct resource dbgu_resources[] = { | ||
530 | [0] = { | ||
531 | .start = AT91_VA_BASE_SYS + AT91_DBGU, | ||
532 | .end = AT91_VA_BASE_SYS + AT91_DBGU + SZ_512 - 1, | ||
533 | .flags = IORESOURCE_MEM, | ||
534 | }, | ||
535 | [1] = { | ||
536 | .start = AT91_ID_SYS, | ||
537 | .end = AT91_ID_SYS, | ||
538 | .flags = IORESOURCE_IRQ, | ||
539 | }, | ||
540 | }; | ||
541 | |||
542 | static struct atmel_uart_data dbgu_data = { | ||
543 | .use_dma_tx = 0, | ||
544 | .use_dma_rx = 0, /* DBGU not capable of receive DMA */ | ||
545 | .regs = (void __iomem *)(AT91_VA_BASE_SYS + AT91_DBGU), | ||
546 | }; | ||
547 | |||
548 | static struct platform_device at91sam9261_dbgu_device = { | ||
549 | .name = "atmel_usart", | ||
550 | .id = 0, | ||
551 | .dev = { | ||
552 | .platform_data = &dbgu_data, | ||
553 | .coherent_dma_mask = 0xffffffff, | ||
554 | }, | ||
555 | .resource = dbgu_resources, | ||
556 | .num_resources = ARRAY_SIZE(dbgu_resources), | ||
557 | }; | ||
558 | |||
559 | static inline void configure_dbgu_pins(void) | ||
560 | { | ||
561 | at91_set_A_periph(AT91_PIN_PA9, 0); /* DRXD */ | ||
562 | at91_set_A_periph(AT91_PIN_PA10, 1); /* DTXD */ | ||
563 | } | ||
564 | |||
565 | static struct resource uart0_resources[] = { | ||
566 | [0] = { | ||
567 | .start = AT91SAM9261_BASE_US0, | ||
568 | .end = AT91SAM9261_BASE_US0 + SZ_16K - 1, | ||
569 | .flags = IORESOURCE_MEM, | ||
570 | }, | ||
571 | [1] = { | ||
572 | .start = AT91SAM9261_ID_US0, | ||
573 | .end = AT91SAM9261_ID_US0, | ||
574 | .flags = IORESOURCE_IRQ, | ||
575 | }, | ||
576 | }; | ||
577 | |||
578 | static struct atmel_uart_data uart0_data = { | ||
579 | .use_dma_tx = 1, | ||
580 | .use_dma_rx = 1, | ||
581 | }; | ||
582 | |||
583 | static struct platform_device at91sam9261_uart0_device = { | ||
584 | .name = "atmel_usart", | ||
585 | .id = 1, | ||
586 | .dev = { | ||
587 | .platform_data = &uart0_data, | ||
588 | .coherent_dma_mask = 0xffffffff, | ||
589 | }, | ||
590 | .resource = uart0_resources, | ||
591 | .num_resources = ARRAY_SIZE(uart0_resources), | ||
592 | }; | ||
593 | |||
594 | static inline void configure_usart0_pins(void) | ||
595 | { | ||
596 | at91_set_A_periph(AT91_PIN_PC8, 1); /* TXD0 */ | ||
597 | at91_set_A_periph(AT91_PIN_PC9, 0); /* RXD0 */ | ||
598 | at91_set_A_periph(AT91_PIN_PC10, 0); /* RTS0 */ | ||
599 | at91_set_A_periph(AT91_PIN_PC11, 0); /* CTS0 */ | ||
600 | } | ||
601 | |||
602 | static struct resource uart1_resources[] = { | ||
603 | [0] = { | ||
604 | .start = AT91SAM9261_BASE_US1, | ||
605 | .end = AT91SAM9261_BASE_US1 + SZ_16K - 1, | ||
606 | .flags = IORESOURCE_MEM, | ||
607 | }, | ||
608 | [1] = { | ||
609 | .start = AT91SAM9261_ID_US1, | ||
610 | .end = AT91SAM9261_ID_US1, | ||
611 | .flags = IORESOURCE_IRQ, | ||
612 | }, | ||
613 | }; | ||
614 | |||
615 | static struct atmel_uart_data uart1_data = { | ||
616 | .use_dma_tx = 1, | ||
617 | .use_dma_rx = 1, | ||
618 | }; | ||
619 | |||
620 | static struct platform_device at91sam9261_uart1_device = { | ||
621 | .name = "atmel_usart", | ||
622 | .id = 2, | ||
623 | .dev = { | ||
624 | .platform_data = &uart1_data, | ||
625 | .coherent_dma_mask = 0xffffffff, | ||
626 | }, | ||
627 | .resource = uart1_resources, | ||
628 | .num_resources = ARRAY_SIZE(uart1_resources), | ||
629 | }; | ||
630 | |||
631 | static inline void configure_usart1_pins(void) | ||
632 | { | ||
633 | at91_set_A_periph(AT91_PIN_PC12, 1); /* TXD1 */ | ||
634 | at91_set_A_periph(AT91_PIN_PC13, 0); /* RXD1 */ | ||
635 | } | ||
636 | |||
637 | static struct resource uart2_resources[] = { | ||
638 | [0] = { | ||
639 | .start = AT91SAM9261_BASE_US2, | ||
640 | .end = AT91SAM9261_BASE_US2 + SZ_16K - 1, | ||
641 | .flags = IORESOURCE_MEM, | ||
642 | }, | ||
643 | [1] = { | ||
644 | .start = AT91SAM9261_ID_US2, | ||
645 | .end = AT91SAM9261_ID_US2, | ||
646 | .flags = IORESOURCE_IRQ, | ||
647 | }, | ||
648 | }; | ||
649 | |||
650 | static struct atmel_uart_data uart2_data = { | ||
651 | .use_dma_tx = 1, | ||
652 | .use_dma_rx = 1, | ||
653 | }; | ||
654 | |||
655 | static struct platform_device at91sam9261_uart2_device = { | ||
656 | .name = "atmel_usart", | ||
657 | .id = 3, | ||
658 | .dev = { | ||
659 | .platform_data = &uart2_data, | ||
660 | .coherent_dma_mask = 0xffffffff, | ||
661 | }, | ||
662 | .resource = uart2_resources, | ||
663 | .num_resources = ARRAY_SIZE(uart2_resources), | ||
664 | }; | ||
665 | |||
666 | static inline void configure_usart2_pins(void) | ||
667 | { | ||
668 | at91_set_A_periph(AT91_PIN_PC15, 0); /* RXD2 */ | ||
669 | at91_set_A_periph(AT91_PIN_PC14, 1); /* TXD2 */ | ||
670 | } | ||
671 | |||
672 | struct platform_device *at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | ||
673 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
674 | |||
675 | void __init at91_init_serial(struct at91_uart_config *config) | ||
676 | { | ||
677 | int i; | ||
678 | |||
679 | /* Fill in list of supported UARTs */ | ||
680 | for (i = 0; i < config->nr_tty; i++) { | ||
681 | switch (config->tty_map[i]) { | ||
682 | case 0: | ||
683 | configure_usart0_pins(); | ||
684 | at91_uarts[i] = &at91sam9261_uart0_device; | ||
685 | at91_clock_associate("usart0_clk", &at91sam9261_uart0_device.dev, "usart"); | ||
686 | break; | ||
687 | case 1: | ||
688 | configure_usart1_pins(); | ||
689 | at91_uarts[i] = &at91sam9261_uart1_device; | ||
690 | at91_clock_associate("usart1_clk", &at91sam9261_uart1_device.dev, "usart"); | ||
691 | break; | ||
692 | case 2: | ||
693 | configure_usart2_pins(); | ||
694 | at91_uarts[i] = &at91sam9261_uart2_device; | ||
695 | at91_clock_associate("usart2_clk", &at91sam9261_uart2_device.dev, "usart"); | ||
696 | break; | ||
697 | case 3: | ||
698 | configure_dbgu_pins(); | ||
699 | at91_uarts[i] = &at91sam9261_dbgu_device; | ||
700 | at91_clock_associate("mck", &at91sam9261_dbgu_device.dev, "usart"); | ||
701 | break; | ||
702 | default: | ||
703 | continue; | ||
704 | } | ||
705 | at91_uarts[i]->id = i; /* update ID number to mapped ID */ | ||
706 | } | ||
707 | |||
708 | /* Set serial console device */ | ||
709 | if (config->console_tty < ATMEL_MAX_UART) | ||
710 | atmel_default_console_device = at91_uarts[config->console_tty]; | ||
711 | if (!atmel_default_console_device) | ||
712 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
713 | } | ||
714 | |||
715 | void __init at91_add_device_serial(void) | ||
716 | { | ||
717 | int i; | ||
718 | |||
719 | for (i = 0; i < ATMEL_MAX_UART; i++) { | ||
720 | if (at91_uarts[i]) | ||
721 | platform_device_register(at91_uarts[i]); | ||
722 | } | ||
723 | } | ||
724 | #else | ||
725 | void __init at91_init_serial(struct at91_uart_config *config) {} | ||
726 | void __init at91_add_device_serial(void) {} | ||
727 | #endif | ||
728 | |||
729 | |||
730 | /* -------------------------------------------------------------------- */ | ||
731 | |||
732 | /* | ||
733 | * These devices are always present and don't need any board-specific | ||
734 | * setup. | ||
735 | */ | ||
736 | static int __init at91_add_standard_devices(void) | ||
737 | { | ||
738 | return 0; | ||
739 | } | ||
740 | |||
741 | arch_initcall(at91_add_standard_devices); | ||
diff --git a/arch/arm/mach-at91rm9200/at91sam926x_time.c b/arch/arm/mach-at91rm9200/at91sam926x_time.c new file mode 100644 index 000000000000..99df5f6ee42e --- /dev/null +++ b/arch/arm/mach-at91rm9200/at91sam926x_time.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/at91sam926x_time.c | ||
3 | * | ||
4 | * Copyright (C) 2005-2006 M. Amine SAYA, ATMEL Rousset, France | ||
5 | * Revision 2005 M. Nicolas Diremdjian, ATMEL Rousset, France | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #include <linux/init.h> | ||
13 | #include <linux/interrupt.h> | ||
14 | #include <linux/irq.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/sched.h> | ||
17 | #include <linux/time.h> | ||
18 | |||
19 | #include <asm/hardware.h> | ||
20 | #include <asm/io.h> | ||
21 | #include <asm/mach/time.h> | ||
22 | |||
23 | #include <asm/arch/at91_pit.h> | ||
24 | |||
25 | |||
26 | #define PIT_CPIV(x) ((x) & AT91_PIT_CPIV) | ||
27 | #define PIT_PICNT(x) (((x) & AT91_PIT_PICNT) >> 20) | ||
28 | |||
29 | /* | ||
30 | * Returns number of microseconds since last timer interrupt. Note that interrupts | ||
31 | * will have been disabled by do_gettimeofday() | ||
32 | * 'LATCH' is hwclock ticks (see CLOCK_TICK_RATE in timex.h) per jiffy. | ||
33 | * 'tick' is usecs per jiffy (linux/timex.h). | ||
34 | */ | ||
35 | static unsigned long at91sam926x_gettimeoffset(void) | ||
36 | { | ||
37 | unsigned long elapsed; | ||
38 | unsigned long t = at91_sys_read(AT91_PIT_PIIR); | ||
39 | |||
40 | elapsed = (PIT_PICNT(t) * LATCH) + PIT_CPIV(t); /* hardware clock cycles */ | ||
41 | |||
42 | return (unsigned long)(elapsed * 1000000) / LATCH; | ||
43 | } | ||
44 | |||
45 | /* | ||
46 | * IRQ handler for the timer. | ||
47 | */ | ||
48 | static irqreturn_t at91sam926x_timer_interrupt(int irq, void *dev_id) | ||
49 | { | ||
50 | volatile long nr_ticks; | ||
51 | |||
52 | if (at91_sys_read(AT91_PIT_SR) & AT91_PIT_PITS) { /* This is a shared interrupt */ | ||
53 | write_seqlock(&xtime_lock); | ||
54 | |||
55 | /* Get number to ticks performed before interrupt and clear PIT interrupt */ | ||
56 | nr_ticks = PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); | ||
57 | do { | ||
58 | timer_tick(); | ||
59 | nr_ticks--; | ||
60 | } while (nr_ticks); | ||
61 | |||
62 | write_sequnlock(&xtime_lock); | ||
63 | return IRQ_HANDLED; | ||
64 | } else | ||
65 | return IRQ_NONE; /* not handled */ | ||
66 | } | ||
67 | |||
68 | static struct irqaction at91sam926x_timer_irq = { | ||
69 | .name = "at91_tick", | ||
70 | .flags = IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER, | ||
71 | .handler = at91sam926x_timer_interrupt | ||
72 | }; | ||
73 | |||
74 | void at91sam926x_timer_reset(void) | ||
75 | { | ||
76 | /* Disable timer */ | ||
77 | at91_sys_write(AT91_PIT_MR, 0); | ||
78 | |||
79 | /* Clear any pending interrupts */ | ||
80 | (void) at91_sys_read(AT91_PIT_PIVR); | ||
81 | |||
82 | /* Set Period Interval timer and enable its interrupt */ | ||
83 | at91_sys_write(AT91_PIT_MR, (LATCH & AT91_PIT_PIV) | AT91_PIT_PITIEN | AT91_PIT_PITEN); | ||
84 | } | ||
85 | |||
86 | /* | ||
87 | * Set up timer interrupt. | ||
88 | */ | ||
89 | void __init at91sam926x_timer_init(void) | ||
90 | { | ||
91 | /* Initialize and enable the timer */ | ||
92 | at91sam926x_timer_reset(); | ||
93 | |||
94 | /* Make IRQs happen for the system timer. */ | ||
95 | setup_irq(AT91_ID_SYS, &at91sam926x_timer_irq); | ||
96 | } | ||
97 | |||
98 | #ifdef CONFIG_PM | ||
99 | static void at91sam926x_timer_suspend(void) | ||
100 | { | ||
101 | /* Disable timer */ | ||
102 | at91_sys_write(AT91_PIT_MR, 0); | ||
103 | } | ||
104 | #else | ||
105 | #define at91sam926x_timer_suspend NULL | ||
106 | #endif | ||
107 | |||
108 | struct sys_timer at91sam926x_timer = { | ||
109 | .init = at91sam926x_timer_init, | ||
110 | .offset = at91sam926x_gettimeoffset, | ||
111 | .suspend = at91sam926x_timer_suspend, | ||
112 | .resume = at91sam926x_timer_reset, | ||
113 | }; | ||
114 | |||
diff --git a/arch/arm/mach-at91rm9200/board-carmeva.c b/arch/arm/mach-at91rm9200/board-carmeva.c index 98208740e7c5..654f0379550a 100644 --- a/arch/arm/mach-at91rm9200/board-carmeva.c +++ b/arch/arm/mach-at91rm9200/board-carmeva.c | |||
@@ -65,7 +65,6 @@ static void __init carmeva_init_irq(void) | |||
65 | at91rm9200_init_interrupts(NULL); | 65 | at91rm9200_init_interrupts(NULL); |
66 | } | 66 | } |
67 | 67 | ||
68 | |||
69 | static struct at91_eth_data __initdata carmeva_eth_data = { | 68 | static struct at91_eth_data __initdata carmeva_eth_data = { |
70 | .phy_irq_pin = AT91_PIN_PC4, | 69 | .phy_irq_pin = AT91_PIN_PC4, |
71 | .is_rmii = 1, | 70 | .is_rmii = 1, |
@@ -89,8 +88,33 @@ static struct at91_udc_data __initdata carmeva_udc_data = { | |||
89 | // }; | 88 | // }; |
90 | 89 | ||
91 | static struct at91_mmc_data __initdata carmeva_mmc_data = { | 90 | static struct at91_mmc_data __initdata carmeva_mmc_data = { |
92 | .is_b = 0, | 91 | .slot_b = 0, |
93 | .wire4 = 1, | 92 | .wire4 = 1, |
93 | .det_pin = AT91_PIN_PB10, | ||
94 | .wp_pin = AT91_PIN_PC14, | ||
95 | }; | ||
96 | |||
97 | static struct spi_board_info carmeva_spi_devices[] = { | ||
98 | { /* DataFlash chip */ | ||
99 | .modalias = "mtd_dataflash", | ||
100 | .chip_select = 0, | ||
101 | .max_speed_hz = 10 * 1000 * 1000, | ||
102 | }, | ||
103 | { /* User accessable spi - cs1 (250KHz) */ | ||
104 | .modalias = "spi-cs1", | ||
105 | .chip_select = 1, | ||
106 | .max_speed_hz = 250 * 1000, | ||
107 | }, | ||
108 | { /* User accessable spi - cs2 (1MHz) */ | ||
109 | .modalias = "spi-cs2", | ||
110 | .chip_select = 2, | ||
111 | .max_speed_hz = 1 * 1000 * 1000, | ||
112 | }, | ||
113 | { /* User accessable spi - cs3 (10MHz) */ | ||
114 | .modalias = "spi-cs3", | ||
115 | .chip_select = 3, | ||
116 | .max_speed_hz = 10 * 1000 * 1000, | ||
117 | }, | ||
94 | }; | 118 | }; |
95 | 119 | ||
96 | static void __init carmeva_board_init(void) | 120 | static void __init carmeva_board_init(void) |
@@ -105,10 +129,10 @@ static void __init carmeva_board_init(void) | |||
105 | at91_add_device_udc(&carmeva_udc_data); | 129 | at91_add_device_udc(&carmeva_udc_data); |
106 | /* I2C */ | 130 | /* I2C */ |
107 | at91_add_device_i2c(); | 131 | at91_add_device_i2c(); |
132 | /* SPI */ | ||
133 | at91_add_device_spi(carmeva_spi_devices, ARRAY_SIZE(carmeva_spi_devices)); | ||
108 | /* Compact Flash */ | 134 | /* Compact Flash */ |
109 | // at91_add_device_cf(&carmeva_cf_data); | 135 | // at91_add_device_cf(&carmeva_cf_data); |
110 | /* SPI */ | ||
111 | // at91_add_device_spi(NULL, 0); | ||
112 | /* MMC */ | 136 | /* MMC */ |
113 | at91_add_device_mmc(&carmeva_mmc_data); | 137 | at91_add_device_mmc(&carmeva_mmc_data); |
114 | } | 138 | } |
diff --git a/arch/arm/mach-at91rm9200/board-csb337.c b/arch/arm/mach-at91rm9200/board-csb337.c index 8eeae491ce71..b8bb8052607a 100644 --- a/arch/arm/mach-at91rm9200/board-csb337.c +++ b/arch/arm/mach-at91rm9200/board-csb337.c | |||
@@ -99,7 +99,7 @@ static struct at91_cf_data __initdata csb337_cf_data = { | |||
99 | 99 | ||
100 | static struct at91_mmc_data __initdata csb337_mmc_data = { | 100 | static struct at91_mmc_data __initdata csb337_mmc_data = { |
101 | .det_pin = AT91_PIN_PD5, | 101 | .det_pin = AT91_PIN_PD5, |
102 | .is_b = 0, | 102 | .slot_b = 0, |
103 | .wire4 = 1, | 103 | .wire4 = 1, |
104 | .wp_pin = AT91_PIN_PD6, | 104 | .wp_pin = AT91_PIN_PD6, |
105 | }; | 105 | }; |
diff --git a/arch/arm/mach-at91rm9200/board-dk.c b/arch/arm/mach-at91rm9200/board-dk.c index c699f3984d4b..7522bf91bce8 100644 --- a/arch/arm/mach-at91rm9200/board-dk.c +++ b/arch/arm/mach-at91rm9200/board-dk.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
29 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
30 | #include <linux/mtd/physmap.h> | ||
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -39,6 +40,7 @@ | |||
39 | 40 | ||
40 | #include <asm/arch/board.h> | 41 | #include <asm/arch/board.h> |
41 | #include <asm/arch/gpio.h> | 42 | #include <asm/arch/gpio.h> |
43 | #include <asm/arch/at91rm9200_mc.h> | ||
42 | 44 | ||
43 | #include "generic.h" | 45 | #include "generic.h" |
44 | 46 | ||
@@ -93,7 +95,7 @@ static struct at91_cf_data __initdata dk_cf_data = { | |||
93 | }; | 95 | }; |
94 | 96 | ||
95 | static struct at91_mmc_data __initdata dk_mmc_data = { | 97 | static struct at91_mmc_data __initdata dk_mmc_data = { |
96 | .is_b = 0, | 98 | .slot_b = 0, |
97 | .wire4 = 1, | 99 | .wire4 = 1, |
98 | }; | 100 | }; |
99 | 101 | ||
@@ -145,6 +147,30 @@ static struct at91_nand_data __initdata dk_nand_data = { | |||
145 | .partition_info = nand_partitions, | 147 | .partition_info = nand_partitions, |
146 | }; | 148 | }; |
147 | 149 | ||
150 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 | ||
151 | #define DK_FLASH_SIZE 0x200000 | ||
152 | |||
153 | static struct physmap_flash_data dk_flash_data = { | ||
154 | .width = 2, | ||
155 | }; | ||
156 | |||
157 | static struct resource dk_flash_resource = { | ||
158 | .start = DK_FLASH_BASE, | ||
159 | .end = DK_FLASH_BASE + DK_FLASH_SIZE - 1, | ||
160 | .flags = IORESOURCE_MEM, | ||
161 | }; | ||
162 | |||
163 | static struct platform_device dk_flash = { | ||
164 | .name = "physmap-flash", | ||
165 | .id = 0, | ||
166 | .dev = { | ||
167 | .platform_data = &dk_flash_data, | ||
168 | }, | ||
169 | .resource = &dk_flash_resource, | ||
170 | .num_resources = 1, | ||
171 | }; | ||
172 | |||
173 | |||
148 | static void __init dk_board_init(void) | 174 | static void __init dk_board_init(void) |
149 | { | 175 | { |
150 | /* Serial */ | 176 | /* Serial */ |
@@ -172,6 +198,8 @@ static void __init dk_board_init(void) | |||
172 | #endif | 198 | #endif |
173 | /* NAND */ | 199 | /* NAND */ |
174 | at91_add_device_nand(&dk_nand_data); | 200 | at91_add_device_nand(&dk_nand_data); |
201 | /* NOR Flash */ | ||
202 | platform_device_register(&dk_flash); | ||
175 | /* VGA */ | 203 | /* VGA */ |
176 | // dk_add_device_video(); | 204 | // dk_add_device_video(); |
177 | } | 205 | } |
diff --git a/arch/arm/mach-at91rm9200/board-eb9200.c b/arch/arm/mach-at91rm9200/board-eb9200.c index 65e867ba2df3..80b72cf7264c 100644 --- a/arch/arm/mach-at91rm9200/board-eb9200.c +++ b/arch/arm/mach-at91rm9200/board-eb9200.c | |||
@@ -87,7 +87,7 @@ static struct at91_cf_data __initdata eb9200_cf_data = { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | static struct at91_mmc_data __initdata eb9200_mmc_data = { | 89 | static struct at91_mmc_data __initdata eb9200_mmc_data = { |
90 | .is_b = 0, | 90 | .slot_b = 0, |
91 | .wire4 = 1, | 91 | .wire4 = 1, |
92 | }; | 92 | }; |
93 | 93 | ||
diff --git a/arch/arm/mach-at91rm9200/board-ek.c b/arch/arm/mach-at91rm9200/board-ek.c index 830eb7932178..c4fdb415f20e 100644 --- a/arch/arm/mach-at91rm9200/board-ek.c +++ b/arch/arm/mach-at91rm9200/board-ek.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
29 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
30 | #include <linux/mtd/physmap.h> | ||
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -39,6 +40,7 @@ | |||
39 | 40 | ||
40 | #include <asm/arch/board.h> | 41 | #include <asm/arch/board.h> |
41 | #include <asm/arch/gpio.h> | 42 | #include <asm/arch/gpio.h> |
43 | #include <asm/arch/at91rm9200_mc.h> | ||
42 | 44 | ||
43 | #include "generic.h" | 45 | #include "generic.h" |
44 | 46 | ||
@@ -87,7 +89,7 @@ static struct at91_udc_data __initdata ek_udc_data = { | |||
87 | 89 | ||
88 | static struct at91_mmc_data __initdata ek_mmc_data = { | 90 | static struct at91_mmc_data __initdata ek_mmc_data = { |
89 | .det_pin = AT91_PIN_PB27, | 91 | .det_pin = AT91_PIN_PB27, |
90 | .is_b = 0, | 92 | .slot_b = 0, |
91 | .wire4 = 1, | 93 | .wire4 = 1, |
92 | .wp_pin = AT91_PIN_PA17, | 94 | .wp_pin = AT91_PIN_PA17, |
93 | }; | 95 | }; |
@@ -107,6 +109,30 @@ static struct spi_board_info ek_spi_devices[] = { | |||
107 | #endif | 109 | #endif |
108 | }; | 110 | }; |
109 | 111 | ||
112 | #define EK_FLASH_BASE AT91_CHIPSELECT_0 | ||
113 | #define EK_FLASH_SIZE 0x200000 | ||
114 | |||
115 | static struct physmap_flash_data ek_flash_data = { | ||
116 | .width = 2, | ||
117 | }; | ||
118 | |||
119 | static struct resource ek_flash_resource = { | ||
120 | .start = EK_FLASH_BASE, | ||
121 | .end = EK_FLASH_BASE + EK_FLASH_SIZE - 1, | ||
122 | .flags = IORESOURCE_MEM, | ||
123 | }; | ||
124 | |||
125 | static struct platform_device ek_flash = { | ||
126 | .name = "physmap-flash", | ||
127 | .id = 0, | ||
128 | .dev = { | ||
129 | .platform_data = &ek_flash_data, | ||
130 | }, | ||
131 | .resource = &ek_flash_resource, | ||
132 | .num_resources = 1, | ||
133 | }; | ||
134 | |||
135 | |||
110 | static void __init ek_board_init(void) | 136 | static void __init ek_board_init(void) |
111 | { | 137 | { |
112 | /* Serial */ | 138 | /* Serial */ |
@@ -130,6 +156,8 @@ static void __init ek_board_init(void) | |||
130 | at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */ | 156 | at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */ |
131 | at91_add_device_mmc(&ek_mmc_data); | 157 | at91_add_device_mmc(&ek_mmc_data); |
132 | #endif | 158 | #endif |
159 | /* NOR Flash */ | ||
160 | platform_device_register(&ek_flash); | ||
133 | /* VGA */ | 161 | /* VGA */ |
134 | // ek_add_device_video(); | 162 | // ek_add_device_video(); |
135 | } | 163 | } |
diff --git a/arch/arm/mach-at91rm9200/board-kb9202.c b/arch/arm/mach-at91rm9200/board-kb9202.c index 35a954a44b1b..759d8191854f 100644 --- a/arch/arm/mach-at91rm9200/board-kb9202.c +++ b/arch/arm/mach-at91rm9200/board-kb9202.c | |||
@@ -84,7 +84,7 @@ static struct at91_udc_data __initdata kb9202_udc_data = { | |||
84 | 84 | ||
85 | static struct at91_mmc_data __initdata kb9202_mmc_data = { | 85 | static struct at91_mmc_data __initdata kb9202_mmc_data = { |
86 | .det_pin = AT91_PIN_PB2, | 86 | .det_pin = AT91_PIN_PB2, |
87 | .is_b = 0, | 87 | .slot_b = 0, |
88 | .wire4 = 1, | 88 | .wire4 = 1, |
89 | }; | 89 | }; |
90 | 90 | ||
diff --git a/arch/arm/mach-at91rm9200/board-sam9260ek.c b/arch/arm/mach-at91rm9200/board-sam9260ek.c new file mode 100644 index 000000000000..da5d58ac870b --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-sam9260ek.c | |||
@@ -0,0 +1,202 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-ek.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People | ||
5 | * Copyright (C) 2006 Atmel | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/types.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/mm.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/platform_device.h> | ||
27 | #include <linux/spi/spi.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/arch/board.h> | ||
39 | #include <asm/arch/gpio.h> | ||
40 | #include <asm/arch/at91sam926x_mc.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | |||
45 | /* | ||
46 | * Serial port configuration. | ||
47 | * 0 .. 5 = USART0 .. USART5 | ||
48 | * 6 = DBGU | ||
49 | */ | ||
50 | static struct at91_uart_config __initdata ek_uart_config = { | ||
51 | .console_tty = 0, /* ttyS0 */ | ||
52 | .nr_tty = 3, | ||
53 | .tty_map = { 6, 0, 1, -1, -1, -1, -1 } /* ttyS0, ..., ttyS6 */ | ||
54 | }; | ||
55 | |||
56 | static void __init ek_map_io(void) | ||
57 | { | ||
58 | /* Initialize processor: 18.432 MHz crystal */ | ||
59 | at91sam9260_initialize(18432000); | ||
60 | |||
61 | /* Setup the serial ports and console */ | ||
62 | at91_init_serial(&ek_uart_config); | ||
63 | } | ||
64 | |||
65 | static void __init ek_init_irq(void) | ||
66 | { | ||
67 | at91sam9260_init_interrupts(NULL); | ||
68 | } | ||
69 | |||
70 | |||
71 | /* | ||
72 | * USB Host port | ||
73 | */ | ||
74 | static struct at91_usbh_data __initdata ek_usbh_data = { | ||
75 | .ports = 2, | ||
76 | }; | ||
77 | |||
78 | /* | ||
79 | * USB Device port | ||
80 | */ | ||
81 | static struct at91_udc_data __initdata ek_udc_data = { | ||
82 | .vbus_pin = AT91_PIN_PC5, | ||
83 | .pullup_pin = 0, /* pull-up driven by UDC */ | ||
84 | }; | ||
85 | |||
86 | |||
87 | /* | ||
88 | * SPI devices. | ||
89 | */ | ||
90 | static struct spi_board_info ek_spi_devices[] = { | ||
91 | #if !defined(CONFIG_MMC_AT91) | ||
92 | { /* DataFlash chip */ | ||
93 | .modalias = "mtd_dataflash", | ||
94 | .chip_select = 1, | ||
95 | .max_speed_hz = 15 * 1000 * 1000, | ||
96 | .bus_num = 0, | ||
97 | }, | ||
98 | #if defined(CONFIG_MTD_AT91_DATAFLASH_CARD) | ||
99 | { /* DataFlash card */ | ||
100 | .modalias = "mtd_dataflash", | ||
101 | .chip_select = 0, | ||
102 | .max_speed_hz = 15 * 1000 * 1000, | ||
103 | .bus_num = 0, | ||
104 | }, | ||
105 | #endif | ||
106 | #endif | ||
107 | #if defined(CONFIG_SND_AT73C213) | ||
108 | { /* AT73C213 DAC */ | ||
109 | .modalias = "snd_at73c213", | ||
110 | .chip_select = 0, | ||
111 | .max_speed_hz = 10 * 1000 * 1000, | ||
112 | .bus_num = 1, | ||
113 | }, | ||
114 | #endif | ||
115 | }; | ||
116 | |||
117 | |||
118 | /* | ||
119 | * MACB Ethernet device | ||
120 | */ | ||
121 | static struct __initdata eth_platform_data ek_macb_data = { | ||
122 | .phy_irq_pin = AT91_PIN_PA7, | ||
123 | .is_rmii = 1, | ||
124 | }; | ||
125 | |||
126 | |||
127 | /* | ||
128 | * NAND flash | ||
129 | */ | ||
130 | static struct mtd_partition __initdata ek_nand_partition[] = { | ||
131 | { | ||
132 | .name = "Partition 1", | ||
133 | .offset = 0, | ||
134 | .size = 256 * 1024, | ||
135 | }, | ||
136 | { | ||
137 | .name = "Partition 2", | ||
138 | .offset = 256 * 1024, | ||
139 | .size = MTDPART_SIZ_FULL, | ||
140 | }, | ||
141 | }; | ||
142 | |||
143 | static struct mtd_partition *nand_partitions(int size, int *num_partitions) | ||
144 | { | ||
145 | *num_partitions = ARRAY_SIZE(ek_nand_partition); | ||
146 | return ek_nand_partition; | ||
147 | } | ||
148 | |||
149 | static struct at91_nand_data __initdata ek_nand_data = { | ||
150 | .ale = 21, | ||
151 | .cle = 22, | ||
152 | // .det_pin = ... not connected | ||
153 | .rdy_pin = AT91_PIN_PC13, | ||
154 | .enable_pin = AT91_PIN_PC14, | ||
155 | .partition_info = nand_partitions, | ||
156 | #if defined(CONFIG_MTD_NAND_AT91_BUSWIDTH_16) | ||
157 | .bus_width_16 = 1, | ||
158 | #else | ||
159 | .bus_width_16 = 0, | ||
160 | #endif | ||
161 | }; | ||
162 | |||
163 | |||
164 | /* | ||
165 | * MCI (SD/MMC) | ||
166 | */ | ||
167 | static struct at91_mmc_data __initdata ek_mmc_data = { | ||
168 | .slot_b = 1, | ||
169 | .wire4 = 1, | ||
170 | // .det_pin = ... not connected | ||
171 | // .wp_pin = ... not connected | ||
172 | // .vcc_pin = ... not connected | ||
173 | }; | ||
174 | |||
175 | static void __init ek_board_init(void) | ||
176 | { | ||
177 | /* Serial */ | ||
178 | at91_add_device_serial(); | ||
179 | /* USB Host */ | ||
180 | at91_add_device_usbh(&ek_usbh_data); | ||
181 | /* USB Device */ | ||
182 | at91_add_device_udc(&ek_udc_data); | ||
183 | /* SPI */ | ||
184 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | ||
185 | /* NAND */ | ||
186 | at91_add_device_nand(&ek_nand_data); | ||
187 | /* Ethernet */ | ||
188 | at91_add_device_eth(&ek_macb_data); | ||
189 | /* MMC */ | ||
190 | at91_add_device_mmc(&ek_mmc_data); | ||
191 | } | ||
192 | |||
193 | MACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK") | ||
194 | /* Maintainer: Atmel */ | ||
195 | .phys_io = AT91_BASE_SYS, | ||
196 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
197 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
198 | .timer = &at91sam926x_timer, | ||
199 | .map_io = ek_map_io, | ||
200 | .init_irq = ek_init_irq, | ||
201 | .init_machine = ek_board_init, | ||
202 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-sam9261ek.c b/arch/arm/mach-at91rm9200/board-sam9261ek.c new file mode 100644 index 000000000000..30b490d8886b --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-sam9261ek.c | |||
@@ -0,0 +1,259 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-ek.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People | ||
5 | * Copyright (C) 2006 Atmel | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/types.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/mm.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/platform_device.h> | ||
27 | #include <linux/spi/spi.h> | ||
28 | #include <linux/dm9000.h> | ||
29 | |||
30 | #include <asm/hardware.h> | ||
31 | #include <asm/setup.h> | ||
32 | #include <asm/mach-types.h> | ||
33 | #include <asm/irq.h> | ||
34 | |||
35 | #include <asm/mach/arch.h> | ||
36 | #include <asm/mach/map.h> | ||
37 | #include <asm/mach/irq.h> | ||
38 | |||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | #include <asm/arch/at91sam926x_mc.h> | ||
42 | |||
43 | #include "generic.h" | ||
44 | |||
45 | |||
46 | /* | ||
47 | * Serial port configuration. | ||
48 | * 0 .. 2 = USART0 .. USART2 | ||
49 | * 3 = DBGU | ||
50 | */ | ||
51 | static struct at91_uart_config __initdata ek_uart_config = { | ||
52 | .console_tty = 0, /* ttyS0 */ | ||
53 | .nr_tty = 1, | ||
54 | .tty_map = { 3, -1, -1, -1 } /* ttyS0, ..., ttyS3 */ | ||
55 | }; | ||
56 | |||
57 | static void __init ek_map_io(void) | ||
58 | { | ||
59 | /* Initialize processor: 18.432 MHz crystal */ | ||
60 | at91sam9261_initialize(18432000); | ||
61 | |||
62 | /* Setup the serial ports and console */ | ||
63 | at91_init_serial(&ek_uart_config); | ||
64 | } | ||
65 | |||
66 | static void __init ek_init_irq(void) | ||
67 | { | ||
68 | at91sam9261_init_interrupts(NULL); | ||
69 | } | ||
70 | |||
71 | |||
72 | /* | ||
73 | * DM9000 ethernet device | ||
74 | */ | ||
75 | #if defined(CONFIG_DM9000) | ||
76 | static struct resource at91sam9261_dm9000_resource[] = { | ||
77 | [0] = { | ||
78 | .start = AT91_CHIPSELECT_2, | ||
79 | .end = AT91_CHIPSELECT_2 + 3, | ||
80 | .flags = IORESOURCE_MEM | ||
81 | }, | ||
82 | [1] = { | ||
83 | .start = AT91_CHIPSELECT_2 + 0x44, | ||
84 | .end = AT91_CHIPSELECT_2 + 0xFF, | ||
85 | .flags = IORESOURCE_MEM | ||
86 | }, | ||
87 | [2] = { | ||
88 | .start = AT91_PIN_PC11, | ||
89 | .end = AT91_PIN_PC11, | ||
90 | .flags = IORESOURCE_IRQ | ||
91 | } | ||
92 | }; | ||
93 | |||
94 | static struct dm9000_plat_data dm9000_platdata = { | ||
95 | .flags = DM9000_PLATF_16BITONLY, | ||
96 | }; | ||
97 | |||
98 | static struct platform_device at91sam9261_dm9000_device = { | ||
99 | .name = "dm9000", | ||
100 | .id = 0, | ||
101 | .num_resources = ARRAY_SIZE(at91sam9261_dm9000_resource), | ||
102 | .resource = at91sam9261_dm9000_resource, | ||
103 | .dev = { | ||
104 | .platform_data = &dm9000_platdata, | ||
105 | } | ||
106 | }; | ||
107 | |||
108 | static void __init ek_add_device_dm9000(void) | ||
109 | { | ||
110 | /* | ||
111 | * Configure Chip-Select 2 on SMC for the DM9000. | ||
112 | * Note: These timings were calculated for MASTER_CLOCK = 100000000 | ||
113 | * according to the DM9000 timings. | ||
114 | */ | ||
115 | at91_sys_write(AT91_SMC_SETUP(2), AT91_SMC_NWESETUP_(2) | AT91_SMC_NCS_WRSETUP_(0) | AT91_SMC_NRDSETUP_(2) | AT91_SMC_NCS_RDSETUP_(0)); | ||
116 | at91_sys_write(AT91_SMC_PULSE(2), AT91_SMC_NWEPULSE_(4) | AT91_SMC_NCS_WRPULSE_(8) | AT91_SMC_NRDPULSE_(4) | AT91_SMC_NCS_RDPULSE_(8)); | ||
117 | at91_sys_write(AT91_SMC_CYCLE(2), AT91_SMC_NWECYCLE_(16) | AT91_SMC_NRDCYCLE_(16)); | ||
118 | at91_sys_write(AT91_SMC_MODE(2), AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_EXNWMODE_DISABLE | AT91_SMC_BAT_WRITE | AT91_SMC_DBW_16 | AT91_SMC_TDF_(1)); | ||
119 | |||
120 | /* Configure Reset signal as output */ | ||
121 | at91_set_gpio_output(AT91_PIN_PC10, 0); | ||
122 | |||
123 | /* Configure Interrupt pin as input, no pull-up */ | ||
124 | at91_set_gpio_input(AT91_PIN_PC11, 0); | ||
125 | |||
126 | platform_device_register(&at91sam9261_dm9000_device); | ||
127 | } | ||
128 | #else | ||
129 | static void __init ek_add_device_dm9000(void) {} | ||
130 | #endif /* CONFIG_DM9000 */ | ||
131 | |||
132 | |||
133 | /* | ||
134 | * USB Host Port | ||
135 | */ | ||
136 | static struct at91_usbh_data __initdata ek_usbh_data = { | ||
137 | .ports = 2, | ||
138 | }; | ||
139 | |||
140 | |||
141 | /* | ||
142 | * USB Device Port | ||
143 | */ | ||
144 | static struct at91_udc_data __initdata ek_udc_data = { | ||
145 | .vbus_pin = AT91_PIN_PB29, | ||
146 | .pullup_pin = 0, /* pull-up driven by UDC */ | ||
147 | }; | ||
148 | |||
149 | |||
150 | /* | ||
151 | * MCI (SD/MMC) | ||
152 | */ | ||
153 | static struct at91_mmc_data __initdata ek_mmc_data = { | ||
154 | .wire4 = 1, | ||
155 | // .det_pin = ... not connected | ||
156 | // .wp_pin = ... not connected | ||
157 | // .vcc_pin = ... not connected | ||
158 | }; | ||
159 | |||
160 | |||
161 | /* | ||
162 | * NAND flash | ||
163 | */ | ||
164 | static struct mtd_partition __initdata ek_nand_partition[] = { | ||
165 | { | ||
166 | .name = "Partition 1", | ||
167 | .offset = 0, | ||
168 | .size = 256 * 1024, | ||
169 | }, | ||
170 | { | ||
171 | .name = "Partition 2", | ||
172 | .offset = 256 * 1024 , | ||
173 | .size = MTDPART_SIZ_FULL, | ||
174 | }, | ||
175 | }; | ||
176 | |||
177 | static struct mtd_partition *nand_partitions(int size, int *num_partitions) | ||
178 | { | ||
179 | *num_partitions = ARRAY_SIZE(ek_nand_partition); | ||
180 | return ek_nand_partition; | ||
181 | } | ||
182 | |||
183 | static struct at91_nand_data __initdata ek_nand_data = { | ||
184 | .ale = 22, | ||
185 | .cle = 21, | ||
186 | // .det_pin = ... not connected | ||
187 | .rdy_pin = AT91_PIN_PC15, | ||
188 | .enable_pin = AT91_PIN_PC14, | ||
189 | .partition_info = nand_partitions, | ||
190 | #if defined(CONFIG_MTD_NAND_AT91_BUSWIDTH_16) | ||
191 | .bus_width_16 = 1, | ||
192 | #else | ||
193 | .bus_width_16 = 0, | ||
194 | #endif | ||
195 | }; | ||
196 | |||
197 | /* | ||
198 | * SPI devices | ||
199 | */ | ||
200 | static struct spi_board_info ek_spi_devices[] = { | ||
201 | { /* DataFlash chip */ | ||
202 | .modalias = "mtd_dataflash", | ||
203 | .chip_select = 0, | ||
204 | .max_speed_hz = 15 * 1000 * 1000, | ||
205 | .bus_num = 0, | ||
206 | }, | ||
207 | #if defined(CONFIG_MTD_AT91_DATAFLASH_CARD) | ||
208 | { /* DataFlash card - jumper (J12) configurable to CS3 or CS0 */ | ||
209 | .modalias = "mtd_dataflash", | ||
210 | .chip_select = 3, | ||
211 | .max_speed_hz = 15 * 1000 * 1000, | ||
212 | .bus_num = 0, | ||
213 | }, | ||
214 | #elif defined(CONFIG_SND_AT73C213) | ||
215 | { /* AT73C213 DAC */ | ||
216 | .modalias = "snd_at73c213", | ||
217 | .chip_select = 3, | ||
218 | .max_speed_hz = 10 * 1000 * 1000, | ||
219 | .bus_num = 0, | ||
220 | }, | ||
221 | #endif | ||
222 | }; | ||
223 | |||
224 | |||
225 | static void __init ek_board_init(void) | ||
226 | { | ||
227 | /* Serial */ | ||
228 | at91_add_device_serial(); | ||
229 | /* USB Host */ | ||
230 | at91_add_device_usbh(&ek_usbh_data); | ||
231 | /* USB Device */ | ||
232 | at91_add_device_udc(&ek_udc_data); | ||
233 | /* I2C */ | ||
234 | at91_add_device_i2c(); | ||
235 | /* NAND */ | ||
236 | at91_add_device_nand(&ek_nand_data); | ||
237 | /* DM9000 ethernet */ | ||
238 | ek_add_device_dm9000(); | ||
239 | |||
240 | /* spi0 and mmc/sd share the same PIO pins */ | ||
241 | #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE) | ||
242 | /* SPI */ | ||
243 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | ||
244 | #else | ||
245 | /* MMC */ | ||
246 | at91_add_device_mmc(&ek_mmc_data); | ||
247 | #endif | ||
248 | } | ||
249 | |||
250 | MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK") | ||
251 | /* Maintainer: Atmel */ | ||
252 | .phys_io = AT91_BASE_SYS, | ||
253 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
254 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
255 | .timer = &at91sam926x_timer, | ||
256 | .map_io = ek_map_io, | ||
257 | .init_irq = ek_init_irq, | ||
258 | .init_machine = ek_board_init, | ||
259 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/clock.c b/arch/arm/mach-at91rm9200/clock.c index a43b061a7c85..4dee21fefe5a 100644 --- a/arch/arm/mach-at91rm9200/clock.c +++ b/arch/arm/mach-at91rm9200/clock.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
29 | 29 | ||
30 | #include <asm/hardware.h> | 30 | #include <asm/hardware.h> |
31 | #include <asm/arch/at91_pmc.h> | ||
32 | #include <asm/arch/cpu.h> | ||
31 | 33 | ||
32 | #include "clock.h" | 34 | #include "clock.h" |
33 | 35 | ||
@@ -41,6 +43,7 @@ | |||
41 | #define clk_is_primary(x) ((x)->type & CLK_TYPE_PRIMARY) | 43 | #define clk_is_primary(x) ((x)->type & CLK_TYPE_PRIMARY) |
42 | #define clk_is_programmable(x) ((x)->type & CLK_TYPE_PROGRAMMABLE) | 44 | #define clk_is_programmable(x) ((x)->type & CLK_TYPE_PROGRAMMABLE) |
43 | #define clk_is_peripheral(x) ((x)->type & CLK_TYPE_PERIPHERAL) | 45 | #define clk_is_peripheral(x) ((x)->type & CLK_TYPE_PERIPHERAL) |
46 | #define clk_is_sys(x) ((x)->type & CLK_TYPE_SYSTEM) | ||
44 | 47 | ||
45 | 48 | ||
46 | static LIST_HEAD(clocks); | 49 | static LIST_HEAD(clocks); |
@@ -114,13 +117,11 @@ static void pmc_sys_mode(struct clk *clk, int is_on) | |||
114 | static struct clk udpck = { | 117 | static struct clk udpck = { |
115 | .name = "udpck", | 118 | .name = "udpck", |
116 | .parent = &pllb, | 119 | .parent = &pllb, |
117 | .pmc_mask = AT91_PMC_UDP, | ||
118 | .mode = pmc_sys_mode, | 120 | .mode = pmc_sys_mode, |
119 | }; | 121 | }; |
120 | static struct clk uhpck = { | 122 | static struct clk uhpck = { |
121 | .name = "uhpck", | 123 | .name = "uhpck", |
122 | .parent = &pllb, | 124 | .parent = &pllb, |
123 | .pmc_mask = AT91_PMC_UHP, | ||
124 | .mode = pmc_sys_mode, | 125 | .mode = pmc_sys_mode, |
125 | }; | 126 | }; |
126 | 127 | ||
@@ -434,6 +435,12 @@ int __init clk_register(struct clk *clk) | |||
434 | clk->mode = pmc_periph_mode; | 435 | clk->mode = pmc_periph_mode; |
435 | list_add_tail(&clk->node, &clocks); | 436 | list_add_tail(&clk->node, &clocks); |
436 | } | 437 | } |
438 | else if (clk_is_sys(clk)) { | ||
439 | clk->parent = &mck; | ||
440 | clk->mode = pmc_sys_mode; | ||
441 | |||
442 | list_add_tail(&clk->node, &clocks); | ||
443 | } | ||
437 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | 444 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS |
438 | else if (clk_is_programmable(clk)) { | 445 | else if (clk_is_programmable(clk)) { |
439 | clk->mode = pmc_sys_mode; | 446 | clk->mode = pmc_sys_mode; |
@@ -586,9 +593,21 @@ int __init at91_clock_init(unsigned long main_clock) | |||
586 | */ | 593 | */ |
587 | at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; | 594 | at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; |
588 | pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); | 595 | pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); |
589 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP); | 596 | if (cpu_is_at91rm9200()) { |
597 | uhpck.pmc_mask = AT91RM9200_PMC_UHP; | ||
598 | udpck.pmc_mask = AT91RM9200_PMC_UDP; | ||
599 | at91_sys_write(AT91_PMC_SCDR, AT91RM9200_PMC_UHP | AT91RM9200_PMC_UDP); | ||
600 | at91_sys_write(AT91_PMC_SCER, AT91RM9200_PMC_MCKUDP); | ||
601 | } else if (cpu_is_at91sam9260()) { | ||
602 | uhpck.pmc_mask = AT91SAM926x_PMC_UHP; | ||
603 | udpck.pmc_mask = AT91SAM926x_PMC_UDP; | ||
604 | at91_sys_write(AT91_PMC_SCDR, AT91SAM926x_PMC_UHP | AT91SAM926x_PMC_UDP); | ||
605 | } else if (cpu_is_at91sam9261()) { | ||
606 | uhpck.pmc_mask = (AT91SAM926x_PMC_UHP | AT91_PMC_HCK0); | ||
607 | udpck.pmc_mask = AT91SAM926x_PMC_UDP; | ||
608 | at91_sys_write(AT91_PMC_SCDR, AT91SAM926x_PMC_UHP | AT91_PMC_HCK0 | AT91SAM926x_PMC_UDP); | ||
609 | } | ||
590 | at91_sys_write(AT91_CKGR_PLLBR, 0); | 610 | at91_sys_write(AT91_CKGR_PLLBR, 0); |
591 | at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP); | ||
592 | 611 | ||
593 | udpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); | 612 | udpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); |
594 | uhpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); | 613 | uhpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); |
diff --git a/arch/arm/mach-at91rm9200/clock.h b/arch/arm/mach-at91rm9200/clock.h index 0592e662ab37..b5c7a2eb2d1d 100644 --- a/arch/arm/mach-at91rm9200/clock.h +++ b/arch/arm/mach-at91rm9200/clock.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #define CLK_TYPE_PLL 0x2 | 10 | #define CLK_TYPE_PLL 0x2 |
11 | #define CLK_TYPE_PROGRAMMABLE 0x4 | 11 | #define CLK_TYPE_PROGRAMMABLE 0x4 |
12 | #define CLK_TYPE_PERIPHERAL 0x8 | 12 | #define CLK_TYPE_PERIPHERAL 0x8 |
13 | #define CLK_TYPE_SYSTEM 0x10 | ||
13 | 14 | ||
14 | 15 | ||
15 | struct clk { | 16 | struct clk { |
diff --git a/arch/arm/mach-at91rm9200/generic.h b/arch/arm/mach-at91rm9200/generic.h index 694e411e285f..8c4d5a77d485 100644 --- a/arch/arm/mach-at91rm9200/generic.h +++ b/arch/arm/mach-at91rm9200/generic.h | |||
@@ -10,14 +10,19 @@ | |||
10 | 10 | ||
11 | /* Processors */ | 11 | /* Processors */ |
12 | extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks); | 12 | extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks); |
13 | extern void __init at91sam9260_initialize(unsigned long main_clock); | ||
14 | extern void __init at91sam9261_initialize(unsigned long main_clock); | ||
13 | 15 | ||
14 | /* Interrupts */ | 16 | /* Interrupts */ |
15 | extern void __init at91rm9200_init_interrupts(unsigned int priority[]); | 17 | extern void __init at91rm9200_init_interrupts(unsigned int priority[]); |
18 | extern void __init at91sam9260_init_interrupts(unsigned int priority[]); | ||
19 | extern void __init at91sam9261_init_interrupts(unsigned int priority[]); | ||
16 | extern void __init at91_aic_init(unsigned int priority[]); | 20 | extern void __init at91_aic_init(unsigned int priority[]); |
17 | 21 | ||
18 | /* Timer */ | 22 | /* Timer */ |
19 | struct sys_timer; | 23 | struct sys_timer; |
20 | extern struct sys_timer at91rm9200_timer; | 24 | extern struct sys_timer at91rm9200_timer; |
25 | extern struct sys_timer at91sam926x_timer; | ||
21 | 26 | ||
22 | /* Clocks */ | 27 | /* Clocks */ |
23 | extern int __init at91_clock_init(unsigned long main_clock); | 28 | extern int __init at91_clock_init(unsigned long main_clock); |
@@ -39,3 +44,6 @@ struct at91_gpio_bank { | |||
39 | }; | 44 | }; |
40 | extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks); | 45 | extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks); |
41 | extern void __init at91_gpio_irq_setup(void); | 46 | extern void __init at91_gpio_irq_setup(void); |
47 | |||
48 | extern void (*at91_arch_reset)(void); | ||
49 | extern int at91_extern_irq; | ||
diff --git a/arch/arm/mach-at91rm9200/gpio.c b/arch/arm/mach-at91rm9200/gpio.c index 7467d644f0a3..3f188508c391 100644 --- a/arch/arm/mach-at91rm9200/gpio.c +++ b/arch/arm/mach-at91rm9200/gpio.c | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <asm/io.h> | 20 | #include <asm/io.h> |
21 | #include <asm/hardware.h> | 21 | #include <asm/hardware.h> |
22 | #include <asm/arch/at91_pio.h> | ||
23 | #include <asm/arch/at91_pmc.h> | ||
22 | #include <asm/arch/gpio.h> | 24 | #include <asm/arch/gpio.h> |
23 | 25 | ||
24 | #include "generic.h" | 26 | #include "generic.h" |
@@ -332,10 +334,10 @@ static struct irq_chip gpio_irqchip = { | |||
332 | .set_wake = gpio_irq_set_wake, | 334 | .set_wake = gpio_irq_set_wake, |
333 | }; | 335 | }; |
334 | 336 | ||
335 | static void gpio_irq_handler(unsigned irq, struct irqdesc *desc) | 337 | static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) |
336 | { | 338 | { |
337 | unsigned pin; | 339 | unsigned pin; |
338 | struct irqdesc *gpio; | 340 | struct irq_desc *gpio; |
339 | void __iomem *pio; | 341 | void __iomem *pio; |
340 | u32 isr; | 342 | u32 isr; |
341 | 343 | ||
@@ -396,7 +398,7 @@ void __init at91_gpio_irq_setup(void) | |||
396 | __raw_writel(~0, controller + PIO_IDR); | 398 | __raw_writel(~0, controller + PIO_IDR); |
397 | 399 | ||
398 | set_irq_data(id, (void *) pin); | 400 | set_irq_data(id, (void *) pin); |
399 | set_irq_chipdata(id, controller); | 401 | set_irq_chip_data(id, controller); |
400 | 402 | ||
401 | for (i = 0; i < 32; i++, pin++) { | 403 | for (i = 0; i < 32; i++, pin++) { |
402 | /* | 404 | /* |
@@ -404,7 +406,7 @@ void __init at91_gpio_irq_setup(void) | |||
404 | * shorter, and the AIC handles interupts sanely. | 406 | * shorter, and the AIC handles interupts sanely. |
405 | */ | 407 | */ |
406 | set_irq_chip(pin, &gpio_irqchip); | 408 | set_irq_chip(pin, &gpio_irqchip); |
407 | set_irq_handler(pin, do_simple_IRQ); | 409 | set_irq_handler(pin, handle_simple_irq); |
408 | set_irq_flags(pin, IRQF_VALID); | 410 | set_irq_flags(pin, IRQF_VALID); |
409 | } | 411 | } |
410 | 412 | ||
diff --git a/arch/arm/mach-at91rm9200/irq.c b/arch/arm/mach-at91rm9200/irq.c index 3e488117ca91..2148daafd29c 100644 --- a/arch/arm/mach-at91rm9200/irq.c +++ b/arch/arm/mach-at91rm9200/irq.c | |||
@@ -47,6 +47,10 @@ static void at91_aic_unmask_irq(unsigned int irq) | |||
47 | at91_sys_write(AT91_AIC_IECR, 1 << irq); | 47 | at91_sys_write(AT91_AIC_IECR, 1 << irq); |
48 | } | 48 | } |
49 | 49 | ||
50 | unsigned int at91_extern_irq; | ||
51 | |||
52 | #define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq) | ||
53 | |||
50 | static int at91_aic_set_type(unsigned irq, unsigned type) | 54 | static int at91_aic_set_type(unsigned irq, unsigned type) |
51 | { | 55 | { |
52 | unsigned int smr, srctype; | 56 | unsigned int smr, srctype; |
@@ -59,14 +63,16 @@ static int at91_aic_set_type(unsigned irq, unsigned type) | |||
59 | srctype = AT91_AIC_SRCTYPE_RISING; | 63 | srctype = AT91_AIC_SRCTYPE_RISING; |
60 | break; | 64 | break; |
61 | case IRQT_LOW: | 65 | case IRQT_LOW: |
62 | if ((irq > AT91_ID_FIQ) && (irq < AT91RM9200_ID_IRQ0)) /* only supported on external interrupts */ | 66 | if ((irq == AT91_ID_FIQ) || is_extern_irq(irq)) /* only supported on external interrupts */ |
67 | srctype = AT91_AIC_SRCTYPE_LOW; | ||
68 | else | ||
63 | return -EINVAL; | 69 | return -EINVAL; |
64 | srctype = AT91_AIC_SRCTYPE_LOW; | ||
65 | break; | 70 | break; |
66 | case IRQT_FALLING: | 71 | case IRQT_FALLING: |
67 | if ((irq > AT91_ID_FIQ) && (irq < AT91RM9200_ID_IRQ0)) /* only supported on external interrupts */ | 72 | if ((irq == AT91_ID_FIQ) || is_extern_irq(irq)) /* only supported on external interrupts */ |
73 | srctype = AT91_AIC_SRCTYPE_FALLING; | ||
74 | else | ||
68 | return -EINVAL; | 75 | return -EINVAL; |
69 | srctype = AT91_AIC_SRCTYPE_FALLING; | ||
70 | break; | 76 | break; |
71 | default: | 77 | default: |
72 | return -EINVAL; | 78 | return -EINVAL; |
@@ -139,7 +145,7 @@ void __init at91_aic_init(unsigned int priority[NR_AIC_IRQS]) | |||
139 | at91_sys_write(AT91_AIC_SMR(i), AT91_AIC_SRCTYPE_LOW | priority[i]); | 145 | at91_sys_write(AT91_AIC_SMR(i), AT91_AIC_SRCTYPE_LOW | priority[i]); |
140 | 146 | ||
141 | set_irq_chip(i, &at91_aic_chip); | 147 | set_irq_chip(i, &at91_aic_chip); |
142 | set_irq_handler(i, do_level_IRQ); | 148 | set_irq_handler(i, handle_level_irq); |
143 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 149 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
144 | 150 | ||
145 | /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */ | 151 | /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */ |
diff --git a/arch/arm/mach-at91rm9200/pm.c b/arch/arm/mach-at91rm9200/pm.c index 32c95d8eaacf..67aa5572a3ea 100644 --- a/arch/arm/mach-at91rm9200/pm.c +++ b/arch/arm/mach-at91rm9200/pm.c | |||
@@ -26,7 +26,10 @@ | |||
26 | #include <asm/mach/irq.h> | 26 | #include <asm/mach/irq.h> |
27 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
28 | 28 | ||
29 | #include <asm/arch/at91_pmc.h> | ||
30 | #include <asm/arch/at91rm9200_mc.h> | ||
29 | #include <asm/arch/gpio.h> | 31 | #include <asm/arch/gpio.h> |
32 | #include <asm/arch/cpu.h> | ||
30 | 33 | ||
31 | #include "generic.h" | 34 | #include "generic.h" |
32 | 35 | ||
@@ -68,9 +71,15 @@ static int at91_pm_verify_clocks(void) | |||
68 | scsr = at91_sys_read(AT91_PMC_SCSR); | 71 | scsr = at91_sys_read(AT91_PMC_SCSR); |
69 | 72 | ||
70 | /* USB must not be using PLLB */ | 73 | /* USB must not be using PLLB */ |
71 | if ((scsr & (AT91_PMC_UHP | AT91_PMC_UDP)) != 0) { | 74 | if (cpu_is_at91rm9200()) { |
72 | pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n"); | 75 | if ((scsr & (AT91RM9200_PMC_UHP | AT91RM9200_PMC_UDP)) != 0) { |
73 | return 0; | 76 | pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n"); |
77 | return 0; | ||
78 | } | ||
79 | } else if (cpu_is_at91sam9260()) { | ||
80 | #warning "Check SAM9260 USB clocks" | ||
81 | } else if (cpu_is_at91sam9261()) { | ||
82 | #warning "Check SAM9261 USB clocks" | ||
74 | } | 83 | } |
75 | 84 | ||
76 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | 85 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS |
@@ -112,7 +121,6 @@ EXPORT_SYMBOL(at91_suspend_entering_slow_clock); | |||
112 | static void (*slow_clock)(void); | 121 | static void (*slow_clock)(void); |
113 | 122 | ||
114 | 123 | ||
115 | |||
116 | static int at91_pm_enter(suspend_state_t state) | 124 | static int at91_pm_enter(suspend_state_t state) |
117 | { | 125 | { |
118 | at91_gpio_suspend(); | 126 | at91_gpio_suspend(); |
@@ -123,13 +131,7 @@ static int at91_pm_enter(suspend_state_t state) | |||
123 | (at91_sys_read(AT91_PMC_PCSR) | 131 | (at91_sys_read(AT91_PMC_PCSR) |
124 | | (1 << AT91_ID_FIQ) | 132 | | (1 << AT91_ID_FIQ) |
125 | | (1 << AT91_ID_SYS) | 133 | | (1 << AT91_ID_SYS) |
126 | | (1 << AT91RM9200_ID_IRQ0) | 134 | | (at91_extern_irq)) |
127 | | (1 << AT91RM9200_ID_IRQ1) | ||
128 | | (1 << AT91RM9200_ID_IRQ2) | ||
129 | | (1 << AT91RM9200_ID_IRQ3) | ||
130 | | (1 << AT91RM9200_ID_IRQ4) | ||
131 | | (1 << AT91RM9200_ID_IRQ5) | ||
132 | | (1 << AT91RM9200_ID_IRQ6)) | ||
133 | & at91_sys_read(AT91_AIC_IMR), | 135 | & at91_sys_read(AT91_AIC_IMR), |
134 | state); | 136 | state); |
135 | 137 | ||
diff --git a/arch/arm/mach-clps711x/irq.c b/arch/arm/mach-clps711x/irq.c index 7ee926e5bad2..ca102960f528 100644 --- a/arch/arm/mach-clps711x/irq.c +++ b/arch/arm/mach-clps711x/irq.c | |||
@@ -63,7 +63,7 @@ static void int1_unmask(unsigned int irq) | |||
63 | clps_writel(intmr1, INTMR1); | 63 | clps_writel(intmr1, INTMR1); |
64 | } | 64 | } |
65 | 65 | ||
66 | static struct irqchip int1_chip = { | 66 | static struct irq_chip int1_chip = { |
67 | .ack = int1_ack, | 67 | .ack = int1_ack, |
68 | .mask = int1_mask, | 68 | .mask = int1_mask, |
69 | .unmask = int1_unmask, | 69 | .unmask = int1_unmask, |
@@ -100,7 +100,7 @@ static void int2_unmask(unsigned int irq) | |||
100 | clps_writel(intmr2, INTMR2); | 100 | clps_writel(intmr2, INTMR2); |
101 | } | 101 | } |
102 | 102 | ||
103 | static struct irqchip int2_chip = { | 103 | static struct irq_chip int2_chip = { |
104 | .ack = int2_ack, | 104 | .ack = int2_ack, |
105 | .mask = int2_mask, | 105 | .mask = int2_mask, |
106 | .unmask = int2_unmask, | 106 | .unmask = int2_unmask, |
@@ -112,12 +112,12 @@ void __init clps711x_init_irq(void) | |||
112 | 112 | ||
113 | for (i = 0; i < NR_IRQS; i++) { | 113 | for (i = 0; i < NR_IRQS; i++) { |
114 | if (INT1_IRQS & (1 << i)) { | 114 | if (INT1_IRQS & (1 << i)) { |
115 | set_irq_handler(i, do_level_IRQ); | 115 | set_irq_handler(i, handle_level_irq); |
116 | set_irq_chip(i, &int1_chip); | 116 | set_irq_chip(i, &int1_chip); |
117 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 117 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
118 | } | 118 | } |
119 | if (INT2_IRQS & (1 << i)) { | 119 | if (INT2_IRQS & (1 << i)) { |
120 | set_irq_handler(i, do_level_IRQ); | 120 | set_irq_handler(i, handle_level_irq); |
121 | set_irq_chip(i, &int2_chip); | 121 | set_irq_chip(i, &int2_chip); |
122 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 122 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
123 | } | 123 | } |
diff --git a/arch/arm/mach-clps7500/core.c b/arch/arm/mach-clps7500/core.c index fb10cf252588..231b90004736 100644 --- a/arch/arm/mach-clps7500/core.c +++ b/arch/arm/mach-clps7500/core.c | |||
@@ -57,7 +57,7 @@ static void cl7500_unmask_irq_a(unsigned int irq) | |||
57 | iomd_writeb(val | mask, IOMD_IRQMASKA); | 57 | iomd_writeb(val | mask, IOMD_IRQMASKA); |
58 | } | 58 | } |
59 | 59 | ||
60 | static struct irqchip clps7500_a_chip = { | 60 | static struct irq_chip clps7500_a_chip = { |
61 | .ack = cl7500_ack_irq_a, | 61 | .ack = cl7500_ack_irq_a, |
62 | .mask = cl7500_mask_irq_a, | 62 | .mask = cl7500_mask_irq_a, |
63 | .unmask = cl7500_unmask_irq_a, | 63 | .unmask = cl7500_unmask_irq_a, |
@@ -81,7 +81,7 @@ static void cl7500_unmask_irq_b(unsigned int irq) | |||
81 | iomd_writeb(val | mask, IOMD_IRQMASKB); | 81 | iomd_writeb(val | mask, IOMD_IRQMASKB); |
82 | } | 82 | } |
83 | 83 | ||
84 | static struct irqchip clps7500_b_chip = { | 84 | static struct irq_chip clps7500_b_chip = { |
85 | .ack = cl7500_mask_irq_b, | 85 | .ack = cl7500_mask_irq_b, |
86 | .mask = cl7500_mask_irq_b, | 86 | .mask = cl7500_mask_irq_b, |
87 | .unmask = cl7500_unmask_irq_b, | 87 | .unmask = cl7500_unmask_irq_b, |
@@ -105,7 +105,7 @@ static void cl7500_unmask_irq_c(unsigned int irq) | |||
105 | iomd_writeb(val | mask, IOMD_IRQMASKC); | 105 | iomd_writeb(val | mask, IOMD_IRQMASKC); |
106 | } | 106 | } |
107 | 107 | ||
108 | static struct irqchip clps7500_c_chip = { | 108 | static struct irq_chip clps7500_c_chip = { |
109 | .ack = cl7500_mask_irq_c, | 109 | .ack = cl7500_mask_irq_c, |
110 | .mask = cl7500_mask_irq_c, | 110 | .mask = cl7500_mask_irq_c, |
111 | .unmask = cl7500_unmask_irq_c, | 111 | .unmask = cl7500_unmask_irq_c, |
@@ -129,7 +129,7 @@ static void cl7500_unmask_irq_d(unsigned int irq) | |||
129 | iomd_writeb(val | mask, IOMD_IRQMASKD); | 129 | iomd_writeb(val | mask, IOMD_IRQMASKD); |
130 | } | 130 | } |
131 | 131 | ||
132 | static struct irqchip clps7500_d_chip = { | 132 | static struct irq_chip clps7500_d_chip = { |
133 | .ack = cl7500_mask_irq_d, | 133 | .ack = cl7500_mask_irq_d, |
134 | .mask = cl7500_mask_irq_d, | 134 | .mask = cl7500_mask_irq_d, |
135 | .unmask = cl7500_unmask_irq_d, | 135 | .unmask = cl7500_unmask_irq_d, |
@@ -153,7 +153,7 @@ static void cl7500_unmask_irq_dma(unsigned int irq) | |||
153 | iomd_writeb(val | mask, IOMD_DMAMASK); | 153 | iomd_writeb(val | mask, IOMD_DMAMASK); |
154 | } | 154 | } |
155 | 155 | ||
156 | static struct irqchip clps7500_dma_chip = { | 156 | static struct irq_chip clps7500_dma_chip = { |
157 | .ack = cl7500_mask_irq_dma, | 157 | .ack = cl7500_mask_irq_dma, |
158 | .mask = cl7500_mask_irq_dma, | 158 | .mask = cl7500_mask_irq_dma, |
159 | .unmask = cl7500_unmask_irq_dma, | 159 | .unmask = cl7500_unmask_irq_dma, |
@@ -177,7 +177,7 @@ static void cl7500_unmask_irq_fiq(unsigned int irq) | |||
177 | iomd_writeb(val | mask, IOMD_FIQMASK); | 177 | iomd_writeb(val | mask, IOMD_FIQMASK); |
178 | } | 178 | } |
179 | 179 | ||
180 | static struct irqchip clps7500_fiq_chip = { | 180 | static struct irq_chip clps7500_fiq_chip = { |
181 | .ack = cl7500_mask_irq_fiq, | 181 | .ack = cl7500_mask_irq_fiq, |
182 | .mask = cl7500_mask_irq_fiq, | 182 | .mask = cl7500_mask_irq_fiq, |
183 | .unmask = cl7500_unmask_irq_fiq, | 183 | .unmask = cl7500_unmask_irq_fiq, |
@@ -187,7 +187,7 @@ static void cl7500_no_action(unsigned int irq) | |||
187 | { | 187 | { |
188 | } | 188 | } |
189 | 189 | ||
190 | static struct irqchip clps7500_no_chip = { | 190 | static struct irq_chip clps7500_no_chip = { |
191 | .ack = cl7500_no_action, | 191 | .ack = cl7500_no_action, |
192 | .mask = cl7500_no_action, | 192 | .mask = cl7500_no_action, |
193 | .unmask = cl7500_no_action, | 193 | .unmask = cl7500_no_action, |
@@ -214,43 +214,43 @@ static void __init clps7500_init_irq(void) | |||
214 | switch (irq) { | 214 | switch (irq) { |
215 | case 0 ... 7: | 215 | case 0 ... 7: |
216 | set_irq_chip(irq, &clps7500_a_chip); | 216 | set_irq_chip(irq, &clps7500_a_chip); |
217 | set_irq_handler(irq, do_level_IRQ); | 217 | set_irq_handler(irq, handle_level_irq); |
218 | set_irq_flags(irq, flags); | 218 | set_irq_flags(irq, flags); |
219 | break; | 219 | break; |
220 | 220 | ||
221 | case 8 ... 15: | 221 | case 8 ... 15: |
222 | set_irq_chip(irq, &clps7500_b_chip); | 222 | set_irq_chip(irq, &clps7500_b_chip); |
223 | set_irq_handler(irq, do_level_IRQ); | 223 | set_irq_handler(irq, handle_level_irq); |
224 | set_irq_flags(irq, flags); | 224 | set_irq_flags(irq, flags); |
225 | break; | 225 | break; |
226 | 226 | ||
227 | case 16 ... 22: | 227 | case 16 ... 22: |
228 | set_irq_chip(irq, &clps7500_dma_chip); | 228 | set_irq_chip(irq, &clps7500_dma_chip); |
229 | set_irq_handler(irq, do_level_IRQ); | 229 | set_irq_handler(irq, handle_level_irq); |
230 | set_irq_flags(irq, flags); | 230 | set_irq_flags(irq, flags); |
231 | break; | 231 | break; |
232 | 232 | ||
233 | case 24 ... 31: | 233 | case 24 ... 31: |
234 | set_irq_chip(irq, &clps7500_c_chip); | 234 | set_irq_chip(irq, &clps7500_c_chip); |
235 | set_irq_handler(irq, do_level_IRQ); | 235 | set_irq_handler(irq, handle_level_irq); |
236 | set_irq_flags(irq, flags); | 236 | set_irq_flags(irq, flags); |
237 | break; | 237 | break; |
238 | 238 | ||
239 | case 40 ... 47: | 239 | case 40 ... 47: |
240 | set_irq_chip(irq, &clps7500_d_chip); | 240 | set_irq_chip(irq, &clps7500_d_chip); |
241 | set_irq_handler(irq, do_level_IRQ); | 241 | set_irq_handler(irq, handle_level_irq); |
242 | set_irq_flags(irq, flags); | 242 | set_irq_flags(irq, flags); |
243 | break; | 243 | break; |
244 | 244 | ||
245 | case 48 ... 55: | 245 | case 48 ... 55: |
246 | set_irq_chip(irq, &clps7500_no_chip); | 246 | set_irq_chip(irq, &clps7500_no_chip); |
247 | set_irq_handler(irq, do_level_IRQ); | 247 | set_irq_handler(irq, handle_level_irq); |
248 | set_irq_flags(irq, flags); | 248 | set_irq_flags(irq, flags); |
249 | break; | 249 | break; |
250 | 250 | ||
251 | case 64 ... 72: | 251 | case 64 ... 72: |
252 | set_irq_chip(irq, &clps7500_fiq_chip); | 252 | set_irq_chip(irq, &clps7500_fiq_chip); |
253 | set_irq_handler(irq, do_level_IRQ); | 253 | set_irq_handler(irq, handle_level_irq); |
254 | set_irq_flags(irq, flags); | 254 | set_irq_flags(irq, flags); |
255 | break; | 255 | break; |
256 | } | 256 | } |
diff --git a/arch/arm/mach-ebsa110/core.c b/arch/arm/mach-ebsa110/core.c index 90103ab373a6..8459431cfd71 100644 --- a/arch/arm/mach-ebsa110/core.c +++ b/arch/arm/mach-ebsa110/core.c | |||
@@ -45,7 +45,7 @@ static void ebsa110_unmask_irq(unsigned int irq) | |||
45 | __raw_writeb(1 << irq, IRQ_MSET); | 45 | __raw_writeb(1 << irq, IRQ_MSET); |
46 | } | 46 | } |
47 | 47 | ||
48 | static struct irqchip ebsa110_irq_chip = { | 48 | static struct irq_chip ebsa110_irq_chip = { |
49 | .ack = ebsa110_mask_irq, | 49 | .ack = ebsa110_mask_irq, |
50 | .mask = ebsa110_mask_irq, | 50 | .mask = ebsa110_mask_irq, |
51 | .unmask = ebsa110_unmask_irq, | 51 | .unmask = ebsa110_unmask_irq, |
@@ -67,7 +67,7 @@ static void __init ebsa110_init_irq(void) | |||
67 | 67 | ||
68 | for (irq = 0; irq < NR_IRQS; irq++) { | 68 | for (irq = 0; irq < NR_IRQS; irq++) { |
69 | set_irq_chip(irq, &ebsa110_irq_chip); | 69 | set_irq_chip(irq, &ebsa110_irq_chip); |
70 | set_irq_handler(irq, do_level_IRQ); | 70 | set_irq_handler(irq, handle_level_irq); |
71 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 71 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
72 | } | 72 | } |
73 | } | 73 | } |
diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig index e346b03cd921..af7904b3d0a8 100644 --- a/arch/arm/mach-ep93xx/Kconfig +++ b/arch/arm/mach-ep93xx/Kconfig | |||
@@ -9,12 +9,24 @@ config CRUNCH | |||
9 | 9 | ||
10 | comment "EP93xx Platforms" | 10 | comment "EP93xx Platforms" |
11 | 11 | ||
12 | config MACH_ADSSPHERE | ||
13 | bool "Support ADS Sphere" | ||
14 | help | ||
15 | Say 'Y' here if you want your kernel to support the ADS | ||
16 | Sphere board. | ||
17 | |||
12 | config MACH_EDB9302 | 18 | config MACH_EDB9302 |
13 | bool "Support Cirrus Logic EDB9302" | 19 | bool "Support Cirrus Logic EDB9302" |
14 | help | 20 | help |
15 | Say 'Y' here if you want your kernel to support the Cirrus | 21 | Say 'Y' here if you want your kernel to support the Cirrus |
16 | Logic EDB9302 Evaluation Board. | 22 | Logic EDB9302 Evaluation Board. |
17 | 23 | ||
24 | config MACH_EDB9302A | ||
25 | bool "Support Cirrus Logic EDB9302A" | ||
26 | help | ||
27 | Say 'Y' here if you want your kernel to support the Cirrus | ||
28 | Logic EDB9302A Evaluation Board. | ||
29 | |||
18 | config MACH_EDB9312 | 30 | config MACH_EDB9312 |
19 | bool "Support Cirrus Logic EDB9312" | 31 | bool "Support Cirrus Logic EDB9312" |
20 | help | 32 | help |
diff --git a/arch/arm/mach-ep93xx/Makefile b/arch/arm/mach-ep93xx/Makefile index c2eb18b530c2..b06641dd450d 100644 --- a/arch/arm/mach-ep93xx/Makefile +++ b/arch/arm/mach-ep93xx/Makefile | |||
@@ -6,7 +6,9 @@ obj-m := | |||
6 | obj-n := | 6 | obj-n := |
7 | obj- := | 7 | obj- := |
8 | 8 | ||
9 | obj-$(CONFIG_MACH_ADSSPHERE) += adssphere.o | ||
9 | obj-$(CONFIG_MACH_EDB9302) += edb9302.o | 10 | obj-$(CONFIG_MACH_EDB9302) += edb9302.o |
11 | obj-$(CONFIG_MACH_EDB9302A) += edb9302a.o | ||
10 | obj-$(CONFIG_MACH_EDB9312) += edb9312.o | 12 | obj-$(CONFIG_MACH_EDB9312) += edb9312.o |
11 | obj-$(CONFIG_MACH_EDB9315) += edb9315.o | 13 | obj-$(CONFIG_MACH_EDB9315) += edb9315.o |
12 | obj-$(CONFIG_MACH_EDB9315A) += edb9315a.o | 14 | obj-$(CONFIG_MACH_EDB9315A) += edb9315a.o |
diff --git a/arch/arm/mach-ep93xx/adssphere.c b/arch/arm/mach-ep93xx/adssphere.c new file mode 100644 index 000000000000..ac5d5818eb7b --- /dev/null +++ b/arch/arm/mach-ep93xx/adssphere.c | |||
@@ -0,0 +1,91 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ep93xx/adssphere.c | ||
3 | * ADS Sphere support. | ||
4 | * | ||
5 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or (at | ||
10 | * your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/mm.h> | ||
16 | #include <linux/sched.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/ioport.h> | ||
19 | #include <linux/mtd/physmap.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | #include <asm/io.h> | ||
22 | #include <asm/hardware.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | |||
26 | static struct physmap_flash_data adssphere_flash_data = { | ||
27 | .width = 4, | ||
28 | }; | ||
29 | |||
30 | static struct resource adssphere_flash_resource = { | ||
31 | .start = 0x60000000, | ||
32 | .end = 0x61ffffff, | ||
33 | .flags = IORESOURCE_MEM, | ||
34 | }; | ||
35 | |||
36 | static struct platform_device adssphere_flash = { | ||
37 | .name = "physmap-flash", | ||
38 | .id = 0, | ||
39 | .dev = { | ||
40 | .platform_data = &adssphere_flash_data, | ||
41 | }, | ||
42 | .num_resources = 1, | ||
43 | .resource = &adssphere_flash_resource, | ||
44 | }; | ||
45 | |||
46 | static struct ep93xx_eth_data adssphere_eth_data = { | ||
47 | .phy_id = 1, | ||
48 | }; | ||
49 | |||
50 | static struct resource adssphere_eth_resource[] = { | ||
51 | { | ||
52 | .start = EP93XX_ETHERNET_PHYS_BASE, | ||
53 | .end = EP93XX_ETHERNET_PHYS_BASE + 0xffff, | ||
54 | .flags = IORESOURCE_MEM, | ||
55 | }, { | ||
56 | .start = IRQ_EP93XX_ETHERNET, | ||
57 | .end = IRQ_EP93XX_ETHERNET, | ||
58 | .flags = IORESOURCE_IRQ, | ||
59 | } | ||
60 | }; | ||
61 | |||
62 | static struct platform_device adssphere_eth_device = { | ||
63 | .name = "ep93xx-eth", | ||
64 | .id = -1, | ||
65 | .dev = { | ||
66 | .platform_data = &adssphere_eth_data, | ||
67 | }, | ||
68 | .num_resources = 2, | ||
69 | .resource = adssphere_eth_resource, | ||
70 | }; | ||
71 | |||
72 | static void __init adssphere_init_machine(void) | ||
73 | { | ||
74 | ep93xx_init_devices(); | ||
75 | platform_device_register(&adssphere_flash); | ||
76 | |||
77 | memcpy(adssphere_eth_data.dev_addr, | ||
78 | (void *)(EP93XX_ETHERNET_BASE + 0x50), 6); | ||
79 | platform_device_register(&adssphere_eth_device); | ||
80 | } | ||
81 | |||
82 | MACHINE_START(ADSSPHERE, "ADS Sphere board") | ||
83 | /* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */ | ||
84 | .phys_io = EP93XX_APB_PHYS_BASE, | ||
85 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | ||
86 | .boot_params = 0x00000100, | ||
87 | .map_io = ep93xx_map_io, | ||
88 | .init_irq = ep93xx_init_irq, | ||
89 | .timer = &ep93xx_timer, | ||
90 | .init_machine = adssphere_init_machine, | ||
91 | MACHINE_END | ||
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index e3fd1ab6adcc..6b26346191c0 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -245,7 +245,7 @@ EXPORT_SYMBOL(gpio_line_set); | |||
245 | * EP93xx IRQ handling | 245 | * EP93xx IRQ handling |
246 | *************************************************************************/ | 246 | *************************************************************************/ |
247 | static void ep93xx_gpio_ab_irq_handler(unsigned int irq, | 247 | static void ep93xx_gpio_ab_irq_handler(unsigned int irq, |
248 | struct irqdesc *desc) | 248 | struct irq_desc *desc) |
249 | { | 249 | { |
250 | unsigned char status; | 250 | unsigned char status; |
251 | int i; | 251 | int i; |
@@ -335,7 +335,7 @@ static int ep93xx_gpio_ab_irq_type(unsigned int irq, unsigned int type) | |||
335 | return 0; | 335 | return 0; |
336 | } | 336 | } |
337 | 337 | ||
338 | static struct irqchip ep93xx_gpio_ab_irq_chip = { | 338 | static struct irq_chip ep93xx_gpio_ab_irq_chip = { |
339 | .ack = ep93xx_gpio_ab_irq_mask_ack, | 339 | .ack = ep93xx_gpio_ab_irq_mask_ack, |
340 | .mask = ep93xx_gpio_ab_irq_mask, | 340 | .mask = ep93xx_gpio_ab_irq_mask, |
341 | .unmask = ep93xx_gpio_ab_irq_unmask, | 341 | .unmask = ep93xx_gpio_ab_irq_unmask, |
@@ -352,7 +352,7 @@ void __init ep93xx_init_irq(void) | |||
352 | 352 | ||
353 | for (irq = IRQ_EP93XX_GPIO(0) ; irq <= IRQ_EP93XX_GPIO(15); irq++) { | 353 | for (irq = IRQ_EP93XX_GPIO(0) ; irq <= IRQ_EP93XX_GPIO(15); irq++) { |
354 | set_irq_chip(irq, &ep93xx_gpio_ab_irq_chip); | 354 | set_irq_chip(irq, &ep93xx_gpio_ab_irq_chip); |
355 | set_irq_handler(irq, do_level_IRQ); | 355 | set_irq_handler(irq, handle_level_irq); |
356 | set_irq_flags(irq, IRQF_VALID); | 356 | set_irq_flags(irq, IRQF_VALID); |
357 | } | 357 | } |
358 | set_irq_chained_handler(IRQ_EP93XX_GPIO_AB, ep93xx_gpio_ab_irq_handler); | 358 | set_irq_chained_handler(IRQ_EP93XX_GPIO_AB, ep93xx_gpio_ab_irq_handler); |
@@ -477,4 +477,8 @@ void __init ep93xx_init_devices(void) | |||
477 | 477 | ||
478 | platform_device_register(&ep93xx_rtc_device); | 478 | platform_device_register(&ep93xx_rtc_device); |
479 | platform_device_register(&ep93xx_ohci_device); | 479 | platform_device_register(&ep93xx_ohci_device); |
480 | |||
481 | #ifdef CONFIG_CRUNCH | ||
482 | elf_hwcap |= HWCAP_CRUNCH; | ||
483 | #endif | ||
480 | } | 484 | } |
diff --git a/arch/arm/mach-ep93xx/edb9302a.c b/arch/arm/mach-ep93xx/edb9302a.c new file mode 100644 index 000000000000..62e064bab1d2 --- /dev/null +++ b/arch/arm/mach-ep93xx/edb9302a.c | |||
@@ -0,0 +1,91 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ep93xx/edb9302a.c | ||
3 | * Cirrus Logic EDB9302A support. | ||
4 | * | ||
5 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or (at | ||
10 | * your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/mm.h> | ||
16 | #include <linux/sched.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/ioport.h> | ||
19 | #include <linux/mtd/physmap.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | #include <asm/io.h> | ||
22 | #include <asm/hardware.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | |||
26 | static struct physmap_flash_data edb9302a_flash_data = { | ||
27 | .width = 2, | ||
28 | }; | ||
29 | |||
30 | static struct resource edb9302a_flash_resource = { | ||
31 | .start = 0x60000000, | ||
32 | .end = 0x60ffffff, | ||
33 | .flags = IORESOURCE_MEM, | ||
34 | }; | ||
35 | |||
36 | static struct platform_device edb9302a_flash = { | ||
37 | .name = "physmap-flash", | ||
38 | .id = 0, | ||
39 | .dev = { | ||
40 | .platform_data = &edb9302a_flash_data, | ||
41 | }, | ||
42 | .num_resources = 1, | ||
43 | .resource = &edb9302a_flash_resource, | ||
44 | }; | ||
45 | |||
46 | static struct ep93xx_eth_data edb9302a_eth_data = { | ||
47 | .phy_id = 1, | ||
48 | }; | ||
49 | |||
50 | static struct resource edb9302a_eth_resource[] = { | ||
51 | { | ||
52 | .start = EP93XX_ETHERNET_PHYS_BASE, | ||
53 | .end = EP93XX_ETHERNET_PHYS_BASE + 0xffff, | ||
54 | .flags = IORESOURCE_MEM, | ||
55 | }, { | ||
56 | .start = IRQ_EP93XX_ETHERNET, | ||
57 | .end = IRQ_EP93XX_ETHERNET, | ||
58 | .flags = IORESOURCE_IRQ, | ||
59 | } | ||
60 | }; | ||
61 | |||
62 | static struct platform_device edb9302a_eth_device = { | ||
63 | .name = "ep93xx-eth", | ||
64 | .id = -1, | ||
65 | .dev = { | ||
66 | .platform_data = &edb9302a_eth_data, | ||
67 | }, | ||
68 | .num_resources = 2, | ||
69 | .resource = edb9302a_eth_resource, | ||
70 | }; | ||
71 | |||
72 | static void __init edb9302a_init_machine(void) | ||
73 | { | ||
74 | ep93xx_init_devices(); | ||
75 | platform_device_register(&edb9302a_flash); | ||
76 | |||
77 | memcpy(edb9302a_eth_data.dev_addr, | ||
78 | (void *)(EP93XX_ETHERNET_BASE + 0x50), 6); | ||
79 | platform_device_register(&edb9302a_eth_device); | ||
80 | } | ||
81 | |||
82 | MACHINE_START(EDB9302A, "Cirrus Logic EDB9302A Evaluation Board") | ||
83 | /* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */ | ||
84 | .phys_io = EP93XX_APB_PHYS_BASE, | ||
85 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | ||
86 | .boot_params = 0xc0000100, | ||
87 | .map_io = ep93xx_map_io, | ||
88 | .init_irq = ep93xx_init_irq, | ||
89 | .timer = &ep93xx_timer, | ||
90 | .init_machine = edb9302a_init_machine, | ||
91 | MACHINE_END | ||
diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index af900f4755a4..ef29fc34ce65 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c | |||
@@ -78,7 +78,7 @@ static void fb_unmask_irq(unsigned int irq) | |||
78 | *CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)]; | 78 | *CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)]; |
79 | } | 79 | } |
80 | 80 | ||
81 | static struct irqchip fb_chip = { | 81 | static struct irq_chip fb_chip = { |
82 | .ack = fb_mask_irq, | 82 | .ack = fb_mask_irq, |
83 | .mask = fb_mask_irq, | 83 | .mask = fb_mask_irq, |
84 | .unmask = fb_unmask_irq, | 84 | .unmask = fb_unmask_irq, |
@@ -96,7 +96,7 @@ static void __init __fb_init_irq(void) | |||
96 | 96 | ||
97 | for (irq = _DC21285_IRQ(0); irq < _DC21285_IRQ(20); irq++) { | 97 | for (irq = _DC21285_IRQ(0); irq < _DC21285_IRQ(20); irq++) { |
98 | set_irq_chip(irq, &fb_chip); | 98 | set_irq_chip(irq, &fb_chip); |
99 | set_irq_handler(irq, do_level_IRQ); | 99 | set_irq_handler(irq, handle_level_irq); |
100 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 100 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
101 | } | 101 | } |
102 | } | 102 | } |
diff --git a/arch/arm/mach-footbridge/isa-irq.c b/arch/arm/mach-footbridge/isa-irq.c index 888dedd501b9..79443ffc8916 100644 --- a/arch/arm/mach-footbridge/isa-irq.c +++ b/arch/arm/mach-footbridge/isa-irq.c | |||
@@ -49,7 +49,7 @@ static void isa_unmask_pic_lo_irq(unsigned int irq) | |||
49 | outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO); | 49 | outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO); |
50 | } | 50 | } |
51 | 51 | ||
52 | static struct irqchip isa_lo_chip = { | 52 | static struct irq_chip isa_lo_chip = { |
53 | .ack = isa_ack_pic_lo_irq, | 53 | .ack = isa_ack_pic_lo_irq, |
54 | .mask = isa_mask_pic_lo_irq, | 54 | .mask = isa_mask_pic_lo_irq, |
55 | .unmask = isa_unmask_pic_lo_irq, | 55 | .unmask = isa_unmask_pic_lo_irq, |
@@ -78,14 +78,14 @@ static void isa_unmask_pic_hi_irq(unsigned int irq) | |||
78 | outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI); | 78 | outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI); |
79 | } | 79 | } |
80 | 80 | ||
81 | static struct irqchip isa_hi_chip = { | 81 | static struct irq_chip isa_hi_chip = { |
82 | .ack = isa_ack_pic_hi_irq, | 82 | .ack = isa_ack_pic_hi_irq, |
83 | .mask = isa_mask_pic_hi_irq, | 83 | .mask = isa_mask_pic_hi_irq, |
84 | .unmask = isa_unmask_pic_hi_irq, | 84 | .unmask = isa_unmask_pic_hi_irq, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static void | 87 | static void |
88 | isa_irq_handler(unsigned int irq, struct irqdesc *desc) | 88 | isa_irq_handler(unsigned int irq, struct irq_desc *desc) |
89 | { | 89 | { |
90 | unsigned int isa_irq = *(unsigned char *)PCIIACK_BASE; | 90 | unsigned int isa_irq = *(unsigned char *)PCIIACK_BASE; |
91 | 91 | ||
@@ -150,13 +150,13 @@ void __init isa_init_irq(unsigned int host_irq) | |||
150 | if (host_irq != (unsigned int)-1) { | 150 | if (host_irq != (unsigned int)-1) { |
151 | for (irq = _ISA_IRQ(0); irq < _ISA_IRQ(8); irq++) { | 151 | for (irq = _ISA_IRQ(0); irq < _ISA_IRQ(8); irq++) { |
152 | set_irq_chip(irq, &isa_lo_chip); | 152 | set_irq_chip(irq, &isa_lo_chip); |
153 | set_irq_handler(irq, do_level_IRQ); | 153 | set_irq_handler(irq, handle_level_irq); |
154 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 154 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
155 | } | 155 | } |
156 | 156 | ||
157 | for (irq = _ISA_IRQ(8); irq < _ISA_IRQ(16); irq++) { | 157 | for (irq = _ISA_IRQ(8); irq < _ISA_IRQ(16); irq++) { |
158 | set_irq_chip(irq, &isa_hi_chip); | 158 | set_irq_chip(irq, &isa_hi_chip); |
159 | set_irq_handler(irq, do_level_IRQ); | 159 | set_irq_handler(irq, handle_level_irq); |
160 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 160 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
161 | } | 161 | } |
162 | 162 | ||
diff --git a/arch/arm/mach-h720x/common.c b/arch/arm/mach-h720x/common.c index 4719229a1a78..7f31816896ad 100644 --- a/arch/arm/mach-h720x/common.c +++ b/arch/arm/mach-h720x/common.c | |||
@@ -101,7 +101,7 @@ static void inline unmask_gpio_irq(u32 irq) | |||
101 | 101 | ||
102 | static void | 102 | static void |
103 | h720x_gpio_handler(unsigned int mask, unsigned int irq, | 103 | h720x_gpio_handler(unsigned int mask, unsigned int irq, |
104 | struct irqdesc *desc) | 104 | struct irq_desc *desc) |
105 | { | 105 | { |
106 | IRQDBG("%s irq: %d\n",__FUNCTION__,irq); | 106 | IRQDBG("%s irq: %d\n",__FUNCTION__,irq); |
107 | desc = irq_desc + irq; | 107 | desc = irq_desc + irq; |
@@ -117,7 +117,7 @@ h720x_gpio_handler(unsigned int mask, unsigned int irq, | |||
117 | } | 117 | } |
118 | 118 | ||
119 | static void | 119 | static void |
120 | h720x_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 120 | h720x_gpioa_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
121 | { | 121 | { |
122 | unsigned int mask, irq; | 122 | unsigned int mask, irq; |
123 | 123 | ||
@@ -128,7 +128,7 @@ h720x_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
128 | } | 128 | } |
129 | 129 | ||
130 | static void | 130 | static void |
131 | h720x_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 131 | h720x_gpiob_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
132 | { | 132 | { |
133 | unsigned int mask, irq; | 133 | unsigned int mask, irq; |
134 | mask = CPU_REG(GPIO_B_VIRT,GPIO_STAT); | 134 | mask = CPU_REG(GPIO_B_VIRT,GPIO_STAT); |
@@ -138,7 +138,7 @@ h720x_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
138 | } | 138 | } |
139 | 139 | ||
140 | static void | 140 | static void |
141 | h720x_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 141 | h720x_gpioc_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
142 | { | 142 | { |
143 | unsigned int mask, irq; | 143 | unsigned int mask, irq; |
144 | 144 | ||
@@ -149,7 +149,7 @@ h720x_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
149 | } | 149 | } |
150 | 150 | ||
151 | static void | 151 | static void |
152 | h720x_gpiod_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 152 | h720x_gpiod_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
153 | { | 153 | { |
154 | unsigned int mask, irq; | 154 | unsigned int mask, irq; |
155 | 155 | ||
@@ -161,7 +161,7 @@ h720x_gpiod_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
161 | 161 | ||
162 | #ifdef CONFIG_CPU_H7202 | 162 | #ifdef CONFIG_CPU_H7202 |
163 | static void | 163 | static void |
164 | h720x_gpioe_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 164 | h720x_gpioe_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
165 | { | 165 | { |
166 | unsigned int mask, irq; | 166 | unsigned int mask, irq; |
167 | 167 | ||
@@ -172,13 +172,13 @@ h720x_gpioe_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
172 | } | 172 | } |
173 | #endif | 173 | #endif |
174 | 174 | ||
175 | static struct irqchip h720x_global_chip = { | 175 | static struct irq_chip h720x_global_chip = { |
176 | .ack = mask_global_irq, | 176 | .ack = mask_global_irq, |
177 | .mask = mask_global_irq, | 177 | .mask = mask_global_irq, |
178 | .unmask = unmask_global_irq, | 178 | .unmask = unmask_global_irq, |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static struct irqchip h720x_gpio_chip = { | 181 | static struct irq_chip h720x_gpio_chip = { |
182 | .ack = ack_gpio_irq, | 182 | .ack = ack_gpio_irq, |
183 | .mask = mask_gpio_irq, | 183 | .mask = mask_gpio_irq, |
184 | .unmask = unmask_gpio_irq, | 184 | .unmask = unmask_gpio_irq, |
@@ -203,14 +203,14 @@ void __init h720x_init_irq (void) | |||
203 | /* Initialize global IRQ's, fast path */ | 203 | /* Initialize global IRQ's, fast path */ |
204 | for (irq = 0; irq < NR_GLBL_IRQS; irq++) { | 204 | for (irq = 0; irq < NR_GLBL_IRQS; irq++) { |
205 | set_irq_chip(irq, &h720x_global_chip); | 205 | set_irq_chip(irq, &h720x_global_chip); |
206 | set_irq_handler(irq, do_level_IRQ); | 206 | set_irq_handler(irq, handle_level_irq); |
207 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 207 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
208 | } | 208 | } |
209 | 209 | ||
210 | /* Initialize multiplexed IRQ's, slow path */ | 210 | /* Initialize multiplexed IRQ's, slow path */ |
211 | for (irq = IRQ_CHAINED_GPIOA(0) ; irq <= IRQ_CHAINED_GPIOD(31); irq++) { | 211 | for (irq = IRQ_CHAINED_GPIOA(0) ; irq <= IRQ_CHAINED_GPIOD(31); irq++) { |
212 | set_irq_chip(irq, &h720x_gpio_chip); | 212 | set_irq_chip(irq, &h720x_gpio_chip); |
213 | set_irq_handler(irq, do_edge_IRQ); | 213 | set_irq_handler(irq, handle_edge_irq); |
214 | set_irq_flags(irq, IRQF_VALID ); | 214 | set_irq_flags(irq, IRQF_VALID ); |
215 | } | 215 | } |
216 | set_irq_chained_handler(IRQ_GPIOA, h720x_gpioa_demux_handler); | 216 | set_irq_chained_handler(IRQ_GPIOA, h720x_gpioa_demux_handler); |
@@ -221,7 +221,7 @@ void __init h720x_init_irq (void) | |||
221 | #ifdef CONFIG_CPU_H7202 | 221 | #ifdef CONFIG_CPU_H7202 |
222 | for (irq = IRQ_CHAINED_GPIOE(0) ; irq <= IRQ_CHAINED_GPIOE(31); irq++) { | 222 | for (irq = IRQ_CHAINED_GPIOE(0) ; irq <= IRQ_CHAINED_GPIOE(31); irq++) { |
223 | set_irq_chip(irq, &h720x_gpio_chip); | 223 | set_irq_chip(irq, &h720x_gpio_chip); |
224 | set_irq_handler(irq, do_edge_IRQ); | 224 | set_irq_handler(irq, handle_edge_irq); |
225 | set_irq_flags(irq, IRQF_VALID ); | 225 | set_irq_flags(irq, IRQF_VALID ); |
226 | } | 226 | } |
227 | set_irq_chained_handler(IRQ_GPIOE, h720x_gpioe_demux_handler); | 227 | set_irq_chained_handler(IRQ_GPIOE, h720x_gpioe_demux_handler); |
diff --git a/arch/arm/mach-h720x/cpu-h7202.c b/arch/arm/mach-h720x/cpu-h7202.c index 06fecaefd8dc..703870f30adf 100644 --- a/arch/arm/mach-h720x/cpu-h7202.c +++ b/arch/arm/mach-h720x/cpu-h7202.c | |||
@@ -106,7 +106,7 @@ static struct platform_device *devices[] __initdata = { | |||
106 | * we have to handle all timer interrupts in one place. | 106 | * we have to handle all timer interrupts in one place. |
107 | */ | 107 | */ |
108 | static void | 108 | static void |
109 | h7202_timerx_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 109 | h7202_timerx_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
110 | { | 110 | { |
111 | unsigned int mask, irq; | 111 | unsigned int mask, irq; |
112 | 112 | ||
@@ -162,7 +162,7 @@ static void inline unmask_timerx_irq (u32 irq) | |||
162 | CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit; | 162 | CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit; |
163 | } | 163 | } |
164 | 164 | ||
165 | static struct irqchip h7202_timerx_chip = { | 165 | static struct irq_chip h7202_timerx_chip = { |
166 | .ack = mask_timerx_irq, | 166 | .ack = mask_timerx_irq, |
167 | .mask = mask_timerx_irq, | 167 | .mask = mask_timerx_irq, |
168 | .unmask = unmask_timerx_irq, | 168 | .unmask = unmask_timerx_irq, |
@@ -202,7 +202,7 @@ void __init h7202_init_irq (void) | |||
202 | irq < IRQ_CHAINED_TIMERX(NR_TIMERX_IRQS); irq++) { | 202 | irq < IRQ_CHAINED_TIMERX(NR_TIMERX_IRQS); irq++) { |
203 | mask_timerx_irq(irq); | 203 | mask_timerx_irq(irq); |
204 | set_irq_chip(irq, &h7202_timerx_chip); | 204 | set_irq_chip(irq, &h7202_timerx_chip); |
205 | set_irq_handler(irq, do_edge_IRQ); | 205 | set_irq_handler(irq, handle_edge_irq); |
206 | set_irq_flags(irq, IRQF_VALID ); | 206 | set_irq_flags(irq, IRQF_VALID ); |
207 | } | 207 | } |
208 | set_irq_chained_handler(IRQ_TIMERX, h7202_timerx_demux_handler); | 208 | set_irq_chained_handler(IRQ_TIMERX, h7202_timerx_demux_handler); |
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 0b27d79f2efd..02272aa36e90 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile | |||
@@ -9,6 +9,8 @@ | |||
9 | 9 | ||
10 | obj-y += irq.o time.o dma.o generic.o | 10 | obj-y += irq.o time.o dma.o generic.o |
11 | 11 | ||
12 | obj-$(CONFIG_CPU_FREQ_IMX) += cpufreq.o | ||
13 | |||
12 | # Specific board support | 14 | # Specific board support |
13 | obj-$(CONFIG_ARCH_MX1ADS) += mx1ads.o | 15 | obj-$(CONFIG_ARCH_MX1ADS) += mx1ads.o |
14 | 16 | ||
diff --git a/arch/arm/mach-imx/cpufreq.c b/arch/arm/mach-imx/cpufreq.c new file mode 100644 index 000000000000..ac5f99895660 --- /dev/null +++ b/arch/arm/mach-imx/cpufreq.c | |||
@@ -0,0 +1,287 @@ | |||
1 | /* | ||
2 | * cpu.c: clock scaling for the iMX | ||
3 | * | ||
4 | * Copyright (C) 2000 2001, The Delft University of Technology | ||
5 | * Copyright (c) 2004 Sascha Hauer <sascha@saschahauer.de> | ||
6 | * Copyright (C) 2006 Inky Lung <ilung@cwlinux.com> | ||
7 | * Copyright (C) 2006 Pavel Pisa, PiKRON <ppisa@pikron.com> | ||
8 | * | ||
9 | * Based on SA1100 version written by: | ||
10 | * - Johan Pouwelse (J.A.Pouwelse@its.tudelft.nl): initial version | ||
11 | * - Erik Mouw (J.A.K.Mouw@its.tudelft.nl): | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or modify | ||
14 | * it under the terms of the GNU General Public License as published by | ||
15 | * the Free Software Foundation; either version 2 of the License, or | ||
16 | * (at your option) any later version. | ||
17 | * | ||
18 | * This program is distributed in the hope that it will be useful, | ||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | * GNU General Public License for more details. | ||
22 | * | ||
23 | * You should have received a copy of the GNU General Public License | ||
24 | * along with this program; if not, write to the Free Software | ||
25 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
26 | * | ||
27 | */ | ||
28 | |||
29 | /*#define DEBUG*/ | ||
30 | |||
31 | #include <linux/kernel.h> | ||
32 | #include <linux/types.h> | ||
33 | #include <linux/init.h> | ||
34 | #include <linux/cpufreq.h> | ||
35 | #include <asm/system.h> | ||
36 | |||
37 | #include <asm/hardware.h> | ||
38 | |||
39 | #include "generic.h" | ||
40 | |||
41 | #ifndef __val2mfld | ||
42 | #define __val2mfld(mask,val) (((mask)&~((mask)<<1))*(val)&(mask)) | ||
43 | #endif | ||
44 | #ifndef __mfld2val | ||
45 | #define __mfld2val(mask,val) (((val)&(mask))/((mask)&~((mask)<<1))) | ||
46 | #endif | ||
47 | |||
48 | #define CR_920T_CLOCK_MODE 0xC0000000 | ||
49 | #define CR_920T_FASTBUS_MODE 0x00000000 | ||
50 | #define CR_920T_ASYNC_MODE 0xC0000000 | ||
51 | |||
52 | static u32 mpctl0_at_boot; | ||
53 | |||
54 | static void imx_set_async_mode(void) | ||
55 | { | ||
56 | adjust_cr(CR_920T_CLOCK_MODE, CR_920T_ASYNC_MODE); | ||
57 | } | ||
58 | |||
59 | static void imx_set_fastbus_mode(void) | ||
60 | { | ||
61 | adjust_cr(CR_920T_CLOCK_MODE, CR_920T_FASTBUS_MODE); | ||
62 | } | ||
63 | |||
64 | static void imx_set_mpctl0(u32 mpctl0) | ||
65 | { | ||
66 | unsigned long flags; | ||
67 | |||
68 | if (mpctl0 == 0) { | ||
69 | local_irq_save(flags); | ||
70 | CSCR &= ~CSCR_MPEN; | ||
71 | local_irq_restore(flags); | ||
72 | return; | ||
73 | } | ||
74 | |||
75 | local_irq_save(flags); | ||
76 | MPCTL0 = mpctl0; | ||
77 | CSCR |= CSCR_MPEN; | ||
78 | local_irq_restore(flags); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * imx_compute_mpctl - compute new PLL parameters | ||
83 | * @new_mpctl: pointer to location assigned by new PLL control register value | ||
84 | * @cur_mpctl: current PLL control register parameters | ||
85 | * @freq: required frequency in Hz | ||
86 | * @relation: is one of %CPUFREQ_RELATION_L (supremum) | ||
87 | * and %CPUFREQ_RELATION_H (infimum) | ||
88 | */ | ||
89 | long imx_compute_mpctl(u32 *new_mpctl, u32 cur_mpctl, unsigned long freq, int relation) | ||
90 | { | ||
91 | u32 f_ref = (CSCR & CSCR_SYSTEM_SEL) ? 16000000 : (CLK32 * 512); | ||
92 | u32 mfi; | ||
93 | u32 mfn; | ||
94 | u32 mfd; | ||
95 | u32 pd; | ||
96 | unsigned long long ll; | ||
97 | long l; | ||
98 | long quot; | ||
99 | |||
100 | /* Fdppl=2*Fref*(MFI+MFN/(MFD+1))/(PD+1) */ | ||
101 | /* PD=<0,15>, MFD=<1,1023>, MFI=<5,15> MFN=<0,1022> */ | ||
102 | |||
103 | if (cur_mpctl) { | ||
104 | mfd = ((cur_mpctl >> 16) & 0x3ff) + 1; | ||
105 | pd = ((cur_mpctl >> 26) & 0xf) + 1; | ||
106 | } else { | ||
107 | pd=2; mfd=313; | ||
108 | } | ||
109 | |||
110 | /* pd=2; mfd=313; mfi=8; mfn=183; */ | ||
111 | /* (MFI+MFN/(MFD)) = Fdppl / (2*Fref) * (PD); */ | ||
112 | |||
113 | quot = (f_ref + (1 << 9)) >> 10; | ||
114 | l = (freq * pd + quot) / (2 * quot); | ||
115 | mfi = l >> 10; | ||
116 | mfn = ((l & ((1 << 10) - 1)) * mfd + (1 << 9)) >> 10; | ||
117 | |||
118 | mfd -= 1; | ||
119 | pd -= 1; | ||
120 | |||
121 | *new_mpctl = ((mfi & 0xf) << 10) | (mfn & 0x3ff) | ((mfd & 0x3ff) << 16) | ||
122 | | ((pd & 0xf) << 26); | ||
123 | |||
124 | ll = 2 * (unsigned long long)f_ref * ( (mfi<<16) + (mfn<<16) / (mfd+1) ); | ||
125 | quot = (pd+1) * (1<<16); | ||
126 | ll += quot / 2; | ||
127 | do_div(ll, quot); | ||
128 | freq = ll; | ||
129 | |||
130 | pr_debug(KERN_DEBUG "imx: new PLL parameters pd=%d mfd=%d mfi=%d mfn=%d, freq=%ld\n", | ||
131 | pd, mfd, mfi, mfn, freq); | ||
132 | |||
133 | return freq; | ||
134 | } | ||
135 | |||
136 | |||
137 | static int imx_verify_speed(struct cpufreq_policy *policy) | ||
138 | { | ||
139 | if (policy->cpu != 0) | ||
140 | return -EINVAL; | ||
141 | |||
142 | cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, policy->cpuinfo.max_freq); | ||
143 | |||
144 | return 0; | ||
145 | } | ||
146 | |||
147 | static unsigned int imx_get_speed(unsigned int cpu) | ||
148 | { | ||
149 | unsigned int freq; | ||
150 | unsigned int cr; | ||
151 | unsigned int cscr; | ||
152 | unsigned int bclk_div; | ||
153 | |||
154 | if (cpu) | ||
155 | return 0; | ||
156 | |||
157 | cscr = CSCR; | ||
158 | bclk_div = __mfld2val(CSCR_BCLK_DIV, cscr) + 1; | ||
159 | cr = get_cr(); | ||
160 | |||
161 | if((cr & CR_920T_CLOCK_MODE) == CR_920T_FASTBUS_MODE) { | ||
162 | freq = imx_get_system_clk(); | ||
163 | freq = (freq + bclk_div/2) / bclk_div; | ||
164 | } else { | ||
165 | freq = imx_get_mcu_clk(); | ||
166 | if (cscr & CSCR_MPU_PRESC) | ||
167 | freq /= 2; | ||
168 | } | ||
169 | |||
170 | freq = (freq + 500) / 1000; | ||
171 | |||
172 | return freq; | ||
173 | } | ||
174 | |||
175 | static int imx_set_target(struct cpufreq_policy *policy, | ||
176 | unsigned int target_freq, | ||
177 | unsigned int relation) | ||
178 | { | ||
179 | struct cpufreq_freqs freqs; | ||
180 | u32 mpctl0 = 0; | ||
181 | u32 cscr; | ||
182 | unsigned long flags; | ||
183 | long freq; | ||
184 | long sysclk; | ||
185 | unsigned int bclk_div = 1; | ||
186 | |||
187 | freq = target_freq * 1000; | ||
188 | |||
189 | pr_debug(KERN_DEBUG "imx: requested frequency %ld Hz, mpctl0 at boot 0x%08x\n", | ||
190 | freq, mpctl0_at_boot); | ||
191 | |||
192 | sysclk = imx_get_system_clk(); | ||
193 | |||
194 | if (freq > sysclk + 1000000) { | ||
195 | freq = imx_compute_mpctl(&mpctl0, mpctl0_at_boot, freq, relation); | ||
196 | if (freq < 0) { | ||
197 | printk(KERN_WARNING "imx: target frequency %ld Hz cannot be set\n", freq); | ||
198 | return -EINVAL; | ||
199 | } | ||
200 | } else { | ||
201 | if(freq + 1000 < sysclk) { | ||
202 | if (relation == CPUFREQ_RELATION_L) | ||
203 | bclk_div = (sysclk - 1000) / freq; | ||
204 | else | ||
205 | bclk_div = (sysclk + freq + 1000) / freq; | ||
206 | |||
207 | if(bclk_div > 16) | ||
208 | bclk_div = 16; | ||
209 | } | ||
210 | freq = (sysclk + bclk_div / 2) / bclk_div; | ||
211 | } | ||
212 | |||
213 | freqs.old = imx_get_speed(0); | ||
214 | freqs.new = (freq + 500) / 1000; | ||
215 | freqs.cpu = 0; | ||
216 | freqs.flags = 0; | ||
217 | |||
218 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | ||
219 | |||
220 | local_irq_save(flags); | ||
221 | |||
222 | imx_set_fastbus_mode(); | ||
223 | |||
224 | imx_set_mpctl0(mpctl0); | ||
225 | |||
226 | cscr = CSCR; | ||
227 | cscr &= ~CSCR_BCLK_DIV; | ||
228 | cscr |= __val2mfld(CSCR_BCLK_DIV, bclk_div - 1); | ||
229 | CSCR = cscr; | ||
230 | |||
231 | if(mpctl0) { | ||
232 | CSCR |= CSCR_MPLL_RESTART; | ||
233 | |||
234 | /* Wait until MPLL is stablized */ | ||
235 | while( CSCR & CSCR_MPLL_RESTART ); | ||
236 | |||
237 | imx_set_async_mode(); | ||
238 | } | ||
239 | |||
240 | local_irq_restore(flags); | ||
241 | |||
242 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | ||
243 | |||
244 | pr_debug(KERN_INFO "imx: set frequency %ld Hz, running from %s\n", | ||
245 | freq, mpctl0? "MPLL": "SPLL"); | ||
246 | |||
247 | return 0; | ||
248 | } | ||
249 | |||
250 | static int __init imx_cpufreq_driver_init(struct cpufreq_policy *policy) | ||
251 | { | ||
252 | printk(KERN_INFO "i.MX cpu freq change driver v1.0\n"); | ||
253 | |||
254 | if (policy->cpu != 0) | ||
255 | return -EINVAL; | ||
256 | |||
257 | policy->cur = policy->min = policy->max = imx_get_speed(0); | ||
258 | policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | ||
259 | policy->cpuinfo.min_freq = 8000; | ||
260 | policy->cpuinfo.max_freq = 200000; | ||
261 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; | ||
262 | return 0; | ||
263 | } | ||
264 | |||
265 | static struct cpufreq_driver imx_driver = { | ||
266 | .flags = CPUFREQ_STICKY, | ||
267 | .verify = imx_verify_speed, | ||
268 | .target = imx_set_target, | ||
269 | .get = imx_get_speed, | ||
270 | .init = imx_cpufreq_driver_init, | ||
271 | .name = "imx", | ||
272 | }; | ||
273 | |||
274 | static int __init imx_cpufreq_init(void) | ||
275 | { | ||
276 | |||
277 | mpctl0_at_boot = 0; | ||
278 | |||
279 | if((CSCR & CSCR_MPEN) && | ||
280 | ((get_cr() & CR_920T_CLOCK_MODE) != CR_920T_FASTBUS_MODE)) | ||
281 | mpctl0_at_boot = MPCTL0; | ||
282 | |||
283 | return cpufreq_register_driver(&imx_driver); | ||
284 | } | ||
285 | |||
286 | arch_initcall(imx_cpufreq_init); | ||
287 | |||
diff --git a/arch/arm/mach-imx/generic.c b/arch/arm/mach-imx/generic.c index 12ea58a3b84f..b5aa49d00ca3 100644 --- a/arch/arm/mach-imx/generic.c +++ b/arch/arm/mach-imx/generic.c | |||
@@ -104,6 +104,9 @@ EXPORT_SYMBOL(imx_gpio_mode); | |||
104 | */ | 104 | */ |
105 | static unsigned int imx_decode_pll(unsigned int pll) | 105 | static unsigned int imx_decode_pll(unsigned int pll) |
106 | { | 106 | { |
107 | unsigned long long ll; | ||
108 | unsigned long quot; | ||
109 | |||
107 | u32 mfi = (pll >> 10) & 0xf; | 110 | u32 mfi = (pll >> 10) & 0xf; |
108 | u32 mfn = pll & 0x3ff; | 111 | u32 mfn = pll & 0x3ff; |
109 | u32 mfd = (pll >> 16) & 0x3ff; | 112 | u32 mfd = (pll >> 16) & 0x3ff; |
@@ -112,7 +115,11 @@ static unsigned int imx_decode_pll(unsigned int pll) | |||
112 | 115 | ||
113 | mfi = mfi <= 5 ? 5 : mfi; | 116 | mfi = mfi <= 5 ? 5 : mfi; |
114 | 117 | ||
115 | return (2 * (f_ref>>10) * ( (mfi<<10) + (mfn<<10) / (mfd+1) )) / (pd+1); | 118 | ll = 2 * (unsigned long long)f_ref * ( (mfi<<16) + (mfn<<16) / (mfd+1) ); |
119 | quot = (pd+1) * (1<<16); | ||
120 | ll += quot / 2; | ||
121 | do_div(ll, quot); | ||
122 | return (unsigned int) ll; | ||
116 | } | 123 | } |
117 | 124 | ||
118 | unsigned int imx_get_system_clk(void) | 125 | unsigned int imx_get_system_clk(void) |
diff --git a/arch/arm/mach-imx/irq.c b/arch/arm/mach-imx/irq.c index 368b13b058ab..0791b56caecc 100644 --- a/arch/arm/mach-imx/irq.c +++ b/arch/arm/mach-imx/irq.c | |||
@@ -146,7 +146,7 @@ imx_gpio_unmask_irq(unsigned int irq) | |||
146 | 146 | ||
147 | static void | 147 | static void |
148 | imx_gpio_handler(unsigned int mask, unsigned int irq, | 148 | imx_gpio_handler(unsigned int mask, unsigned int irq, |
149 | struct irqdesc *desc) | 149 | struct irq_desc *desc) |
150 | { | 150 | { |
151 | desc = irq_desc + irq; | 151 | desc = irq_desc + irq; |
152 | while (mask) { | 152 | while (mask) { |
@@ -161,7 +161,7 @@ imx_gpio_handler(unsigned int mask, unsigned int irq, | |||
161 | } | 161 | } |
162 | 162 | ||
163 | static void | 163 | static void |
164 | imx_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 164 | imx_gpioa_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
165 | { | 165 | { |
166 | unsigned int mask, irq; | 166 | unsigned int mask, irq; |
167 | 167 | ||
@@ -171,7 +171,7 @@ imx_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
171 | } | 171 | } |
172 | 172 | ||
173 | static void | 173 | static void |
174 | imx_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 174 | imx_gpiob_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
175 | { | 175 | { |
176 | unsigned int mask, irq; | 176 | unsigned int mask, irq; |
177 | 177 | ||
@@ -181,7 +181,7 @@ imx_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | static void | 183 | static void |
184 | imx_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 184 | imx_gpioc_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
185 | { | 185 | { |
186 | unsigned int mask, irq; | 186 | unsigned int mask, irq; |
187 | 187 | ||
@@ -191,7 +191,7 @@ imx_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | |||
191 | } | 191 | } |
192 | 192 | ||
193 | static void | 193 | static void |
194 | imx_gpiod_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 194 | imx_gpiod_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
195 | { | 195 | { |
196 | unsigned int mask, irq; | 196 | unsigned int mask, irq; |
197 | 197 | ||
@@ -230,13 +230,13 @@ imx_init_irq(void) | |||
230 | 230 | ||
231 | for (irq = 0; irq < IMX_IRQS; irq++) { | 231 | for (irq = 0; irq < IMX_IRQS; irq++) { |
232 | set_irq_chip(irq, &imx_internal_chip); | 232 | set_irq_chip(irq, &imx_internal_chip); |
233 | set_irq_handler(irq, do_level_IRQ); | 233 | set_irq_handler(irq, handle_level_irq); |
234 | set_irq_flags(irq, IRQF_VALID); | 234 | set_irq_flags(irq, IRQF_VALID); |
235 | } | 235 | } |
236 | 236 | ||
237 | for (irq = IRQ_GPIOA(0); irq < IRQ_GPIOD(32); irq++) { | 237 | for (irq = IRQ_GPIOA(0); irq < IRQ_GPIOD(32); irq++) { |
238 | set_irq_chip(irq, &imx_gpio_chip); | 238 | set_irq_chip(irq, &imx_gpio_chip); |
239 | set_irq_handler(irq, do_edge_IRQ); | 239 | set_irq_handler(irq, handle_edge_irq); |
240 | set_irq_flags(irq, IRQF_VALID); | 240 | set_irq_flags(irq, IRQF_VALID); |
241 | } | 241 | } |
242 | 242 | ||
diff --git a/arch/arm/mach-imx/time.c b/arch/arm/mach-imx/time.c index 8ae4a2c5066f..40039b2a90b3 100644 --- a/arch/arm/mach-imx/time.c +++ b/arch/arm/mach-imx/time.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <linux/time.h> | 16 | #include <linux/time.h> |
17 | #include <linux/clocksource.h> | ||
17 | 18 | ||
18 | #include <asm/hardware.h> | 19 | #include <asm/hardware.h> |
19 | #include <asm/io.h> | 20 | #include <asm/io.h> |
@@ -24,33 +25,7 @@ | |||
24 | /* Use timer 1 as system timer */ | 25 | /* Use timer 1 as system timer */ |
25 | #define TIMER_BASE IMX_TIM1_BASE | 26 | #define TIMER_BASE IMX_TIM1_BASE |
26 | 27 | ||
27 | /* | 28 | static unsigned long evt_diff; |
28 | * Returns number of us since last clock interrupt. Note that interrupts | ||
29 | * will have been disabled by do_gettimeoffset() | ||
30 | */ | ||
31 | static unsigned long imx_gettimeoffset(void) | ||
32 | { | ||
33 | unsigned long ticks; | ||
34 | |||
35 | /* | ||
36 | * Get the current number of ticks. Note that there is a race | ||
37 | * condition between us reading the timer and checking for | ||
38 | * an interrupt. We get around this by ensuring that the | ||
39 | * counter has not reloaded between our two reads. | ||
40 | */ | ||
41 | ticks = IMX_TCN(TIMER_BASE); | ||
42 | |||
43 | /* | ||
44 | * Interrupt pending? If so, we've reloaded once already. | ||
45 | */ | ||
46 | if (IMX_TSTAT(TIMER_BASE) & TSTAT_COMP) | ||
47 | ticks += LATCH; | ||
48 | |||
49 | /* | ||
50 | * Convert the ticks to usecs | ||
51 | */ | ||
52 | return (1000000 / CLK32) * ticks; | ||
53 | } | ||
54 | 29 | ||
55 | /* | 30 | /* |
56 | * IRQ handler for the timer | 31 | * IRQ handler for the timer |
@@ -58,14 +33,23 @@ static unsigned long imx_gettimeoffset(void) | |||
58 | static irqreturn_t | 33 | static irqreturn_t |
59 | imx_timer_interrupt(int irq, void *dev_id) | 34 | imx_timer_interrupt(int irq, void *dev_id) |
60 | { | 35 | { |
61 | write_seqlock(&xtime_lock); | 36 | uint32_t tstat; |
62 | 37 | ||
63 | /* clear the interrupt */ | 38 | /* clear the interrupt */ |
64 | if (IMX_TSTAT(TIMER_BASE)) | 39 | tstat = IMX_TSTAT(TIMER_BASE); |
65 | IMX_TSTAT(TIMER_BASE) = 0; | 40 | IMX_TSTAT(TIMER_BASE) = 0; |
41 | |||
42 | if (tstat & TSTAT_COMP) { | ||
43 | do { | ||
44 | |||
45 | write_seqlock(&xtime_lock); | ||
46 | timer_tick(); | ||
47 | write_sequnlock(&xtime_lock); | ||
48 | IMX_TCMP(TIMER_BASE) += evt_diff; | ||
66 | 49 | ||
67 | timer_tick(); | 50 | } while (unlikely((int32_t)(IMX_TCMP(TIMER_BASE) |
68 | write_sequnlock(&xtime_lock); | 51 | - IMX_TCN(TIMER_BASE)) < 0)); |
52 | } | ||
69 | 53 | ||
70 | return IRQ_HANDLED; | 54 | return IRQ_HANDLED; |
71 | } | 55 | } |
@@ -77,9 +61,9 @@ static struct irqaction imx_timer_irq = { | |||
77 | }; | 61 | }; |
78 | 62 | ||
79 | /* | 63 | /* |
80 | * Set up timer interrupt, and return the current time in seconds. | 64 | * Set up timer hardware into expected mode and state. |
81 | */ | 65 | */ |
82 | static void __init imx_timer_init(void) | 66 | static void __init imx_timer_hardware_init(void) |
83 | { | 67 | { |
84 | /* | 68 | /* |
85 | * Initialise to a known state (all timers off, and timing reset) | 69 | * Initialise to a known state (all timers off, and timing reset) |
@@ -87,7 +71,38 @@ static void __init imx_timer_init(void) | |||
87 | IMX_TCTL(TIMER_BASE) = 0; | 71 | IMX_TCTL(TIMER_BASE) = 0; |
88 | IMX_TPRER(TIMER_BASE) = 0; | 72 | IMX_TPRER(TIMER_BASE) = 0; |
89 | IMX_TCMP(TIMER_BASE) = LATCH - 1; | 73 | IMX_TCMP(TIMER_BASE) = LATCH - 1; |
90 | IMX_TCTL(TIMER_BASE) = TCTL_CLK_32 | TCTL_IRQEN | TCTL_TEN; | 74 | |
75 | IMX_TCTL(TIMER_BASE) = TCTL_FRR | TCTL_CLK_PCLK1 | TCTL_IRQEN | TCTL_TEN; | ||
76 | evt_diff = LATCH; | ||
77 | } | ||
78 | |||
79 | cycle_t imx_get_cycles(void) | ||
80 | { | ||
81 | return IMX_TCN(TIMER_BASE); | ||
82 | } | ||
83 | |||
84 | static struct clocksource clocksource_imx = { | ||
85 | .name = "imx_timer1", | ||
86 | .rating = 200, | ||
87 | .read = imx_get_cycles, | ||
88 | .mask = 0xFFFFFFFF, | ||
89 | .shift = 20, | ||
90 | .is_continuous = 1, | ||
91 | }; | ||
92 | |||
93 | static int __init imx_clocksource_init(void) | ||
94 | { | ||
95 | clocksource_imx.mult = | ||
96 | clocksource_hz2mult(imx_get_perclk1(), clocksource_imx.shift); | ||
97 | clocksource_register(&clocksource_imx); | ||
98 | |||
99 | return 0; | ||
100 | } | ||
101 | |||
102 | static void __init imx_timer_init(void) | ||
103 | { | ||
104 | imx_timer_hardware_init(); | ||
105 | imx_clocksource_init(); | ||
91 | 106 | ||
92 | /* | 107 | /* |
93 | * Make irqs happen for the system timer | 108 | * Make irqs happen for the system timer |
@@ -97,5 +112,4 @@ static void __init imx_timer_init(void) | |||
97 | 112 | ||
98 | struct sys_timer imx_timer = { | 113 | struct sys_timer imx_timer = { |
99 | .init = imx_timer_init, | 114 | .init = imx_timer_init, |
100 | .offset = imx_gettimeoffset, | ||
101 | }; | 115 | }; |
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 191c57a3b997..72280754354d 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -183,7 +183,7 @@ static void __init ap_init_irq(void) | |||
183 | for (i = 0; i < NR_IRQS; i++) { | 183 | for (i = 0; i < NR_IRQS; i++) { |
184 | if (((1 << i) & INTEGRATOR_SC_VALID_INT) != 0) { | 184 | if (((1 << i) & INTEGRATOR_SC_VALID_INT) != 0) { |
185 | set_irq_chip(i, &sc_chip); | 185 | set_irq_chip(i, &sc_chip); |
186 | set_irq_handler(i, do_level_IRQ); | 186 | set_irq_handler(i, handle_level_irq); |
187 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 187 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
188 | } | 188 | } |
189 | } | 189 | } |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 771b65bffe69..913f64b22405 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -202,7 +202,7 @@ static struct irq_chip sic_chip = { | |||
202 | }; | 202 | }; |
203 | 203 | ||
204 | static void | 204 | static void |
205 | sic_handle_irq(unsigned int irq, struct irqdesc *desc) | 205 | sic_handle_irq(unsigned int irq, struct irq_desc *desc) |
206 | { | 206 | { |
207 | unsigned long status = sic_readl(INTCP_VA_SIC_BASE + IRQ_STATUS); | 207 | unsigned long status = sic_readl(INTCP_VA_SIC_BASE + IRQ_STATUS); |
208 | 208 | ||
@@ -238,7 +238,7 @@ static void __init intcp_init_irq(void) | |||
238 | if (i == 29) | 238 | if (i == 29) |
239 | break; | 239 | break; |
240 | set_irq_chip(i, &pic_chip); | 240 | set_irq_chip(i, &pic_chip); |
241 | set_irq_handler(i, do_level_IRQ); | 241 | set_irq_handler(i, handle_level_irq); |
242 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 242 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
243 | } | 243 | } |
244 | 244 | ||
@@ -247,7 +247,7 @@ static void __init intcp_init_irq(void) | |||
247 | 247 | ||
248 | for (i = IRQ_CIC_START; i <= IRQ_CIC_END; i++) { | 248 | for (i = IRQ_CIC_START; i <= IRQ_CIC_END; i++) { |
249 | set_irq_chip(i, &cic_chip); | 249 | set_irq_chip(i, &cic_chip); |
250 | set_irq_handler(i, do_level_IRQ); | 250 | set_irq_handler(i, handle_level_irq); |
251 | set_irq_flags(i, IRQF_VALID); | 251 | set_irq_flags(i, IRQF_VALID); |
252 | } | 252 | } |
253 | 253 | ||
@@ -256,7 +256,7 @@ static void __init intcp_init_irq(void) | |||
256 | 256 | ||
257 | for (i = IRQ_SIC_START; i <= IRQ_SIC_END; i++) { | 257 | for (i = IRQ_SIC_START; i <= IRQ_SIC_END; i++) { |
258 | set_irq_chip(i, &sic_chip); | 258 | set_irq_chip(i, &sic_chip); |
259 | set_irq_handler(i, do_level_IRQ); | 259 | set_irq_handler(i, handle_level_irq); |
260 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 260 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
261 | } | 261 | } |
262 | 262 | ||
diff --git a/arch/arm/mach-integrator/platsmp.c b/arch/arm/mach-integrator/platsmp.c index 1bc8534ef0c6..613b841a10f3 100644 --- a/arch/arm/mach-integrator/platsmp.c +++ b/arch/arm/mach-integrator/platsmp.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <asm/cacheflush.h> | 18 | #include <asm/cacheflush.h> |
19 | #include <asm/delay.h> | 19 | #include <asm/delay.h> |
20 | #include <asm/mmu_context.h> | 20 | #include <asm/mmu_context.h> |
21 | #include <asm/procinfo.h> | ||
22 | #include <asm/ptrace.h> | 21 | #include <asm/ptrace.h> |
23 | #include <asm/smp.h> | 22 | #include <asm/smp.h> |
24 | 23 | ||
diff --git a/arch/arm/mach-iop13xx/Kconfig b/arch/arm/mach-iop13xx/Kconfig new file mode 100644 index 000000000000..40c2d689f2eb --- /dev/null +++ b/arch/arm/mach-iop13xx/Kconfig | |||
@@ -0,0 +1,20 @@ | |||
1 | if ARCH_IOP13XX | ||
2 | |||
3 | menu "IOP13XX Implementation Options" | ||
4 | |||
5 | comment "IOP13XX Platform Support" | ||
6 | |||
7 | config MACH_IQ81340SC | ||
8 | bool "Enable IQ81340SC Hardware Support" | ||
9 | help | ||
10 | Say Y here if you want to support running on the Intel IQ81340SC | ||
11 | evaluation kit. | ||
12 | |||
13 | config MACH_IQ81340MC | ||
14 | bool "Enable IQ81340MC Hardware Support" | ||
15 | help | ||
16 | Say Y here if you want to support running on the Intel IQ81340MC | ||
17 | evaluation kit. | ||
18 | |||
19 | endmenu | ||
20 | endif | ||
diff --git a/arch/arm/mach-iop13xx/Makefile b/arch/arm/mach-iop13xx/Makefile new file mode 100644 index 000000000000..c3d6c08f2d4c --- /dev/null +++ b/arch/arm/mach-iop13xx/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | obj-y := | ||
2 | obj-m := | ||
3 | obj-n := | ||
4 | obj- := | ||
5 | |||
6 | obj-$(CONFIG_ARCH_IOP13XX) += setup.o | ||
7 | obj-$(CONFIG_ARCH_IOP13XX) += irq.o | ||
8 | obj-$(CONFIG_ARCH_IOP13XX) += time.o | ||
9 | obj-$(CONFIG_ARCH_IOP13XX) += pci.o | ||
10 | obj-$(CONFIG_ARCH_IOP13XX) += io.o | ||
11 | obj-$(CONFIG_MACH_IQ81340SC) += iq81340sc.o | ||
12 | obj-$(CONFIG_MACH_IQ81340MC) += iq81340mc.o | ||
diff --git a/arch/arm/mach-iop13xx/Makefile.boot b/arch/arm/mach-iop13xx/Makefile.boot new file mode 100644 index 000000000000..0b0e19fdfe6c --- /dev/null +++ b/arch/arm/mach-iop13xx/Makefile.boot | |||
@@ -0,0 +1,3 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
2 | params_phys-y := 0x00000100 | ||
3 | initrd_phys-y := 0x00800000 | ||
diff --git a/arch/arm/mach-iop13xx/io.c b/arch/arm/mach-iop13xx/io.c new file mode 100644 index 000000000000..e79a1b62600f --- /dev/null +++ b/arch/arm/mach-iop13xx/io.c | |||
@@ -0,0 +1,112 @@ | |||
1 | /* | ||
2 | * iop13xx custom ioremap implementation | ||
3 | * Copyright (c) 2005-2006, Intel Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
16 | * Place - Suite 330, Boston, MA 02111-1307 USA. | ||
17 | * | ||
18 | */ | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/module.h> | ||
21 | #include <asm/hardware.h> | ||
22 | #include <asm/io.h> | ||
23 | |||
24 | void * __iomem __iop13xx_io(unsigned long io_addr) | ||
25 | { | ||
26 | void __iomem * io_virt; | ||
27 | |||
28 | switch (io_addr) { | ||
29 | case IOP13XX_PCIE_LOWER_IO_PA ... IOP13XX_PCIE_UPPER_IO_PA: | ||
30 | io_virt = (void *) IOP13XX_PCIE_IO_PHYS_TO_VIRT(io_addr); | ||
31 | break; | ||
32 | case IOP13XX_PCIX_LOWER_IO_PA ... IOP13XX_PCIX_UPPER_IO_PA: | ||
33 | io_virt = (void *) IOP13XX_PCIX_IO_PHYS_TO_VIRT(io_addr); | ||
34 | break; | ||
35 | default: | ||
36 | BUG(); | ||
37 | } | ||
38 | |||
39 | return io_virt; | ||
40 | } | ||
41 | EXPORT_SYMBOL(__iop13xx_io); | ||
42 | |||
43 | void * __iomem __iop13xx_ioremap(unsigned long cookie, size_t size, | ||
44 | unsigned long flags) | ||
45 | { | ||
46 | void __iomem * retval; | ||
47 | |||
48 | switch (cookie) { | ||
49 | case IOP13XX_PCIX_LOWER_MEM_RA ... IOP13XX_PCIX_UPPER_MEM_RA: | ||
50 | if (unlikely(!iop13xx_atux_mem_base)) | ||
51 | retval = NULL; | ||
52 | else | ||
53 | retval = (void *)(iop13xx_atux_mem_base + | ||
54 | (cookie - IOP13XX_PCIX_LOWER_MEM_RA)); | ||
55 | break; | ||
56 | case IOP13XX_PCIE_LOWER_MEM_RA ... IOP13XX_PCIE_UPPER_MEM_RA: | ||
57 | if (unlikely(!iop13xx_atue_mem_base)) | ||
58 | retval = NULL; | ||
59 | else | ||
60 | retval = (void *)(iop13xx_atue_mem_base + | ||
61 | (cookie - IOP13XX_PCIE_LOWER_MEM_RA)); | ||
62 | break; | ||
63 | case IOP13XX_PBI_LOWER_MEM_RA ... IOP13XX_PBI_UPPER_MEM_RA: | ||
64 | retval = __ioremap(IOP13XX_PBI_LOWER_MEM_PA + | ||
65 | (cookie - IOP13XX_PBI_LOWER_MEM_RA), | ||
66 | size, flags); | ||
67 | break; | ||
68 | case IOP13XX_PCIE_LOWER_IO_PA ... IOP13XX_PCIE_UPPER_IO_PA: | ||
69 | retval = (void *) IOP13XX_PCIE_IO_PHYS_TO_VIRT(cookie); | ||
70 | break; | ||
71 | case IOP13XX_PCIX_LOWER_IO_PA ... IOP13XX_PCIX_UPPER_IO_PA: | ||
72 | retval = (void *) IOP13XX_PCIX_IO_PHYS_TO_VIRT(cookie); | ||
73 | break; | ||
74 | case IOP13XX_PMMR_PHYS_MEM_BASE ... IOP13XX_PMMR_UPPER_MEM_PA: | ||
75 | retval = (void *) IOP13XX_PMMR_PHYS_TO_VIRT(cookie); | ||
76 | break; | ||
77 | default: | ||
78 | retval = __ioremap(cookie, size, flags); | ||
79 | } | ||
80 | |||
81 | return retval; | ||
82 | } | ||
83 | EXPORT_SYMBOL(__iop13xx_ioremap); | ||
84 | |||
85 | void __iop13xx_iounmap(void __iomem *addr) | ||
86 | { | ||
87 | extern void __iounmap(volatile void __iomem *addr); | ||
88 | |||
89 | if (iop13xx_atue_mem_base) | ||
90 | if (addr >= (void __iomem *) iop13xx_atue_mem_base && | ||
91 | addr < (void __iomem *) (iop13xx_atue_mem_base + | ||
92 | iop13xx_atue_mem_size)) | ||
93 | goto skip; | ||
94 | |||
95 | if (iop13xx_atux_mem_base) | ||
96 | if (addr >= (void __iomem *) iop13xx_atux_mem_base && | ||
97 | addr < (void __iomem *) (iop13xx_atux_mem_base + | ||
98 | iop13xx_atux_mem_size)) | ||
99 | goto skip; | ||
100 | |||
101 | switch ((u32) addr) { | ||
102 | case IOP13XX_PCIE_LOWER_IO_VA ... IOP13XX_PCIE_UPPER_IO_VA: | ||
103 | case IOP13XX_PCIX_LOWER_IO_VA ... IOP13XX_PCIX_UPPER_IO_VA: | ||
104 | case IOP13XX_PMMR_VIRT_MEM_BASE ... IOP13XX_PMMR_UPPER_MEM_VA: | ||
105 | goto skip; | ||
106 | } | ||
107 | __iounmap(addr); | ||
108 | |||
109 | skip: | ||
110 | return; | ||
111 | } | ||
112 | EXPORT_SYMBOL(__iop13xx_iounmap); | ||
diff --git a/arch/arm/mach-iop13xx/iq81340mc.c b/arch/arm/mach-iop13xx/iq81340mc.c new file mode 100644 index 000000000000..2a1bbfe9896f --- /dev/null +++ b/arch/arm/mach-iop13xx/iq81340mc.c | |||
@@ -0,0 +1,98 @@ | |||
1 | /* | ||
2 | * iq81340mc board support | ||
3 | * Copyright (c) 2005-2006, Intel Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
16 | * Place - Suite 330, Boston, MA 02111-1307 USA. | ||
17 | * | ||
18 | */ | ||
19 | #include <linux/pci.h> | ||
20 | |||
21 | #include <asm/hardware.h> | ||
22 | #include <asm/irq.h> | ||
23 | #include <asm/mach/pci.h> | ||
24 | #include <asm/mach-types.h> | ||
25 | #include <asm/mach/arch.h> | ||
26 | #include <asm/arch/pci.h> | ||
27 | #include <asm/mach/time.h> | ||
28 | |||
29 | extern int init_atu; /* Flag to select which ATU(s) to initialize / disable */ | ||
30 | |||
31 | static int __init | ||
32 | iq81340mc_pcix_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | ||
33 | { | ||
34 | switch (idsel) { | ||
35 | case 1: | ||
36 | switch (pin) { | ||
37 | case 1: return ATUX_INTB; | ||
38 | case 2: return ATUX_INTC; | ||
39 | case 3: return ATUX_INTD; | ||
40 | case 4: return ATUX_INTA; | ||
41 | default: return -1; | ||
42 | } | ||
43 | case 2: | ||
44 | switch (pin) { | ||
45 | case 1: return ATUX_INTC; | ||
46 | case 2: return ATUX_INTD; | ||
47 | case 3: return ATUX_INTC; | ||
48 | case 4: return ATUX_INTD; | ||
49 | default: return -1; | ||
50 | } | ||
51 | default: return -1; | ||
52 | } | ||
53 | } | ||
54 | |||
55 | static struct hw_pci iq81340mc_pci __initdata = { | ||
56 | .swizzle = pci_std_swizzle, | ||
57 | .nr_controllers = 0, | ||
58 | .setup = iop13xx_pci_setup, | ||
59 | .map_irq = iq81340mc_pcix_map_irq, | ||
60 | .scan = iop13xx_scan_bus, | ||
61 | .preinit = iop13xx_pci_init, | ||
62 | }; | ||
63 | |||
64 | static int __init iq81340mc_pci_init(void) | ||
65 | { | ||
66 | iop13xx_atu_select(&iq81340mc_pci); | ||
67 | pci_common_init(&iq81340mc_pci); | ||
68 | iop13xx_map_pci_memory(); | ||
69 | |||
70 | return 0; | ||
71 | } | ||
72 | |||
73 | static void __init iq81340mc_init(void) | ||
74 | { | ||
75 | iop13xx_platform_init(); | ||
76 | iq81340mc_pci_init(); | ||
77 | } | ||
78 | |||
79 | static void __init iq81340mc_timer_init(void) | ||
80 | { | ||
81 | iop13xx_init_time(400000000); | ||
82 | } | ||
83 | |||
84 | static struct sys_timer iq81340mc_timer = { | ||
85 | .init = iq81340mc_timer_init, | ||
86 | .offset = iop13xx_gettimeoffset, | ||
87 | }; | ||
88 | |||
89 | MACHINE_START(IQ81340MC, "Intel IQ81340MC") | ||
90 | /* Maintainer: Dan Williams <dan.j.williams@intel.com> */ | ||
91 | .phys_io = IOP13XX_PMMR_PHYS_MEM_BASE, | ||
92 | .io_pg_offst = (IOP13XX_PMMR_VIRT_MEM_BASE >> 18) & 0xfffc, | ||
93 | .boot_params = 0x00000100, | ||
94 | .map_io = iop13xx_map_io, | ||
95 | .init_irq = iop13xx_init_irq, | ||
96 | .timer = &iq81340mc_timer, | ||
97 | .init_machine = iq81340mc_init, | ||
98 | MACHINE_END | ||
diff --git a/arch/arm/mach-iop13xx/iq81340sc.c b/arch/arm/mach-iop13xx/iq81340sc.c new file mode 100644 index 000000000000..5ad2b62c9bfd --- /dev/null +++ b/arch/arm/mach-iop13xx/iq81340sc.c | |||
@@ -0,0 +1,100 @@ | |||
1 | /* | ||
2 | * iq81340sc board support | ||
3 | * Copyright (c) 2005-2006, Intel Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
16 | * Place - Suite 330, Boston, MA 02111-1307 USA. | ||
17 | * | ||
18 | */ | ||
19 | #include <linux/pci.h> | ||
20 | |||
21 | #include <asm/hardware.h> | ||
22 | #include <asm/irq.h> | ||
23 | #include <asm/mach/pci.h> | ||
24 | #include <asm/mach-types.h> | ||
25 | #include <asm/mach/arch.h> | ||
26 | #include <asm/arch/pci.h> | ||
27 | #include <asm/mach/time.h> | ||
28 | |||
29 | extern int init_atu; | ||
30 | |||
31 | static int __init | ||
32 | iq81340sc_atux_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | ||
33 | { | ||
34 | WARN_ON(idsel < 1 || idsel > 2); | ||
35 | |||
36 | switch (idsel) { | ||
37 | case 1: | ||
38 | switch (pin) { | ||
39 | case 1: return ATUX_INTB; | ||
40 | case 2: return ATUX_INTC; | ||
41 | case 3: return ATUX_INTD; | ||
42 | case 4: return ATUX_INTA; | ||
43 | default: return -1; | ||
44 | } | ||
45 | case 2: | ||
46 | switch (pin) { | ||
47 | case 1: return ATUX_INTC; | ||
48 | case 2: return ATUX_INTC; | ||
49 | case 3: return ATUX_INTC; | ||
50 | case 4: return ATUX_INTC; | ||
51 | default: return -1; | ||
52 | } | ||
53 | default: return -1; | ||
54 | } | ||
55 | } | ||
56 | |||
57 | static struct hw_pci iq81340sc_pci __initdata = { | ||
58 | .swizzle = pci_std_swizzle, | ||
59 | .nr_controllers = 0, | ||
60 | .setup = iop13xx_pci_setup, | ||
61 | .scan = iop13xx_scan_bus, | ||
62 | .map_irq = iq81340sc_atux_map_irq, | ||
63 | .preinit = iop13xx_pci_init | ||
64 | }; | ||
65 | |||
66 | static int __init iq81340sc_pci_init(void) | ||
67 | { | ||
68 | iop13xx_atu_select(&iq81340sc_pci); | ||
69 | pci_common_init(&iq81340sc_pci); | ||
70 | iop13xx_map_pci_memory(); | ||
71 | |||
72 | return 0; | ||
73 | } | ||
74 | |||
75 | static void __init iq81340sc_init(void) | ||
76 | { | ||
77 | iop13xx_platform_init(); | ||
78 | iq81340sc_pci_init(); | ||
79 | } | ||
80 | |||
81 | static void __init iq81340sc_timer_init(void) | ||
82 | { | ||
83 | iop13xx_init_time(400000000); | ||
84 | } | ||
85 | |||
86 | static struct sys_timer iq81340sc_timer = { | ||
87 | .init = iq81340sc_timer_init, | ||
88 | .offset = iop13xx_gettimeoffset, | ||
89 | }; | ||
90 | |||
91 | MACHINE_START(IQ81340SC, "Intel IQ81340SC") | ||
92 | /* Maintainer: Dan Williams <dan.j.williams@intel.com> */ | ||
93 | .phys_io = IOP13XX_PMMR_PHYS_MEM_BASE, | ||
94 | .io_pg_offst = (IOP13XX_PMMR_VIRT_MEM_BASE >> 18) & 0xfffc, | ||
95 | .boot_params = 0x00000100, | ||
96 | .map_io = iop13xx_map_io, | ||
97 | .init_irq = iop13xx_init_irq, | ||
98 | .timer = &iq81340sc_timer, | ||
99 | .init_machine = iq81340sc_init, | ||
100 | MACHINE_END | ||
diff --git a/arch/arm/mach-iop13xx/irq.c b/arch/arm/mach-iop13xx/irq.c new file mode 100644 index 000000000000..dbbc07c38b14 --- /dev/null +++ b/arch/arm/mach-iop13xx/irq.c | |||
@@ -0,0 +1,290 @@ | |||
1 | /* | ||
2 | * iop13xx IRQ handling / support functions | ||
3 | * Copyright (c) 2005-2006, Intel Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
16 | * Place - Suite 330, Boston, MA 02111-1307 USA. | ||
17 | * | ||
18 | */ | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/interrupt.h> | ||
21 | #include <linux/list.h> | ||
22 | #include <linux/sysctl.h> | ||
23 | #include <asm/uaccess.h> | ||
24 | #include <asm/mach/irq.h> | ||
25 | #include <asm/irq.h> | ||
26 | #include <asm/hardware.h> | ||
27 | #include <asm/mach-types.h> | ||
28 | #include <asm/arch/irqs.h> | ||
29 | |||
30 | /* INTCTL0 CP6 R0 Page 4 | ||
31 | */ | ||
32 | static inline u32 read_intctl_0(void) | ||
33 | { | ||
34 | u32 val; | ||
35 | asm volatile("mrc p6, 0, %0, c0, c4, 0":"=r" (val)); | ||
36 | return val; | ||
37 | } | ||
38 | static inline void write_intctl_0(u32 val) | ||
39 | { | ||
40 | asm volatile("mcr p6, 0, %0, c0, c4, 0"::"r" (val)); | ||
41 | } | ||
42 | |||
43 | /* INTCTL1 CP6 R1 Page 4 | ||
44 | */ | ||
45 | static inline u32 read_intctl_1(void) | ||
46 | { | ||
47 | u32 val; | ||
48 | asm volatile("mrc p6, 0, %0, c1, c4, 0":"=r" (val)); | ||
49 | return val; | ||
50 | } | ||
51 | static inline void write_intctl_1(u32 val) | ||
52 | { | ||
53 | asm volatile("mcr p6, 0, %0, c1, c4, 0"::"r" (val)); | ||
54 | } | ||
55 | |||
56 | /* INTCTL2 CP6 R2 Page 4 | ||
57 | */ | ||
58 | static inline u32 read_intctl_2(void) | ||
59 | { | ||
60 | u32 val; | ||
61 | asm volatile("mrc p6, 0, %0, c2, c4, 0":"=r" (val)); | ||
62 | return val; | ||
63 | } | ||
64 | static inline void write_intctl_2(u32 val) | ||
65 | { | ||
66 | asm volatile("mcr p6, 0, %0, c2, c4, 0"::"r" (val)); | ||
67 | } | ||
68 | |||
69 | /* INTCTL3 CP6 R3 Page 4 | ||
70 | */ | ||
71 | static inline u32 read_intctl_3(void) | ||
72 | { | ||
73 | u32 val; | ||
74 | asm volatile("mrc p6, 0, %0, c3, c4, 0":"=r" (val)); | ||
75 | return val; | ||
76 | } | ||
77 | static inline void write_intctl_3(u32 val) | ||
78 | { | ||
79 | asm volatile("mcr p6, 0, %0, c3, c4, 0"::"r" (val)); | ||
80 | } | ||
81 | |||
82 | /* INTSTR0 CP6 R0 Page 5 | ||
83 | */ | ||
84 | static inline u32 read_intstr_0(void) | ||
85 | { | ||
86 | u32 val; | ||
87 | asm volatile("mrc p6, 0, %0, c0, c5, 0":"=r" (val)); | ||
88 | return val; | ||
89 | } | ||
90 | static inline void write_intstr_0(u32 val) | ||
91 | { | ||
92 | asm volatile("mcr p6, 0, %0, c0, c5, 0"::"r" (val)); | ||
93 | } | ||
94 | |||
95 | /* INTSTR1 CP6 R1 Page 5 | ||
96 | */ | ||
97 | static inline u32 read_intstr_1(void) | ||
98 | { | ||
99 | u32 val; | ||
100 | asm volatile("mrc p6, 0, %0, c1, c5, 0":"=r" (val)); | ||
101 | return val; | ||
102 | } | ||
103 | static void write_intstr_1(u32 val) | ||
104 | { | ||
105 | asm volatile("mcr p6, 0, %0, c1, c5, 0"::"r" (val)); | ||
106 | } | ||
107 | |||
108 | /* INTSTR2 CP6 R2 Page 5 | ||
109 | */ | ||
110 | static inline u32 read_intstr_2(void) | ||
111 | { | ||
112 | u32 val; | ||
113 | asm volatile("mrc p6, 0, %0, c2, c5, 0":"=r" (val)); | ||
114 | return val; | ||
115 | } | ||
116 | static void write_intstr_2(u32 val) | ||
117 | { | ||
118 | asm volatile("mcr p6, 0, %0, c2, c5, 0"::"r" (val)); | ||
119 | } | ||
120 | |||
121 | /* INTSTR3 CP6 R3 Page 5 | ||
122 | */ | ||
123 | static inline u32 read_intstr_3(void) | ||
124 | { | ||
125 | u32 val; | ||
126 | asm volatile("mrc p6, 0, %0, c3, c5, 0":"=r" (val)); | ||
127 | return val; | ||
128 | } | ||
129 | static void write_intstr_3(u32 val) | ||
130 | { | ||
131 | asm volatile("mcr p6, 0, %0, c3, c5, 0"::"r" (val)); | ||
132 | } | ||
133 | |||
134 | /* INTBASE CP6 R0 Page 2 | ||
135 | */ | ||
136 | static inline u32 read_intbase(void) | ||
137 | { | ||
138 | u32 val; | ||
139 | asm volatile("mrc p6, 0, %0, c0, c2, 0":"=r" (val)); | ||
140 | return val; | ||
141 | } | ||
142 | static void write_intbase(u32 val) | ||
143 | { | ||
144 | asm volatile("mcr p6, 0, %0, c0, c2, 0"::"r" (val)); | ||
145 | } | ||
146 | |||
147 | /* INTSIZE CP6 R2 Page 2 | ||
148 | */ | ||
149 | static inline u32 read_intsize(void) | ||
150 | { | ||
151 | u32 val; | ||
152 | asm volatile("mrc p6, 0, %0, c2, c2, 0":"=r" (val)); | ||
153 | return val; | ||
154 | } | ||
155 | static void write_intsize(u32 val) | ||
156 | { | ||
157 | asm volatile("mcr p6, 0, %0, c2, c2, 0"::"r" (val)); | ||
158 | } | ||
159 | |||
160 | /* 0 = Interrupt Masked and 1 = Interrupt not masked */ | ||
161 | static void | ||
162 | iop13xx_irq_mask0 (unsigned int irq) | ||
163 | { | ||
164 | u32 cp_flags = iop13xx_cp6_save(); | ||
165 | write_intctl_0(read_intctl_0() & ~(1 << (irq - 0))); | ||
166 | iop13xx_cp6_restore(cp_flags); | ||
167 | } | ||
168 | |||
169 | static void | ||
170 | iop13xx_irq_mask1 (unsigned int irq) | ||
171 | { | ||
172 | u32 cp_flags = iop13xx_cp6_save(); | ||
173 | write_intctl_1(read_intctl_1() & ~(1 << (irq - 32))); | ||
174 | iop13xx_cp6_restore(cp_flags); | ||
175 | } | ||
176 | |||
177 | static void | ||
178 | iop13xx_irq_mask2 (unsigned int irq) | ||
179 | { | ||
180 | u32 cp_flags = iop13xx_cp6_save(); | ||
181 | write_intctl_2(read_intctl_2() & ~(1 << (irq - 64))); | ||
182 | iop13xx_cp6_restore(cp_flags); | ||
183 | } | ||
184 | |||
185 | static void | ||
186 | iop13xx_irq_mask3 (unsigned int irq) | ||
187 | { | ||
188 | u32 cp_flags = iop13xx_cp6_save(); | ||
189 | write_intctl_3(read_intctl_3() & ~(1 << (irq - 96))); | ||
190 | iop13xx_cp6_restore(cp_flags); | ||
191 | } | ||
192 | |||
193 | static void | ||
194 | iop13xx_irq_unmask0(unsigned int irq) | ||
195 | { | ||
196 | u32 cp_flags = iop13xx_cp6_save(); | ||
197 | write_intctl_0(read_intctl_0() | (1 << (irq - 0))); | ||
198 | iop13xx_cp6_restore(cp_flags); | ||
199 | } | ||
200 | |||
201 | static void | ||
202 | iop13xx_irq_unmask1(unsigned int irq) | ||
203 | { | ||
204 | u32 cp_flags = iop13xx_cp6_save(); | ||
205 | write_intctl_1(read_intctl_1() | (1 << (irq - 32))); | ||
206 | iop13xx_cp6_restore(cp_flags); | ||
207 | } | ||
208 | |||
209 | static void | ||
210 | iop13xx_irq_unmask2(unsigned int irq) | ||
211 | { | ||
212 | u32 cp_flags = iop13xx_cp6_save(); | ||
213 | write_intctl_2(read_intctl_2() | (1 << (irq - 64))); | ||
214 | iop13xx_cp6_restore(cp_flags); | ||
215 | } | ||
216 | |||
217 | static void | ||
218 | iop13xx_irq_unmask3(unsigned int irq) | ||
219 | { | ||
220 | u32 cp_flags = iop13xx_cp6_save(); | ||
221 | write_intctl_3(read_intctl_3() | (1 << (irq - 96))); | ||
222 | iop13xx_cp6_restore(cp_flags); | ||
223 | } | ||
224 | |||
225 | static struct irq_chip iop13xx_irqchip1 = { | ||
226 | .name = "IOP13xx-1", | ||
227 | .ack = iop13xx_irq_mask0, | ||
228 | .mask = iop13xx_irq_mask0, | ||
229 | .unmask = iop13xx_irq_unmask0, | ||
230 | }; | ||
231 | |||
232 | static struct irq_chip iop13xx_irqchip2 = { | ||
233 | .name = "IOP13xx-2", | ||
234 | .ack = iop13xx_irq_mask1, | ||
235 | .mask = iop13xx_irq_mask1, | ||
236 | .unmask = iop13xx_irq_unmask1, | ||
237 | }; | ||
238 | |||
239 | static struct irq_chip iop13xx_irqchip3 = { | ||
240 | .name = "IOP13xx-3", | ||
241 | .ack = iop13xx_irq_mask2, | ||
242 | .mask = iop13xx_irq_mask2, | ||
243 | .unmask = iop13xx_irq_unmask2, | ||
244 | }; | ||
245 | |||
246 | static struct irq_chip iop13xx_irqchip4 = { | ||
247 | .name = "IOP13xx-4", | ||
248 | .ack = iop13xx_irq_mask3, | ||
249 | .mask = iop13xx_irq_mask3, | ||
250 | .unmask = iop13xx_irq_unmask3, | ||
251 | }; | ||
252 | |||
253 | void __init iop13xx_init_irq(void) | ||
254 | { | ||
255 | unsigned int i; | ||
256 | |||
257 | u32 cp_flags = iop13xx_cp6_save(); | ||
258 | |||
259 | /* disable all interrupts */ | ||
260 | write_intctl_0(0); | ||
261 | write_intctl_1(0); | ||
262 | write_intctl_2(0); | ||
263 | write_intctl_3(0); | ||
264 | |||
265 | /* treat all as IRQ */ | ||
266 | write_intstr_0(0); | ||
267 | write_intstr_1(0); | ||
268 | write_intstr_2(0); | ||
269 | write_intstr_3(0); | ||
270 | |||
271 | /* initialize the interrupt vector generator */ | ||
272 | write_intbase(INTBASE); | ||
273 | write_intsize(INTSIZE_4); | ||
274 | |||
275 | for(i = 0; i < NR_IOP13XX_IRQS; i++) { | ||
276 | if (i < 32) | ||
277 | set_irq_chip(i, &iop13xx_irqchip1); | ||
278 | else if (i < 64) | ||
279 | set_irq_chip(i, &iop13xx_irqchip2); | ||
280 | else if (i < 96) | ||
281 | set_irq_chip(i, &iop13xx_irqchip3); | ||
282 | else | ||
283 | set_irq_chip(i, &iop13xx_irqchip4); | ||
284 | |||
285 | set_irq_handler(i, handle_level_irq); | ||
286 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | ||
287 | } | ||
288 | |||
289 | iop13xx_cp6_restore(cp_flags); | ||
290 | } | ||
diff --git a/arch/arm/mach-iop13xx/pci.c b/arch/arm/mach-iop13xx/pci.c new file mode 100644 index 000000000000..89ec70ea3187 --- /dev/null +++ b/arch/arm/mach-iop13xx/pci.c | |||
@@ -0,0 +1,1113 @@ | |||
1 | /* | ||
2 | * iop13xx PCI support | ||
3 | * Copyright (c) 2005-2006, Intel Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
16 | * Place - Suite 330, Boston, MA 02111-1307 USA. | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #include <linux/pci.h> | ||
21 | #include <linux/delay.h> | ||
22 | |||
23 | #include <asm/irq.h> | ||
24 | #include <asm/hardware.h> | ||
25 | #include <asm/sizes.h> | ||
26 | #include <asm/mach/pci.h> | ||
27 | #include <asm/arch/pci.h> | ||
28 | |||
29 | #define IOP13XX_PCI_DEBUG 0 | ||
30 | #define PRINTK(x...) ((void)(IOP13XX_PCI_DEBUG && printk(x))) | ||
31 | |||
32 | u32 iop13xx_atux_pmmr_offset; /* This offset can change based on strapping */ | ||
33 | u32 iop13xx_atue_pmmr_offset; /* This offset can change based on strapping */ | ||
34 | static struct pci_bus *pci_bus_atux = 0; | ||
35 | static struct pci_bus *pci_bus_atue = 0; | ||
36 | u32 iop13xx_atue_mem_base; | ||
37 | u32 iop13xx_atux_mem_base; | ||
38 | size_t iop13xx_atue_mem_size; | ||
39 | size_t iop13xx_atux_mem_size; | ||
40 | unsigned long iop13xx_pcibios_min_io = 0; | ||
41 | unsigned long iop13xx_pcibios_min_mem = 0; | ||
42 | |||
43 | EXPORT_SYMBOL(iop13xx_atue_mem_base); | ||
44 | EXPORT_SYMBOL(iop13xx_atux_mem_base); | ||
45 | EXPORT_SYMBOL(iop13xx_atue_mem_size); | ||
46 | EXPORT_SYMBOL(iop13xx_atux_mem_size); | ||
47 | |||
48 | int init_atu = 0; /* Flag to select which ATU(s) to initialize / disable */ | ||
49 | static unsigned long atux_trhfa_timeout = 0; /* Trhfa = RST# high to first | ||
50 | access */ | ||
51 | |||
52 | /* Scan the initialized busses and ioremap the requested memory range | ||
53 | */ | ||
54 | void iop13xx_map_pci_memory(void) | ||
55 | { | ||
56 | int atu; | ||
57 | struct pci_bus *bus; | ||
58 | struct pci_dev *dev; | ||
59 | resource_size_t end = 0; | ||
60 | |||
61 | for (atu = 0; atu < 2; atu++) { | ||
62 | bus = atu ? pci_bus_atue : pci_bus_atux; | ||
63 | if (bus) { | ||
64 | list_for_each_entry(dev, &bus->devices, bus_list) { | ||
65 | int i; | ||
66 | int max = 7; | ||
67 | |||
68 | if (dev->subordinate) | ||
69 | max = DEVICE_COUNT_RESOURCE; | ||
70 | |||
71 | for (i = 0; i < max; i++) { | ||
72 | struct resource *res = &dev->resource[i]; | ||
73 | if (res->flags & IORESOURCE_MEM) | ||
74 | end = max(res->end, end); | ||
75 | } | ||
76 | } | ||
77 | |||
78 | switch(atu) { | ||
79 | case 0: | ||
80 | iop13xx_atux_mem_size = | ||
81 | (end - IOP13XX_PCIX_LOWER_MEM_RA) + 1; | ||
82 | |||
83 | /* 16MB align the request */ | ||
84 | if (iop13xx_atux_mem_size & (SZ_16M - 1)) { | ||
85 | iop13xx_atux_mem_size &= ~(SZ_16M - 1); | ||
86 | iop13xx_atux_mem_size += SZ_16M; | ||
87 | } | ||
88 | |||
89 | if (end) { | ||
90 | iop13xx_atux_mem_base = | ||
91 | (u32) __ioremap_pfn( | ||
92 | __phys_to_pfn(IOP13XX_PCIX_LOWER_MEM_PA) | ||
93 | , 0, iop13xx_atux_mem_size, 0); | ||
94 | if (!iop13xx_atux_mem_base) { | ||
95 | printk("%s: atux allocation " | ||
96 | "failed\n", __FUNCTION__); | ||
97 | BUG(); | ||
98 | } | ||
99 | } else | ||
100 | iop13xx_atux_mem_size = 0; | ||
101 | PRINTK("%s: atu: %d bus_size: %d mem_base: %x\n", | ||
102 | __FUNCTION__, atu, iop13xx_atux_mem_size, | ||
103 | iop13xx_atux_mem_base); | ||
104 | break; | ||
105 | case 1: | ||
106 | iop13xx_atue_mem_size = | ||
107 | (end - IOP13XX_PCIE_LOWER_MEM_RA) + 1; | ||
108 | |||
109 | /* 16MB align the request */ | ||
110 | if (iop13xx_atue_mem_size & (SZ_16M - 1)) { | ||
111 | iop13xx_atue_mem_size &= ~(SZ_16M - 1); | ||
112 | iop13xx_atue_mem_size += SZ_16M; | ||
113 | } | ||
114 | |||
115 | if (end) { | ||
116 | iop13xx_atue_mem_base = | ||
117 | (u32) __ioremap_pfn( | ||
118 | __phys_to_pfn(IOP13XX_PCIE_LOWER_MEM_PA) | ||
119 | , 0, iop13xx_atue_mem_size, 0); | ||
120 | if (!iop13xx_atue_mem_base) { | ||
121 | printk("%s: atue allocation " | ||
122 | "failed\n", __FUNCTION__); | ||
123 | BUG(); | ||
124 | } | ||
125 | } else | ||
126 | iop13xx_atue_mem_size = 0; | ||
127 | PRINTK("%s: atu: %d bus_size: %d mem_base: %x\n", | ||
128 | __FUNCTION__, atu, iop13xx_atue_mem_size, | ||
129 | iop13xx_atue_mem_base); | ||
130 | break; | ||
131 | } | ||
132 | |||
133 | printk("%s: Initialized (%uM @ resource/virtual: %08lx/%08x)\n", | ||
134 | atu ? "ATUE" : "ATUX", | ||
135 | (atu ? iop13xx_atue_mem_size : iop13xx_atux_mem_size) / | ||
136 | SZ_1M, | ||
137 | atu ? IOP13XX_PCIE_LOWER_MEM_RA : | ||
138 | IOP13XX_PCIX_LOWER_MEM_RA, | ||
139 | atu ? iop13xx_atue_mem_base : | ||
140 | iop13xx_atux_mem_base); | ||
141 | end = 0; | ||
142 | } | ||
143 | |||
144 | } | ||
145 | } | ||
146 | |||
147 | static inline int iop13xx_atu_function(int atu) | ||
148 | { | ||
149 | int func = 0; | ||
150 | /* the function number depends on the value of the | ||
151 | * IOP13XX_INTERFACE_SEL_PCIX reset strap | ||
152 | * see C-Spec section 3.17 | ||
153 | */ | ||
154 | switch(atu) { | ||
155 | case IOP13XX_INIT_ATU_ATUX: | ||
156 | if (__raw_readl(IOP13XX_ESSR0) & IOP13XX_INTERFACE_SEL_PCIX) | ||
157 | func = 5; | ||
158 | else | ||
159 | func = 0; | ||
160 | break; | ||
161 | case IOP13XX_INIT_ATU_ATUE: | ||
162 | if (__raw_readl(IOP13XX_ESSR0) & IOP13XX_INTERFACE_SEL_PCIX) | ||
163 | func = 0; | ||
164 | else | ||
165 | func = 5; | ||
166 | break; | ||
167 | default: | ||
168 | BUG(); | ||
169 | } | ||
170 | |||
171 | return func; | ||
172 | } | ||
173 | |||
174 | /* iop13xx_atux_cfg_address - format a configuration address for atux | ||
175 | * @bus: Target bus to access | ||
176 | * @devfn: Combined device number and function number | ||
177 | * @where: Desired register's address offset | ||
178 | * | ||
179 | * Convert the parameters to a configuration address formatted | ||
180 | * according the PCI-X 2.0 specification | ||
181 | */ | ||
182 | static u32 iop13xx_atux_cfg_address(struct pci_bus *bus, int devfn, int where) | ||
183 | { | ||
184 | struct pci_sys_data *sys = bus->sysdata; | ||
185 | u32 addr; | ||
186 | |||
187 | if (sys->busnr == bus->number) | ||
188 | addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11); | ||
189 | else | ||
190 | addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; | ||
191 | |||
192 | addr |= PCI_FUNC(devfn) << 8 | ((where & 0xff) & ~3); | ||
193 | addr |= ((where & 0xf00) >> 8) << 24; /* upper register number */ | ||
194 | |||
195 | return addr; | ||
196 | } | ||
197 | |||
198 | /* iop13xx_atue_cfg_address - format a configuration address for atue | ||
199 | * @bus: Target bus to access | ||
200 | * @devfn: Combined device number and function number | ||
201 | * @where: Desired register's address offset | ||
202 | * | ||
203 | * Convert the parameters to an address usable by the ATUE_OCCAR | ||
204 | */ | ||
205 | static u32 iop13xx_atue_cfg_address(struct pci_bus *bus, int devfn, int where) | ||
206 | { | ||
207 | struct pci_sys_data *sys = bus->sysdata; | ||
208 | u32 addr; | ||
209 | |||
210 | PRINTK("iop13xx_atue_cfg_address: bus: %d dev: %d func: %d", | ||
211 | bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); | ||
212 | addr = ((u32) bus->number) << IOP13XX_ATUE_OCCAR_BUS_NUM | | ||
213 | ((u32) PCI_SLOT(devfn)) << IOP13XX_ATUE_OCCAR_DEV_NUM | | ||
214 | ((u32) PCI_FUNC(devfn)) << IOP13XX_ATUE_OCCAR_FUNC_NUM | | ||
215 | (where & ~0x3); | ||
216 | |||
217 | if (sys->busnr != bus->number) | ||
218 | addr |= 1; /* type 1 access */ | ||
219 | |||
220 | return addr; | ||
221 | } | ||
222 | |||
223 | /* This routine checks the status of the last configuration cycle. If an error | ||
224 | * was detected it returns >0, else it returns a 0. The errors being checked | ||
225 | * are parity, master abort, target abort (master and target). These types of | ||
226 | * errors occure during a config cycle where there is no device, like during | ||
227 | * the discovery stage. | ||
228 | */ | ||
229 | static int iop13xx_atux_pci_status(int clear) | ||
230 | { | ||
231 | unsigned int status; | ||
232 | int err = 0; | ||
233 | |||
234 | /* | ||
235 | * Check the status registers. | ||
236 | */ | ||
237 | status = __raw_readw(IOP13XX_ATUX_ATUSR); | ||
238 | if (status & IOP_PCI_STATUS_ERROR) | ||
239 | { | ||
240 | PRINTK("\t\t\tPCI error: ATUSR %#08x", status); | ||
241 | if(clear) | ||
242 | __raw_writew(status & IOP_PCI_STATUS_ERROR, | ||
243 | IOP13XX_ATUX_ATUSR); | ||
244 | err = 1; | ||
245 | } | ||
246 | status = __raw_readl(IOP13XX_ATUX_ATUISR); | ||
247 | if (status & IOP13XX_ATUX_ATUISR_ERROR) | ||
248 | { | ||
249 | PRINTK("\t\t\tPCI error interrupt: ATUISR %#08x", status); | ||
250 | if(clear) | ||
251 | __raw_writel(status & IOP13XX_ATUX_ATUISR_ERROR, | ||
252 | IOP13XX_ATUX_ATUISR); | ||
253 | err = 1; | ||
254 | } | ||
255 | return err; | ||
256 | } | ||
257 | |||
258 | /* Simply write the address register and read the configuration | ||
259 | * data. Note that the data dependency on %0 encourages an abort | ||
260 | * to be detected before we return. | ||
261 | */ | ||
262 | static inline u32 iop13xx_atux_read(unsigned long addr) | ||
263 | { | ||
264 | u32 val; | ||
265 | |||
266 | __asm__ __volatile__( | ||
267 | "str %1, [%2]\n\t" | ||
268 | "ldr %0, [%3]\n\t" | ||
269 | "mov %0, %0\n\t" | ||
270 | : "=r" (val) | ||
271 | : "r" (addr), "r" (IOP13XX_ATUX_OCCAR), "r" (IOP13XX_ATUX_OCCDR)); | ||
272 | |||
273 | return val; | ||
274 | } | ||
275 | |||
276 | /* The read routines must check the error status of the last configuration | ||
277 | * cycle. If there was an error, the routine returns all hex f's. | ||
278 | */ | ||
279 | static int | ||
280 | iop13xx_atux_read_config(struct pci_bus *bus, unsigned int devfn, int where, | ||
281 | int size, u32 *value) | ||
282 | { | ||
283 | unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); | ||
284 | u32 val = iop13xx_atux_read(addr) >> ((where & 3) * 8); | ||
285 | |||
286 | if (iop13xx_atux_pci_status(1) || is_atux_occdr_error()) { | ||
287 | __raw_writel(__raw_readl(IOP13XX_XBG_BECSR) & 3, | ||
288 | IOP13XX_XBG_BECSR); | ||
289 | val = 0xffffffff; | ||
290 | } | ||
291 | |||
292 | *value = val; | ||
293 | |||
294 | return PCIBIOS_SUCCESSFUL; | ||
295 | } | ||
296 | |||
297 | static int | ||
298 | iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where, | ||
299 | int size, u32 value) | ||
300 | { | ||
301 | unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); | ||
302 | u32 val; | ||
303 | |||
304 | if (size != 4) { | ||
305 | val = iop13xx_atux_read(addr); | ||
306 | if (!iop13xx_atux_pci_status(1) == 0) | ||
307 | return PCIBIOS_SUCCESSFUL; | ||
308 | |||
309 | where = (where & 3) * 8; | ||
310 | |||
311 | if (size == 1) | ||
312 | val &= ~(0xff << where); | ||
313 | else | ||
314 | val &= ~(0xffff << where); | ||
315 | |||
316 | __raw_writel(val | value << where, IOP13XX_ATUX_OCCDR); | ||
317 | } else { | ||
318 | __raw_writel(addr, IOP13XX_ATUX_OCCAR); | ||
319 | __raw_writel(value, IOP13XX_ATUX_OCCDR); | ||
320 | } | ||
321 | |||
322 | return PCIBIOS_SUCCESSFUL; | ||
323 | } | ||
324 | |||
325 | static struct pci_ops iop13xx_atux_ops = { | ||
326 | .read = iop13xx_atux_read_config, | ||
327 | .write = iop13xx_atux_write_config, | ||
328 | }; | ||
329 | |||
330 | /* This routine checks the status of the last configuration cycle. If an error | ||
331 | * was detected it returns >0, else it returns a 0. The errors being checked | ||
332 | * are parity, master abort, target abort (master and target). These types of | ||
333 | * errors occure during a config cycle where there is no device, like during | ||
334 | * the discovery stage. | ||
335 | */ | ||
336 | static int iop13xx_atue_pci_status(int clear) | ||
337 | { | ||
338 | unsigned int status; | ||
339 | int err = 0; | ||
340 | |||
341 | /* | ||
342 | * Check the status registers. | ||
343 | */ | ||
344 | |||
345 | /* standard pci status register */ | ||
346 | status = __raw_readw(IOP13XX_ATUE_ATUSR); | ||
347 | if (status & IOP_PCI_STATUS_ERROR) { | ||
348 | PRINTK("\t\t\tPCI error: ATUSR %#08x", status); | ||
349 | if(clear) | ||
350 | __raw_writew(status & IOP_PCI_STATUS_ERROR, | ||
351 | IOP13XX_ATUE_ATUSR); | ||
352 | err++; | ||
353 | } | ||
354 | |||
355 | /* check the normal status bits in the ATUISR */ | ||
356 | status = __raw_readl(IOP13XX_ATUE_ATUISR); | ||
357 | if (status & IOP13XX_ATUE_ATUISR_ERROR) { | ||
358 | PRINTK("\t\t\tPCI error: ATUISR %#08x", status); | ||
359 | if (clear) | ||
360 | __raw_writew(status & IOP13XX_ATUE_ATUISR_ERROR, | ||
361 | IOP13XX_ATUE_ATUISR); | ||
362 | err++; | ||
363 | |||
364 | /* check the PCI-E status if the ATUISR reports an interface error */ | ||
365 | if (status & IOP13XX_ATUE_STAT_PCI_IFACE_ERR) { | ||
366 | /* get the unmasked errors */ | ||
367 | status = __raw_readl(IOP13XX_ATUE_PIE_STS) & | ||
368 | ~(__raw_readl(IOP13XX_ATUE_PIE_MSK)); | ||
369 | |||
370 | if (status) { | ||
371 | PRINTK("\t\t\tPCI-E error: ATUE_PIE_STS %#08x", | ||
372 | __raw_readl(IOP13XX_ATUE_PIE_STS)); | ||
373 | err++; | ||
374 | } else { | ||
375 | PRINTK("\t\t\tPCI-E error: ATUE_PIE_STS %#08x", | ||
376 | __raw_readl(IOP13XX_ATUE_PIE_STS)); | ||
377 | PRINTK("\t\t\tPCI-E error: ATUE_PIE_MSK %#08x", | ||
378 | __raw_readl(IOP13XX_ATUE_PIE_MSK)); | ||
379 | BUG(); | ||
380 | } | ||
381 | |||
382 | if(clear) | ||
383 | __raw_writel(status, IOP13XX_ATUE_PIE_STS); | ||
384 | } | ||
385 | } | ||
386 | |||
387 | return err; | ||
388 | } | ||
389 | |||
390 | static inline int __init | ||
391 | iop13xx_pcie_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | ||
392 | { | ||
393 | WARN_ON(idsel != 0); | ||
394 | |||
395 | switch (pin) { | ||
396 | case 1: return ATUE_INTA; | ||
397 | case 2: return ATUE_INTB; | ||
398 | case 3: return ATUE_INTC; | ||
399 | case 4: return ATUE_INTD; | ||
400 | default: return -1; | ||
401 | } | ||
402 | } | ||
403 | |||
404 | static inline u32 iop13xx_atue_read(unsigned long addr) | ||
405 | { | ||
406 | u32 val; | ||
407 | |||
408 | __raw_writel(addr, IOP13XX_ATUE_OCCAR); | ||
409 | val = __raw_readl(IOP13XX_ATUE_OCCDR); | ||
410 | |||
411 | rmb(); | ||
412 | |||
413 | return val; | ||
414 | } | ||
415 | |||
416 | /* The read routines must check the error status of the last configuration | ||
417 | * cycle. If there was an error, the routine returns all hex f's. | ||
418 | */ | ||
419 | static int | ||
420 | iop13xx_atue_read_config(struct pci_bus *bus, unsigned int devfn, int where, | ||
421 | int size, u32 *value) | ||
422 | { | ||
423 | u32 val; | ||
424 | unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); | ||
425 | |||
426 | /* Hide device numbers > 0 on the local PCI-E bus (Type 0 access) */ | ||
427 | if (!PCI_SLOT(devfn) || (addr & 1)) { | ||
428 | val = iop13xx_atue_read(addr) >> ((where & 3) * 8); | ||
429 | if( iop13xx_atue_pci_status(1) || is_atue_occdr_error() ) { | ||
430 | __raw_writel(__raw_readl(IOP13XX_XBG_BECSR) & 3, | ||
431 | IOP13XX_XBG_BECSR); | ||
432 | val = 0xffffffff; | ||
433 | } | ||
434 | |||
435 | PRINTK("addr=%#0lx, val=%#010x", addr, val); | ||
436 | } else | ||
437 | val = 0xffffffff; | ||
438 | |||
439 | *value = val; | ||
440 | |||
441 | return PCIBIOS_SUCCESSFUL; | ||
442 | } | ||
443 | |||
444 | static int | ||
445 | iop13xx_atue_write_config(struct pci_bus *bus, unsigned int devfn, int where, | ||
446 | int size, u32 value) | ||
447 | { | ||
448 | unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); | ||
449 | u32 val; | ||
450 | |||
451 | if (size != 4) { | ||
452 | val = iop13xx_atue_read(addr); | ||
453 | if (!iop13xx_atue_pci_status(1) == 0) | ||
454 | return PCIBIOS_SUCCESSFUL; | ||
455 | |||
456 | where = (where & 3) * 8; | ||
457 | |||
458 | if (size == 1) | ||
459 | val &= ~(0xff << where); | ||
460 | else | ||
461 | val &= ~(0xffff << where); | ||
462 | |||
463 | __raw_writel(val | value << where, IOP13XX_ATUE_OCCDR); | ||
464 | } else { | ||
465 | __raw_writel(addr, IOP13XX_ATUE_OCCAR); | ||
466 | __raw_writel(value, IOP13XX_ATUE_OCCDR); | ||
467 | } | ||
468 | |||
469 | return PCIBIOS_SUCCESSFUL; | ||
470 | } | ||
471 | |||
472 | static struct pci_ops iop13xx_atue_ops = { | ||
473 | .read = iop13xx_atue_read_config, | ||
474 | .write = iop13xx_atue_write_config, | ||
475 | }; | ||
476 | |||
477 | /* When a PCI device does not exist during config cycles, the XScale gets a | ||
478 | * bus error instead of returning 0xffffffff. We can't rely on the ATU status | ||
479 | * bits to tell us that it was indeed a configuration cycle that caused this | ||
480 | * error especially in the case when the ATUE link is down. Instead we rely | ||
481 | * on data from the south XSI bridge to validate the abort | ||
482 | */ | ||
483 | int | ||
484 | iop13xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | ||
485 | { | ||
486 | PRINTK("Data abort: address = 0x%08lx " | ||
487 | "fsr = 0x%03x PC = 0x%08lx LR = 0x%08lx", | ||
488 | addr, fsr, regs->ARM_pc, regs->ARM_lr); | ||
489 | |||
490 | PRINTK("IOP13XX_XBG_BECSR: %#10x", __raw_readl(IOP13XX_XBG_BECSR)); | ||
491 | PRINTK("IOP13XX_XBG_BERAR: %#10x", __raw_readl(IOP13XX_XBG_BERAR)); | ||
492 | PRINTK("IOP13XX_XBG_BERUAR: %#10x", __raw_readl(IOP13XX_XBG_BERUAR)); | ||
493 | |||
494 | /* If it was an imprecise abort, then we need to correct the | ||
495 | * return address to be _after_ the instruction. | ||
496 | */ | ||
497 | if (fsr & (1 << 10)) | ||
498 | regs->ARM_pc += 4; | ||
499 | |||
500 | if (is_atue_occdr_error() || is_atux_occdr_error()) | ||
501 | return 0; | ||
502 | else | ||
503 | return 1; | ||
504 | } | ||
505 | |||
506 | /* Scan an IOP13XX PCI bus. nr selects which ATU we use. | ||
507 | */ | ||
508 | struct pci_bus *iop13xx_scan_bus(int nr, struct pci_sys_data *sys) | ||
509 | { | ||
510 | int which_atu; | ||
511 | struct pci_bus *bus = NULL; | ||
512 | |||
513 | switch (init_atu) { | ||
514 | case IOP13XX_INIT_ATU_ATUX: | ||
515 | which_atu = nr ? 0 : IOP13XX_INIT_ATU_ATUX; | ||
516 | break; | ||
517 | case IOP13XX_INIT_ATU_ATUE: | ||
518 | which_atu = nr ? 0 : IOP13XX_INIT_ATU_ATUE; | ||
519 | break; | ||
520 | case (IOP13XX_INIT_ATU_ATUX | IOP13XX_INIT_ATU_ATUE): | ||
521 | which_atu = nr ? IOP13XX_INIT_ATU_ATUE : IOP13XX_INIT_ATU_ATUX; | ||
522 | break; | ||
523 | default: | ||
524 | which_atu = 0; | ||
525 | } | ||
526 | |||
527 | if (!which_atu) { | ||
528 | BUG(); | ||
529 | return NULL; | ||
530 | } | ||
531 | |||
532 | switch (which_atu) { | ||
533 | case IOP13XX_INIT_ATU_ATUX: | ||
534 | if (time_after_eq(jiffies + msecs_to_jiffies(1000), | ||
535 | atux_trhfa_timeout)) /* ensure not wrap */ | ||
536 | while(time_before(jiffies, atux_trhfa_timeout)) | ||
537 | udelay(100); | ||
538 | |||
539 | bus = pci_bus_atux = pci_scan_bus(sys->busnr, | ||
540 | &iop13xx_atux_ops, | ||
541 | sys); | ||
542 | break; | ||
543 | case IOP13XX_INIT_ATU_ATUE: | ||
544 | bus = pci_bus_atue = pci_scan_bus(sys->busnr, | ||
545 | &iop13xx_atue_ops, | ||
546 | sys); | ||
547 | break; | ||
548 | } | ||
549 | |||
550 | return bus; | ||
551 | } | ||
552 | |||
553 | /* This function is called from iop13xx_pci_init() after assigning valid | ||
554 | * values to iop13xx_atue_pmmr_offset. This is the location for common | ||
555 | * setup of ATUE for all IOP13XX implementations. | ||
556 | */ | ||
557 | void __init iop13xx_atue_setup(void) | ||
558 | { | ||
559 | int func = iop13xx_atu_function(IOP13XX_INIT_ATU_ATUE); | ||
560 | u32 reg_val; | ||
561 | |||
562 | /* BAR 1 (1:1 mapping with Physical RAM) */ | ||
563 | /* Set limit and enable */ | ||
564 | __raw_writel(~(IOP13XX_MAX_RAM_SIZE - PHYS_OFFSET - 1) & ~0x1, | ||
565 | IOP13XX_ATUE_IALR1); | ||
566 | __raw_writel(0x0, IOP13XX_ATUE_IAUBAR1); | ||
567 | |||
568 | /* Set base at the top of the reserved address space */ | ||
569 | __raw_writel(PHYS_OFFSET | PCI_BASE_ADDRESS_MEM_TYPE_64 | | ||
570 | PCI_BASE_ADDRESS_MEM_PREFETCH, IOP13XX_ATUE_IABAR1); | ||
571 | |||
572 | /* 1:1 mapping with physical ram | ||
573 | * (leave big endian byte swap disabled) | ||
574 | */ | ||
575 | __raw_writel(0x0, IOP13XX_ATUE_IAUTVR1); | ||
576 | __raw_writel(PHYS_OFFSET, IOP13XX_ATUE_IATVR1); | ||
577 | |||
578 | /* Outbound window 1 (PCIX/PCIE memory window) */ | ||
579 | /* 32 bit Address Space */ | ||
580 | __raw_writel(0x0, IOP13XX_ATUE_OUMWTVR1); | ||
581 | /* PA[35:32] */ | ||
582 | __raw_writel(IOP13XX_ATUE_OUMBAR_ENABLE | | ||
583 | (IOP13XX_PCIE_MEM_PHYS_OFFSET >> 32), | ||
584 | IOP13XX_ATUE_OUMBAR1); | ||
585 | |||
586 | /* Setup the I/O Bar | ||
587 | * A[35-16] in 31-12 | ||
588 | */ | ||
589 | __raw_writel(((IOP13XX_PCIE_LOWER_IO_PA >> 0x4) & 0xfffff000), | ||
590 | IOP13XX_ATUE_OIOBAR); | ||
591 | __raw_writel(IOP13XX_PCIE_LOWER_IO_BA, IOP13XX_ATUE_OIOWTVR); | ||
592 | |||
593 | /* clear startup errors */ | ||
594 | iop13xx_atue_pci_status(1); | ||
595 | |||
596 | /* OIOBAR function number | ||
597 | */ | ||
598 | reg_val = __raw_readl(IOP13XX_ATUE_OIOBAR); | ||
599 | reg_val &= ~0x7; | ||
600 | reg_val |= func; | ||
601 | __raw_writel(reg_val, IOP13XX_ATUE_OIOBAR); | ||
602 | |||
603 | /* OUMBAR function numbers | ||
604 | */ | ||
605 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR0); | ||
606 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
607 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
608 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
609 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR0); | ||
610 | |||
611 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR1); | ||
612 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
613 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
614 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
615 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR1); | ||
616 | |||
617 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR2); | ||
618 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
619 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
620 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
621 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR2); | ||
622 | |||
623 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR3); | ||
624 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
625 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
626 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
627 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR3); | ||
628 | |||
629 | /* Enable inbound and outbound cycles | ||
630 | */ | ||
631 | reg_val = __raw_readw(IOP13XX_ATUE_ATUCMD); | ||
632 | reg_val |= PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | | ||
633 | PCI_COMMAND_PARITY | PCI_COMMAND_SERR; | ||
634 | __raw_writew(reg_val, IOP13XX_ATUE_ATUCMD); | ||
635 | |||
636 | reg_val = __raw_readl(IOP13XX_ATUE_ATUCR); | ||
637 | reg_val |= IOP13XX_ATUE_ATUCR_OUT_EN | | ||
638 | IOP13XX_ATUE_ATUCR_IVM; | ||
639 | __raw_writel(reg_val, IOP13XX_ATUE_ATUCR); | ||
640 | } | ||
641 | |||
642 | void __init iop13xx_atue_disable(void) | ||
643 | { | ||
644 | u32 reg_val; | ||
645 | |||
646 | __raw_writew(0x0, IOP13XX_ATUE_ATUCMD); | ||
647 | __raw_writel(IOP13XX_ATUE_ATUCR_IVM, IOP13XX_ATUE_ATUCR); | ||
648 | |||
649 | /* wait for cycles to quiesce */ | ||
650 | while (__raw_readl(IOP13XX_ATUE_PCSR) & (IOP13XX_ATUE_PCSR_OUT_Q_BUSY | | ||
651 | IOP13XX_ATUE_PCSR_IN_Q_BUSY | | ||
652 | IOP13XX_ATUE_PCSR_LLRB_BUSY)) | ||
653 | cpu_relax(); | ||
654 | |||
655 | /* BAR 0 ( Disabled ) */ | ||
656 | __raw_writel(0x0, IOP13XX_ATUE_IAUBAR0); | ||
657 | __raw_writel(0x0, IOP13XX_ATUE_IABAR0); | ||
658 | __raw_writel(0x0, IOP13XX_ATUE_IAUTVR0); | ||
659 | __raw_writel(0x0, IOP13XX_ATUE_IATVR0); | ||
660 | __raw_writel(0x0, IOP13XX_ATUE_IALR0); | ||
661 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR0); | ||
662 | reg_val &= ~IOP13XX_ATUE_OUMBAR_ENABLE; | ||
663 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR0); | ||
664 | |||
665 | /* BAR 1 ( Disabled ) */ | ||
666 | __raw_writel(0x0, IOP13XX_ATUE_IAUBAR1); | ||
667 | __raw_writel(0x0, IOP13XX_ATUE_IABAR1); | ||
668 | __raw_writel(0x0, IOP13XX_ATUE_IAUTVR1); | ||
669 | __raw_writel(0x0, IOP13XX_ATUE_IATVR1); | ||
670 | __raw_writel(0x0, IOP13XX_ATUE_IALR1); | ||
671 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR1); | ||
672 | reg_val &= ~IOP13XX_ATUE_OUMBAR_ENABLE; | ||
673 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR1); | ||
674 | |||
675 | /* BAR 2 ( Disabled ) */ | ||
676 | __raw_writel(0x0, IOP13XX_ATUE_IAUBAR2); | ||
677 | __raw_writel(0x0, IOP13XX_ATUE_IABAR2); | ||
678 | __raw_writel(0x0, IOP13XX_ATUE_IAUTVR2); | ||
679 | __raw_writel(0x0, IOP13XX_ATUE_IATVR2); | ||
680 | __raw_writel(0x0, IOP13XX_ATUE_IALR2); | ||
681 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR2); | ||
682 | reg_val &= ~IOP13XX_ATUE_OUMBAR_ENABLE; | ||
683 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR2); | ||
684 | |||
685 | /* BAR 3 ( Disabled ) */ | ||
686 | reg_val = __raw_readl(IOP13XX_ATUE_OUMBAR3); | ||
687 | reg_val &= ~IOP13XX_ATUE_OUMBAR_ENABLE; | ||
688 | __raw_writel(reg_val, IOP13XX_ATUE_OUMBAR3); | ||
689 | |||
690 | /* Setup the I/O Bar | ||
691 | * A[35-16] in 31-12 | ||
692 | */ | ||
693 | __raw_writel((IOP13XX_PCIE_LOWER_IO_PA >> 0x4) & 0xfffff000, | ||
694 | IOP13XX_ATUE_OIOBAR); | ||
695 | __raw_writel(IOP13XX_PCIE_LOWER_IO_BA, IOP13XX_ATUE_OIOWTVR); | ||
696 | } | ||
697 | |||
698 | /* This function is called from iop13xx_pci_init() after assigning valid | ||
699 | * values to iop13xx_atux_pmmr_offset. This is the location for common | ||
700 | * setup of ATUX for all IOP13XX implementations. | ||
701 | */ | ||
702 | void __init iop13xx_atux_setup(void) | ||
703 | { | ||
704 | u32 reg_val; | ||
705 | int func = iop13xx_atu_function(IOP13XX_INIT_ATU_ATUX); | ||
706 | |||
707 | /* Take PCI-X bus out of reset if bootloader hasn't already. | ||
708 | * According to spec, we should wait for 2^25 PCI clocks to meet | ||
709 | * the PCI timing parameter Trhfa (RST# high to first access). | ||
710 | * This is rarely necessary and often ignored. | ||
711 | */ | ||
712 | reg_val = __raw_readl(IOP13XX_ATUX_PCSR); | ||
713 | if (reg_val & IOP13XX_ATUX_PCSR_P_RSTOUT) { | ||
714 | int msec = (reg_val >> IOP13XX_ATUX_PCSR_FREQ_OFFSET) & 0x7; | ||
715 | msec = 1000 / (8-msec); /* bits 100=133MHz, 111=>33MHz */ | ||
716 | __raw_writel(reg_val & ~IOP13XX_ATUX_PCSR_P_RSTOUT, | ||
717 | IOP13XX_ATUX_PCSR); | ||
718 | atux_trhfa_timeout = jiffies + msecs_to_jiffies(msec); | ||
719 | } | ||
720 | else | ||
721 | atux_trhfa_timeout = jiffies; | ||
722 | |||
723 | /* BAR 1 (1:1 mapping with Physical RAM) */ | ||
724 | /* Set limit and enable */ | ||
725 | __raw_writel(~(IOP13XX_MAX_RAM_SIZE - PHYS_OFFSET - 1) & ~0x1, | ||
726 | IOP13XX_ATUX_IALR1); | ||
727 | __raw_writel(0x0, IOP13XX_ATUX_IAUBAR1); | ||
728 | |||
729 | /* Set base at the top of the reserved address space */ | ||
730 | __raw_writel(PHYS_OFFSET | PCI_BASE_ADDRESS_MEM_TYPE_64 | | ||
731 | PCI_BASE_ADDRESS_MEM_PREFETCH, IOP13XX_ATUX_IABAR1); | ||
732 | |||
733 | /* 1:1 mapping with physical ram | ||
734 | * (leave big endian byte swap disabled) | ||
735 | */ | ||
736 | __raw_writel(0x0, IOP13XX_ATUX_IAUTVR1); | ||
737 | __raw_writel(PHYS_OFFSET, IOP13XX_ATUX_IATVR1); | ||
738 | |||
739 | /* Outbound window 1 (PCIX/PCIE memory window) */ | ||
740 | /* 32 bit Address Space */ | ||
741 | __raw_writel(0x0, IOP13XX_ATUX_OUMWTVR1); | ||
742 | /* PA[35:32] */ | ||
743 | __raw_writel(IOP13XX_ATUX_OUMBAR_ENABLE | | ||
744 | IOP13XX_PCIX_MEM_PHYS_OFFSET >> 32, | ||
745 | IOP13XX_ATUX_OUMBAR1); | ||
746 | |||
747 | /* Setup the I/O Bar | ||
748 | * A[35-16] in 31-12 | ||
749 | */ | ||
750 | __raw_writel((IOP13XX_PCIX_LOWER_IO_PA >> 0x4) & 0xfffff000, | ||
751 | IOP13XX_ATUX_OIOBAR); | ||
752 | __raw_writel(IOP13XX_PCIX_LOWER_IO_BA, IOP13XX_ATUX_OIOWTVR); | ||
753 | |||
754 | /* clear startup errors */ | ||
755 | iop13xx_atux_pci_status(1); | ||
756 | |||
757 | /* OIOBAR function number | ||
758 | */ | ||
759 | reg_val = __raw_readl(IOP13XX_ATUX_OIOBAR); | ||
760 | reg_val &= ~0x7; | ||
761 | reg_val |= func; | ||
762 | __raw_writel(reg_val, IOP13XX_ATUX_OIOBAR); | ||
763 | |||
764 | /* OUMBAR function numbers | ||
765 | */ | ||
766 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR0); | ||
767 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
768 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
769 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
770 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR0); | ||
771 | |||
772 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR1); | ||
773 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
774 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
775 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
776 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR1); | ||
777 | |||
778 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR2); | ||
779 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
780 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
781 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
782 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR2); | ||
783 | |||
784 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR3); | ||
785 | reg_val &= ~(IOP13XX_ATU_OUMBAR_FUNC_NUM_MASK << | ||
786 | IOP13XX_ATU_OUMBAR_FUNC_NUM); | ||
787 | reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; | ||
788 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR3); | ||
789 | |||
790 | /* Enable inbound and outbound cycles | ||
791 | */ | ||
792 | reg_val = __raw_readw(IOP13XX_ATUX_ATUCMD); | ||
793 | reg_val |= PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | | ||
794 | PCI_COMMAND_PARITY | PCI_COMMAND_SERR; | ||
795 | __raw_writew(reg_val, IOP13XX_ATUX_ATUCMD); | ||
796 | |||
797 | reg_val = __raw_readl(IOP13XX_ATUX_ATUCR); | ||
798 | reg_val |= IOP13XX_ATUX_ATUCR_OUT_EN; | ||
799 | __raw_writel(reg_val, IOP13XX_ATUX_ATUCR); | ||
800 | } | ||
801 | |||
802 | void __init iop13xx_atux_disable(void) | ||
803 | { | ||
804 | u32 reg_val; | ||
805 | |||
806 | __raw_writew(0x0, IOP13XX_ATUX_ATUCMD); | ||
807 | __raw_writel(0x0, IOP13XX_ATUX_ATUCR); | ||
808 | |||
809 | /* wait for cycles to quiesce */ | ||
810 | while (__raw_readl(IOP13XX_ATUX_PCSR) & (IOP13XX_ATUX_PCSR_OUT_Q_BUSY | | ||
811 | IOP13XX_ATUX_PCSR_IN_Q_BUSY)) | ||
812 | cpu_relax(); | ||
813 | |||
814 | /* BAR 0 ( Disabled ) */ | ||
815 | __raw_writel(0x0, IOP13XX_ATUX_IAUBAR0); | ||
816 | __raw_writel(0x0, IOP13XX_ATUX_IABAR0); | ||
817 | __raw_writel(0x0, IOP13XX_ATUX_IAUTVR0); | ||
818 | __raw_writel(0x0, IOP13XX_ATUX_IATVR0); | ||
819 | __raw_writel(0x0, IOP13XX_ATUX_IALR0); | ||
820 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR0); | ||
821 | reg_val &= ~IOP13XX_ATUX_OUMBAR_ENABLE; | ||
822 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR0); | ||
823 | |||
824 | /* BAR 1 ( Disabled ) */ | ||
825 | __raw_writel(0x0, IOP13XX_ATUX_IAUBAR1); | ||
826 | __raw_writel(0x0, IOP13XX_ATUX_IABAR1); | ||
827 | __raw_writel(0x0, IOP13XX_ATUX_IAUTVR1); | ||
828 | __raw_writel(0x0, IOP13XX_ATUX_IATVR1); | ||
829 | __raw_writel(0x0, IOP13XX_ATUX_IALR1); | ||
830 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR1); | ||
831 | reg_val &= ~IOP13XX_ATUX_OUMBAR_ENABLE; | ||
832 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR1); | ||
833 | |||
834 | /* BAR 2 ( Disabled ) */ | ||
835 | __raw_writel(0x0, IOP13XX_ATUX_IAUBAR2); | ||
836 | __raw_writel(0x0, IOP13XX_ATUX_IABAR2); | ||
837 | __raw_writel(0x0, IOP13XX_ATUX_IAUTVR2); | ||
838 | __raw_writel(0x0, IOP13XX_ATUX_IATVR2); | ||
839 | __raw_writel(0x0, IOP13XX_ATUX_IALR2); | ||
840 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR2); | ||
841 | reg_val &= ~IOP13XX_ATUX_OUMBAR_ENABLE; | ||
842 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR2); | ||
843 | |||
844 | /* BAR 3 ( Disabled ) */ | ||
845 | __raw_writel(0x0, IOP13XX_ATUX_IAUBAR3); | ||
846 | __raw_writel(0x0, IOP13XX_ATUX_IABAR3); | ||
847 | __raw_writel(0x0, IOP13XX_ATUX_IAUTVR3); | ||
848 | __raw_writel(0x0, IOP13XX_ATUX_IATVR3); | ||
849 | __raw_writel(0x0, IOP13XX_ATUX_IALR3); | ||
850 | reg_val = __raw_readl(IOP13XX_ATUX_OUMBAR3); | ||
851 | reg_val &= ~IOP13XX_ATUX_OUMBAR_ENABLE; | ||
852 | __raw_writel(reg_val, IOP13XX_ATUX_OUMBAR3); | ||
853 | |||
854 | /* Setup the I/O Bar | ||
855 | * A[35-16] in 31-12 | ||
856 | */ | ||
857 | __raw_writel((IOP13XX_PCIX_LOWER_IO_PA >> 0x4) & 0xfffff000, | ||
858 | IOP13XX_ATUX_OIOBAR); | ||
859 | __raw_writel(IOP13XX_PCIX_LOWER_IO_BA, IOP13XX_ATUX_OIOWTVR); | ||
860 | } | ||
861 | |||
862 | void __init iop13xx_set_atu_mmr_bases(void) | ||
863 | { | ||
864 | /* Based on ESSR0, determine the ATU X/E offsets */ | ||
865 | switch(__raw_readl(IOP13XX_ESSR0) & | ||
866 | (IOP13XX_CONTROLLER_ONLY | IOP13XX_INTERFACE_SEL_PCIX)) { | ||
867 | /* both asserted */ | ||
868 | case 0: | ||
869 | iop13xx_atux_pmmr_offset = IOP13XX_ATU1_PMMR_OFFSET; | ||
870 | iop13xx_atue_pmmr_offset = IOP13XX_ATU2_PMMR_OFFSET; | ||
871 | break; | ||
872 | /* IOP13XX_CONTROLLER_ONLY = deasserted | ||
873 | * IOP13XX_INTERFACE_SEL_PCIX = asserted | ||
874 | */ | ||
875 | case IOP13XX_CONTROLLER_ONLY: | ||
876 | iop13xx_atux_pmmr_offset = IOP13XX_ATU0_PMMR_OFFSET; | ||
877 | iop13xx_atue_pmmr_offset = IOP13XX_ATU2_PMMR_OFFSET; | ||
878 | break; | ||
879 | /* IOP13XX_CONTROLLER_ONLY = asserted | ||
880 | * IOP13XX_INTERFACE_SEL_PCIX = deasserted | ||
881 | */ | ||
882 | case IOP13XX_INTERFACE_SEL_PCIX: | ||
883 | iop13xx_atux_pmmr_offset = IOP13XX_ATU1_PMMR_OFFSET; | ||
884 | iop13xx_atue_pmmr_offset = IOP13XX_ATU2_PMMR_OFFSET; | ||
885 | break; | ||
886 | /* both deasserted */ | ||
887 | case IOP13XX_CONTROLLER_ONLY | IOP13XX_INTERFACE_SEL_PCIX: | ||
888 | iop13xx_atux_pmmr_offset = IOP13XX_ATU2_PMMR_OFFSET; | ||
889 | iop13xx_atue_pmmr_offset = IOP13XX_ATU0_PMMR_OFFSET; | ||
890 | break; | ||
891 | default: | ||
892 | BUG(); | ||
893 | } | ||
894 | } | ||
895 | |||
896 | void __init iop13xx_atu_select(struct hw_pci *plat_pci) | ||
897 | { | ||
898 | int i; | ||
899 | |||
900 | /* set system defaults | ||
901 | * note: if "iop13xx_init_atu=" is specified this autodetect | ||
902 | * sequence will be bypassed | ||
903 | */ | ||
904 | if (init_atu == IOP13XX_INIT_ATU_DEFAULT) { | ||
905 | /* check for single/dual interface */ | ||
906 | if (__raw_readl(IOP13XX_ESSR0) & IOP13XX_INTERFACE_SEL_PCIX) { | ||
907 | /* ATUE must be present check the device id | ||
908 | * to see if ATUX is present. | ||
909 | */ | ||
910 | init_atu |= IOP13XX_INIT_ATU_ATUE; | ||
911 | switch (__raw_readw(IOP13XX_ATUE_DID) & 0xf0) { | ||
912 | case 0x70: | ||
913 | case 0x80: | ||
914 | case 0xc0: | ||
915 | init_atu |= IOP13XX_INIT_ATU_ATUX; | ||
916 | break; | ||
917 | } | ||
918 | } else { | ||
919 | /* ATUX must be present check the device id | ||
920 | * to see if ATUE is present. | ||
921 | */ | ||
922 | init_atu |= IOP13XX_INIT_ATU_ATUX; | ||
923 | switch (__raw_readw(IOP13XX_ATUX_DID) & 0xf0) { | ||
924 | case 0x70: | ||
925 | case 0x80: | ||
926 | case 0xc0: | ||
927 | init_atu |= IOP13XX_INIT_ATU_ATUE; | ||
928 | break; | ||
929 | } | ||
930 | } | ||
931 | |||
932 | /* check central resource and root complex capability */ | ||
933 | if (init_atu & IOP13XX_INIT_ATU_ATUX) | ||
934 | if (!(__raw_readl(IOP13XX_ATUX_PCSR) & | ||
935 | IOP13XX_ATUX_PCSR_CENTRAL_RES)) | ||
936 | init_atu &= ~IOP13XX_INIT_ATU_ATUX; | ||
937 | |||
938 | if (init_atu & IOP13XX_INIT_ATU_ATUE) | ||
939 | if (__raw_readl(IOP13XX_ATUE_PCSR) & | ||
940 | IOP13XX_ATUE_PCSR_END_POINT) | ||
941 | init_atu &= ~IOP13XX_INIT_ATU_ATUE; | ||
942 | } | ||
943 | |||
944 | for (i = 0; i < 2; i++) { | ||
945 | if((init_atu & (1 << i)) == (1 << i)) | ||
946 | plat_pci->nr_controllers++; | ||
947 | } | ||
948 | } | ||
949 | |||
950 | void __init iop13xx_pci_init(void) | ||
951 | { | ||
952 | /* clear pre-existing south bridge errors */ | ||
953 | __raw_writel(__raw_readl(IOP13XX_XBG_BECSR) & 3, IOP13XX_XBG_BECSR); | ||
954 | |||
955 | /* Setup the Min Address for PCI memory... */ | ||
956 | iop13xx_pcibios_min_mem = IOP13XX_PCIX_LOWER_MEM_BA; | ||
957 | |||
958 | /* if Linux is given control of an ATU | ||
959 | * clear out its prior configuration, | ||
960 | * otherwise do not touch the registers | ||
961 | */ | ||
962 | if (init_atu & IOP13XX_INIT_ATU_ATUE) { | ||
963 | iop13xx_atue_disable(); | ||
964 | iop13xx_atue_setup(); | ||
965 | } | ||
966 | |||
967 | if (init_atu & IOP13XX_INIT_ATU_ATUX) { | ||
968 | iop13xx_atux_disable(); | ||
969 | iop13xx_atux_setup(); | ||
970 | } | ||
971 | |||
972 | hook_fault_code(16+6, iop13xx_pci_abort, SIGBUS, | ||
973 | "imprecise external abort"); | ||
974 | } | ||
975 | |||
976 | /* intialize the pci memory space. handle any combination of | ||
977 | * atue and atux enabled/disabled | ||
978 | */ | ||
979 | int iop13xx_pci_setup(int nr, struct pci_sys_data *sys) | ||
980 | { | ||
981 | struct resource *res; | ||
982 | int which_atu; | ||
983 | u32 pcixsr, pcsr; | ||
984 | |||
985 | if (nr > 1) | ||
986 | return 0; | ||
987 | |||
988 | res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL); | ||
989 | if (!res) | ||
990 | panic("PCI: unable to alloc resources"); | ||
991 | |||
992 | memset(res, 0, sizeof(struct resource) * 2); | ||
993 | |||
994 | /* 'nr' assumptions: | ||
995 | * ATUX is always 0 | ||
996 | * ATUE is 1 when ATUX is also enabled | ||
997 | * ATUE is 0 when ATUX is disabled | ||
998 | */ | ||
999 | switch(init_atu) { | ||
1000 | case IOP13XX_INIT_ATU_ATUX: | ||
1001 | which_atu = nr ? 0 : IOP13XX_INIT_ATU_ATUX; | ||
1002 | break; | ||
1003 | case IOP13XX_INIT_ATU_ATUE: | ||
1004 | which_atu = nr ? 0 : IOP13XX_INIT_ATU_ATUE; | ||
1005 | break; | ||
1006 | case (IOP13XX_INIT_ATU_ATUX | IOP13XX_INIT_ATU_ATUE): | ||
1007 | which_atu = nr ? IOP13XX_INIT_ATU_ATUE : IOP13XX_INIT_ATU_ATUX; | ||
1008 | break; | ||
1009 | default: | ||
1010 | which_atu = 0; | ||
1011 | } | ||
1012 | |||
1013 | if (!which_atu) | ||
1014 | return 0; | ||
1015 | |||
1016 | switch(which_atu) { | ||
1017 | case IOP13XX_INIT_ATU_ATUX: | ||
1018 | pcixsr = __raw_readl(IOP13XX_ATUX_PCIXSR); | ||
1019 | pcixsr &= ~0xffff; | ||
1020 | pcixsr |= sys->busnr << IOP13XX_ATUX_PCIXSR_BUS_NUM | | ||
1021 | 0 << IOP13XX_ATUX_PCIXSR_DEV_NUM | | ||
1022 | iop13xx_atu_function(IOP13XX_INIT_ATU_ATUX) | ||
1023 | << IOP13XX_ATUX_PCIXSR_FUNC_NUM; | ||
1024 | __raw_writel(pcixsr, IOP13XX_ATUX_PCIXSR); | ||
1025 | |||
1026 | res[0].start = IOP13XX_PCIX_LOWER_IO_PA; | ||
1027 | res[0].end = IOP13XX_PCIX_UPPER_IO_PA; | ||
1028 | res[0].name = "IQ81340 ATUX PCI I/O Space"; | ||
1029 | res[0].flags = IORESOURCE_IO; | ||
1030 | |||
1031 | res[1].start = IOP13XX_PCIX_LOWER_MEM_RA; | ||
1032 | res[1].end = IOP13XX_PCIX_UPPER_MEM_RA; | ||
1033 | res[1].name = "IQ81340 ATUX PCI Memory Space"; | ||
1034 | res[1].flags = IORESOURCE_MEM; | ||
1035 | sys->mem_offset = IOP13XX_PCIX_MEM_OFFSET; | ||
1036 | sys->io_offset = IOP13XX_PCIX_IO_OFFSET; | ||
1037 | break; | ||
1038 | case IOP13XX_INIT_ATU_ATUE: | ||
1039 | /* Note: the function number field in the PCSR is ro */ | ||
1040 | pcsr = __raw_readl(IOP13XX_ATUE_PCSR); | ||
1041 | pcsr &= ~(0xfff8 << 16); | ||
1042 | pcsr |= sys->busnr << IOP13XX_ATUE_PCSR_BUS_NUM | | ||
1043 | 0 << IOP13XX_ATUE_PCSR_DEV_NUM; | ||
1044 | |||
1045 | __raw_writel(pcsr, IOP13XX_ATUE_PCSR); | ||
1046 | |||
1047 | res[0].start = IOP13XX_PCIE_LOWER_IO_PA; | ||
1048 | res[0].end = IOP13XX_PCIE_UPPER_IO_PA; | ||
1049 | res[0].name = "IQ81340 ATUE PCI I/O Space"; | ||
1050 | res[0].flags = IORESOURCE_IO; | ||
1051 | |||
1052 | res[1].start = IOP13XX_PCIE_LOWER_MEM_RA; | ||
1053 | res[1].end = IOP13XX_PCIE_UPPER_MEM_RA; | ||
1054 | res[1].name = "IQ81340 ATUE PCI Memory Space"; | ||
1055 | res[1].flags = IORESOURCE_MEM; | ||
1056 | sys->mem_offset = IOP13XX_PCIE_MEM_OFFSET; | ||
1057 | sys->io_offset = IOP13XX_PCIE_IO_OFFSET; | ||
1058 | sys->map_irq = iop13xx_pcie_map_irq; | ||
1059 | break; | ||
1060 | default: | ||
1061 | return 0; | ||
1062 | } | ||
1063 | |||
1064 | request_resource(&ioport_resource, &res[0]); | ||
1065 | request_resource(&iomem_resource, &res[1]); | ||
1066 | |||
1067 | sys->resource[0] = &res[0]; | ||
1068 | sys->resource[1] = &res[1]; | ||
1069 | sys->resource[2] = NULL; | ||
1070 | |||
1071 | return 1; | ||
1072 | } | ||
1073 | |||
1074 | u16 iop13xx_dev_id(void) | ||
1075 | { | ||
1076 | if (__raw_readl(IOP13XX_ESSR0) & IOP13XX_INTERFACE_SEL_PCIX) | ||
1077 | return __raw_readw(IOP13XX_ATUE_DID); | ||
1078 | else | ||
1079 | return __raw_readw(IOP13XX_ATUX_DID); | ||
1080 | } | ||
1081 | |||
1082 | static int __init iop13xx_init_atu_setup(char *str) | ||
1083 | { | ||
1084 | init_atu = IOP13XX_INIT_ATU_NONE; | ||
1085 | if (str) { | ||
1086 | while (*str != '\0') { | ||
1087 | switch (*str) { | ||
1088 | case 'x': | ||
1089 | case 'X': | ||
1090 | init_atu |= IOP13XX_INIT_ATU_ATUX; | ||
1091 | init_atu &= ~IOP13XX_INIT_ATU_NONE; | ||
1092 | break; | ||
1093 | case 'e': | ||
1094 | case 'E': | ||
1095 | init_atu |= IOP13XX_INIT_ATU_ATUE; | ||
1096 | init_atu &= ~IOP13XX_INIT_ATU_NONE; | ||
1097 | break; | ||
1098 | case ',': | ||
1099 | case '=': | ||
1100 | break; | ||
1101 | default: | ||
1102 | PRINTK("\"iop13xx_init_atu\" malformed at " | ||
1103 | "character: \'%c\'", *str); | ||
1104 | *(str + 1) = '\0'; | ||
1105 | init_atu = IOP13XX_INIT_ATU_DEFAULT; | ||
1106 | } | ||
1107 | str++; | ||
1108 | } | ||
1109 | } | ||
1110 | return 1; | ||
1111 | } | ||
1112 | |||
1113 | __setup("iop13xx_init_atu", iop13xx_init_atu_setup); | ||
diff --git a/arch/arm/mach-iop13xx/setup.c b/arch/arm/mach-iop13xx/setup.c new file mode 100644 index 000000000000..5fbeb28d04bb --- /dev/null +++ b/arch/arm/mach-iop13xx/setup.c | |||
@@ -0,0 +1,406 @@ | |||
1 | /* | ||
2 | * iop13xx platform Initialization | ||
3 | * Copyright (c) 2005-2006, Intel Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
16 | * Place - Suite 330, Boston, MA 02111-1307 USA. | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #include <linux/serial_8250.h> | ||
21 | #ifdef CONFIG_MTD_PHYSMAP | ||
22 | #include <linux/mtd/physmap.h> | ||
23 | #endif | ||
24 | #include <asm/mach/map.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/irq.h> | ||
27 | |||
28 | #define IOP13XX_UART_XTAL 33334000 | ||
29 | #define IOP13XX_SETUP_DEBUG 0 | ||
30 | #define PRINTK(x...) ((void)(IOP13XX_SETUP_DEBUG && printk(x))) | ||
31 | |||
32 | /* Standard IO mapping for all IOP13XX based systems | ||
33 | */ | ||
34 | static struct map_desc iop13xx_std_desc[] __initdata = { | ||
35 | { /* mem mapped registers */ | ||
36 | .virtual = IOP13XX_PMMR_VIRT_MEM_BASE, | ||
37 | .pfn = __phys_to_pfn(IOP13XX_PMMR_PHYS_MEM_BASE), | ||
38 | .length = IOP13XX_PMMR_SIZE, | ||
39 | .type = MT_DEVICE, | ||
40 | }, { /* PCIE IO space */ | ||
41 | .virtual = IOP13XX_PCIE_LOWER_IO_VA, | ||
42 | .pfn = __phys_to_pfn(IOP13XX_PCIE_LOWER_IO_PA), | ||
43 | .length = IOP13XX_PCIX_IO_WINDOW_SIZE, | ||
44 | .type = MT_DEVICE, | ||
45 | }, { /* PCIX IO space */ | ||
46 | .virtual = IOP13XX_PCIX_LOWER_IO_VA, | ||
47 | .pfn = __phys_to_pfn(IOP13XX_PCIX_LOWER_IO_PA), | ||
48 | .length = IOP13XX_PCIX_IO_WINDOW_SIZE, | ||
49 | .type = MT_DEVICE, | ||
50 | }, | ||
51 | }; | ||
52 | |||
53 | static struct resource iop13xx_uart0_resources[] = { | ||
54 | [0] = { | ||
55 | .start = IOP13XX_UART0_PHYS, | ||
56 | .end = IOP13XX_UART0_PHYS + 0x3f, | ||
57 | .flags = IORESOURCE_MEM, | ||
58 | }, | ||
59 | [1] = { | ||
60 | .start = IRQ_IOP13XX_UART0, | ||
61 | .end = IRQ_IOP13XX_UART0, | ||
62 | .flags = IORESOURCE_IRQ | ||
63 | } | ||
64 | }; | ||
65 | |||
66 | static struct resource iop13xx_uart1_resources[] = { | ||
67 | [0] = { | ||
68 | .start = IOP13XX_UART1_PHYS, | ||
69 | .end = IOP13XX_UART1_PHYS + 0x3f, | ||
70 | .flags = IORESOURCE_MEM, | ||
71 | }, | ||
72 | [1] = { | ||
73 | .start = IRQ_IOP13XX_UART1, | ||
74 | .end = IRQ_IOP13XX_UART1, | ||
75 | .flags = IORESOURCE_IRQ | ||
76 | } | ||
77 | }; | ||
78 | |||
79 | static struct plat_serial8250_port iop13xx_uart0_data[] = { | ||
80 | { | ||
81 | .membase = (char*)(IOP13XX_UART0_VIRT), | ||
82 | .mapbase = (IOP13XX_UART0_PHYS), | ||
83 | .irq = IRQ_IOP13XX_UART0, | ||
84 | .uartclk = IOP13XX_UART_XTAL, | ||
85 | .regshift = 2, | ||
86 | .iotype = UPIO_MEM, | ||
87 | .flags = UPF_SKIP_TEST, | ||
88 | }, | ||
89 | { }, | ||
90 | }; | ||
91 | |||
92 | static struct plat_serial8250_port iop13xx_uart1_data[] = { | ||
93 | { | ||
94 | .membase = (char*)(IOP13XX_UART1_VIRT), | ||
95 | .mapbase = (IOP13XX_UART1_PHYS), | ||
96 | .irq = IRQ_IOP13XX_UART1, | ||
97 | .uartclk = IOP13XX_UART_XTAL, | ||
98 | .regshift = 2, | ||
99 | .iotype = UPIO_MEM, | ||
100 | .flags = UPF_SKIP_TEST, | ||
101 | }, | ||
102 | { }, | ||
103 | }; | ||
104 | |||
105 | /* The ids are fixed up later in iop13xx_platform_init */ | ||
106 | static struct platform_device iop13xx_uart0 = { | ||
107 | .name = "serial8250", | ||
108 | .id = 0, | ||
109 | .dev.platform_data = iop13xx_uart0_data, | ||
110 | .num_resources = 2, | ||
111 | .resource = iop13xx_uart0_resources, | ||
112 | }; | ||
113 | |||
114 | static struct platform_device iop13xx_uart1 = { | ||
115 | .name = "serial8250", | ||
116 | .id = 0, | ||
117 | .dev.platform_data = iop13xx_uart1_data, | ||
118 | .num_resources = 2, | ||
119 | .resource = iop13xx_uart1_resources | ||
120 | }; | ||
121 | |||
122 | static struct resource iop13xx_i2c_0_resources[] = { | ||
123 | [0] = { | ||
124 | .start = IOP13XX_I2C0_PHYS, | ||
125 | .end = IOP13XX_I2C0_PHYS + 0x18, | ||
126 | .flags = IORESOURCE_MEM, | ||
127 | }, | ||
128 | [1] = { | ||
129 | .start = IRQ_IOP13XX_I2C_0, | ||
130 | .end = IRQ_IOP13XX_I2C_0, | ||
131 | .flags = IORESOURCE_IRQ | ||
132 | } | ||
133 | }; | ||
134 | |||
135 | static struct resource iop13xx_i2c_1_resources[] = { | ||
136 | [0] = { | ||
137 | .start = IOP13XX_I2C1_PHYS, | ||
138 | .end = IOP13XX_I2C1_PHYS + 0x18, | ||
139 | .flags = IORESOURCE_MEM, | ||
140 | }, | ||
141 | [1] = { | ||
142 | .start = IRQ_IOP13XX_I2C_1, | ||
143 | .end = IRQ_IOP13XX_I2C_1, | ||
144 | .flags = IORESOURCE_IRQ | ||
145 | } | ||
146 | }; | ||
147 | |||
148 | static struct resource iop13xx_i2c_2_resources[] = { | ||
149 | [0] = { | ||
150 | .start = IOP13XX_I2C2_PHYS, | ||
151 | .end = IOP13XX_I2C2_PHYS + 0x18, | ||
152 | .flags = IORESOURCE_MEM, | ||
153 | }, | ||
154 | [1] = { | ||
155 | .start = IRQ_IOP13XX_I2C_2, | ||
156 | .end = IRQ_IOP13XX_I2C_2, | ||
157 | .flags = IORESOURCE_IRQ | ||
158 | } | ||
159 | }; | ||
160 | |||
161 | /* I2C controllers. The IOP13XX uses the same block as the IOP3xx, so | ||
162 | * we just use the same device name. | ||
163 | */ | ||
164 | |||
165 | /* The ids are fixed up later in iop13xx_platform_init */ | ||
166 | static struct platform_device iop13xx_i2c_0_controller = { | ||
167 | .name = "IOP3xx-I2C", | ||
168 | .id = 0, | ||
169 | .num_resources = 2, | ||
170 | .resource = iop13xx_i2c_0_resources | ||
171 | }; | ||
172 | |||
173 | static struct platform_device iop13xx_i2c_1_controller = { | ||
174 | .name = "IOP3xx-I2C", | ||
175 | .id = 0, | ||
176 | .num_resources = 2, | ||
177 | .resource = iop13xx_i2c_1_resources | ||
178 | }; | ||
179 | |||
180 | static struct platform_device iop13xx_i2c_2_controller = { | ||
181 | .name = "IOP3xx-I2C", | ||
182 | .id = 0, | ||
183 | .num_resources = 2, | ||
184 | .resource = iop13xx_i2c_2_resources | ||
185 | }; | ||
186 | |||
187 | #ifdef CONFIG_MTD_PHYSMAP | ||
188 | /* PBI Flash Device | ||
189 | */ | ||
190 | static struct physmap_flash_data iq8134x_flash_data = { | ||
191 | .width = 2, | ||
192 | }; | ||
193 | |||
194 | static struct resource iq8134x_flash_resource = { | ||
195 | .start = IQ81340_FLASHBASE, | ||
196 | .end = 0, | ||
197 | .flags = IORESOURCE_MEM, | ||
198 | }; | ||
199 | |||
200 | static struct platform_device iq8134x_flash = { | ||
201 | .name = "physmap-flash", | ||
202 | .id = 0, | ||
203 | .dev = { .platform_data = &iq8134x_flash_data, }, | ||
204 | .num_resources = 1, | ||
205 | .resource = &iq8134x_flash_resource, | ||
206 | }; | ||
207 | |||
208 | static unsigned long iq8134x_probe_flash_size(void) | ||
209 | { | ||
210 | uint8_t __iomem *flash_addr = ioremap(IQ81340_FLASHBASE, PAGE_SIZE); | ||
211 | int i; | ||
212 | char query[3]; | ||
213 | unsigned long size = 0; | ||
214 | int width = iq8134x_flash_data.width; | ||
215 | |||
216 | if (flash_addr) { | ||
217 | /* send CFI 'query' command */ | ||
218 | writew(0x98, flash_addr); | ||
219 | |||
220 | /* check for CFI compliance */ | ||
221 | for (i = 0; i < 3 * width; i += width) | ||
222 | query[i / width] = readb(flash_addr + (0x10 * width) + i); | ||
223 | |||
224 | /* read the size */ | ||
225 | if (memcmp(query, "QRY", 3) == 0) | ||
226 | size = 1 << readb(flash_addr + (0x27 * width)); | ||
227 | |||
228 | /* send CFI 'read array' command */ | ||
229 | writew(0xff, flash_addr); | ||
230 | |||
231 | iounmap(flash_addr); | ||
232 | } | ||
233 | |||
234 | return size; | ||
235 | } | ||
236 | #endif | ||
237 | |||
238 | void __init iop13xx_map_io(void) | ||
239 | { | ||
240 | /* Initialize the Static Page Table maps */ | ||
241 | iotable_init(iop13xx_std_desc, ARRAY_SIZE(iop13xx_std_desc)); | ||
242 | } | ||
243 | |||
244 | static int init_uart = 0; | ||
245 | static int init_i2c = 0; | ||
246 | |||
247 | void __init iop13xx_platform_init(void) | ||
248 | { | ||
249 | int i; | ||
250 | u32 uart_idx, i2c_idx, plat_idx; | ||
251 | struct platform_device *iop13xx_devices[IQ81340_MAX_PLAT_DEVICES]; | ||
252 | |||
253 | /* set the bases so we can read the device id */ | ||
254 | iop13xx_set_atu_mmr_bases(); | ||
255 | |||
256 | memset(iop13xx_devices, 0, sizeof(iop13xx_devices)); | ||
257 | |||
258 | if (init_uart == IOP13XX_INIT_UART_DEFAULT) { | ||
259 | switch (iop13xx_dev_id()) { | ||
260 | /* enable both uarts on iop341 and iop342 */ | ||
261 | case 0x3380: | ||
262 | case 0x3384: | ||
263 | case 0x3388: | ||
264 | case 0x338c: | ||
265 | case 0x3382: | ||
266 | case 0x3386: | ||
267 | case 0x338a: | ||
268 | case 0x338e: | ||
269 | init_uart |= IOP13XX_INIT_UART_0; | ||
270 | init_uart |= IOP13XX_INIT_UART_1; | ||
271 | break; | ||
272 | /* only enable uart 1 */ | ||
273 | default: | ||
274 | init_uart |= IOP13XX_INIT_UART_1; | ||
275 | } | ||
276 | } | ||
277 | |||
278 | if (init_i2c == IOP13XX_INIT_I2C_DEFAULT) { | ||
279 | switch (iop13xx_dev_id()) { | ||
280 | /* enable all i2c units on iop341 and iop342 */ | ||
281 | case 0x3380: | ||
282 | case 0x3384: | ||
283 | case 0x3388: | ||
284 | case 0x338c: | ||
285 | case 0x3382: | ||
286 | case 0x3386: | ||
287 | case 0x338a: | ||
288 | case 0x338e: | ||
289 | init_i2c |= IOP13XX_INIT_I2C_0; | ||
290 | init_i2c |= IOP13XX_INIT_I2C_1; | ||
291 | init_i2c |= IOP13XX_INIT_I2C_2; | ||
292 | break; | ||
293 | /* only enable i2c 1 and 2 */ | ||
294 | default: | ||
295 | init_i2c |= IOP13XX_INIT_I2C_1; | ||
296 | init_i2c |= IOP13XX_INIT_I2C_2; | ||
297 | } | ||
298 | } | ||
299 | |||
300 | plat_idx = 0; | ||
301 | uart_idx = 0; | ||
302 | i2c_idx = 0; | ||
303 | |||
304 | /* uart 1 (if enabled) is ttyS0 */ | ||
305 | if (init_uart & IOP13XX_INIT_UART_1) { | ||
306 | PRINTK("Adding uart1 to platform device list\n"); | ||
307 | iop13xx_uart1.id = uart_idx++; | ||
308 | iop13xx_devices[plat_idx++] = &iop13xx_uart1; | ||
309 | } | ||
310 | if (init_uart & IOP13XX_INIT_UART_0) { | ||
311 | PRINTK("Adding uart0 to platform device list\n"); | ||
312 | iop13xx_uart0.id = uart_idx++; | ||
313 | iop13xx_devices[plat_idx++] = &iop13xx_uart0; | ||
314 | } | ||
315 | |||
316 | for(i = 0; i < IQ81340_NUM_I2C; i++) { | ||
317 | if ((init_i2c & (1 << i)) && IOP13XX_SETUP_DEBUG) | ||
318 | printk("Adding i2c%d to platform device list\n", i); | ||
319 | switch(init_i2c & (1 << i)) { | ||
320 | case IOP13XX_INIT_I2C_0: | ||
321 | iop13xx_i2c_0_controller.id = i2c_idx++; | ||
322 | iop13xx_devices[plat_idx++] = | ||
323 | &iop13xx_i2c_0_controller; | ||
324 | break; | ||
325 | case IOP13XX_INIT_I2C_1: | ||
326 | iop13xx_i2c_1_controller.id = i2c_idx++; | ||
327 | iop13xx_devices[plat_idx++] = | ||
328 | &iop13xx_i2c_1_controller; | ||
329 | break; | ||
330 | case IOP13XX_INIT_I2C_2: | ||
331 | iop13xx_i2c_2_controller.id = i2c_idx++; | ||
332 | iop13xx_devices[plat_idx++] = | ||
333 | &iop13xx_i2c_2_controller; | ||
334 | break; | ||
335 | } | ||
336 | } | ||
337 | |||
338 | #ifdef CONFIG_MTD_PHYSMAP | ||
339 | iq8134x_flash_resource.end = iq8134x_flash_resource.start + | ||
340 | iq8134x_probe_flash_size() - 1; | ||
341 | if (iq8134x_flash_resource.end > iq8134x_flash_resource.start) | ||
342 | iop13xx_devices[plat_idx++] = &iq8134x_flash; | ||
343 | else | ||
344 | printk(KERN_ERR "%s: Failed to probe flash size\n", __FUNCTION__); | ||
345 | #endif | ||
346 | |||
347 | platform_add_devices(iop13xx_devices, plat_idx); | ||
348 | } | ||
349 | |||
350 | static int __init iop13xx_init_uart_setup(char *str) | ||
351 | { | ||
352 | if (str) { | ||
353 | while (*str != '\0') { | ||
354 | switch(*str) { | ||
355 | case '0': | ||
356 | init_uart |= IOP13XX_INIT_UART_0; | ||
357 | break; | ||
358 | case '1': | ||
359 | init_uart |= IOP13XX_INIT_UART_1; | ||
360 | break; | ||
361 | case ',': | ||
362 | case '=': | ||
363 | break; | ||
364 | default: | ||
365 | PRINTK("\"iop13xx_init_uart\" malformed" | ||
366 | " at character: \'%c\'", *str); | ||
367 | *(str + 1) = '\0'; | ||
368 | init_uart = IOP13XX_INIT_UART_DEFAULT; | ||
369 | } | ||
370 | str++; | ||
371 | } | ||
372 | } | ||
373 | return 1; | ||
374 | } | ||
375 | |||
376 | static int __init iop13xx_init_i2c_setup(char *str) | ||
377 | { | ||
378 | if (str) { | ||
379 | while (*str != '\0') { | ||
380 | switch(*str) { | ||
381 | case '0': | ||
382 | init_i2c |= IOP13XX_INIT_I2C_0; | ||
383 | break; | ||
384 | case '1': | ||
385 | init_i2c |= IOP13XX_INIT_I2C_1; | ||
386 | break; | ||
387 | case '2': | ||
388 | init_i2c |= IOP13XX_INIT_I2C_2; | ||
389 | break; | ||
390 | case ',': | ||
391 | case '=': | ||
392 | break; | ||
393 | default: | ||
394 | PRINTK("\"iop13xx_init_i2c\" malformed" | ||
395 | " at character: \'%c\'", *str); | ||
396 | *(str + 1) = '\0'; | ||
397 | init_i2c = IOP13XX_INIT_I2C_DEFAULT; | ||
398 | } | ||
399 | str++; | ||
400 | } | ||
401 | } | ||
402 | return 1; | ||
403 | } | ||
404 | |||
405 | __setup("iop13xx_init_uart", iop13xx_init_uart_setup); | ||
406 | __setup("iop13xx_init_i2c", iop13xx_init_i2c_setup); | ||
diff --git a/arch/arm/mach-iop13xx/time.c b/arch/arm/mach-iop13xx/time.c new file mode 100644 index 000000000000..8b21365f653f --- /dev/null +++ b/arch/arm/mach-iop13xx/time.c | |||
@@ -0,0 +1,102 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-iop13xx/time.c | ||
3 | * | ||
4 | * Timer code for IOP13xx (copied from IOP32x/IOP33x implementation) | ||
5 | * | ||
6 | * Author: Deepak Saxena <dsaxena@mvista.com> | ||
7 | * | ||
8 | * Copyright 2002-2003 MontaVista Software Inc. | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify it | ||
11 | * under the terms of the GNU General Public License as published by the | ||
12 | * Free Software Foundation; either version 2 of the License, or (at your | ||
13 | * option) any later version. | ||
14 | */ | ||
15 | |||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/time.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/timex.h> | ||
21 | #include <asm/io.h> | ||
22 | #include <asm/irq.h> | ||
23 | #include <asm/uaccess.h> | ||
24 | #include <asm/mach/irq.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | |||
27 | static unsigned long ticks_per_jiffy; | ||
28 | static unsigned long ticks_per_usec; | ||
29 | static unsigned long next_jiffy_time; | ||
30 | |||
31 | static inline u32 read_tcr1(void) | ||
32 | { | ||
33 | u32 val; | ||
34 | asm volatile("mrc p6, 0, %0, c3, c9, 0" : "=r" (val)); | ||
35 | return val; | ||
36 | } | ||
37 | |||
38 | unsigned long iop13xx_gettimeoffset(void) | ||
39 | { | ||
40 | unsigned long offset; | ||
41 | u32 cp_flags; | ||
42 | |||
43 | cp_flags = iop13xx_cp6_save(); | ||
44 | offset = next_jiffy_time - read_tcr1(); | ||
45 | iop13xx_cp6_restore(cp_flags); | ||
46 | |||
47 | return offset / ticks_per_usec; | ||
48 | } | ||
49 | |||
50 | static irqreturn_t | ||
51 | iop13xx_timer_interrupt(int irq, void *dev_id) | ||
52 | { | ||
53 | u32 cp_flags = iop13xx_cp6_save(); | ||
54 | |||
55 | write_seqlock(&xtime_lock); | ||
56 | |||
57 | asm volatile("mcr p6, 0, %0, c6, c9, 0" : : "r" (1)); | ||
58 | |||
59 | while ((signed long)(next_jiffy_time - read_tcr1()) | ||
60 | >= ticks_per_jiffy) { | ||
61 | timer_tick(); | ||
62 | next_jiffy_time -= ticks_per_jiffy; | ||
63 | } | ||
64 | |||
65 | write_sequnlock(&xtime_lock); | ||
66 | |||
67 | iop13xx_cp6_restore(cp_flags); | ||
68 | |||
69 | return IRQ_HANDLED; | ||
70 | } | ||
71 | |||
72 | static struct irqaction iop13xx_timer_irq = { | ||
73 | .name = "IOP13XX Timer Tick", | ||
74 | .handler = iop13xx_timer_interrupt, | ||
75 | .flags = IRQF_DISABLED | IRQF_TIMER, | ||
76 | }; | ||
77 | |||
78 | void __init iop13xx_init_time(unsigned long tick_rate) | ||
79 | { | ||
80 | u32 timer_ctl; | ||
81 | u32 cp_flags; | ||
82 | |||
83 | ticks_per_jiffy = (tick_rate + HZ/2) / HZ; | ||
84 | ticks_per_usec = tick_rate / 1000000; | ||
85 | next_jiffy_time = 0xffffffff; | ||
86 | |||
87 | timer_ctl = IOP13XX_TMR_EN | IOP13XX_TMR_PRIVILEGED | | ||
88 | IOP13XX_TMR_RELOAD | IOP13XX_TMR_RATIO_1_1; | ||
89 | |||
90 | /* | ||
91 | * We use timer 0 for our timer interrupt, and timer 1 as | ||
92 | * monotonic counter for tracking missed jiffies. | ||
93 | */ | ||
94 | cp_flags = iop13xx_cp6_save(); | ||
95 | asm volatile("mcr p6, 0, %0, c4, c9, 0" : : "r" (ticks_per_jiffy - 1)); | ||
96 | asm volatile("mcr p6, 0, %0, c0, c9, 0" : : "r" (timer_ctl)); | ||
97 | asm volatile("mcr p6, 0, %0, c5, c9, 0" : : "r" (0xffffffff)); | ||
98 | asm volatile("mcr p6, 0, %0, c1, c9, 0" : : "r" (timer_ctl)); | ||
99 | iop13xx_cp6_restore(cp_flags); | ||
100 | |||
101 | setup_irq(IRQ_IOP13XX_TIMER0, &iop13xx_timer_irq); | ||
102 | } | ||
diff --git a/arch/arm/mach-iop32x/irq.c b/arch/arm/mach-iop32x/irq.c index 69d6302f40cf..3ec1cd5c4f99 100644 --- a/arch/arm/mach-iop32x/irq.c +++ b/arch/arm/mach-iop32x/irq.c | |||
@@ -70,7 +70,7 @@ void __init iop32x_init_irq(void) | |||
70 | 70 | ||
71 | for (i = 0; i < NR_IRQS; i++) { | 71 | for (i = 0; i < NR_IRQS; i++) { |
72 | set_irq_chip(i, &ext_chip); | 72 | set_irq_chip(i, &ext_chip); |
73 | set_irq_handler(i, do_level_IRQ); | 73 | set_irq_handler(i, handle_level_irq); |
74 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 74 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
75 | } | 75 | } |
76 | } | 76 | } |
diff --git a/arch/arm/mach-iop33x/irq.c b/arch/arm/mach-iop33x/irq.c index 63304b3d0d76..00b37f32d72e 100644 --- a/arch/arm/mach-iop33x/irq.c +++ b/arch/arm/mach-iop33x/irq.c | |||
@@ -121,7 +121,7 @@ void __init iop33x_init_irq(void) | |||
121 | 121 | ||
122 | for (i = 0; i < NR_IRQS; i++) { | 122 | for (i = 0; i < NR_IRQS; i++) { |
123 | set_irq_chip(i, (i < 32) ? &iop33x_irqchip1 : &iop33x_irqchip2); | 123 | set_irq_chip(i, (i < 32) ? &iop33x_irqchip1 : &iop33x_irqchip2); |
124 | set_irq_handler(i, do_level_IRQ); | 124 | set_irq_handler(i, handle_level_irq); |
125 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 125 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
126 | } | 126 | } |
127 | } | 127 | } |
diff --git a/arch/arm/mach-ixp2000/core.c b/arch/arm/mach-ixp2000/core.c index 22c98e9dad28..27b7480f4afe 100644 --- a/arch/arm/mach-ixp2000/core.c +++ b/arch/arm/mach-ixp2000/core.c | |||
@@ -308,7 +308,7 @@ EXPORT_SYMBOL(gpio_line_config); | |||
308 | /************************************************************************* | 308 | /************************************************************************* |
309 | * IRQ handling IXP2000 | 309 | * IRQ handling IXP2000 |
310 | *************************************************************************/ | 310 | *************************************************************************/ |
311 | static void ixp2000_GPIO_irq_handler(unsigned int irq, struct irqdesc *desc) | 311 | static void ixp2000_GPIO_irq_handler(unsigned int irq, struct irq_desc *desc) |
312 | { | 312 | { |
313 | int i; | 313 | int i; |
314 | unsigned long status = *IXP2000_GPIO_INST; | 314 | unsigned long status = *IXP2000_GPIO_INST; |
@@ -373,7 +373,7 @@ static void ixp2000_GPIO_irq_unmask(unsigned int irq) | |||
373 | ixp2000_reg_write(IXP2000_GPIO_INSR, (1 << (irq - IRQ_IXP2000_GPIO0))); | 373 | ixp2000_reg_write(IXP2000_GPIO_INSR, (1 << (irq - IRQ_IXP2000_GPIO0))); |
374 | } | 374 | } |
375 | 375 | ||
376 | static struct irqchip ixp2000_GPIO_irq_chip = { | 376 | static struct irq_chip ixp2000_GPIO_irq_chip = { |
377 | .ack = ixp2000_GPIO_irq_mask_ack, | 377 | .ack = ixp2000_GPIO_irq_mask_ack, |
378 | .mask = ixp2000_GPIO_irq_mask, | 378 | .mask = ixp2000_GPIO_irq_mask, |
379 | .unmask = ixp2000_GPIO_irq_unmask, | 379 | .unmask = ixp2000_GPIO_irq_unmask, |
@@ -401,7 +401,7 @@ static void ixp2000_pci_irq_unmask(unsigned int irq) | |||
401 | /* | 401 | /* |
402 | * Error interrupts. These are used extensively by the microengine drivers | 402 | * Error interrupts. These are used extensively by the microengine drivers |
403 | */ | 403 | */ |
404 | static void ixp2000_err_irq_handler(unsigned int irq, struct irqdesc *desc) | 404 | static void ixp2000_err_irq_handler(unsigned int irq, struct irq_desc *desc) |
405 | { | 405 | { |
406 | int i; | 406 | int i; |
407 | unsigned long status = *IXP2000_IRQ_ERR_STATUS; | 407 | unsigned long status = *IXP2000_IRQ_ERR_STATUS; |
@@ -426,13 +426,13 @@ static void ixp2000_err_irq_unmask(unsigned int irq) | |||
426 | (1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR))); | 426 | (1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR))); |
427 | } | 427 | } |
428 | 428 | ||
429 | static struct irqchip ixp2000_err_irq_chip = { | 429 | static struct irq_chip ixp2000_err_irq_chip = { |
430 | .ack = ixp2000_err_irq_mask, | 430 | .ack = ixp2000_err_irq_mask, |
431 | .mask = ixp2000_err_irq_mask, | 431 | .mask = ixp2000_err_irq_mask, |
432 | .unmask = ixp2000_err_irq_unmask | 432 | .unmask = ixp2000_err_irq_unmask |
433 | }; | 433 | }; |
434 | 434 | ||
435 | static struct irqchip ixp2000_pci_irq_chip = { | 435 | static struct irq_chip ixp2000_pci_irq_chip = { |
436 | .ack = ixp2000_pci_irq_mask, | 436 | .ack = ixp2000_pci_irq_mask, |
437 | .mask = ixp2000_pci_irq_mask, | 437 | .mask = ixp2000_pci_irq_mask, |
438 | .unmask = ixp2000_pci_irq_unmask | 438 | .unmask = ixp2000_pci_irq_unmask |
@@ -448,7 +448,7 @@ static void ixp2000_irq_unmask(unsigned int irq) | |||
448 | ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << irq)); | 448 | ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << irq)); |
449 | } | 449 | } |
450 | 450 | ||
451 | static struct irqchip ixp2000_irq_chip = { | 451 | static struct irq_chip ixp2000_irq_chip = { |
452 | .ack = ixp2000_irq_mask, | 452 | .ack = ixp2000_irq_mask, |
453 | .mask = ixp2000_irq_mask, | 453 | .mask = ixp2000_irq_mask, |
454 | .unmask = ixp2000_irq_unmask | 454 | .unmask = ixp2000_irq_unmask |
@@ -484,7 +484,7 @@ void __init ixp2000_init_irq(void) | |||
484 | for (irq = IRQ_IXP2000_SOFT_INT; irq <= IRQ_IXP2000_THDB3; irq++) { | 484 | for (irq = IRQ_IXP2000_SOFT_INT; irq <= IRQ_IXP2000_THDB3; irq++) { |
485 | if ((1 << irq) & IXP2000_VALID_IRQ_MASK) { | 485 | if ((1 << irq) & IXP2000_VALID_IRQ_MASK) { |
486 | set_irq_chip(irq, &ixp2000_irq_chip); | 486 | set_irq_chip(irq, &ixp2000_irq_chip); |
487 | set_irq_handler(irq, do_level_IRQ); | 487 | set_irq_handler(irq, handle_level_irq); |
488 | set_irq_flags(irq, IRQF_VALID); | 488 | set_irq_flags(irq, IRQF_VALID); |
489 | } else set_irq_flags(irq, 0); | 489 | } else set_irq_flags(irq, 0); |
490 | } | 490 | } |
@@ -493,7 +493,7 @@ void __init ixp2000_init_irq(void) | |||
493 | if((1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)) & | 493 | if((1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)) & |
494 | IXP2000_VALID_ERR_IRQ_MASK) { | 494 | IXP2000_VALID_ERR_IRQ_MASK) { |
495 | set_irq_chip(irq, &ixp2000_err_irq_chip); | 495 | set_irq_chip(irq, &ixp2000_err_irq_chip); |
496 | set_irq_handler(irq, do_level_IRQ); | 496 | set_irq_handler(irq, handle_level_irq); |
497 | set_irq_flags(irq, IRQF_VALID); | 497 | set_irq_flags(irq, IRQF_VALID); |
498 | } | 498 | } |
499 | else | 499 | else |
@@ -503,7 +503,7 @@ void __init ixp2000_init_irq(void) | |||
503 | 503 | ||
504 | for (irq = IRQ_IXP2000_GPIO0; irq <= IRQ_IXP2000_GPIO7; irq++) { | 504 | for (irq = IRQ_IXP2000_GPIO0; irq <= IRQ_IXP2000_GPIO7; irq++) { |
505 | set_irq_chip(irq, &ixp2000_GPIO_irq_chip); | 505 | set_irq_chip(irq, &ixp2000_GPIO_irq_chip); |
506 | set_irq_handler(irq, do_level_IRQ); | 506 | set_irq_handler(irq, handle_level_irq); |
507 | set_irq_flags(irq, IRQF_VALID); | 507 | set_irq_flags(irq, IRQF_VALID); |
508 | } | 508 | } |
509 | set_irq_chained_handler(IRQ_IXP2000_GPIO, ixp2000_GPIO_irq_handler); | 509 | set_irq_chained_handler(IRQ_IXP2000_GPIO, ixp2000_GPIO_irq_handler); |
@@ -516,7 +516,7 @@ void __init ixp2000_init_irq(void) | |||
516 | ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << IRQ_IXP2000_PCI)); | 516 | ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << IRQ_IXP2000_PCI)); |
517 | for (irq = IRQ_IXP2000_PCIA; irq <= IRQ_IXP2000_PCIB; irq++) { | 517 | for (irq = IRQ_IXP2000_PCIA; irq <= IRQ_IXP2000_PCIB; irq++) { |
518 | set_irq_chip(irq, &ixp2000_pci_irq_chip); | 518 | set_irq_chip(irq, &ixp2000_pci_irq_chip); |
519 | set_irq_handler(irq, do_level_IRQ); | 519 | set_irq_handler(irq, handle_level_irq); |
520 | set_irq_flags(irq, IRQF_VALID); | 520 | set_irq_flags(irq, IRQF_VALID); |
521 | } | 521 | } |
522 | } | 522 | } |
diff --git a/arch/arm/mach-ixp2000/ixdp2x00.c b/arch/arm/mach-ixp2000/ixdp2x00.c index aa2655092d2d..52b368b34346 100644 --- a/arch/arm/mach-ixp2000/ixdp2x00.c +++ b/arch/arm/mach-ixp2000/ixdp2x00.c | |||
@@ -106,7 +106,7 @@ static void ixdp2x00_irq_unmask(unsigned int irq) | |||
106 | ixp2000_release_slowport(&old_cfg); | 106 | ixp2000_release_slowport(&old_cfg); |
107 | } | 107 | } |
108 | 108 | ||
109 | static void ixdp2x00_irq_handler(unsigned int irq, struct irqdesc *desc) | 109 | static void ixdp2x00_irq_handler(unsigned int irq, struct irq_desc *desc) |
110 | { | 110 | { |
111 | volatile u32 ex_interrupt = 0; | 111 | volatile u32 ex_interrupt = 0; |
112 | static struct slowport_cfg old_cfg; | 112 | static struct slowport_cfg old_cfg; |
@@ -129,7 +129,7 @@ static void ixdp2x00_irq_handler(unsigned int irq, struct irqdesc *desc) | |||
129 | 129 | ||
130 | for(i = 0; i < board_irq_count; i++) { | 130 | for(i = 0; i < board_irq_count; i++) { |
131 | if(ex_interrupt & (1 << i)) { | 131 | if(ex_interrupt & (1 << i)) { |
132 | struct irqdesc *cpld_desc; | 132 | struct irq_desc *cpld_desc; |
133 | int cpld_irq = IXP2000_BOARD_IRQ(0) + i; | 133 | int cpld_irq = IXP2000_BOARD_IRQ(0) + i; |
134 | cpld_desc = irq_desc + cpld_irq; | 134 | cpld_desc = irq_desc + cpld_irq; |
135 | desc_handle_irq(cpld_irq, cpld_desc); | 135 | desc_handle_irq(cpld_irq, cpld_desc); |
@@ -139,7 +139,7 @@ static void ixdp2x00_irq_handler(unsigned int irq, struct irqdesc *desc) | |||
139 | desc->chip->unmask(irq); | 139 | desc->chip->unmask(irq); |
140 | } | 140 | } |
141 | 141 | ||
142 | static struct irqchip ixdp2x00_cpld_irq_chip = { | 142 | static struct irq_chip ixdp2x00_cpld_irq_chip = { |
143 | .ack = ixdp2x00_irq_mask, | 143 | .ack = ixdp2x00_irq_mask, |
144 | .mask = ixdp2x00_irq_mask, | 144 | .mask = ixdp2x00_irq_mask, |
145 | .unmask = ixdp2x00_irq_unmask | 145 | .unmask = ixdp2x00_irq_unmask |
@@ -162,7 +162,7 @@ void ixdp2x00_init_irq(volatile unsigned long *stat_reg, volatile unsigned long | |||
162 | 162 | ||
163 | for(irq = IXP2000_BOARD_IRQ(0); irq < IXP2000_BOARD_IRQ(board_irq_count); irq++) { | 163 | for(irq = IXP2000_BOARD_IRQ(0); irq < IXP2000_BOARD_IRQ(board_irq_count); irq++) { |
164 | set_irq_chip(irq, &ixdp2x00_cpld_irq_chip); | 164 | set_irq_chip(irq, &ixdp2x00_cpld_irq_chip); |
165 | set_irq_handler(irq, do_level_IRQ); | 165 | set_irq_handler(irq, handle_level_irq); |
166 | set_irq_flags(irq, IRQF_VALID); | 166 | set_irq_flags(irq, IRQF_VALID); |
167 | } | 167 | } |
168 | 168 | ||
diff --git a/arch/arm/mach-ixp2000/ixdp2x01.c b/arch/arm/mach-ixp2000/ixdp2x01.c index 9ccae9e63f70..3084a5fa751c 100644 --- a/arch/arm/mach-ixp2000/ixdp2x01.c +++ b/arch/arm/mach-ixp2000/ixdp2x01.c | |||
@@ -63,7 +63,7 @@ static void ixdp2x01_irq_unmask(unsigned int irq) | |||
63 | 63 | ||
64 | static u32 valid_irq_mask; | 64 | static u32 valid_irq_mask; |
65 | 65 | ||
66 | static void ixdp2x01_irq_handler(unsigned int irq, struct irqdesc *desc) | 66 | static void ixdp2x01_irq_handler(unsigned int irq, struct irq_desc *desc) |
67 | { | 67 | { |
68 | u32 ex_interrupt; | 68 | u32 ex_interrupt; |
69 | int i; | 69 | int i; |
@@ -79,7 +79,7 @@ static void ixdp2x01_irq_handler(unsigned int irq, struct irqdesc *desc) | |||
79 | 79 | ||
80 | for (i = 0; i < IXP2000_BOARD_IRQS; i++) { | 80 | for (i = 0; i < IXP2000_BOARD_IRQS; i++) { |
81 | if (ex_interrupt & (1 << i)) { | 81 | if (ex_interrupt & (1 << i)) { |
82 | struct irqdesc *cpld_desc; | 82 | struct irq_desc *cpld_desc; |
83 | int cpld_irq = IXP2000_BOARD_IRQ(0) + i; | 83 | int cpld_irq = IXP2000_BOARD_IRQ(0) + i; |
84 | cpld_desc = irq_desc + cpld_irq; | 84 | cpld_desc = irq_desc + cpld_irq; |
85 | desc_handle_irq(cpld_irq, cpld_desc); | 85 | desc_handle_irq(cpld_irq, cpld_desc); |
@@ -89,7 +89,7 @@ static void ixdp2x01_irq_handler(unsigned int irq, struct irqdesc *desc) | |||
89 | desc->chip->unmask(irq); | 89 | desc->chip->unmask(irq); |
90 | } | 90 | } |
91 | 91 | ||
92 | static struct irqchip ixdp2x01_irq_chip = { | 92 | static struct irq_chip ixdp2x01_irq_chip = { |
93 | .mask = ixdp2x01_irq_mask, | 93 | .mask = ixdp2x01_irq_mask, |
94 | .ack = ixdp2x01_irq_mask, | 94 | .ack = ixdp2x01_irq_mask, |
95 | .unmask = ixdp2x01_irq_unmask | 95 | .unmask = ixdp2x01_irq_unmask |
@@ -119,7 +119,7 @@ void __init ixdp2x01_init_irq(void) | |||
119 | for (irq = NR_IXP2000_IRQS; irq < NR_IXDP2X01_IRQS; irq++) { | 119 | for (irq = NR_IXP2000_IRQS; irq < NR_IXDP2X01_IRQS; irq++) { |
120 | if (irq & valid_irq_mask) { | 120 | if (irq & valid_irq_mask) { |
121 | set_irq_chip(irq, &ixdp2x01_irq_chip); | 121 | set_irq_chip(irq, &ixdp2x01_irq_chip); |
122 | set_irq_handler(irq, do_level_IRQ); | 122 | set_irq_handler(irq, handle_level_irq); |
123 | set_irq_flags(irq, IRQF_VALID); | 123 | set_irq_flags(irq, IRQF_VALID); |
124 | } else { | 124 | } else { |
125 | set_irq_flags(irq, 0); | 125 | set_irq_flags(irq, 0); |
diff --git a/arch/arm/mach-ixp2000/pci.c b/arch/arm/mach-ixp2000/pci.c index d4bf1e1c0031..5a09a90c08fb 100644 --- a/arch/arm/mach-ixp2000/pci.c +++ b/arch/arm/mach-ixp2000/pci.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include <asm/mach/pci.h> | 33 | #include <asm/mach/pci.h> |
34 | 34 | ||
35 | static int pci_master_aborts = 0; | 35 | static volatile int pci_master_aborts = 0; |
36 | 36 | ||
37 | static int clear_master_aborts(void); | 37 | static int clear_master_aborts(void); |
38 | 38 | ||
diff --git a/arch/arm/mach-ixp23xx/core.c b/arch/arm/mach-ixp23xx/core.c index a704a1820048..ce6ad635a00c 100644 --- a/arch/arm/mach-ixp23xx/core.c +++ b/arch/arm/mach-ixp23xx/core.c | |||
@@ -224,14 +224,14 @@ static void ixp23xx_irq_edge_unmask(unsigned int irq) | |||
224 | *intr_reg |= (1 << (irq % 32)); | 224 | *intr_reg |= (1 << (irq % 32)); |
225 | } | 225 | } |
226 | 226 | ||
227 | static struct irqchip ixp23xx_irq_level_chip = { | 227 | static struct irq_chip ixp23xx_irq_level_chip = { |
228 | .ack = ixp23xx_irq_mask, | 228 | .ack = ixp23xx_irq_mask, |
229 | .mask = ixp23xx_irq_mask, | 229 | .mask = ixp23xx_irq_mask, |
230 | .unmask = ixp23xx_irq_level_unmask, | 230 | .unmask = ixp23xx_irq_level_unmask, |
231 | .set_type = ixp23xx_irq_set_type | 231 | .set_type = ixp23xx_irq_set_type |
232 | }; | 232 | }; |
233 | 233 | ||
234 | static struct irqchip ixp23xx_irq_edge_chip = { | 234 | static struct irq_chip ixp23xx_irq_edge_chip = { |
235 | .ack = ixp23xx_irq_ack, | 235 | .ack = ixp23xx_irq_ack, |
236 | .mask = ixp23xx_irq_mask, | 236 | .mask = ixp23xx_irq_mask, |
237 | .unmask = ixp23xx_irq_edge_unmask, | 237 | .unmask = ixp23xx_irq_edge_unmask, |
@@ -251,11 +251,11 @@ static void ixp23xx_pci_irq_unmask(unsigned int irq) | |||
251 | /* | 251 | /* |
252 | * TODO: Should this just be done at ASM level? | 252 | * TODO: Should this just be done at ASM level? |
253 | */ | 253 | */ |
254 | static void pci_handler(unsigned int irq, struct irqdesc *desc) | 254 | static void pci_handler(unsigned int irq, struct irq_desc *desc) |
255 | { | 255 | { |
256 | u32 pci_interrupt; | 256 | u32 pci_interrupt; |
257 | unsigned int irqno; | 257 | unsigned int irqno; |
258 | struct irqdesc *int_desc; | 258 | struct irq_desc *int_desc; |
259 | 259 | ||
260 | pci_interrupt = *IXP23XX_PCI_XSCALE_INT_STATUS; | 260 | pci_interrupt = *IXP23XX_PCI_XSCALE_INT_STATUS; |
261 | 261 | ||
@@ -276,7 +276,7 @@ static void pci_handler(unsigned int irq, struct irqdesc *desc) | |||
276 | desc->chip->unmask(irq); | 276 | desc->chip->unmask(irq); |
277 | } | 277 | } |
278 | 278 | ||
279 | static struct irqchip ixp23xx_pci_irq_chip = { | 279 | static struct irq_chip ixp23xx_pci_irq_chip = { |
280 | .ack = ixp23xx_pci_irq_mask, | 280 | .ack = ixp23xx_pci_irq_mask, |
281 | .mask = ixp23xx_pci_irq_mask, | 281 | .mask = ixp23xx_pci_irq_mask, |
282 | .unmask = ixp23xx_pci_irq_unmask | 282 | .unmask = ixp23xx_pci_irq_unmask |
@@ -287,11 +287,11 @@ static void ixp23xx_config_irq(unsigned int irq, enum ixp23xx_irq_type type) | |||
287 | switch (type) { | 287 | switch (type) { |
288 | case IXP23XX_IRQ_LEVEL: | 288 | case IXP23XX_IRQ_LEVEL: |
289 | set_irq_chip(irq, &ixp23xx_irq_level_chip); | 289 | set_irq_chip(irq, &ixp23xx_irq_level_chip); |
290 | set_irq_handler(irq, do_level_IRQ); | 290 | set_irq_handler(irq, handle_level_irq); |
291 | break; | 291 | break; |
292 | case IXP23XX_IRQ_EDGE: | 292 | case IXP23XX_IRQ_EDGE: |
293 | set_irq_chip(irq, &ixp23xx_irq_edge_chip); | 293 | set_irq_chip(irq, &ixp23xx_irq_edge_chip); |
294 | set_irq_handler(irq, do_edge_IRQ); | 294 | set_irq_handler(irq, handle_edge_irq); |
295 | break; | 295 | break; |
296 | } | 296 | } |
297 | set_irq_flags(irq, IRQF_VALID); | 297 | set_irq_flags(irq, IRQF_VALID); |
@@ -322,7 +322,7 @@ void __init ixp23xx_init_irq(void) | |||
322 | 322 | ||
323 | for (irq = IRQ_IXP23XX_INTA; irq <= IRQ_IXP23XX_INTB; irq++) { | 323 | for (irq = IRQ_IXP23XX_INTA; irq <= IRQ_IXP23XX_INTB; irq++) { |
324 | set_irq_chip(irq, &ixp23xx_pci_irq_chip); | 324 | set_irq_chip(irq, &ixp23xx_pci_irq_chip); |
325 | set_irq_handler(irq, do_level_IRQ); | 325 | set_irq_handler(irq, handle_level_irq); |
326 | set_irq_flags(irq, IRQF_VALID); | 326 | set_irq_flags(irq, IRQF_VALID); |
327 | } | 327 | } |
328 | 328 | ||
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index b6ab0e8bb5e8..7a86a2516eaa 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c | |||
@@ -60,7 +60,7 @@ static void ixdp2351_inta_unmask(unsigned int irq) | |||
60 | *IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq); | 60 | *IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq); |
61 | } | 61 | } |
62 | 62 | ||
63 | static void ixdp2351_inta_handler(unsigned int irq, struct irqdesc *desc) | 63 | static void ixdp2351_inta_handler(unsigned int irq, struct irq_desc *desc) |
64 | { | 64 | { |
65 | u16 ex_interrupt = | 65 | u16 ex_interrupt = |
66 | *IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID; | 66 | *IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID; |
@@ -70,7 +70,7 @@ static void ixdp2351_inta_handler(unsigned int irq, struct irqdesc *desc) | |||
70 | 70 | ||
71 | for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) { | 71 | for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) { |
72 | if (ex_interrupt & (1 << i)) { | 72 | if (ex_interrupt & (1 << i)) { |
73 | struct irqdesc *cpld_desc; | 73 | struct irq_desc *cpld_desc; |
74 | int cpld_irq = | 74 | int cpld_irq = |
75 | IXP23XX_MACH_IRQ(IXDP2351_INTA_IRQ_BASE + i); | 75 | IXP23XX_MACH_IRQ(IXDP2351_INTA_IRQ_BASE + i); |
76 | cpld_desc = irq_desc + cpld_irq; | 76 | cpld_desc = irq_desc + cpld_irq; |
@@ -81,7 +81,7 @@ static void ixdp2351_inta_handler(unsigned int irq, struct irqdesc *desc) | |||
81 | desc->chip->unmask(irq); | 81 | desc->chip->unmask(irq); |
82 | } | 82 | } |
83 | 83 | ||
84 | static struct irqchip ixdp2351_inta_chip = { | 84 | static struct irq_chip ixdp2351_inta_chip = { |
85 | .ack = ixdp2351_inta_mask, | 85 | .ack = ixdp2351_inta_mask, |
86 | .mask = ixdp2351_inta_mask, | 86 | .mask = ixdp2351_inta_mask, |
87 | .unmask = ixdp2351_inta_unmask | 87 | .unmask = ixdp2351_inta_unmask |
@@ -97,7 +97,7 @@ static void ixdp2351_intb_unmask(unsigned int irq) | |||
97 | *IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq); | 97 | *IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq); |
98 | } | 98 | } |
99 | 99 | ||
100 | static void ixdp2351_intb_handler(unsigned int irq, struct irqdesc *desc) | 100 | static void ixdp2351_intb_handler(unsigned int irq, struct irq_desc *desc) |
101 | { | 101 | { |
102 | u16 ex_interrupt = | 102 | u16 ex_interrupt = |
103 | *IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID; | 103 | *IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID; |
@@ -107,7 +107,7 @@ static void ixdp2351_intb_handler(unsigned int irq, struct irqdesc *desc) | |||
107 | 107 | ||
108 | for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) { | 108 | for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) { |
109 | if (ex_interrupt & (1 << i)) { | 109 | if (ex_interrupt & (1 << i)) { |
110 | struct irqdesc *cpld_desc; | 110 | struct irq_desc *cpld_desc; |
111 | int cpld_irq = | 111 | int cpld_irq = |
112 | IXP23XX_MACH_IRQ(IXDP2351_INTB_IRQ_BASE + i); | 112 | IXP23XX_MACH_IRQ(IXDP2351_INTB_IRQ_BASE + i); |
113 | cpld_desc = irq_desc + cpld_irq; | 113 | cpld_desc = irq_desc + cpld_irq; |
@@ -118,7 +118,7 @@ static void ixdp2351_intb_handler(unsigned int irq, struct irqdesc *desc) | |||
118 | desc->chip->unmask(irq); | 118 | desc->chip->unmask(irq); |
119 | } | 119 | } |
120 | 120 | ||
121 | static struct irqchip ixdp2351_intb_chip = { | 121 | static struct irq_chip ixdp2351_intb_chip = { |
122 | .ack = ixdp2351_intb_mask, | 122 | .ack = ixdp2351_intb_mask, |
123 | .mask = ixdp2351_intb_mask, | 123 | .mask = ixdp2351_intb_mask, |
124 | .unmask = ixdp2351_intb_unmask | 124 | .unmask = ixdp2351_intb_unmask |
@@ -142,7 +142,7 @@ void ixdp2351_init_irq(void) | |||
142 | irq++) { | 142 | irq++) { |
143 | if (IXDP2351_INTA_IRQ_MASK(irq) & IXDP2351_INTA_IRQ_VALID) { | 143 | if (IXDP2351_INTA_IRQ_MASK(irq) & IXDP2351_INTA_IRQ_VALID) { |
144 | set_irq_flags(irq, IRQF_VALID); | 144 | set_irq_flags(irq, IRQF_VALID); |
145 | set_irq_handler(irq, do_level_IRQ); | 145 | set_irq_handler(irq, handle_level_irq); |
146 | set_irq_chip(irq, &ixdp2351_inta_chip); | 146 | set_irq_chip(irq, &ixdp2351_inta_chip); |
147 | } | 147 | } |
148 | } | 148 | } |
@@ -153,7 +153,7 @@ void ixdp2351_init_irq(void) | |||
153 | irq++) { | 153 | irq++) { |
154 | if (IXDP2351_INTB_IRQ_MASK(irq) & IXDP2351_INTB_IRQ_VALID) { | 154 | if (IXDP2351_INTB_IRQ_MASK(irq) & IXDP2351_INTB_IRQ_VALID) { |
155 | set_irq_flags(irq, IRQF_VALID); | 155 | set_irq_flags(irq, IRQF_VALID); |
156 | set_irq_handler(irq, do_level_IRQ); | 156 | set_irq_handler(irq, handle_level_irq); |
157 | set_irq_chip(irq, &ixdp2351_intb_chip); | 157 | set_irq_chip(irq, &ixdp2351_intb_chip); |
158 | } | 158 | } |
159 | } | 159 | } |
diff --git a/arch/arm/mach-ixp23xx/pci.c b/arch/arm/mach-ixp23xx/pci.c index 3b34fa35e36b..ac7d43d23c28 100644 --- a/arch/arm/mach-ixp23xx/pci.c +++ b/arch/arm/mach-ixp23xx/pci.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | extern int (*external_fault) (unsigned long, struct pt_regs *); | 37 | extern int (*external_fault) (unsigned long, struct pt_regs *); |
38 | 38 | ||
39 | static int pci_master_aborts = 0; | 39 | static volatile int pci_master_aborts = 0; |
40 | 40 | ||
41 | #ifdef DEBUG | 41 | #ifdef DEBUG |
42 | #define DBG(x...) printk(x) | 42 | #define DBG(x...) printk(x) |
diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig index 57f23b465392..e316bd93313f 100644 --- a/arch/arm/mach-ixp4xx/Kconfig +++ b/arch/arm/mach-ixp4xx/Kconfig | |||
@@ -133,7 +133,7 @@ config IXP4XX_INDIRECT_PCI | |||
133 | into the kernel and we can use the standard read[bwl]/write[bwl] | 133 | into the kernel and we can use the standard read[bwl]/write[bwl] |
134 | macros. This is the preferred method due to speed but it | 134 | macros. This is the preferred method due to speed but it |
135 | limits the system to just 64MB of PCI memory. This can be | 135 | limits the system to just 64MB of PCI memory. This can be |
136 | problamatic if using video cards and other memory-heavy devices. | 136 | problematic if using video cards and other memory-heavy devices. |
137 | 137 | ||
138 | 2) If > 64MB of memory space is required, the IXP4xx can be | 138 | 2) If > 64MB of memory space is required, the IXP4xx can be |
139 | configured to use indirect registers to access PCI This allows | 139 | configured to use indirect registers to access PCI This allows |
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index fbe288a8da65..2ec9a9e9a04d 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/timex.h> | 28 | #include <linux/timex.h> |
29 | #include <linux/clocksource.h> | 29 | #include <linux/clocksource.h> |
30 | 30 | ||
31 | #include <asm/arch/udc.h> | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/uaccess.h> | 33 | #include <asm/uaccess.h> |
33 | #include <asm/io.h> | 34 | #include <asm/io.h> |
@@ -39,6 +40,8 @@ | |||
39 | #include <asm/mach/irq.h> | 40 | #include <asm/mach/irq.h> |
40 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
41 | 42 | ||
43 | static int __init ixp4xx_clocksource_init(void); | ||
44 | |||
42 | /************************************************************************* | 45 | /************************************************************************* |
43 | * IXP4xx chipset I/O mapping | 46 | * IXP4xx chipset I/O mapping |
44 | *************************************************************************/ | 47 | *************************************************************************/ |
@@ -195,7 +198,7 @@ static void ixp4xx_irq_unmask(unsigned int irq) | |||
195 | *IXP4XX_ICMR |= (1 << irq); | 198 | *IXP4XX_ICMR |= (1 << irq); |
196 | } | 199 | } |
197 | 200 | ||
198 | static struct irqchip ixp4xx_irq_chip = { | 201 | static struct irq_chip ixp4xx_irq_chip = { |
199 | .name = "IXP4xx", | 202 | .name = "IXP4xx", |
200 | .ack = ixp4xx_irq_ack, | 203 | .ack = ixp4xx_irq_ack, |
201 | .mask = ixp4xx_irq_mask, | 204 | .mask = ixp4xx_irq_mask, |
@@ -224,7 +227,7 @@ void __init ixp4xx_init_irq(void) | |||
224 | /* Default to all level triggered */ | 227 | /* Default to all level triggered */ |
225 | for(i = 0; i < NR_IRQS; i++) { | 228 | for(i = 0; i < NR_IRQS; i++) { |
226 | set_irq_chip(i, &ixp4xx_irq_chip); | 229 | set_irq_chip(i, &ixp4xx_irq_chip); |
227 | set_irq_handler(i, do_level_IRQ); | 230 | set_irq_handler(i, handle_level_irq); |
228 | set_irq_flags(i, IRQF_VALID); | 231 | set_irq_flags(i, IRQF_VALID); |
229 | } | 232 | } |
230 | } | 233 | } |
@@ -280,12 +283,52 @@ static void __init ixp4xx_timer_init(void) | |||
280 | 283 | ||
281 | /* Connect the interrupt handler and enable the interrupt */ | 284 | /* Connect the interrupt handler and enable the interrupt */ |
282 | setup_irq(IRQ_IXP4XX_TIMER1, &ixp4xx_timer_irq); | 285 | setup_irq(IRQ_IXP4XX_TIMER1, &ixp4xx_timer_irq); |
286 | |||
287 | ixp4xx_clocksource_init(); | ||
283 | } | 288 | } |
284 | 289 | ||
285 | struct sys_timer ixp4xx_timer = { | 290 | struct sys_timer ixp4xx_timer = { |
286 | .init = ixp4xx_timer_init, | 291 | .init = ixp4xx_timer_init, |
287 | }; | 292 | }; |
288 | 293 | ||
294 | static struct pxa2xx_udc_mach_info ixp4xx_udc_info; | ||
295 | |||
296 | void __init ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info) | ||
297 | { | ||
298 | memcpy(&ixp4xx_udc_info, info, sizeof *info); | ||
299 | } | ||
300 | |||
301 | static struct resource ixp4xx_udc_resources[] = { | ||
302 | [0] = { | ||
303 | .start = 0xc800b000, | ||
304 | .end = 0xc800bfff, | ||
305 | .flags = IORESOURCE_MEM, | ||
306 | }, | ||
307 | [1] = { | ||
308 | .start = IRQ_IXP4XX_USB, | ||
309 | .end = IRQ_IXP4XX_USB, | ||
310 | .flags = IORESOURCE_IRQ, | ||
311 | }, | ||
312 | }; | ||
313 | |||
314 | /* | ||
315 | * USB device controller. The IXP4xx uses the same controller as PXA2XX, | ||
316 | * so we just use the same device. | ||
317 | */ | ||
318 | static struct platform_device ixp4xx_udc_device = { | ||
319 | .name = "pxa2xx-udc", | ||
320 | .id = -1, | ||
321 | .num_resources = 2, | ||
322 | .resource = ixp4xx_udc_resources, | ||
323 | .dev = { | ||
324 | .platform_data = &ixp4xx_udc_info, | ||
325 | }, | ||
326 | }; | ||
327 | |||
328 | static struct platform_device *ixp4xx_devices[] __initdata = { | ||
329 | &ixp4xx_udc_device, | ||
330 | }; | ||
331 | |||
289 | static struct resource ixp46x_i2c_resources[] = { | 332 | static struct resource ixp46x_i2c_resources[] = { |
290 | [0] = { | 333 | [0] = { |
291 | .start = 0xc8011000, | 334 | .start = 0xc8011000, |
@@ -321,6 +364,8 @@ void __init ixp4xx_sys_init(void) | |||
321 | { | 364 | { |
322 | ixp4xx_exp_bus_size = SZ_16M; | 365 | ixp4xx_exp_bus_size = SZ_16M; |
323 | 366 | ||
367 | platform_add_devices(ixp4xx_devices, ARRAY_SIZE(ixp4xx_devices)); | ||
368 | |||
324 | if (cpu_is_ixp46x()) { | 369 | if (cpu_is_ixp46x()) { |
325 | int region; | 370 | int region; |
326 | 371 | ||
@@ -363,5 +408,3 @@ static int __init ixp4xx_clocksource_init(void) | |||
363 | 408 | ||
364 | return 0; | 409 | return 0; |
365 | } | 410 | } |
366 | |||
367 | device_initcall(ixp4xx_clocksource_init); | ||
diff --git a/arch/arm/mach-l7200/core.c b/arch/arm/mach-l7200/core.c index b7af5640ea7b..561a0fe7095d 100644 --- a/arch/arm/mach-l7200/core.c +++ b/arch/arm/mach-l7200/core.c | |||
@@ -55,7 +55,7 @@ static void l7200_unmask_irq(unsigned int irq) | |||
55 | IRQ_ENABLE = 1 << irq; | 55 | IRQ_ENABLE = 1 << irq; |
56 | } | 56 | } |
57 | 57 | ||
58 | static struct irqchip l7200_irq_chip = { | 58 | static struct irq_chip l7200_irq_chip = { |
59 | .ack = l7200_mask_irq, | 59 | .ack = l7200_mask_irq, |
60 | .mask = l7200_mask_irq, | 60 | .mask = l7200_mask_irq, |
61 | .unmask = l7200_unmask_irq | 61 | .unmask = l7200_unmask_irq |
@@ -71,7 +71,7 @@ static void __init l7200_init_irq(void) | |||
71 | for (irq = 0; irq < NR_IRQS; irq++) { | 71 | for (irq = 0; irq < NR_IRQS; irq++) { |
72 | set_irq_chip(irq, &l7200_irq_chip); | 72 | set_irq_chip(irq, &l7200_irq_chip); |
73 | set_irq_flags(irq, IRQF_VALID); | 73 | set_irq_flags(irq, IRQF_VALID); |
74 | set_irq_handler(irq, do_level_IRQ); | 74 | set_irq_handler(irq, handle_level_irq); |
75 | } | 75 | } |
76 | 76 | ||
77 | init_FIQ(); | 77 | init_FIQ(); |
diff --git a/arch/arm/mach-lh7a40x/Kconfig b/arch/arm/mach-lh7a40x/Kconfig index 147b01928a9b..6f4c6a1798c1 100644 --- a/arch/arm/mach-lh7a40x/Kconfig +++ b/arch/arm/mach-lh7a40x/Kconfig | |||
@@ -8,7 +8,7 @@ config MACH_KEV7A400 | |||
8 | help | 8 | help |
9 | Say Y here if you are using the Sharp KEV7A400 development | 9 | Say Y here if you are using the Sharp KEV7A400 development |
10 | board. This hardware is discontinued, so I'd be very | 10 | board. This hardware is discontinued, so I'd be very |
11 | suprised if you wanted this option. | 11 | surprised if you wanted this option. |
12 | 12 | ||
13 | config MACH_LPD7A400 | 13 | config MACH_LPD7A400 |
14 | bool "LPD7A400 Card Engine" | 14 | bool "LPD7A400 Card Engine" |
diff --git a/arch/arm/mach-lh7a40x/arch-kev7a400.c b/arch/arm/mach-lh7a40x/arch-kev7a400.c index 15fbcc911fe7..6d26661d99f6 100644 --- a/arch/arm/mach-lh7a40x/arch-kev7a400.c +++ b/arch/arm/mach-lh7a40x/arch-kev7a400.c | |||
@@ -71,7 +71,7 @@ static struct irq_chip kev7a400_cpld_chip = { | |||
71 | }; | 71 | }; |
72 | 72 | ||
73 | 73 | ||
74 | static void kev7a400_cpld_handler (unsigned int irq, struct irqdesc *desc) | 74 | static void kev7a400_cpld_handler (unsigned int irq, struct irq_desc *desc) |
75 | { | 75 | { |
76 | u32 mask = CPLD_LATCHED_INTS; | 76 | u32 mask = CPLD_LATCHED_INTS; |
77 | irq = IRQ_KEV7A400_CPLD; | 77 | irq = IRQ_KEV7A400_CPLD; |
@@ -88,7 +88,7 @@ void __init lh7a40x_init_board_irq (void) | |||
88 | for (irq = IRQ_KEV7A400_CPLD; | 88 | for (irq = IRQ_KEV7A400_CPLD; |
89 | irq < IRQ_KEV7A400_CPLD + NR_IRQ_BOARD; ++irq) { | 89 | irq < IRQ_KEV7A400_CPLD + NR_IRQ_BOARD; ++irq) { |
90 | set_irq_chip (irq, &kev7a400_cpld_chip); | 90 | set_irq_chip (irq, &kev7a400_cpld_chip); |
91 | set_irq_handler (irq, do_edge_IRQ); | 91 | set_irq_handler (irq, handle_edge_irq); |
92 | set_irq_flags (irq, IRQF_VALID); | 92 | set_irq_flags (irq, IRQF_VALID); |
93 | } | 93 | } |
94 | set_irq_chained_handler (IRQ_CPLD, kev7a400_cpld_handler); | 94 | set_irq_chained_handler (IRQ_CPLD, kev7a400_cpld_handler); |
diff --git a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c index 8441e0a156cb..fe64946f9e18 100644 --- a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c +++ b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c | |||
@@ -207,7 +207,7 @@ static struct irq_chip lpd7a40x_cpld_chip = { | |||
207 | .unmask = lh7a40x_unmask_cpld_irq, | 207 | .unmask = lh7a40x_unmask_cpld_irq, |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static void lpd7a40x_cpld_handler (unsigned int irq, struct irqdesc *desc) | 210 | static void lpd7a40x_cpld_handler (unsigned int irq, struct irq_desc *desc) |
211 | { | 211 | { |
212 | unsigned int mask = CPLD_INTERRUPTS; | 212 | unsigned int mask = CPLD_INTERRUPTS; |
213 | 213 | ||
@@ -279,7 +279,7 @@ void __init lh7a40x_init_board_irq (void) | |||
279 | for (irq = IRQ_BOARD_START; | 279 | for (irq = IRQ_BOARD_START; |
280 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { | 280 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { |
281 | set_irq_chip (irq, &lpd7a40x_cpld_chip); | 281 | set_irq_chip (irq, &lpd7a40x_cpld_chip); |
282 | set_irq_handler (irq, do_level_IRQ); | 282 | set_irq_handler (irq, handle_level_irq); |
283 | set_irq_flags (irq, IRQF_VALID); | 283 | set_irq_flags (irq, IRQF_VALID); |
284 | } | 284 | } |
285 | 285 | ||
diff --git a/arch/arm/mach-lh7a40x/irq-kev7a400.c b/arch/arm/mach-lh7a40x/irq-kev7a400.c index 646071334b8f..c7433b3c5812 100644 --- a/arch/arm/mach-lh7a40x/irq-kev7a400.c +++ b/arch/arm/mach-lh7a40x/irq-kev7a400.c | |||
@@ -51,7 +51,7 @@ irq_chip lh7a400_cpld_chip = { | |||
51 | }; | 51 | }; |
52 | 52 | ||
53 | static void | 53 | static void |
54 | lh7a400_cpld_handler (unsigned int irq, struct irqdesc *desc) | 54 | lh7a400_cpld_handler (unsigned int irq, struct irq_desc *desc) |
55 | { | 55 | { |
56 | u32 mask = CPLD_LATCHED_INTS; | 56 | u32 mask = CPLD_LATCHED_INTS; |
57 | irq = IRQ_KEV_7A400_CPLD; | 57 | irq = IRQ_KEV_7A400_CPLD; |
@@ -71,7 +71,7 @@ lh7a400_init_board_irq (void) | |||
71 | for (irq = IRQ_KEV7A400_CPLD; | 71 | for (irq = IRQ_KEV7A400_CPLD; |
72 | irq < IRQ_KEV7A400_CPLD + NR_IRQ_KEV7A400_CPLD; ++irq) { | 72 | irq < IRQ_KEV7A400_CPLD + NR_IRQ_KEV7A400_CPLD; ++irq) { |
73 | set_irq_chip (irq, &lh7a400_cpld_chip); | 73 | set_irq_chip (irq, &lh7a400_cpld_chip); |
74 | set_irq_handler (irq, do_edge_IRQ); | 74 | set_irq_handler (irq, handle_edge_irq); |
75 | set_irq_flags (irq, IRQF_VALID); | 75 | set_irq_flags (irq, IRQF_VALID); |
76 | } | 76 | } |
77 | set_irq_chained_handler (IRQ_CPLD, kev7a400_cpld_handler); | 77 | set_irq_chained_handler (IRQ_CPLD, kev7a400_cpld_handler); |
diff --git a/arch/arm/mach-lh7a40x/irq-lh7a400.c b/arch/arm/mach-lh7a40x/irq-lh7a400.c index 091b2dc58d25..0b938e8b4d98 100644 --- a/arch/arm/mach-lh7a40x/irq-lh7a400.c +++ b/arch/arm/mach-lh7a40x/irq-lh7a400.c | |||
@@ -74,11 +74,11 @@ void __init lh7a400_init_irq (void) | |||
74 | case IRQ_GPIO6INTR: | 74 | case IRQ_GPIO6INTR: |
75 | case IRQ_GPIO7INTR: | 75 | case IRQ_GPIO7INTR: |
76 | set_irq_chip (irq, &lh7a400_gpio_chip); | 76 | set_irq_chip (irq, &lh7a400_gpio_chip); |
77 | set_irq_handler (irq, do_level_IRQ); /* OK default */ | 77 | set_irq_handler (irq, handle_level_irq); /* OK default */ |
78 | break; | 78 | break; |
79 | default: | 79 | default: |
80 | set_irq_chip (irq, &lh7a400_internal_chip); | 80 | set_irq_chip (irq, &lh7a400_internal_chip); |
81 | set_irq_handler (irq, do_level_IRQ); | 81 | set_irq_handler (irq, handle_level_irq); |
82 | } | 82 | } |
83 | set_irq_flags (irq, IRQF_VALID); | 83 | set_irq_flags (irq, IRQF_VALID); |
84 | } | 84 | } |
diff --git a/arch/arm/mach-lh7a40x/irq-lh7a404.c b/arch/arm/mach-lh7a40x/irq-lh7a404.c index 7059b983724f..5760f8c53e89 100644 --- a/arch/arm/mach-lh7a40x/irq-lh7a404.c +++ b/arch/arm/mach-lh7a40x/irq-lh7a404.c | |||
@@ -161,13 +161,13 @@ void __init lh7a404_init_irq (void) | |||
161 | set_irq_chip (irq, irq < 32 | 161 | set_irq_chip (irq, irq < 32 |
162 | ? &lh7a404_gpio_vic1_chip | 162 | ? &lh7a404_gpio_vic1_chip |
163 | : &lh7a404_gpio_vic2_chip); | 163 | : &lh7a404_gpio_vic2_chip); |
164 | set_irq_handler (irq, do_level_IRQ); /* OK default */ | 164 | set_irq_handler (irq, handle_level_irq); /* OK default */ |
165 | break; | 165 | break; |
166 | default: | 166 | default: |
167 | set_irq_chip (irq, irq < 32 | 167 | set_irq_chip (irq, irq < 32 |
168 | ? &lh7a404_vic1_chip | 168 | ? &lh7a404_vic1_chip |
169 | : &lh7a404_vic2_chip); | 169 | : &lh7a404_vic2_chip); |
170 | set_irq_handler (irq, do_level_IRQ); | 170 | set_irq_handler (irq, handle_level_irq); |
171 | } | 171 | } |
172 | set_irq_flags (irq, IRQF_VALID); | 172 | set_irq_flags (irq, IRQF_VALID); |
173 | } | 173 | } |
diff --git a/arch/arm/mach-lh7a40x/irq-lpd7a40x.c b/arch/arm/mach-lh7a40x/irq-lpd7a40x.c index b20376804bbb..15b9577023c9 100644 --- a/arch/arm/mach-lh7a40x/irq-lpd7a40x.c +++ b/arch/arm/mach-lh7a40x/irq-lpd7a40x.c | |||
@@ -57,7 +57,7 @@ static struct irq_chip lh7a40x_cpld_chip = { | |||
57 | .unmask = lh7a40x_unmask_cpld_irq, | 57 | .unmask = lh7a40x_unmask_cpld_irq, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static void lh7a40x_cpld_handler (unsigned int irq, struct irqdesc *desc) | 60 | static void lh7a40x_cpld_handler (unsigned int irq, struct irq_desc *desc) |
61 | { | 61 | { |
62 | unsigned int mask = CPLD_INTERRUPTS; | 62 | unsigned int mask = CPLD_INTERRUPTS; |
63 | 63 | ||
@@ -118,7 +118,7 @@ void __init lh7a40x_init_board_irq (void) | |||
118 | for (irq = IRQ_BOARD_START; | 118 | for (irq = IRQ_BOARD_START; |
119 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { | 119 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { |
120 | set_irq_chip (irq, &lh7a40x_cpld_chip); | 120 | set_irq_chip (irq, &lh7a40x_cpld_chip); |
121 | set_irq_handler (irq, do_edge_IRQ); | 121 | set_irq_handler (irq, handle_edge_irq); |
122 | set_irq_flags (irq, IRQF_VALID); | 122 | set_irq_flags (irq, IRQF_VALID); |
123 | } | 123 | } |
124 | 124 | ||
diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c index edbbbdc3b06b..b9ca8f98265d 100644 --- a/arch/arm/mach-netx/generic.c +++ b/arch/arm/mach-netx/generic.c | |||
@@ -69,7 +69,7 @@ static struct platform_device *devices[] __initdata = { | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | static void | 71 | static void |
72 | netx_hif_demux_handler(unsigned int irq_unused, struct irqdesc *desc) | 72 | netx_hif_demux_handler(unsigned int irq_unused, struct irq_desc *desc) |
73 | { | 73 | { |
74 | unsigned int irq = NETX_IRQ_HIF_CHAINED(0); | 74 | unsigned int irq = NETX_IRQ_HIF_CHAINED(0); |
75 | unsigned int stat; | 75 | unsigned int stat; |
@@ -160,7 +160,7 @@ netx_hif_unmask_irq(unsigned int _irq) | |||
160 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | 160 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); |
161 | } | 161 | } |
162 | 162 | ||
163 | static struct irqchip netx_hif_chip = { | 163 | static struct irq_chip netx_hif_chip = { |
164 | .ack = netx_hif_ack_irq, | 164 | .ack = netx_hif_ack_irq, |
165 | .mask = netx_hif_mask_irq, | 165 | .mask = netx_hif_mask_irq, |
166 | .unmask = netx_hif_unmask_irq, | 166 | .unmask = netx_hif_unmask_irq, |
@@ -175,7 +175,7 @@ void __init netx_init_irq(void) | |||
175 | 175 | ||
176 | for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) { | 176 | for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) { |
177 | set_irq_chip(irq, &netx_hif_chip); | 177 | set_irq_chip(irq, &netx_hif_chip); |
178 | set_irq_handler(irq, do_level_IRQ); | 178 | set_irq_handler(irq, handle_level_irq); |
179 | set_irq_flags(irq, IRQF_VALID); | 179 | set_irq_flags(irq, IRQF_VALID); |
180 | } | 180 | } |
181 | 181 | ||
diff --git a/arch/arm/mach-netx/time.c b/arch/arm/mach-netx/time.c index 0993336c0b55..5773b55ef4a6 100644 --- a/arch/arm/mach-netx/time.c +++ b/arch/arm/mach-netx/time.c | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/irq.h> | ||
23 | #include <linux/clocksource.h> | ||
22 | 24 | ||
23 | #include <asm/hardware.h> | 25 | #include <asm/hardware.h> |
24 | #include <asm/io.h> | 26 | #include <asm/io.h> |
@@ -26,15 +28,6 @@ | |||
26 | #include <asm/arch/netx-regs.h> | 28 | #include <asm/arch/netx-regs.h> |
27 | 29 | ||
28 | /* | 30 | /* |
29 | * Returns number of us since last clock interrupt. Note that interrupts | ||
30 | * will have been disabled by do_gettimeoffset() | ||
31 | */ | ||
32 | static unsigned long netx_gettimeoffset(void) | ||
33 | { | ||
34 | return readl(NETX_GPIO_COUNTER_CURRENT(0)) / 100; | ||
35 | } | ||
36 | |||
37 | /* | ||
38 | * IRQ handler for the timer | 31 | * IRQ handler for the timer |
39 | */ | 32 | */ |
40 | static irqreturn_t | 33 | static irqreturn_t |
@@ -43,6 +36,7 @@ netx_timer_interrupt(int irq, void *dev_id) | |||
43 | write_seqlock(&xtime_lock); | 36 | write_seqlock(&xtime_lock); |
44 | 37 | ||
45 | timer_tick(); | 38 | timer_tick(); |
39 | |||
46 | write_sequnlock(&xtime_lock); | 40 | write_sequnlock(&xtime_lock); |
47 | 41 | ||
48 | /* acknowledge interrupt */ | 42 | /* acknowledge interrupt */ |
@@ -51,13 +45,26 @@ netx_timer_interrupt(int irq, void *dev_id) | |||
51 | return IRQ_HANDLED; | 45 | return IRQ_HANDLED; |
52 | } | 46 | } |
53 | 47 | ||
54 | |||
55 | static struct irqaction netx_timer_irq = { | 48 | static struct irqaction netx_timer_irq = { |
56 | .name = "NetX Timer Tick", | 49 | .name = "NetX Timer Tick", |
57 | .flags = IRQF_DISABLED | IRQF_TIMER, | 50 | .flags = IRQF_DISABLED | IRQF_TIMER, |
58 | .handler = netx_timer_interrupt, | 51 | .handler = netx_timer_interrupt, |
59 | }; | 52 | }; |
60 | 53 | ||
54 | cycle_t netx_get_cycles(void) | ||
55 | { | ||
56 | return readl(NETX_GPIO_COUNTER_CURRENT(1)); | ||
57 | } | ||
58 | |||
59 | static struct clocksource clocksource_netx = { | ||
60 | .name = "netx_timer", | ||
61 | .rating = 200, | ||
62 | .read = netx_get_cycles, | ||
63 | .mask = CLOCKSOURCE_MASK(32), | ||
64 | .shift = 20, | ||
65 | .is_continuous = 1, | ||
66 | }; | ||
67 | |||
61 | /* | 68 | /* |
62 | * Set up timer interrupt | 69 | * Set up timer interrupt |
63 | */ | 70 | */ |
@@ -80,9 +87,20 @@ static void __init netx_timer_init(void) | |||
80 | NETX_GPIO_COUNTER_CTRL(0)); | 87 | NETX_GPIO_COUNTER_CTRL(0)); |
81 | 88 | ||
82 | setup_irq(NETX_IRQ_TIMER0, &netx_timer_irq); | 89 | setup_irq(NETX_IRQ_TIMER0, &netx_timer_irq); |
90 | |||
91 | /* Setup timer one for clocksource */ | ||
92 | writel(0, NETX_GPIO_COUNTER_CTRL(1)); | ||
93 | writel(0, NETX_GPIO_COUNTER_CURRENT(1)); | ||
94 | writel(0xFFFFFFFF, NETX_GPIO_COUNTER_MAX(1)); | ||
95 | |||
96 | writel(NETX_GPIO_COUNTER_CTRL_RUN, | ||
97 | NETX_GPIO_COUNTER_CTRL(1)); | ||
98 | |||
99 | clocksource_netx.mult = | ||
100 | clocksource_hz2mult(CLOCK_TICK_RATE, clocksource_netx.shift); | ||
101 | clocksource_register(&clocksource_netx); | ||
83 | } | 102 | } |
84 | 103 | ||
85 | struct sys_timer netx_timer = { | 104 | struct sys_timer netx_timer = { |
86 | .init = netx_timer_init, | 105 | .init = netx_timer_init, |
87 | .offset = netx_gettimeoffset, | ||
88 | }; | 106 | }; |
diff --git a/arch/arm/mach-omap1/Kconfig b/arch/arm/mach-omap1/Kconfig index d135568dc9e7..8781aaeb576b 100644 --- a/arch/arm/mach-omap1/Kconfig +++ b/arch/arm/mach-omap1/Kconfig | |||
@@ -43,6 +43,7 @@ config MACH_OMAP_H3 | |||
43 | config MACH_OMAP_OSK | 43 | config MACH_OMAP_OSK |
44 | bool "TI OSK Support" | 44 | bool "TI OSK Support" |
45 | depends on ARCH_OMAP1 && ARCH_OMAP16XX | 45 | depends on ARCH_OMAP1 && ARCH_OMAP16XX |
46 | select TPS65010 | ||
46 | help | 47 | help |
47 | TI OMAP 5912 OSK (OMAP Starter Kit) board support. Say Y here | 48 | TI OMAP 5912 OSK (OMAP Starter Kit) board support. Say Y here |
48 | if you have such a board. | 49 | if you have such a board. |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index f225a083dee1..9d2346fb68f4 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -323,7 +323,8 @@ static int h3_transceiver_mode(struct device *dev, int mode) | |||
323 | 323 | ||
324 | cancel_delayed_work(&irda_config->gpio_expa); | 324 | cancel_delayed_work(&irda_config->gpio_expa); |
325 | PREPARE_WORK(&irda_config->gpio_expa, set_trans_mode, &mode); | 325 | PREPARE_WORK(&irda_config->gpio_expa, set_trans_mode, &mode); |
326 | schedule_work(&irda_config->gpio_expa); | 326 | #error this is not permitted - mode is an argument variable |
327 | schedule_delayed_work(&irda_config->gpio_expa, 0); | ||
327 | 328 | ||
328 | return 0; | 329 | return 0; |
329 | } | 330 | } |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index dbc555d209ff..cbe909bad79b 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -74,7 +74,7 @@ static struct omap_kp_platform_data nokia770_kp_data = { | |||
74 | .rows = 8, | 74 | .rows = 8, |
75 | .cols = 8, | 75 | .cols = 8, |
76 | .keymap = nokia770_keymap, | 76 | .keymap = nokia770_keymap, |
77 | .keymapsize = ARRAY_SIZE(nokia770_keymap) | 77 | .keymapsize = ARRAY_SIZE(nokia770_keymap), |
78 | .delay = 4, | 78 | .delay = 4, |
79 | }; | 79 | }; |
80 | 80 | ||
@@ -191,7 +191,7 @@ static void nokia770_audio_pwr_up(void) | |||
191 | printk("HP connected\n"); | 191 | printk("HP connected\n"); |
192 | } | 192 | } |
193 | 193 | ||
194 | static void codec_delayed_power_down(void *arg) | 194 | static void codec_delayed_power_down(struct work_struct *work) |
195 | { | 195 | { |
196 | down(&audio_pwr_sem); | 196 | down(&audio_pwr_sem); |
197 | if (audio_pwr_state == -1) | 197 | if (audio_pwr_state == -1) |
@@ -200,7 +200,7 @@ static void codec_delayed_power_down(void *arg) | |||
200 | up(&audio_pwr_sem); | 200 | up(&audio_pwr_sem); |
201 | } | 201 | } |
202 | 202 | ||
203 | static DECLARE_WORK(codec_power_down_work, codec_delayed_power_down, NULL); | 203 | static DECLARE_DELAYED_WORK(codec_power_down_work, codec_delayed_power_down); |
204 | 204 | ||
205 | static void nokia770_audio_pwr_down(void) | 205 | static void nokia770_audio_pwr_down(void) |
206 | { | 206 | { |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 3a622801d7b0..7d0cf7af88ce 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/init.h> | 30 | #include <linux/init.h> |
31 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
32 | #include <linux/irq.h> | 32 | #include <linux/irq.h> |
33 | #include <linux/interrupt.h> | ||
33 | 34 | ||
34 | #include <linux/mtd/mtd.h> | 35 | #include <linux/mtd/mtd.h> |
35 | #include <linux/mtd/partitions.h> | 36 | #include <linux/mtd/partitions.h> |
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index a611c3b63954..6dcd10ab4496 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -55,7 +55,7 @@ static inline void omap_init_irda(void) {} | |||
55 | 55 | ||
56 | /*-------------------------------------------------------------------------*/ | 56 | /*-------------------------------------------------------------------------*/ |
57 | 57 | ||
58 | #if defined(CONFIG_OMAP_RTC) || defined(CONFIG_OMAP_RTC) | 58 | #if defined(CONFIG_RTC_DRV_OMAP) || defined(CONFIG_RTC_DRV_OMAP_MODULE) |
59 | 59 | ||
60 | #define OMAP_RTC_BASE 0xfffb4800 | 60 | #define OMAP_RTC_BASE 0xfffb4800 |
61 | 61 | ||
diff --git a/arch/arm/mach-omap1/fpga.c b/arch/arm/mach-omap1/fpga.c index 8e40208b10bb..30e188109046 100644 --- a/arch/arm/mach-omap1/fpga.c +++ b/arch/arm/mach-omap1/fpga.c | |||
@@ -84,9 +84,9 @@ static void fpga_mask_ack_irq(unsigned int irq) | |||
84 | fpga_ack_irq(irq); | 84 | fpga_ack_irq(irq); |
85 | } | 85 | } |
86 | 86 | ||
87 | void innovator_fpga_IRQ_demux(unsigned int irq, struct irqdesc *desc) | 87 | void innovator_fpga_IRQ_demux(unsigned int irq, struct irq_desc *desc) |
88 | { | 88 | { |
89 | struct irqdesc *d; | 89 | struct irq_desc *d; |
90 | u32 stat; | 90 | u32 stat; |
91 | int fpga_irq; | 91 | int fpga_irq; |
92 | 92 | ||
@@ -168,7 +168,7 @@ void omap1510_fpga_init_irq(void) | |||
168 | set_irq_chip(i, &omap_fpga_irq); | 168 | set_irq_chip(i, &omap_fpga_irq); |
169 | } | 169 | } |
170 | 170 | ||
171 | set_irq_handler(i, do_edge_IRQ); | 171 | set_irq_handler(i, handle_edge_irq); |
172 | set_irq_flags(i, IRQF_VALID); | 172 | set_irq_flags(i, IRQF_VALID); |
173 | } | 173 | } |
174 | 174 | ||
diff --git a/arch/arm/mach-omap1/irq.c b/arch/arm/mach-omap1/irq.c index 3ea140bb9eba..6383a12ad970 100644 --- a/arch/arm/mach-omap1/irq.c +++ b/arch/arm/mach-omap1/irq.c | |||
@@ -229,7 +229,7 @@ void __init omap_init_irq(void) | |||
229 | omap_irq_set_cfg(j, 0, 0, irq_trigger); | 229 | omap_irq_set_cfg(j, 0, 0, irq_trigger); |
230 | 230 | ||
231 | set_irq_chip(j, &omap_irq_chip); | 231 | set_irq_chip(j, &omap_irq_chip); |
232 | set_irq_handler(j, do_level_IRQ); | 232 | set_irq_handler(j, handle_level_irq); |
233 | set_irq_flags(j, IRQF_VALID); | 233 | set_irq_flags(j, IRQF_VALID); |
234 | } | 234 | } |
235 | } | 235 | } |
diff --git a/arch/arm/mach-omap1/leds-osk.c b/arch/arm/mach-omap1/leds-osk.c index 3b29e59b0e6f..0cbf1b0071f8 100644 --- a/arch/arm/mach-omap1/leds-osk.c +++ b/arch/arm/mach-omap1/leds-osk.c | |||
@@ -35,7 +35,7 @@ static u8 hw_led_state; | |||
35 | 35 | ||
36 | static u8 tps_leds_change; | 36 | static u8 tps_leds_change; |
37 | 37 | ||
38 | static void tps_work(void *unused) | 38 | static void tps_work(struct work_struct *unused) |
39 | { | 39 | { |
40 | for (;;) { | 40 | for (;;) { |
41 | u8 leds; | 41 | u8 leds; |
@@ -61,7 +61,7 @@ static void tps_work(void *unused) | |||
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 | ||
64 | static DECLARE_WORK(work, tps_work, NULL); | 64 | static DECLARE_WORK(work, tps_work); |
65 | 65 | ||
66 | #ifdef CONFIG_OMAP_OSK_MISTRAL | 66 | #ifdef CONFIG_OMAP_OSK_MISTRAL |
67 | 67 | ||
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index 03d6905ba490..878ff9181d0e 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/mtd/mtd.h> | 22 | #include <linux/mtd/mtd.h> |
23 | #include <linux/mtd/partitions.h> | 23 | #include <linux/mtd/partitions.h> |
24 | #include <linux/mtd/onenand.h> | 24 | #include <linux/mtd/onenand.h> |
25 | #include <linux/irq.h> | ||
25 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
26 | #include <linux/delay.h> | 27 | #include <linux/delay.h> |
27 | 28 | ||
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 26a95a642ad7..3b1ad1d981a3 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -206,7 +206,8 @@ static int h4_transceiver_mode(struct device *dev, int mode) | |||
206 | 206 | ||
207 | cancel_delayed_work(&irda_config->gpio_expa); | 207 | cancel_delayed_work(&irda_config->gpio_expa); |
208 | PREPARE_WORK(&irda_config->gpio_expa, set_trans_mode, &mode); | 208 | PREPARE_WORK(&irda_config->gpio_expa, set_trans_mode, &mode); |
209 | schedule_work(&irda_config->gpio_expa); | 209 | #error this is not permitted - mode is an argument variable |
210 | schedule_delayed_work(&irda_config->gpio_expa, 0); | ||
210 | 211 | ||
211 | return 0; | 212 | return 0; |
212 | } | 213 | } |
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index f4f04d87df32..d8f57824423f 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/spinlock.h> | 17 | #include <linux/spinlock.h> |
18 | 18 | ||
19 | #include <asm/io.h> | 19 | #include <asm/io.h> |
20 | #include <asm/mach-types.h> | ||
20 | #include <asm/arch/gpmc.h> | 21 | #include <asm/arch/gpmc.h> |
21 | 22 | ||
22 | #undef DEBUG | 23 | #undef DEBUG |
@@ -338,19 +339,13 @@ void __init gpmc_mem_init(void) | |||
338 | int cs; | 339 | int cs; |
339 | unsigned long boot_rom_space = 0; | 340 | unsigned long boot_rom_space = 0; |
340 | 341 | ||
341 | if (cpu_is_omap242x()) { | 342 | /* never allocate the first page, to facilitate bug detection; |
342 | u32 l; | 343 | * even if we didn't boot from ROM. |
343 | l = omap_readl(OMAP242X_CONTROL_STATUS); | 344 | */ |
344 | /* In case of internal boot the 1st MB is redirected to the | 345 | boot_rom_space = BOOT_ROM_SPACE; |
345 | * boot ROM memory space. | 346 | /* In apollon the CS0 is mapped as 0x0000 0000 */ |
346 | */ | 347 | if (machine_is_omap_apollon()) |
347 | if (l & (1 << 3)) | 348 | boot_rom_space = 0; |
348 | boot_rom_space = BOOT_ROM_SPACE; | ||
349 | } else | ||
350 | /* We assume internal boot if the mode can't be | ||
351 | * determined. | ||
352 | */ | ||
353 | boot_rom_space = BOOT_ROM_SPACE; | ||
354 | gpmc_mem_root.start = GPMC_MEM_START + boot_rom_space; | 349 | gpmc_mem_root.start = GPMC_MEM_START + boot_rom_space; |
355 | gpmc_mem_root.end = GPMC_MEM_END; | 350 | gpmc_mem_root.end = GPMC_MEM_END; |
356 | 351 | ||
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 11870093d7a1..a39d30680300 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -130,7 +130,7 @@ void __init omap_init_irq(void) | |||
130 | 130 | ||
131 | for (i = 0; i < nr_irqs; i++) { | 131 | for (i = 0; i < nr_irqs; i++) { |
132 | set_irq_chip(i, &omap_irq_chip); | 132 | set_irq_chip(i, &omap_irq_chip); |
133 | set_irq_handler(i, do_level_IRQ); | 133 | set_irq_handler(i, handle_level_irq); |
134 | set_irq_flags(i, IRQF_VALID); | 134 | set_irq_flags(i, IRQF_VALID); |
135 | } | 135 | } |
136 | } | 136 | } |
diff --git a/arch/arm/mach-pnx4008/Makefile b/arch/arm/mach-pnx4008/Makefile index b457ca0a431a..777564c90a12 100644 --- a/arch/arm/mach-pnx4008/Makefile +++ b/arch/arm/mach-pnx4008/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := core.o irq.o time.o clock.o gpio.o serial.o dma.o | 5 | obj-y := core.o irq.o time.o clock.o gpio.o serial.o dma.o i2c.o |
6 | obj-m := | 6 | obj-m := |
7 | obj-n := | 7 | obj-n := |
8 | obj- := | 8 | obj- := |
diff --git a/arch/arm/mach-pnx4008/i2c.c b/arch/arm/mach-pnx4008/i2c.c new file mode 100644 index 000000000000..6f308827c4fe --- /dev/null +++ b/arch/arm/mach-pnx4008/i2c.c | |||
@@ -0,0 +1,167 @@ | |||
1 | /* | ||
2 | * I2C initialization for PNX4008. | ||
3 | * | ||
4 | * Author: Vitaly Wool <vitalywool@gmail.com> | ||
5 | * | ||
6 | * 2005-2006 (c) MontaVista Software, Inc. This file is licensed under | ||
7 | * the terms of the GNU General Public License version 2. This program | ||
8 | * is licensed "as is" without any warranty of any kind, whether express | ||
9 | * or implied. | ||
10 | */ | ||
11 | |||
12 | #include <linux/clk.h> | ||
13 | #include <linux/i2c.h> | ||
14 | #include <linux/i2c-pnx.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/err.h> | ||
17 | #include <asm/arch/platform.h> | ||
18 | #include <asm/arch/i2c.h> | ||
19 | |||
20 | static int set_clock_run(struct platform_device *pdev) | ||
21 | { | ||
22 | struct clk *clk; | ||
23 | char name[10]; | ||
24 | int retval = 0; | ||
25 | |||
26 | snprintf(name, 10, "i2c%d_ck", pdev->id); | ||
27 | clk = clk_get(&pdev->dev, name); | ||
28 | if (!IS_ERR(clk)) { | ||
29 | clk_set_rate(clk, 1); | ||
30 | clk_put(clk); | ||
31 | } else | ||
32 | retval = -ENOENT; | ||
33 | |||
34 | return retval; | ||
35 | } | ||
36 | |||
37 | static int set_clock_stop(struct platform_device *pdev) | ||
38 | { | ||
39 | struct clk *clk; | ||
40 | char name[10]; | ||
41 | int retval = 0; | ||
42 | |||
43 | snprintf(name, 10, "i2c%d_ck", pdev->id); | ||
44 | clk = clk_get(&pdev->dev, name); | ||
45 | if (!IS_ERR(clk)) { | ||
46 | clk_set_rate(clk, 0); | ||
47 | clk_put(clk); | ||
48 | } else | ||
49 | retval = -ENOENT; | ||
50 | |||
51 | return retval; | ||
52 | } | ||
53 | |||
54 | static int i2c_pnx_suspend(struct platform_device *pdev, pm_message_t state) | ||
55 | { | ||
56 | int retval = 0; | ||
57 | #ifdef CONFIG_PM | ||
58 | retval = set_clock_run(pdev); | ||
59 | #endif | ||
60 | return retval; | ||
61 | } | ||
62 | |||
63 | static int i2c_pnx_resume(struct platform_device *pdev) | ||
64 | { | ||
65 | int retval = 0; | ||
66 | #ifdef CONFIG_PM | ||
67 | retval = set_clock_run(pdev); | ||
68 | #endif | ||
69 | return retval; | ||
70 | } | ||
71 | |||
72 | static u32 calculate_input_freq(struct platform_device *pdev) | ||
73 | { | ||
74 | return HCLK_MHZ; | ||
75 | } | ||
76 | |||
77 | |||
78 | static struct i2c_pnx_algo_data pnx_algo_data0 = { | ||
79 | .base = PNX4008_I2C1_BASE, | ||
80 | .irq = I2C_1_INT, | ||
81 | }; | ||
82 | |||
83 | static struct i2c_pnx_algo_data pnx_algo_data1 = { | ||
84 | .base = PNX4008_I2C2_BASE, | ||
85 | .irq = I2C_2_INT, | ||
86 | }; | ||
87 | |||
88 | static struct i2c_pnx_algo_data pnx_algo_data2 = { | ||
89 | .base = (PNX4008_USB_CONFIG_BASE + 0x300), | ||
90 | .irq = USB_I2C_INT, | ||
91 | }; | ||
92 | |||
93 | static struct i2c_adapter pnx_adapter0 = { | ||
94 | .name = I2C_CHIP_NAME "0", | ||
95 | .algo_data = &pnx_algo_data0, | ||
96 | }; | ||
97 | static struct i2c_adapter pnx_adapter1 = { | ||
98 | .name = I2C_CHIP_NAME "1", | ||
99 | .algo_data = &pnx_algo_data1, | ||
100 | }; | ||
101 | |||
102 | static struct i2c_adapter pnx_adapter2 = { | ||
103 | .name = "USB-I2C", | ||
104 | .algo_data = &pnx_algo_data2, | ||
105 | }; | ||
106 | |||
107 | static struct i2c_pnx_data i2c0_data = { | ||
108 | .suspend = i2c_pnx_suspend, | ||
109 | .resume = i2c_pnx_resume, | ||
110 | .calculate_input_freq = calculate_input_freq, | ||
111 | .set_clock_run = set_clock_run, | ||
112 | .set_clock_stop = set_clock_stop, | ||
113 | .adapter = &pnx_adapter0, | ||
114 | }; | ||
115 | |||
116 | static struct i2c_pnx_data i2c1_data = { | ||
117 | .suspend = i2c_pnx_suspend, | ||
118 | .resume = i2c_pnx_resume, | ||
119 | .calculate_input_freq = calculate_input_freq, | ||
120 | .set_clock_run = set_clock_run, | ||
121 | .set_clock_stop = set_clock_stop, | ||
122 | .adapter = &pnx_adapter1, | ||
123 | }; | ||
124 | |||
125 | static struct i2c_pnx_data i2c2_data = { | ||
126 | .suspend = i2c_pnx_suspend, | ||
127 | .resume = i2c_pnx_resume, | ||
128 | .calculate_input_freq = calculate_input_freq, | ||
129 | .set_clock_run = set_clock_run, | ||
130 | .set_clock_stop = set_clock_stop, | ||
131 | .adapter = &pnx_adapter2, | ||
132 | }; | ||
133 | |||
134 | static struct platform_device i2c0_device = { | ||
135 | .name = "pnx-i2c", | ||
136 | .id = 0, | ||
137 | .dev = { | ||
138 | .platform_data = &i2c0_data, | ||
139 | }, | ||
140 | }; | ||
141 | |||
142 | static struct platform_device i2c1_device = { | ||
143 | .name = "pnx-i2c", | ||
144 | .id = 1, | ||
145 | .dev = { | ||
146 | .platform_data = &i2c1_data, | ||
147 | }, | ||
148 | }; | ||
149 | |||
150 | static struct platform_device i2c2_device = { | ||
151 | .name = "pnx-i2c", | ||
152 | .id = 2, | ||
153 | .dev = { | ||
154 | .platform_data = &i2c2_data, | ||
155 | }, | ||
156 | }; | ||
157 | |||
158 | static struct platform_device *devices[] __initdata = { | ||
159 | &i2c0_device, | ||
160 | &i2c1_device, | ||
161 | &i2c2_device, | ||
162 | }; | ||
163 | |||
164 | void __init pnx4008_register_i2c_devices(void) | ||
165 | { | ||
166 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
167 | } | ||
diff --git a/arch/arm/mach-pnx4008/irq.c b/arch/arm/mach-pnx4008/irq.c index 3a4bcf3d91fa..968d0b027597 100644 --- a/arch/arm/mach-pnx4008/irq.c +++ b/arch/arm/mach-pnx4008/irq.c | |||
@@ -59,22 +59,22 @@ static int pnx4008_set_irq_type(unsigned int irq, unsigned int type) | |||
59 | case IRQT_RISING: | 59 | case IRQT_RISING: |
60 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ | 60 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ |
61 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /*rising edge */ | 61 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /*rising edge */ |
62 | set_irq_handler(irq, do_edge_IRQ); | 62 | set_irq_handler(irq, handle_edge_irq); |
63 | break; | 63 | break; |
64 | case IRQT_FALLING: | 64 | case IRQT_FALLING: |
65 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ | 65 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ |
66 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*falling edge */ | 66 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*falling edge */ |
67 | set_irq_handler(irq, do_edge_IRQ); | 67 | set_irq_handler(irq, handle_edge_irq); |
68 | break; | 68 | break; |
69 | case IRQT_LOW: | 69 | case IRQT_LOW: |
70 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ | 70 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ |
71 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*low level */ | 71 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*low level */ |
72 | set_irq_handler(irq, do_level_IRQ); | 72 | set_irq_handler(irq, handle_level_irq); |
73 | break; | 73 | break; |
74 | case IRQT_HIGH: | 74 | case IRQT_HIGH: |
75 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ | 75 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ |
76 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /* high level */ | 76 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /* high level */ |
77 | set_irq_handler(irq, do_level_IRQ); | 77 | set_irq_handler(irq, handle_level_irq); |
78 | break; | 78 | break; |
79 | 79 | ||
80 | /* IRQT_BOTHEDGE is not supported */ | 80 | /* IRQT_BOTHEDGE is not supported */ |
@@ -85,7 +85,7 @@ static int pnx4008_set_irq_type(unsigned int irq, unsigned int type) | |||
85 | return 0; | 85 | return 0; |
86 | } | 86 | } |
87 | 87 | ||
88 | static struct irqchip pnx4008_irq_chip = { | 88 | static struct irq_chip pnx4008_irq_chip = { |
89 | .ack = pnx4008_mask_ack_irq, | 89 | .ack = pnx4008_mask_ack_irq, |
90 | .mask = pnx4008_mask_irq, | 90 | .mask = pnx4008_mask_irq, |
91 | .unmask = pnx4008_unmask_irq, | 91 | .unmask = pnx4008_unmask_irq, |
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 03d07cae26c8..5c0a10041cd1 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -13,12 +13,10 @@ config ARCH_LUBBOCK | |||
13 | config MACH_LOGICPD_PXA270 | 13 | config MACH_LOGICPD_PXA270 |
14 | bool "LogicPD PXA270 Card Engine Development Platform" | 14 | bool "LogicPD PXA270 Card Engine Development Platform" |
15 | select PXA27x | 15 | select PXA27x |
16 | select IWMMXT | ||
17 | 16 | ||
18 | config MACH_MAINSTONE | 17 | config MACH_MAINSTONE |
19 | bool "Intel HCDDBBVA0 Development Platform" | 18 | bool "Intel HCDDBBVA0 Development Platform" |
20 | select PXA27x | 19 | select PXA27x |
21 | select IWMMXT | ||
22 | 20 | ||
23 | config ARCH_PXA_IDP | 21 | config ARCH_PXA_IDP |
24 | bool "Accelent Xscale IDP" | 22 | bool "Accelent Xscale IDP" |
@@ -53,7 +51,6 @@ config PXA_SHARPSL_25x | |||
53 | config PXA_SHARPSL_27x | 51 | config PXA_SHARPSL_27x |
54 | bool "Sharp PXA270 models (SL-Cxx00)" | 52 | bool "Sharp PXA270 models (SL-Cxx00)" |
55 | select PXA27x | 53 | select PXA27x |
56 | select IWMMXT | ||
57 | 54 | ||
58 | endchoice | 55 | endchoice |
59 | 56 | ||
@@ -78,28 +75,28 @@ endmenu | |||
78 | 75 | ||
79 | config MACH_POODLE | 76 | config MACH_POODLE |
80 | bool "Enable Sharp SL-5600 (Poodle) Support" | 77 | bool "Enable Sharp SL-5600 (Poodle) Support" |
81 | depends PXA_SHARPSL_25x | 78 | depends on PXA_SHARPSL_25x |
82 | select SHARP_LOCOMO | 79 | select SHARP_LOCOMO |
83 | select PXA_SSP | 80 | select PXA_SSP |
84 | 81 | ||
85 | config MACH_CORGI | 82 | config MACH_CORGI |
86 | bool "Enable Sharp SL-C700 (Corgi) Support" | 83 | bool "Enable Sharp SL-C700 (Corgi) Support" |
87 | depends PXA_SHARPSL_25x | 84 | depends on PXA_SHARPSL_25x |
88 | select PXA_SHARP_C7xx | 85 | select PXA_SHARP_C7xx |
89 | 86 | ||
90 | config MACH_SHEPHERD | 87 | config MACH_SHEPHERD |
91 | bool "Enable Sharp SL-C750 (Shepherd) Support" | 88 | bool "Enable Sharp SL-C750 (Shepherd) Support" |
92 | depends PXA_SHARPSL_25x | 89 | depends on PXA_SHARPSL_25x |
93 | select PXA_SHARP_C7xx | 90 | select PXA_SHARP_C7xx |
94 | 91 | ||
95 | config MACH_HUSKY | 92 | config MACH_HUSKY |
96 | bool "Enable Sharp SL-C760 (Husky) Support" | 93 | bool "Enable Sharp SL-C760 (Husky) Support" |
97 | depends PXA_SHARPSL_25x | 94 | depends on PXA_SHARPSL_25x |
98 | select PXA_SHARP_C7xx | 95 | select PXA_SHARP_C7xx |
99 | 96 | ||
100 | config MACH_AKITA | 97 | config MACH_AKITA |
101 | bool "Enable Sharp SL-1000 (Akita) Support" | 98 | bool "Enable Sharp SL-1000 (Akita) Support" |
102 | depends PXA_SHARPSL_27x | 99 | depends on PXA_SHARPSL_27x |
103 | select PXA_SHARP_Cxx00 | 100 | select PXA_SHARP_Cxx00 |
104 | select MACH_SPITZ | 101 | select MACH_SPITZ |
105 | select I2C | 102 | select I2C |
@@ -107,17 +104,17 @@ config MACH_AKITA | |||
107 | 104 | ||
108 | config MACH_SPITZ | 105 | config MACH_SPITZ |
109 | bool "Enable Sharp Zaurus SL-3000 (Spitz) Support" | 106 | bool "Enable Sharp Zaurus SL-3000 (Spitz) Support" |
110 | depends PXA_SHARPSL_27x | 107 | depends on PXA_SHARPSL_27x |
111 | select PXA_SHARP_Cxx00 | 108 | select PXA_SHARP_Cxx00 |
112 | 109 | ||
113 | config MACH_BORZOI | 110 | config MACH_BORZOI |
114 | bool "Enable Sharp Zaurus SL-3100 (Borzoi) Support" | 111 | bool "Enable Sharp Zaurus SL-3100 (Borzoi) Support" |
115 | depends PXA_SHARPSL_27x | 112 | depends on PXA_SHARPSL_27x |
116 | select PXA_SHARP_Cxx00 | 113 | select PXA_SHARP_Cxx00 |
117 | 114 | ||
118 | config MACH_TOSA | 115 | config MACH_TOSA |
119 | bool "Enable Sharp SL-6000x (Tosa) Support" | 116 | bool "Enable Sharp SL-6000x (Tosa) Support" |
120 | depends PXA_SHARPSL_25x | 117 | depends on PXA_SHARPSL_25x |
121 | 118 | ||
122 | config PXA25x | 119 | config PXA25x |
123 | bool | 120 | bool |
@@ -129,11 +126,6 @@ config PXA27x | |||
129 | help | 126 | help |
130 | Select code specific to PXA27x variants | 127 | Select code specific to PXA27x variants |
131 | 128 | ||
132 | config IWMMXT | ||
133 | bool | ||
134 | help | ||
135 | Enable support for iWMMXt | ||
136 | |||
137 | config PXA_SHARP_C7xx | 129 | config PXA_SHARP_C7xx |
138 | bool | 130 | bool |
139 | select PXA_SSP | 131 | select PXA_SSP |
diff --git a/arch/arm/mach-pxa/akita-ioexp.c b/arch/arm/mach-pxa/akita-ioexp.c index 1b398742ab56..12d2fe0ceff6 100644 --- a/arch/arm/mach-pxa/akita-ioexp.c +++ b/arch/arm/mach-pxa/akita-ioexp.c | |||
@@ -36,11 +36,11 @@ I2C_CLIENT_INSMOD; | |||
36 | 36 | ||
37 | static int max7310_write(struct i2c_client *client, int address, int data); | 37 | static int max7310_write(struct i2c_client *client, int address, int data); |
38 | static struct i2c_client max7310_template; | 38 | static struct i2c_client max7310_template; |
39 | static void akita_ioexp_work(void *private_); | 39 | static void akita_ioexp_work(struct work_struct *private_); |
40 | 40 | ||
41 | static struct device *akita_ioexp_device; | 41 | static struct device *akita_ioexp_device; |
42 | static unsigned char ioexp_output_value = AKITA_IOEXP_IO_OUT; | 42 | static unsigned char ioexp_output_value = AKITA_IOEXP_IO_OUT; |
43 | DECLARE_WORK(akita_ioexp, akita_ioexp_work, NULL); | 43 | DECLARE_WORK(akita_ioexp, akita_ioexp_work); |
44 | 44 | ||
45 | 45 | ||
46 | /* | 46 | /* |
@@ -158,7 +158,7 @@ void akita_reset_ioexp(struct device *dev, unsigned char bit) | |||
158 | EXPORT_SYMBOL(akita_set_ioexp); | 158 | EXPORT_SYMBOL(akita_set_ioexp); |
159 | EXPORT_SYMBOL(akita_reset_ioexp); | 159 | EXPORT_SYMBOL(akita_reset_ioexp); |
160 | 160 | ||
161 | static void akita_ioexp_work(void *private_) | 161 | static void akita_ioexp_work(struct work_struct *private_) |
162 | { | 162 | { |
163 | if (akita_ioexp_device) | 163 | if (akita_ioexp_device) |
164 | max7310_set_ouputs(akita_ioexp_device, ioexp_output_value); | 164 | max7310_set_ouputs(akita_ioexp_device, ioexp_output_value); |
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 45fb2c3bcf82..9de1278d234f 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c | |||
@@ -25,6 +25,10 @@ | |||
25 | #include <linux/pm.h> | 25 | #include <linux/pm.h> |
26 | #include <linux/string.h> | 26 | #include <linux/string.h> |
27 | 27 | ||
28 | #include <linux/sched.h> | ||
29 | #include <asm/cnt32_to_63.h> | ||
30 | #include <asm/div64.h> | ||
31 | |||
28 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
29 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
30 | #include <asm/system.h> | 34 | #include <asm/system.h> |
@@ -41,6 +45,64 @@ | |||
41 | #include "generic.h" | 45 | #include "generic.h" |
42 | 46 | ||
43 | /* | 47 | /* |
48 | * This is the PXA2xx sched_clock implementation. This has a resolution | ||
49 | * of at least 308ns and a maximum value that depends on the value of | ||
50 | * CLOCK_TICK_RATE. | ||
51 | * | ||
52 | * The return value is guaranteed to be monotonic in that range as | ||
53 | * long as there is always less than 582 seconds between successive | ||
54 | * calls to this function. | ||
55 | */ | ||
56 | unsigned long long sched_clock(void) | ||
57 | { | ||
58 | unsigned long long v = cnt32_to_63(OSCR); | ||
59 | /* Note: top bit ov v needs cleared unless multiplier is even. */ | ||
60 | |||
61 | #if CLOCK_TICK_RATE == 3686400 | ||
62 | /* 1E9 / 3686400 => 78125 / 288, max value = 32025597s (370 days). */ | ||
63 | /* The <<1 is used to get rid of tick.hi top bit */ | ||
64 | v *= 78125<<1; | ||
65 | do_div(v, 288<<1); | ||
66 | #elif CLOCK_TICK_RATE == 3250000 | ||
67 | /* 1E9 / 3250000 => 4000 / 13, max value = 709490156s (8211 days) */ | ||
68 | v *= 4000; | ||
69 | do_div(v, 13); | ||
70 | #elif CLOCK_TICK_RATE == 3249600 | ||
71 | /* 1E9 / 3249600 => 625000 / 2031, max value = 4541295s (52 days) */ | ||
72 | v *= 625000; | ||
73 | do_div(v, 2031); | ||
74 | #else | ||
75 | #warning "consider fixing sched_clock for your value of CLOCK_TICK_RATE" | ||
76 | /* | ||
77 | * 96-bit math to perform tick * NSEC_PER_SEC / CLOCK_TICK_RATE for | ||
78 | * any value of CLOCK_TICK_RATE. Max value is in the 80 thousand | ||
79 | * years range and truncation to unsigned long long limits it to | ||
80 | * sched_clock's max range of ~584 years. This is nice but with | ||
81 | * higher computation cost. | ||
82 | */ | ||
83 | { | ||
84 | union { | ||
85 | unsigned long long val; | ||
86 | struct { unsigned long lo, hi; }; | ||
87 | } x; | ||
88 | unsigned long long y; | ||
89 | |||
90 | x.val = v; | ||
91 | x.hi &= 0x7fffffff; | ||
92 | y = (unsigned long long)x.lo * NSEC_PER_SEC; | ||
93 | x.lo = y; | ||
94 | y = (y >> 32) + (unsigned long long)x.hi * NSEC_PER_SEC; | ||
95 | x.hi = do_div(y, CLOCK_TICK_RATE); | ||
96 | do_div(x.val, CLOCK_TICK_RATE); | ||
97 | x.hi += y; | ||
98 | v = x.val; | ||
99 | } | ||
100 | #endif | ||
101 | |||
102 | return v; | ||
103 | } | ||
104 | |||
105 | /* | ||
44 | * Handy function to set GPIO alternate functions | 106 | * Handy function to set GPIO alternate functions |
45 | */ | 107 | */ |
46 | 108 | ||
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index ab1a16025d51..f815678a9d63 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -143,7 +143,7 @@ static struct irq_chip pxa_low_gpio_chip = { | |||
143 | * Demux handler for GPIO>=2 edge detect interrupts | 143 | * Demux handler for GPIO>=2 edge detect interrupts |
144 | */ | 144 | */ |
145 | 145 | ||
146 | static void pxa_gpio_demux_handler(unsigned int irq, struct irqdesc *desc) | 146 | static void pxa_gpio_demux_handler(unsigned int irq, struct irq_desc *desc) |
147 | { | 147 | { |
148 | unsigned int mask; | 148 | unsigned int mask; |
149 | int loop; | 149 | int loop; |
@@ -286,27 +286,27 @@ void __init pxa_init_irq(void) | |||
286 | 286 | ||
287 | for (irq = PXA_IRQ(PXA_IRQ_SKIP); irq <= PXA_IRQ(31); irq++) { | 287 | for (irq = PXA_IRQ(PXA_IRQ_SKIP); irq <= PXA_IRQ(31); irq++) { |
288 | set_irq_chip(irq, &pxa_internal_chip_low); | 288 | set_irq_chip(irq, &pxa_internal_chip_low); |
289 | set_irq_handler(irq, do_level_IRQ); | 289 | set_irq_handler(irq, handle_level_irq); |
290 | set_irq_flags(irq, IRQF_VALID); | 290 | set_irq_flags(irq, IRQF_VALID); |
291 | } | 291 | } |
292 | 292 | ||
293 | #if PXA_INTERNAL_IRQS > 32 | 293 | #if PXA_INTERNAL_IRQS > 32 |
294 | for (irq = PXA_IRQ(32); irq < PXA_IRQ(PXA_INTERNAL_IRQS); irq++) { | 294 | for (irq = PXA_IRQ(32); irq < PXA_IRQ(PXA_INTERNAL_IRQS); irq++) { |
295 | set_irq_chip(irq, &pxa_internal_chip_high); | 295 | set_irq_chip(irq, &pxa_internal_chip_high); |
296 | set_irq_handler(irq, do_level_IRQ); | 296 | set_irq_handler(irq, handle_level_irq); |
297 | set_irq_flags(irq, IRQF_VALID); | 297 | set_irq_flags(irq, IRQF_VALID); |
298 | } | 298 | } |
299 | #endif | 299 | #endif |
300 | 300 | ||
301 | for (irq = IRQ_GPIO0; irq <= IRQ_GPIO1; irq++) { | 301 | for (irq = IRQ_GPIO0; irq <= IRQ_GPIO1; irq++) { |
302 | set_irq_chip(irq, &pxa_low_gpio_chip); | 302 | set_irq_chip(irq, &pxa_low_gpio_chip); |
303 | set_irq_handler(irq, do_edge_IRQ); | 303 | set_irq_handler(irq, handle_edge_irq); |
304 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 304 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
305 | } | 305 | } |
306 | 306 | ||
307 | for (irq = IRQ_GPIO(2); irq <= IRQ_GPIO(PXA_LAST_GPIO); irq++) { | 307 | for (irq = IRQ_GPIO(2); irq <= IRQ_GPIO(PXA_LAST_GPIO); irq++) { |
308 | set_irq_chip(irq, &pxa_muxed_gpio_chip); | 308 | set_irq_chip(irq, &pxa_muxed_gpio_chip); |
309 | set_irq_handler(irq, do_edge_IRQ); | 309 | set_irq_handler(irq, handle_edge_irq); |
310 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 310 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
311 | } | 311 | } |
312 | 312 | ||
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c index 5749f6b72e12..8e27a64fa9f4 100644 --- a/arch/arm/mach-pxa/lpd270.c +++ b/arch/arm/mach-pxa/lpd270.c | |||
@@ -75,7 +75,7 @@ static struct irq_chip lpd270_irq_chip = { | |||
75 | .unmask = lpd270_unmask_irq, | 75 | .unmask = lpd270_unmask_irq, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static void lpd270_irq_handler(unsigned int irq, struct irqdesc *desc) | 78 | static void lpd270_irq_handler(unsigned int irq, struct irq_desc *desc) |
79 | { | 79 | { |
80 | unsigned long pending; | 80 | unsigned long pending; |
81 | 81 | ||
@@ -105,7 +105,7 @@ static void __init lpd270_init_irq(void) | |||
105 | /* setup extra LogicPD PXA270 irqs */ | 105 | /* setup extra LogicPD PXA270 irqs */ |
106 | for (irq = LPD270_IRQ(2); irq <= LPD270_IRQ(4); irq++) { | 106 | for (irq = LPD270_IRQ(2); irq <= LPD270_IRQ(4); irq++) { |
107 | set_irq_chip(irq, &lpd270_irq_chip); | 107 | set_irq_chip(irq, &lpd270_irq_chip); |
108 | set_irq_handler(irq, do_level_IRQ); | 108 | set_irq_handler(irq, handle_level_irq); |
109 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 109 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
110 | } | 110 | } |
111 | set_irq_chained_handler(IRQ_GPIO(0), lpd270_irq_handler); | 111 | set_irq_chained_handler(IRQ_GPIO(0), lpd270_irq_handler); |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 142c33c3dff5..055de7f4f00a 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -85,7 +85,7 @@ static struct irq_chip lubbock_irq_chip = { | |||
85 | .unmask = lubbock_unmask_irq, | 85 | .unmask = lubbock_unmask_irq, |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static void lubbock_irq_handler(unsigned int irq, struct irqdesc *desc) | 88 | static void lubbock_irq_handler(unsigned int irq, struct irq_desc *desc) |
89 | { | 89 | { |
90 | unsigned long pending = LUB_IRQ_SET_CLR & lubbock_irq_enabled; | 90 | unsigned long pending = LUB_IRQ_SET_CLR & lubbock_irq_enabled; |
91 | do { | 91 | do { |
@@ -108,7 +108,7 @@ static void __init lubbock_init_irq(void) | |||
108 | /* setup extra lubbock irqs */ | 108 | /* setup extra lubbock irqs */ |
109 | for (irq = LUBBOCK_IRQ(0); irq <= LUBBOCK_LAST_IRQ; irq++) { | 109 | for (irq = LUBBOCK_IRQ(0); irq <= LUBBOCK_LAST_IRQ; irq++) { |
110 | set_irq_chip(irq, &lubbock_irq_chip); | 110 | set_irq_chip(irq, &lubbock_irq_chip); |
111 | set_irq_handler(irq, do_level_IRQ); | 111 | set_irq_handler(irq, handle_level_irq); |
112 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 112 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
113 | } | 113 | } |
114 | 114 | ||
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 49c34d94a9fe..56d94d88d5ca 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -71,7 +71,7 @@ static struct irq_chip mainstone_irq_chip = { | |||
71 | .unmask = mainstone_unmask_irq, | 71 | .unmask = mainstone_unmask_irq, |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static void mainstone_irq_handler(unsigned int irq, struct irqdesc *desc) | 74 | static void mainstone_irq_handler(unsigned int irq, struct irq_desc *desc) |
75 | { | 75 | { |
76 | unsigned long pending = MST_INTSETCLR & mainstone_irq_enabled; | 76 | unsigned long pending = MST_INTSETCLR & mainstone_irq_enabled; |
77 | do { | 77 | do { |
@@ -94,7 +94,7 @@ static void __init mainstone_init_irq(void) | |||
94 | /* setup extra Mainstone irqs */ | 94 | /* setup extra Mainstone irqs */ |
95 | for(irq = MAINSTONE_IRQ(0); irq <= MAINSTONE_IRQ(15); irq++) { | 95 | for(irq = MAINSTONE_IRQ(0); irq <= MAINSTONE_IRQ(15); irq++) { |
96 | set_irq_chip(irq, &mainstone_irq_chip); | 96 | set_irq_chip(irq, &mainstone_irq_chip); |
97 | set_irq_handler(irq, do_level_IRQ); | 97 | set_irq_handler(irq, handle_level_irq); |
98 | if (irq == MAINSTONE_IRQ(10) || irq == MAINSTONE_IRQ(14)) | 98 | if (irq == MAINSTONE_IRQ(10) || irq == MAINSTONE_IRQ(14)) |
99 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE | IRQF_NOAUTOEN); | 99 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE | IRQF_NOAUTOEN); |
100 | else | 100 | else |
diff --git a/arch/arm/mach-pxa/pm.c b/arch/arm/mach-pxa/pm.c index 2112c414f0e2..b4d8276d6050 100644 --- a/arch/arm/mach-pxa/pm.c +++ b/arch/arm/mach-pxa/pm.c | |||
@@ -83,7 +83,8 @@ int pxa_pm_enter(suspend_state_t state) | |||
83 | 83 | ||
84 | #ifdef CONFIG_IWMMXT | 84 | #ifdef CONFIG_IWMMXT |
85 | /* force any iWMMXt context to ram **/ | 85 | /* force any iWMMXt context to ram **/ |
86 | iwmmxt_task_disable(NULL); | 86 | if (elf_hwcap & HWCAP_IWMMXT) |
87 | iwmmxt_task_disable(NULL); | ||
87 | #endif | 88 | #endif |
88 | 89 | ||
89 | /* preserve current time */ | 90 | /* preserve current time */ |
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c index 3ac268fa419b..ee2beb400414 100644 --- a/arch/arm/mach-pxa/time.c +++ b/arch/arm/mach-pxa/time.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/signal.h> | 18 | #include <linux/signal.h> |
19 | #include <linux/errno.h> | 19 | #include <linux/errno.h> |
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <linux/clocksource.h> | ||
21 | 22 | ||
22 | #include <asm/system.h> | 23 | #include <asm/system.h> |
23 | #include <asm/hardware.h> | 24 | #include <asm/hardware.h> |
@@ -48,27 +49,6 @@ static int pxa_set_rtc(void) | |||
48 | return 0; | 49 | return 0; |
49 | } | 50 | } |
50 | 51 | ||
51 | /* IRQs are disabled before entering here from do_gettimeofday() */ | ||
52 | static unsigned long pxa_gettimeoffset (void) | ||
53 | { | ||
54 | long ticks_to_match, elapsed, usec; | ||
55 | |||
56 | /* Get ticks before next timer match */ | ||
57 | ticks_to_match = OSMR0 - OSCR; | ||
58 | |||
59 | /* We need elapsed ticks since last match */ | ||
60 | elapsed = LATCH - ticks_to_match; | ||
61 | |||
62 | /* don't get fooled by the workaround in pxa_timer_interrupt() */ | ||
63 | if (elapsed <= 0) | ||
64 | return 0; | ||
65 | |||
66 | /* Now convert them to usec */ | ||
67 | usec = (unsigned long)(elapsed * (tick_nsec / 1000))/LATCH; | ||
68 | |||
69 | return usec; | ||
70 | } | ||
71 | |||
72 | #ifdef CONFIG_NO_IDLE_HZ | 52 | #ifdef CONFIG_NO_IDLE_HZ |
73 | static unsigned long initial_match; | 53 | static unsigned long initial_match; |
74 | static int match_posponed; | 54 | static int match_posponed; |
@@ -121,9 +101,24 @@ static struct irqaction pxa_timer_irq = { | |||
121 | .handler = pxa_timer_interrupt, | 101 | .handler = pxa_timer_interrupt, |
122 | }; | 102 | }; |
123 | 103 | ||
104 | static cycle_t pxa_get_cycles(void) | ||
105 | { | ||
106 | return OSCR; | ||
107 | } | ||
108 | |||
109 | static struct clocksource clocksource_pxa = { | ||
110 | .name = "pxa_timer", | ||
111 | .rating = 200, | ||
112 | .read = pxa_get_cycles, | ||
113 | .mask = CLOCKSOURCE_MASK(32), | ||
114 | .shift = 20, | ||
115 | .is_continuous = 1, | ||
116 | }; | ||
117 | |||
124 | static void __init pxa_timer_init(void) | 118 | static void __init pxa_timer_init(void) |
125 | { | 119 | { |
126 | struct timespec tv; | 120 | struct timespec tv; |
121 | unsigned long flags; | ||
127 | 122 | ||
128 | set_rtc = pxa_set_rtc; | 123 | set_rtc = pxa_set_rtc; |
129 | 124 | ||
@@ -132,12 +127,20 @@ static void __init pxa_timer_init(void) | |||
132 | do_settimeofday(&tv); | 127 | do_settimeofday(&tv); |
133 | 128 | ||
134 | OIER = 0; /* disable any timer interrupts */ | 129 | OIER = 0; /* disable any timer interrupts */ |
135 | OSCR = LATCH*2; /* push OSCR out of the way */ | ||
136 | OSMR0 = LATCH; /* set initial match */ | ||
137 | OSSR = 0xf; /* clear status on all timers */ | 130 | OSSR = 0xf; /* clear status on all timers */ |
138 | setup_irq(IRQ_OST0, &pxa_timer_irq); | 131 | setup_irq(IRQ_OST0, &pxa_timer_irq); |
132 | local_irq_save(flags); | ||
139 | OIER = OIER_E0; /* enable match on timer 0 to cause interrupts */ | 133 | OIER = OIER_E0; /* enable match on timer 0 to cause interrupts */ |
140 | OSCR = 0; /* initialize free-running timer */ | 134 | OSMR0 = OSCR + LATCH; /* set initial match */ |
135 | local_irq_restore(flags); | ||
136 | |||
137 | /* | ||
138 | * OSCR runs continuously on PXA and is not written to, | ||
139 | * so we can use it as clock source directly. | ||
140 | */ | ||
141 | clocksource_pxa.mult = | ||
142 | clocksource_hz2mult(CLOCK_TICK_RATE, clocksource_pxa.shift); | ||
143 | clocksource_register(&clocksource_pxa); | ||
141 | } | 144 | } |
142 | 145 | ||
143 | #ifdef CONFIG_NO_IDLE_HZ | 146 | #ifdef CONFIG_NO_IDLE_HZ |
@@ -210,7 +213,6 @@ struct sys_timer pxa_timer = { | |||
210 | .init = pxa_timer_init, | 213 | .init = pxa_timer_init, |
211 | .suspend = pxa_timer_suspend, | 214 | .suspend = pxa_timer_suspend, |
212 | .resume = pxa_timer_resume, | 215 | .resume = pxa_timer_resume, |
213 | .offset = pxa_gettimeoffset, | ||
214 | #ifdef CONFIG_NO_IDLE_HZ | 216 | #ifdef CONFIG_NO_IDLE_HZ |
215 | .dyn_tick = &pxa_dyn_tick, | 217 | .dyn_tick = &pxa_dyn_tick, |
216 | #endif | 218 | #endif |
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index c1827d021ba8..119c64b7223f 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -393,10 +393,6 @@ static struct pxafb_mach_info sharp_lcd = { | |||
393 | .pxafb_backlight_power = board_backlight_power, | 393 | .pxafb_backlight_power = board_backlight_power, |
394 | }; | 394 | }; |
395 | 395 | ||
396 | static void __init trizeps4_fixup(struct machine_desc *desc, struct tag *tags, char **cmdline, struct meminfo *mi) | ||
397 | { | ||
398 | } | ||
399 | |||
400 | static void __init trizeps4_init(void) | 396 | static void __init trizeps4_init(void) |
401 | { | 397 | { |
402 | platform_add_devices(trizeps4_devices, ARRAY_SIZE(trizeps4_devices)); | 398 | platform_add_devices(trizeps4_devices, ARRAY_SIZE(trizeps4_devices)); |
@@ -469,7 +465,6 @@ MACHINE_START(TRIZEPS4, "Keith und Koep Trizeps IV module") | |||
469 | .phys_io = 0x40000000, | 465 | .phys_io = 0x40000000, |
470 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | 466 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
471 | .boot_params = TRIZEPS4_SDRAM_BASE + 0x100, | 467 | .boot_params = TRIZEPS4_SDRAM_BASE + 0x100, |
472 | .fixup = trizeps4_fixup, | ||
473 | .init_machine = trizeps4_init, | 468 | .init_machine = trizeps4_init, |
474 | .map_io = trizeps4_map_io, | 469 | .map_io = trizeps4_map_io, |
475 | .init_irq = pxa_init_irq, | 470 | .init_irq = pxa_init_irq, |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 68c67053f479..84d3fe76e94e 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -141,6 +141,19 @@ struct platform_device realview_smc91x_device = { | |||
141 | .resource = realview_smc91x_resources, | 141 | .resource = realview_smc91x_resources, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static struct resource realview_i2c_resource = { | ||
145 | .start = REALVIEW_I2C_BASE, | ||
146 | .end = REALVIEW_I2C_BASE + SZ_4K - 1, | ||
147 | .flags = IORESOURCE_MEM, | ||
148 | }; | ||
149 | |||
150 | struct platform_device realview_i2c_device = { | ||
151 | .name = "versatile-i2c", | ||
152 | .id = -1, | ||
153 | .num_resources = 1, | ||
154 | .resource = &realview_i2c_resource, | ||
155 | }; | ||
156 | |||
144 | #define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET) | 157 | #define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET) |
145 | 158 | ||
146 | static unsigned int realview_mmc_status(struct device *dev) | 159 | static unsigned int realview_mmc_status(struct device *dev) |
diff --git a/arch/arm/mach-realview/core.h b/arch/arm/mach-realview/core.h index 93e86d9f439c..2b53420f9c1b 100644 --- a/arch/arm/mach-realview/core.h +++ b/arch/arm/mach-realview/core.h | |||
@@ -108,6 +108,7 @@ static struct amba_device name##_device = { \ | |||
108 | 108 | ||
109 | extern struct platform_device realview_flash_device; | 109 | extern struct platform_device realview_flash_device; |
110 | extern struct platform_device realview_smc91x_device; | 110 | extern struct platform_device realview_smc91x_device; |
111 | extern struct platform_device realview_i2c_device; | ||
111 | extern struct mmc_platform_data realview_mmc0_plat_data; | 112 | extern struct mmc_platform_data realview_mmc0_plat_data; |
112 | extern struct mmc_platform_data realview_mmc1_plat_data; | 113 | extern struct mmc_platform_data realview_mmc1_plat_data; |
113 | extern struct clk realview_clcd_clk; | 114 | extern struct clk realview_clcd_clk; |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 84a959530fb6..9741b4d3c9cf 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -155,6 +155,7 @@ static void __init realview_eb_init(void) | |||
155 | 155 | ||
156 | platform_device_register(&realview_flash_device); | 156 | platform_device_register(&realview_flash_device); |
157 | platform_device_register(&realview_smc91x_device); | 157 | platform_device_register(&realview_smc91x_device); |
158 | platform_device_register(&realview_i2c_device); | ||
158 | 159 | ||
159 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | 160 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
160 | struct amba_device *d = amba_devs[i]; | 161 | struct amba_device *d = amba_devs[i]; |
diff --git a/arch/arm/mach-rpc/irq.c b/arch/arm/mach-rpc/irq.c index 56b2716f8cf5..7a029621db43 100644 --- a/arch/arm/mach-rpc/irq.c +++ b/arch/arm/mach-rpc/irq.c | |||
@@ -34,7 +34,7 @@ static void iomd_unmask_irq_a(unsigned int irq) | |||
34 | iomd_writeb(val | mask, IOMD_IRQMASKA); | 34 | iomd_writeb(val | mask, IOMD_IRQMASKA); |
35 | } | 35 | } |
36 | 36 | ||
37 | static struct irqchip iomd_a_chip = { | 37 | static struct irq_chip iomd_a_chip = { |
38 | .ack = iomd_ack_irq_a, | 38 | .ack = iomd_ack_irq_a, |
39 | .mask = iomd_mask_irq_a, | 39 | .mask = iomd_mask_irq_a, |
40 | .unmask = iomd_unmask_irq_a, | 40 | .unmask = iomd_unmask_irq_a, |
@@ -58,7 +58,7 @@ static void iomd_unmask_irq_b(unsigned int irq) | |||
58 | iomd_writeb(val | mask, IOMD_IRQMASKB); | 58 | iomd_writeb(val | mask, IOMD_IRQMASKB); |
59 | } | 59 | } |
60 | 60 | ||
61 | static struct irqchip iomd_b_chip = { | 61 | static struct irq_chip iomd_b_chip = { |
62 | .ack = iomd_mask_irq_b, | 62 | .ack = iomd_mask_irq_b, |
63 | .mask = iomd_mask_irq_b, | 63 | .mask = iomd_mask_irq_b, |
64 | .unmask = iomd_unmask_irq_b, | 64 | .unmask = iomd_unmask_irq_b, |
@@ -82,7 +82,7 @@ static void iomd_unmask_irq_dma(unsigned int irq) | |||
82 | iomd_writeb(val | mask, IOMD_DMAMASK); | 82 | iomd_writeb(val | mask, IOMD_DMAMASK); |
83 | } | 83 | } |
84 | 84 | ||
85 | static struct irqchip iomd_dma_chip = { | 85 | static struct irq_chip iomd_dma_chip = { |
86 | .ack = iomd_mask_irq_dma, | 86 | .ack = iomd_mask_irq_dma, |
87 | .mask = iomd_mask_irq_dma, | 87 | .mask = iomd_mask_irq_dma, |
88 | .unmask = iomd_unmask_irq_dma, | 88 | .unmask = iomd_unmask_irq_dma, |
@@ -106,7 +106,7 @@ static void iomd_unmask_irq_fiq(unsigned int irq) | |||
106 | iomd_writeb(val | mask, IOMD_FIQMASK); | 106 | iomd_writeb(val | mask, IOMD_FIQMASK); |
107 | } | 107 | } |
108 | 108 | ||
109 | static struct irqchip iomd_fiq_chip = { | 109 | static struct irq_chip iomd_fiq_chip = { |
110 | .ack = iomd_mask_irq_fiq, | 110 | .ack = iomd_mask_irq_fiq, |
111 | .mask = iomd_mask_irq_fiq, | 111 | .mask = iomd_mask_irq_fiq, |
112 | .unmask = iomd_unmask_irq_fiq, | 112 | .unmask = iomd_unmask_irq_fiq, |
@@ -134,19 +134,19 @@ void __init rpc_init_irq(void) | |||
134 | switch (irq) { | 134 | switch (irq) { |
135 | case 0 ... 7: | 135 | case 0 ... 7: |
136 | set_irq_chip(irq, &iomd_a_chip); | 136 | set_irq_chip(irq, &iomd_a_chip); |
137 | set_irq_handler(irq, do_level_IRQ); | 137 | set_irq_handler(irq, handle_level_irq); |
138 | set_irq_flags(irq, flags); | 138 | set_irq_flags(irq, flags); |
139 | break; | 139 | break; |
140 | 140 | ||
141 | case 8 ... 15: | 141 | case 8 ... 15: |
142 | set_irq_chip(irq, &iomd_b_chip); | 142 | set_irq_chip(irq, &iomd_b_chip); |
143 | set_irq_handler(irq, do_level_IRQ); | 143 | set_irq_handler(irq, handle_level_irq); |
144 | set_irq_flags(irq, flags); | 144 | set_irq_flags(irq, flags); |
145 | break; | 145 | break; |
146 | 146 | ||
147 | case 16 ... 21: | 147 | case 16 ... 21: |
148 | set_irq_chip(irq, &iomd_dma_chip); | 148 | set_irq_chip(irq, &iomd_dma_chip); |
149 | set_irq_handler(irq, do_level_IRQ); | 149 | set_irq_handler(irq, handle_level_irq); |
150 | set_irq_flags(irq, flags); | 150 | set_irq_flags(irq, flags); |
151 | break; | 151 | break; |
152 | 152 | ||
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index 63965c78de8c..eb4ec411312b 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig | |||
@@ -5,6 +5,7 @@ menu "S3C24XX Implementations" | |||
5 | config MACH_AML_M5900 | 5 | config MACH_AML_M5900 |
6 | bool "AML M5900 Series" | 6 | bool "AML M5900 Series" |
7 | select CPU_S3C2410 | 7 | select CPU_S3C2410 |
8 | select PM_SIMTEC if PM | ||
8 | help | 9 | help |
9 | Say Y here if you are using the American Microsystems M5900 Series | 10 | Say Y here if you are using the American Microsystems M5900 Series |
10 | <http://www.amltd.com> | 11 | <http://www.amltd.com> |
@@ -12,6 +13,7 @@ config MACH_AML_M5900 | |||
12 | config MACH_ANUBIS | 13 | config MACH_ANUBIS |
13 | bool "Simtec Electronics ANUBIS" | 14 | bool "Simtec Electronics ANUBIS" |
14 | select CPU_S3C2440 | 15 | select CPU_S3C2440 |
16 | select PM_SIMTEC if PM | ||
15 | help | 17 | help |
16 | Say Y here if you are using the Simtec Electronics ANUBIS | 18 | Say Y here if you are using the Simtec Electronics ANUBIS |
17 | development system | 19 | development system |
@@ -19,6 +21,7 @@ config MACH_ANUBIS | |||
19 | config MACH_OSIRIS | 21 | config MACH_OSIRIS |
20 | bool "Simtec IM2440D20 (OSIRIS) module" | 22 | bool "Simtec IM2440D20 (OSIRIS) module" |
21 | select CPU_S3C2440 | 23 | select CPU_S3C2440 |
24 | select PM_SIMTEC if PM | ||
22 | help | 25 | help |
23 | Say Y here if you are using the Simtec IM2440D20 module, also | 26 | Say Y here if you are using the Simtec IM2440D20 module, also |
24 | known as the Osiris. | 27 | known as the Osiris. |
@@ -26,6 +29,7 @@ config MACH_OSIRIS | |||
26 | config ARCH_BAST | 29 | config ARCH_BAST |
27 | bool "Simtec Electronics BAST (EB2410ITX)" | 30 | bool "Simtec Electronics BAST (EB2410ITX)" |
28 | select CPU_S3C2410 | 31 | select CPU_S3C2410 |
32 | select PM_SIMTEC if PM | ||
29 | select ISA | 33 | select ISA |
30 | help | 34 | help |
31 | Say Y here if you are using the Simtec Electronics EB2410ITX | 35 | Say Y here if you are using the Simtec Electronics EB2410ITX |
@@ -41,9 +45,15 @@ config BAST_PC104_IRQ | |||
41 | Say Y here to enable the PC104 IRQ routing on the | 45 | Say Y here to enable the PC104 IRQ routing on the |
42 | Simtec BAST (EB2410ITX) | 46 | Simtec BAST (EB2410ITX) |
43 | 47 | ||
48 | config PM_H1940 | ||
49 | bool | ||
50 | help | ||
51 | Internal node for H1940 and related PM | ||
52 | |||
44 | config ARCH_H1940 | 53 | config ARCH_H1940 |
45 | bool "IPAQ H1940" | 54 | bool "IPAQ H1940" |
46 | select CPU_S3C2410 | 55 | select CPU_S3C2410 |
56 | select PM_H1940 if PM | ||
47 | help | 57 | help |
48 | Say Y here if you are using the HP IPAQ H1940 | 58 | Say Y here if you are using the HP IPAQ H1940 |
49 | 59 | ||
@@ -91,7 +101,7 @@ config SMDK2440_CPU2442 | |||
91 | config MACH_S3C2413 | 101 | config MACH_S3C2413 |
92 | bool | 102 | bool |
93 | help | 103 | help |
94 | Internal node for S3C2413 verison of SMDK2413, so that | 104 | Internal node for S3C2413 version of SMDK2413, so that |
95 | machine_is_s3c2413() will work when MACH_SMDK2413 is | 105 | machine_is_s3c2413() will work when MACH_SMDK2413 is |
96 | selected | 106 | selected |
97 | 107 | ||
@@ -105,6 +115,7 @@ config MACH_SMDK2413 | |||
105 | 115 | ||
106 | config MACH_VR1000 | 116 | config MACH_VR1000 |
107 | bool "Thorcom VR1000" | 117 | bool "Thorcom VR1000" |
118 | select PM_SIMTEC if PM | ||
108 | select CPU_S3C2410 | 119 | select CPU_S3C2410 |
109 | help | 120 | help |
110 | Say Y here if you are using the Thorcom VR1000 board. | 121 | Say Y here if you are using the Thorcom VR1000 board. |
@@ -115,6 +126,7 @@ config MACH_VR1000 | |||
115 | config MACH_RX3715 | 126 | config MACH_RX3715 |
116 | bool "HP iPAQ rx3715" | 127 | bool "HP iPAQ rx3715" |
117 | select CPU_S3C2440 | 128 | select CPU_S3C2440 |
129 | select PM_H1940 if PM | ||
118 | help | 130 | help |
119 | Say Y here if you are using the HP iPAQ rx3715. | 131 | Say Y here if you are using the HP iPAQ rx3715. |
120 | 132 | ||
@@ -148,7 +160,6 @@ config S3C2410_CLOCK | |||
148 | 160 | ||
149 | config S3C2410_PM | 161 | config S3C2410_PM |
150 | bool | 162 | bool |
151 | depends on CONFIG_PM | ||
152 | help | 163 | help |
153 | Power Management code common to S3C2410 and better | 164 | Power Management code common to S3C2410 and better |
154 | 165 | ||
@@ -163,7 +174,7 @@ config CPU_S3C2410 | |||
163 | bool | 174 | bool |
164 | depends on ARCH_S3C2410 | 175 | depends on ARCH_S3C2410 |
165 | select S3C2410_CLOCK | 176 | select S3C2410_CLOCK |
166 | select S3C2410_PM | 177 | select S3C2410_PM if PM |
167 | help | 178 | help |
168 | Support for S3C2410 and S3C2410A family from the S3C24XX line | 179 | Support for S3C2410 and S3C2410A family from the S3C24XX line |
169 | of Samsung Mobile CPUs. | 180 | of Samsung Mobile CPUs. |
@@ -178,14 +189,13 @@ config CPU_S3C2412_ONLY | |||
178 | 189 | ||
179 | config S3C2412_PM | 190 | config S3C2412_PM |
180 | bool | 191 | bool |
181 | default y if PM | ||
182 | depends on CPU_S3C2412 | ||
183 | help | 192 | help |
184 | Internal config node to apply S3C2412 power management | 193 | Internal config node to apply S3C2412 power management |
185 | 194 | ||
186 | config CPU_S3C2412 | 195 | config CPU_S3C2412 |
187 | bool | 196 | bool |
188 | depends on ARCH_S3C2410 | 197 | depends on ARCH_S3C2410 |
198 | select S3C2412_PM if PM | ||
189 | help | 199 | help |
190 | Support for the S3C2412 and S3C2413 SoCs from the S3C24XX line | 200 | Support for the S3C2412 and S3C2413 SoCs from the S3C24XX line |
191 | 201 | ||
@@ -199,7 +209,7 @@ config CPU_S3C2440 | |||
199 | bool | 209 | bool |
200 | depends on ARCH_S3C2410 | 210 | depends on ARCH_S3C2410 |
201 | select S3C2410_CLOCK | 211 | select S3C2410_CLOCK |
202 | select S3C2410_PM | 212 | select S3C2410_PM if PM |
203 | select CPU_S3C244X | 213 | select CPU_S3C244X |
204 | help | 214 | help |
205 | Support for S3C2440 Samsung Mobile CPU based systems. | 215 | Support for S3C2440 Samsung Mobile CPU based systems. |
@@ -208,7 +218,7 @@ config CPU_S3C2442 | |||
208 | bool | 218 | bool |
209 | depends on ARCH_S3C2420 | 219 | depends on ARCH_S3C2420 |
210 | select S3C2410_CLOCK | 220 | select S3C2410_CLOCK |
211 | select S3C2410_PM | 221 | select S3C2410_PM if PM |
212 | select CPU_S3C244X | 222 | select CPU_S3C244X |
213 | help | 223 | help |
214 | Support for S3C2442 Samsung Mobile CPU based systems. | 224 | Support for S3C2442 Samsung Mobile CPU based systems. |
@@ -292,8 +302,9 @@ config S3C2410_PM_CHECK_CHUNKSIZE | |||
292 | 302 | ||
293 | config PM_SIMTEC | 303 | config PM_SIMTEC |
294 | bool | 304 | bool |
295 | depends on PM && (ARCH_BAST || MACH_VR1000 || MACH_AML_M5900) | 305 | help |
296 | default y | 306 | Common power management code for systems that are |
307 | compatible with the Simtec style of power management | ||
297 | 308 | ||
298 | config S3C2410_LOWLEVEL_UART_PORT | 309 | config S3C2410_LOWLEVEL_UART_PORT |
299 | int "S3C2410 UART to use for low-level messages" | 310 | int "S3C2410 UART to use for low-level messages" |
diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile index d66013365b6b..27663e28cc88 100644 --- a/arch/arm/mach-s3c2410/Makefile +++ b/arch/arm/mach-s3c2410/Makefile | |||
@@ -31,6 +31,7 @@ obj-$(CONFIG_CPU_S3C2410_DMA) += s3c2410-dma.o | |||
31 | 31 | ||
32 | obj-$(CONFIG_PM) += pm.o sleep.o | 32 | obj-$(CONFIG_PM) += pm.o sleep.o |
33 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o | 33 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o |
34 | obj-$(CONFIG_PM_H1940) += pm-h1940.o | ||
34 | 35 | ||
35 | # S3C2412 support | 36 | # S3C2412 support |
36 | obj-$(CONFIG_CPU_S3C2412) += s3c2412.o | 37 | obj-$(CONFIG_CPU_S3C2412) += s3c2412.o |
diff --git a/arch/arm/mach-s3c2410/bast-irq.c b/arch/arm/mach-s3c2410/bast-irq.c index 23d5beea5568..379efe70778c 100644 --- a/arch/arm/mach-s3c2410/bast-irq.c +++ b/arch/arm/mach-s3c2410/bast-irq.c | |||
@@ -88,7 +88,7 @@ bast_pc104_mask(unsigned int irqno) | |||
88 | static void | 88 | static void |
89 | bast_pc104_maskack(unsigned int irqno) | 89 | bast_pc104_maskack(unsigned int irqno) |
90 | { | 90 | { |
91 | struct irqdesc *desc = irq_desc + IRQ_ISA; | 91 | struct irq_desc *desc = irq_desc + IRQ_ISA; |
92 | 92 | ||
93 | bast_pc104_mask(irqno); | 93 | bast_pc104_mask(irqno); |
94 | desc->chip->ack(IRQ_ISA); | 94 | desc->chip->ack(IRQ_ISA); |
@@ -104,7 +104,7 @@ bast_pc104_unmask(unsigned int irqno) | |||
104 | __raw_writeb(temp, BAST_VA_PC104_IRQMASK); | 104 | __raw_writeb(temp, BAST_VA_PC104_IRQMASK); |
105 | } | 105 | } |
106 | 106 | ||
107 | static struct irqchip bast_pc104_chip = { | 107 | static struct irq_chip bast_pc104_chip = { |
108 | .mask = bast_pc104_mask, | 108 | .mask = bast_pc104_mask, |
109 | .unmask = bast_pc104_unmask, | 109 | .unmask = bast_pc104_unmask, |
110 | .ack = bast_pc104_maskack | 110 | .ack = bast_pc104_maskack |
@@ -112,7 +112,7 @@ static struct irqchip bast_pc104_chip = { | |||
112 | 112 | ||
113 | static void | 113 | static void |
114 | bast_irq_pc104_demux(unsigned int irq, | 114 | bast_irq_pc104_demux(unsigned int irq, |
115 | struct irqdesc *desc) | 115 | struct irq_desc *desc) |
116 | { | 116 | { |
117 | unsigned int stat; | 117 | unsigned int stat; |
118 | unsigned int irqno; | 118 | unsigned int irqno; |
@@ -157,7 +157,7 @@ static __init int bast_irq_init(void) | |||
157 | unsigned int irqno = bast_pc104_irqs[i]; | 157 | unsigned int irqno = bast_pc104_irqs[i]; |
158 | 158 | ||
159 | set_irq_chip(irqno, &bast_pc104_chip); | 159 | set_irq_chip(irqno, &bast_pc104_chip); |
160 | set_irq_handler(irqno, do_level_IRQ); | 160 | set_irq_handler(irqno, handle_level_irq); |
161 | set_irq_flags(irqno, IRQF_VALID); | 161 | set_irq_flags(irqno, IRQF_VALID); |
162 | } | 162 | } |
163 | } | 163 | } |
diff --git a/arch/arm/mach-s3c2410/cpu.c b/arch/arm/mach-s3c2410/cpu.c index 9d4899eddf1f..ae1f5bb63f7a 100644 --- a/arch/arm/mach-s3c2410/cpu.c +++ b/arch/arm/mach-s3c2410/cpu.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
28 | #include <linux/ioport.h> | 28 | #include <linux/ioport.h> |
29 | #include <linux/serial_core.h> | ||
29 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
diff --git a/arch/arm/mach-s3c2410/devs.c b/arch/arm/mach-s3c2410/devs.c index cae35ff76f33..faccde2092d2 100644 --- a/arch/arm/mach-s3c2410/devs.c +++ b/arch/arm/mach-s3c2410/devs.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | #include <linux/timer.h> | 18 | #include <linux/timer.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/serial_core.h> | ||
20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
21 | 22 | ||
22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-s3c2410/dma.c b/arch/arm/mach-s3c2410/dma.c index 3d211dc2f2f9..fa860e716b4f 100644 --- a/arch/arm/mach-s3c2410/dma.c +++ b/arch/arm/mach-s3c2410/dma.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/dma.c | 1 | /* linux/arch/arm/mach-s3c2410/dma.c |
2 | * | 2 | * |
3 | * (c) 2003-2005,2006 Simtec Electronics | 3 | * Copyright (c) 2003-2005,2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2410 DMA core | 6 | * S3C2410 DMA core |
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | /* io map for dma */ | 41 | /* io map for dma */ |
42 | static void __iomem *dma_base; | 42 | static void __iomem *dma_base; |
43 | static kmem_cache_t *dma_kmem; | 43 | static struct kmem_cache *dma_kmem; |
44 | 44 | ||
45 | struct s3c24xx_dma_selection dma_sel; | 45 | struct s3c24xx_dma_selection dma_sel; |
46 | 46 | ||
@@ -1053,11 +1053,11 @@ int s3c2410_dma_config(dmach_t channel, | |||
1053 | if (chan == NULL) | 1053 | if (chan == NULL) |
1054 | return -EINVAL; | 1054 | return -EINVAL; |
1055 | 1055 | ||
1056 | printk("Initial dcon is %08x\n", dcon); | 1056 | pr_debug("%s: Initial dcon is %08x\n", __FUNCTION__, dcon); |
1057 | 1057 | ||
1058 | dcon |= chan->dcon & dma_sel.dcon_mask; | 1058 | dcon |= chan->dcon & dma_sel.dcon_mask; |
1059 | 1059 | ||
1060 | printk("New dcon is %08x\n", dcon); | 1060 | pr_debug("%s: New dcon is %08x\n", __FUNCTION__, dcon); |
1061 | 1061 | ||
1062 | switch (xferunit) { | 1062 | switch (xferunit) { |
1063 | case 1: | 1063 | case 1: |
@@ -1271,7 +1271,7 @@ struct sysdev_class dma_sysclass = { | |||
1271 | 1271 | ||
1272 | /* kmem cache implementation */ | 1272 | /* kmem cache implementation */ |
1273 | 1273 | ||
1274 | static void s3c2410_dma_cache_ctor(void *p, kmem_cache_t *c, unsigned long f) | 1274 | static void s3c2410_dma_cache_ctor(void *p, struct kmem_cache *c, unsigned long f) |
1275 | { | 1275 | { |
1276 | memset(p, 0, sizeof(struct s3c2410_dma_buf)); | 1276 | memset(p, 0, sizeof(struct s3c2410_dma_buf)); |
1277 | } | 1277 | } |
diff --git a/arch/arm/mach-s3c2410/irq.c b/arch/arm/mach-s3c2410/irq.c index 683b3491ba3c..3c0ed7871c55 100644 --- a/arch/arm/mach-s3c2410/irq.c +++ b/arch/arm/mach-s3c2410/irq.c | |||
@@ -180,7 +180,7 @@ s3c_irq_unmask(unsigned int irqno) | |||
180 | __raw_writel(mask, S3C2410_INTMSK); | 180 | __raw_writel(mask, S3C2410_INTMSK); |
181 | } | 181 | } |
182 | 182 | ||
183 | struct irqchip s3c_irq_level_chip = { | 183 | struct irq_chip s3c_irq_level_chip = { |
184 | .name = "s3c-level", | 184 | .name = "s3c-level", |
185 | .ack = s3c_irq_maskack, | 185 | .ack = s3c_irq_maskack, |
186 | .mask = s3c_irq_mask, | 186 | .mask = s3c_irq_mask, |
@@ -188,7 +188,7 @@ struct irqchip s3c_irq_level_chip = { | |||
188 | .set_wake = s3c_irq_wake | 188 | .set_wake = s3c_irq_wake |
189 | }; | 189 | }; |
190 | 190 | ||
191 | static struct irqchip s3c_irq_chip = { | 191 | static struct irq_chip s3c_irq_chip = { |
192 | .name = "s3c", | 192 | .name = "s3c", |
193 | .ack = s3c_irq_ack, | 193 | .ack = s3c_irq_ack, |
194 | .mask = s3c_irq_mask, | 194 | .mask = s3c_irq_mask, |
@@ -206,18 +206,6 @@ s3c_irqext_mask(unsigned int irqno) | |||
206 | mask = __raw_readl(S3C24XX_EINTMASK); | 206 | mask = __raw_readl(S3C24XX_EINTMASK); |
207 | mask |= ( 1UL << irqno); | 207 | mask |= ( 1UL << irqno); |
208 | __raw_writel(mask, S3C24XX_EINTMASK); | 208 | __raw_writel(mask, S3C24XX_EINTMASK); |
209 | |||
210 | if (irqno <= (IRQ_EINT7 - EXTINT_OFF)) { | ||
211 | /* check to see if all need masking */ | ||
212 | |||
213 | if ((mask & (0xf << 4)) == (0xf << 4)) { | ||
214 | /* all masked, mask the parent */ | ||
215 | s3c_irq_mask(IRQ_EINT4t7); | ||
216 | } | ||
217 | } else { | ||
218 | /* todo: the same check as above for the rest of the irq regs...*/ | ||
219 | |||
220 | } | ||
221 | } | 209 | } |
222 | 210 | ||
223 | static void | 211 | static void |
@@ -229,7 +217,6 @@ s3c_irqext_ack(unsigned int irqno) | |||
229 | 217 | ||
230 | bit = 1UL << (irqno - EXTINT_OFF); | 218 | bit = 1UL << (irqno - EXTINT_OFF); |
231 | 219 | ||
232 | |||
233 | mask = __raw_readl(S3C24XX_EINTMASK); | 220 | mask = __raw_readl(S3C24XX_EINTMASK); |
234 | 221 | ||
235 | __raw_writel(bit, S3C24XX_EINTPEND); | 222 | __raw_writel(bit, S3C24XX_EINTPEND); |
@@ -258,8 +245,6 @@ s3c_irqext_unmask(unsigned int irqno) | |||
258 | mask = __raw_readl(S3C24XX_EINTMASK); | 245 | mask = __raw_readl(S3C24XX_EINTMASK); |
259 | mask &= ~( 1UL << irqno); | 246 | mask &= ~( 1UL << irqno); |
260 | __raw_writel(mask, S3C24XX_EINTMASK); | 247 | __raw_writel(mask, S3C24XX_EINTMASK); |
261 | |||
262 | s3c_irq_unmask((irqno <= (IRQ_EINT7 - EXTINT_OFF)) ? IRQ_EINT4t7 : IRQ_EINT8t23); | ||
263 | } | 248 | } |
264 | 249 | ||
265 | int | 250 | int |
@@ -344,7 +329,7 @@ s3c_irqext_type(unsigned int irq, unsigned int type) | |||
344 | return 0; | 329 | return 0; |
345 | } | 330 | } |
346 | 331 | ||
347 | static struct irqchip s3c_irqext_chip = { | 332 | static struct irq_chip s3c_irqext_chip = { |
348 | .name = "s3c-ext", | 333 | .name = "s3c-ext", |
349 | .mask = s3c_irqext_mask, | 334 | .mask = s3c_irqext_mask, |
350 | .unmask = s3c_irqext_unmask, | 335 | .unmask = s3c_irqext_unmask, |
@@ -353,7 +338,7 @@ static struct irqchip s3c_irqext_chip = { | |||
353 | .set_wake = s3c_irqext_wake | 338 | .set_wake = s3c_irqext_wake |
354 | }; | 339 | }; |
355 | 340 | ||
356 | static struct irqchip s3c_irq_eint0t4 = { | 341 | static struct irq_chip s3c_irq_eint0t4 = { |
357 | .name = "s3c-ext0", | 342 | .name = "s3c-ext0", |
358 | .ack = s3c_irq_ack, | 343 | .ack = s3c_irq_ack, |
359 | .mask = s3c_irq_mask, | 344 | .mask = s3c_irq_mask, |
@@ -390,7 +375,7 @@ s3c_irq_uart0_ack(unsigned int irqno) | |||
390 | s3c_irqsub_maskack(irqno, INTMSK_UART0, 7); | 375 | s3c_irqsub_maskack(irqno, INTMSK_UART0, 7); |
391 | } | 376 | } |
392 | 377 | ||
393 | static struct irqchip s3c_irq_uart0 = { | 378 | static struct irq_chip s3c_irq_uart0 = { |
394 | .name = "s3c-uart0", | 379 | .name = "s3c-uart0", |
395 | .mask = s3c_irq_uart0_mask, | 380 | .mask = s3c_irq_uart0_mask, |
396 | .unmask = s3c_irq_uart0_unmask, | 381 | .unmask = s3c_irq_uart0_unmask, |
@@ -417,7 +402,7 @@ s3c_irq_uart1_ack(unsigned int irqno) | |||
417 | s3c_irqsub_maskack(irqno, INTMSK_UART1, 7 << 3); | 402 | s3c_irqsub_maskack(irqno, INTMSK_UART1, 7 << 3); |
418 | } | 403 | } |
419 | 404 | ||
420 | static struct irqchip s3c_irq_uart1 = { | 405 | static struct irq_chip s3c_irq_uart1 = { |
421 | .name = "s3c-uart1", | 406 | .name = "s3c-uart1", |
422 | .mask = s3c_irq_uart1_mask, | 407 | .mask = s3c_irq_uart1_mask, |
423 | .unmask = s3c_irq_uart1_unmask, | 408 | .unmask = s3c_irq_uart1_unmask, |
@@ -444,7 +429,7 @@ s3c_irq_uart2_ack(unsigned int irqno) | |||
444 | s3c_irqsub_maskack(irqno, INTMSK_UART2, 7 << 6); | 429 | s3c_irqsub_maskack(irqno, INTMSK_UART2, 7 << 6); |
445 | } | 430 | } |
446 | 431 | ||
447 | static struct irqchip s3c_irq_uart2 = { | 432 | static struct irq_chip s3c_irq_uart2 = { |
448 | .name = "s3c-uart2", | 433 | .name = "s3c-uart2", |
449 | .mask = s3c_irq_uart2_mask, | 434 | .mask = s3c_irq_uart2_mask, |
450 | .unmask = s3c_irq_uart2_unmask, | 435 | .unmask = s3c_irq_uart2_unmask, |
@@ -471,7 +456,7 @@ s3c_irq_adc_ack(unsigned int irqno) | |||
471 | s3c_irqsub_ack(irqno, INTMSK_ADCPARENT, 3 << 9); | 456 | s3c_irqsub_ack(irqno, INTMSK_ADCPARENT, 3 << 9); |
472 | } | 457 | } |
473 | 458 | ||
474 | static struct irqchip s3c_irq_adc = { | 459 | static struct irq_chip s3c_irq_adc = { |
475 | .name = "s3c-adc", | 460 | .name = "s3c-adc", |
476 | .mask = s3c_irq_adc_mask, | 461 | .mask = s3c_irq_adc_mask, |
477 | .unmask = s3c_irq_adc_unmask, | 462 | .unmask = s3c_irq_adc_unmask, |
@@ -480,11 +465,11 @@ static struct irqchip s3c_irq_adc = { | |||
480 | 465 | ||
481 | /* irq demux for adc */ | 466 | /* irq demux for adc */ |
482 | static void s3c_irq_demux_adc(unsigned int irq, | 467 | static void s3c_irq_demux_adc(unsigned int irq, |
483 | struct irqdesc *desc) | 468 | struct irq_desc *desc) |
484 | { | 469 | { |
485 | unsigned int subsrc, submsk; | 470 | unsigned int subsrc, submsk; |
486 | unsigned int offset = 9; | 471 | unsigned int offset = 9; |
487 | struct irqdesc *mydesc; | 472 | struct irq_desc *mydesc; |
488 | 473 | ||
489 | /* read the current pending interrupts, and the mask | 474 | /* read the current pending interrupts, and the mask |
490 | * for what it is available */ | 475 | * for what it is available */ |
@@ -512,7 +497,7 @@ static void s3c_irq_demux_uart(unsigned int start) | |||
512 | { | 497 | { |
513 | unsigned int subsrc, submsk; | 498 | unsigned int subsrc, submsk; |
514 | unsigned int offset = start - IRQ_S3CUART_RX0; | 499 | unsigned int offset = start - IRQ_S3CUART_RX0; |
515 | struct irqdesc *desc; | 500 | struct irq_desc *desc; |
516 | 501 | ||
517 | /* read the current pending interrupts, and the mask | 502 | /* read the current pending interrupts, and the mask |
518 | * for what it is available */ | 503 | * for what it is available */ |
@@ -549,7 +534,7 @@ static void s3c_irq_demux_uart(unsigned int start) | |||
549 | 534 | ||
550 | static void | 535 | static void |
551 | s3c_irq_demux_uart0(unsigned int irq, | 536 | s3c_irq_demux_uart0(unsigned int irq, |
552 | struct irqdesc *desc) | 537 | struct irq_desc *desc) |
553 | { | 538 | { |
554 | irq = irq; | 539 | irq = irq; |
555 | s3c_irq_demux_uart(IRQ_S3CUART_RX0); | 540 | s3c_irq_demux_uart(IRQ_S3CUART_RX0); |
@@ -557,7 +542,7 @@ s3c_irq_demux_uart0(unsigned int irq, | |||
557 | 542 | ||
558 | static void | 543 | static void |
559 | s3c_irq_demux_uart1(unsigned int irq, | 544 | s3c_irq_demux_uart1(unsigned int irq, |
560 | struct irqdesc *desc) | 545 | struct irq_desc *desc) |
561 | { | 546 | { |
562 | irq = irq; | 547 | irq = irq; |
563 | s3c_irq_demux_uart(IRQ_S3CUART_RX1); | 548 | s3c_irq_demux_uart(IRQ_S3CUART_RX1); |
@@ -565,7 +550,7 @@ s3c_irq_demux_uart1(unsigned int irq, | |||
565 | 550 | ||
566 | static void | 551 | static void |
567 | s3c_irq_demux_uart2(unsigned int irq, | 552 | s3c_irq_demux_uart2(unsigned int irq, |
568 | struct irqdesc *desc) | 553 | struct irq_desc *desc) |
569 | { | 554 | { |
570 | irq = irq; | 555 | irq = irq; |
571 | s3c_irq_demux_uart(IRQ_S3CUART_RX2); | 556 | s3c_irq_demux_uart(IRQ_S3CUART_RX2); |
@@ -573,7 +558,7 @@ s3c_irq_demux_uart2(unsigned int irq, | |||
573 | 558 | ||
574 | static void | 559 | static void |
575 | s3c_irq_demux_extint8(unsigned int irq, | 560 | s3c_irq_demux_extint8(unsigned int irq, |
576 | struct irqdesc *desc) | 561 | struct irq_desc *desc) |
577 | { | 562 | { |
578 | unsigned long eintpnd = __raw_readl(S3C24XX_EINTPEND); | 563 | unsigned long eintpnd = __raw_readl(S3C24XX_EINTPEND); |
579 | unsigned long eintmsk = __raw_readl(S3C24XX_EINTMASK); | 564 | unsigned long eintmsk = __raw_readl(S3C24XX_EINTMASK); |
@@ -595,7 +580,7 @@ s3c_irq_demux_extint8(unsigned int irq, | |||
595 | 580 | ||
596 | static void | 581 | static void |
597 | s3c_irq_demux_extint4t7(unsigned int irq, | 582 | s3c_irq_demux_extint4t7(unsigned int irq, |
598 | struct irqdesc *desc) | 583 | struct irq_desc *desc) |
599 | { | 584 | { |
600 | unsigned long eintpnd = __raw_readl(S3C24XX_EINTPEND); | 585 | unsigned long eintpnd = __raw_readl(S3C24XX_EINTPEND); |
601 | unsigned long eintmsk = __raw_readl(S3C24XX_EINTMASK); | 586 | unsigned long eintmsk = __raw_readl(S3C24XX_EINTMASK); |
@@ -738,7 +723,7 @@ void __init s3c24xx_init_irq(void) | |||
738 | case IRQ_UART2: | 723 | case IRQ_UART2: |
739 | case IRQ_ADCPARENT: | 724 | case IRQ_ADCPARENT: |
740 | set_irq_chip(irqno, &s3c_irq_level_chip); | 725 | set_irq_chip(irqno, &s3c_irq_level_chip); |
741 | set_irq_handler(irqno, do_level_IRQ); | 726 | set_irq_handler(irqno, handle_level_irq); |
742 | break; | 727 | break; |
743 | 728 | ||
744 | case IRQ_RESERVED6: | 729 | case IRQ_RESERVED6: |
@@ -749,7 +734,7 @@ void __init s3c24xx_init_irq(void) | |||
749 | default: | 734 | default: |
750 | //irqdbf("registering irq %d (s3c irq)\n", irqno); | 735 | //irqdbf("registering irq %d (s3c irq)\n", irqno); |
751 | set_irq_chip(irqno, &s3c_irq_chip); | 736 | set_irq_chip(irqno, &s3c_irq_chip); |
752 | set_irq_handler(irqno, do_edge_IRQ); | 737 | set_irq_handler(irqno, handle_edge_irq); |
753 | set_irq_flags(irqno, IRQF_VALID); | 738 | set_irq_flags(irqno, IRQF_VALID); |
754 | } | 739 | } |
755 | } | 740 | } |
@@ -769,14 +754,14 @@ void __init s3c24xx_init_irq(void) | |||
769 | for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) { | 754 | for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) { |
770 | irqdbf("registering irq %d (ext int)\n", irqno); | 755 | irqdbf("registering irq %d (ext int)\n", irqno); |
771 | set_irq_chip(irqno, &s3c_irq_eint0t4); | 756 | set_irq_chip(irqno, &s3c_irq_eint0t4); |
772 | set_irq_handler(irqno, do_edge_IRQ); | 757 | set_irq_handler(irqno, handle_edge_irq); |
773 | set_irq_flags(irqno, IRQF_VALID); | 758 | set_irq_flags(irqno, IRQF_VALID); |
774 | } | 759 | } |
775 | 760 | ||
776 | for (irqno = IRQ_EINT4; irqno <= IRQ_EINT23; irqno++) { | 761 | for (irqno = IRQ_EINT4; irqno <= IRQ_EINT23; irqno++) { |
777 | irqdbf("registering irq %d (extended s3c irq)\n", irqno); | 762 | irqdbf("registering irq %d (extended s3c irq)\n", irqno); |
778 | set_irq_chip(irqno, &s3c_irqext_chip); | 763 | set_irq_chip(irqno, &s3c_irqext_chip); |
779 | set_irq_handler(irqno, do_edge_IRQ); | 764 | set_irq_handler(irqno, handle_edge_irq); |
780 | set_irq_flags(irqno, IRQF_VALID); | 765 | set_irq_flags(irqno, IRQF_VALID); |
781 | } | 766 | } |
782 | 767 | ||
@@ -787,28 +772,28 @@ void __init s3c24xx_init_irq(void) | |||
787 | for (irqno = IRQ_S3CUART_RX0; irqno <= IRQ_S3CUART_ERR0; irqno++) { | 772 | for (irqno = IRQ_S3CUART_RX0; irqno <= IRQ_S3CUART_ERR0; irqno++) { |
788 | irqdbf("registering irq %d (s3c uart0 irq)\n", irqno); | 773 | irqdbf("registering irq %d (s3c uart0 irq)\n", irqno); |
789 | set_irq_chip(irqno, &s3c_irq_uart0); | 774 | set_irq_chip(irqno, &s3c_irq_uart0); |
790 | set_irq_handler(irqno, do_level_IRQ); | 775 | set_irq_handler(irqno, handle_level_irq); |
791 | set_irq_flags(irqno, IRQF_VALID); | 776 | set_irq_flags(irqno, IRQF_VALID); |
792 | } | 777 | } |
793 | 778 | ||
794 | for (irqno = IRQ_S3CUART_RX1; irqno <= IRQ_S3CUART_ERR1; irqno++) { | 779 | for (irqno = IRQ_S3CUART_RX1; irqno <= IRQ_S3CUART_ERR1; irqno++) { |
795 | irqdbf("registering irq %d (s3c uart1 irq)\n", irqno); | 780 | irqdbf("registering irq %d (s3c uart1 irq)\n", irqno); |
796 | set_irq_chip(irqno, &s3c_irq_uart1); | 781 | set_irq_chip(irqno, &s3c_irq_uart1); |
797 | set_irq_handler(irqno, do_level_IRQ); | 782 | set_irq_handler(irqno, handle_level_irq); |
798 | set_irq_flags(irqno, IRQF_VALID); | 783 | set_irq_flags(irqno, IRQF_VALID); |
799 | } | 784 | } |
800 | 785 | ||
801 | for (irqno = IRQ_S3CUART_RX2; irqno <= IRQ_S3CUART_ERR2; irqno++) { | 786 | for (irqno = IRQ_S3CUART_RX2; irqno <= IRQ_S3CUART_ERR2; irqno++) { |
802 | irqdbf("registering irq %d (s3c uart2 irq)\n", irqno); | 787 | irqdbf("registering irq %d (s3c uart2 irq)\n", irqno); |
803 | set_irq_chip(irqno, &s3c_irq_uart2); | 788 | set_irq_chip(irqno, &s3c_irq_uart2); |
804 | set_irq_handler(irqno, do_level_IRQ); | 789 | set_irq_handler(irqno, handle_level_irq); |
805 | set_irq_flags(irqno, IRQF_VALID); | 790 | set_irq_flags(irqno, IRQF_VALID); |
806 | } | 791 | } |
807 | 792 | ||
808 | for (irqno = IRQ_TC; irqno <= IRQ_ADC; irqno++) { | 793 | for (irqno = IRQ_TC; irqno <= IRQ_ADC; irqno++) { |
809 | irqdbf("registering irq %d (s3c adc irq)\n", irqno); | 794 | irqdbf("registering irq %d (s3c adc irq)\n", irqno); |
810 | set_irq_chip(irqno, &s3c_irq_adc); | 795 | set_irq_chip(irqno, &s3c_irq_adc); |
811 | set_irq_handler(irqno, do_edge_IRQ); | 796 | set_irq_handler(irqno, handle_edge_irq); |
812 | set_irq_flags(irqno, IRQF_VALID); | 797 | set_irq_flags(irqno, IRQF_VALID); |
813 | } | 798 | } |
814 | 799 | ||
diff --git a/arch/arm/mach-s3c2410/irq.h b/arch/arm/mach-s3c2410/irq.h index 842a9f42c97b..e5913da3b919 100644 --- a/arch/arm/mach-s3c2410/irq.h +++ b/arch/arm/mach-s3c2410/irq.h | |||
@@ -8,8 +8,6 @@ | |||
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | ||
12 | * Modifications: | ||
13 | */ | 11 | */ |
14 | 12 | ||
15 | #define irqdbf(x...) | 13 | #define irqdbf(x...) |
@@ -17,7 +15,7 @@ | |||
17 | 15 | ||
18 | #define EXTINT_OFF (IRQ_EINT4 - 4) | 16 | #define EXTINT_OFF (IRQ_EINT4 - 4) |
19 | 17 | ||
20 | extern struct irqchip s3c_irq_level_chip; | 18 | extern struct irq_chip s3c_irq_level_chip; |
21 | 19 | ||
22 | static inline void | 20 | static inline void |
23 | s3c_irqsub_mask(unsigned int irqno, unsigned int parentbit, | 21 | s3c_irqsub_mask(unsigned int irqno, unsigned int parentbit, |
diff --git a/arch/arm/mach-s3c2410/mach-anubis.c b/arch/arm/mach-s3c2410/mach-anubis.c index e94cdcd96591..0fad0c2fe07b 100644 --- a/arch/arm/mach-s3c2410/mach-anubis.c +++ b/arch/arm/mach-s3c2410/mach-anubis.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/list.h> | 15 | #include <linux/list.h> |
16 | #include <linux/timer.h> | 16 | #include <linux/timer.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/serial_core.h> | ||
18 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
19 | 20 | ||
20 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 2968fb235f95..b8b76757ec54 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/list.h> | 16 | #include <linux/list.h> |
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/serial_core.h> | ||
19 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
20 | #include <linux/dm9000.h> | 21 | #include <linux/dm9000.h> |
21 | 22 | ||
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index 8c895c077d22..15b625eae499 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | #include <linux/timer.h> | 18 | #include <linux/timer.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/serial_core.h> | ||
20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
21 | 22 | ||
22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
@@ -33,14 +34,14 @@ | |||
33 | #include <asm/arch/regs-serial.h> | 34 | #include <asm/arch/regs-serial.h> |
34 | #include <asm/arch/regs-lcd.h> | 35 | #include <asm/arch/regs-lcd.h> |
35 | 36 | ||
37 | #include <asm/arch/h1940.h> | ||
36 | #include <asm/arch/h1940-latch.h> | 38 | #include <asm/arch/h1940-latch.h> |
37 | #include <asm/arch/fb.h> | 39 | #include <asm/arch/fb.h> |
38 | 40 | ||
39 | #include <linux/serial_core.h> | ||
40 | |||
41 | #include "clock.h" | 41 | #include "clock.h" |
42 | #include "devs.h" | 42 | #include "devs.h" |
43 | #include "cpu.h" | 43 | #include "cpu.h" |
44 | #include "pm.h" | ||
44 | 45 | ||
45 | static struct map_desc h1940_iodesc[] __initdata = { | 46 | static struct map_desc h1940_iodesc[] __initdata = { |
46 | [0] = { | 47 | [0] = { |
@@ -164,12 +165,16 @@ static void __init h1940_map_io(void) | |||
164 | s3c24xx_init_clocks(0); | 165 | s3c24xx_init_clocks(0); |
165 | s3c24xx_init_uarts(h1940_uartcfgs, ARRAY_SIZE(h1940_uartcfgs)); | 166 | s3c24xx_init_uarts(h1940_uartcfgs, ARRAY_SIZE(h1940_uartcfgs)); |
166 | s3c24xx_set_board(&h1940_board); | 167 | s3c24xx_set_board(&h1940_board); |
168 | |||
169 | /* setup PM */ | ||
170 | |||
171 | memcpy(phys_to_virt(H1940_SUSPEND_RESUMEAT), h1940_pm_return, 1024); | ||
172 | s3c2410_pm_init(); | ||
167 | } | 173 | } |
168 | 174 | ||
169 | static void __init h1940_init_irq(void) | 175 | static void __init h1940_init_irq(void) |
170 | { | 176 | { |
171 | s3c24xx_init_irq(); | 177 | s3c24xx_init_irq(); |
172 | |||
173 | } | 178 | } |
174 | 179 | ||
175 | static void __init h1940_init(void) | 180 | static void __init h1940_init(void) |
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c index 116ac3169966..0411e9adb54d 100644 --- a/arch/arm/mach-s3c2410/mach-n30.c +++ b/arch/arm/mach-s3c2410/mach-n30.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/timer.h> | 20 | #include <linux/timer.h> |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/serial_core.h> | ||
23 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
24 | #include <linux/kthread.h> | 25 | #include <linux/kthread.h> |
25 | 26 | ||
@@ -37,8 +38,6 @@ | |||
37 | #include <asm/arch/regs-gpio.h> | 38 | #include <asm/arch/regs-gpio.h> |
38 | #include <asm/arch/iic.h> | 39 | #include <asm/arch/iic.h> |
39 | 40 | ||
40 | #include <linux/serial_core.h> | ||
41 | |||
42 | #include "s3c2410.h" | 41 | #include "s3c2410.h" |
43 | #include "clock.h" | 42 | #include "clock.h" |
44 | #include "devs.h" | 43 | #include "devs.h" |
diff --git a/arch/arm/mach-s3c2410/mach-nexcoder.c b/arch/arm/mach-s3c2410/mach-nexcoder.c index 065a1d4e860b..d6dfdad8c90b 100644 --- a/arch/arm/mach-s3c2410/mach-nexcoder.c +++ b/arch/arm/mach-s3c2410/mach-nexcoder.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/timer.h> | 19 | #include <linux/timer.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/string.h> | 21 | #include <linux/string.h> |
22 | #include <linux/serial_core.h> | ||
22 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
23 | 24 | ||
24 | #include <linux/mtd/map.h> | 25 | #include <linux/mtd/map.h> |
diff --git a/arch/arm/mach-s3c2410/mach-osiris.c b/arch/arm/mach-s3c2410/mach-osiris.c index e193ba69e652..37b40850c9b9 100644 --- a/arch/arm/mach-s3c2410/mach-osiris.c +++ b/arch/arm/mach-s3c2410/mach-osiris.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/timer.h> | 16 | #include <linux/timer.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/device.h> | 18 | #include <linux/device.h> |
19 | #include <linux/serial_core.h> | ||
19 | 20 | ||
20 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
@@ -114,6 +115,15 @@ static struct s3c2410_uartcfg osiris_uartcfgs[] __initdata = { | |||
114 | .clocks = osiris_serial_clocks, | 115 | .clocks = osiris_serial_clocks, |
115 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks), | 116 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks), |
116 | }, | 117 | }, |
118 | [2] = { | ||
119 | .hwport = 2, | ||
120 | .flags = 0, | ||
121 | .ucon = UCON, | ||
122 | .ulcon = ULCON, | ||
123 | .ufcon = UFCON, | ||
124 | .clocks = osiris_serial_clocks, | ||
125 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks), | ||
126 | } | ||
117 | }; | 127 | }; |
118 | 128 | ||
119 | /* NAND Flash on Osiris board */ | 129 | /* NAND Flash on Osiris board */ |
diff --git a/arch/arm/mach-s3c2410/mach-otom.c b/arch/arm/mach-s3c2410/mach-otom.c index c71673fd9955..2c738b375e4d 100644 --- a/arch/arm/mach-s3c2410/mach-otom.c +++ b/arch/arm/mach-s3c2410/mach-otom.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/list.h> | 15 | #include <linux/list.h> |
16 | #include <linux/timer.h> | 16 | #include <linux/timer.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/serial_core.h> | ||
18 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
19 | 20 | ||
20 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-s3c2410/mach-rx3715.c b/arch/arm/mach-s3c2410/mach-rx3715.c index 23d7c052013c..ecbcdf79d739 100644 --- a/arch/arm/mach-s3c2410/mach-rx3715.c +++ b/arch/arm/mach-s3c2410/mach-rx3715.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <asm/arch/regs-gpio.h> | 42 | #include <asm/arch/regs-gpio.h> |
43 | #include <asm/arch/regs-lcd.h> | 43 | #include <asm/arch/regs-lcd.h> |
44 | 44 | ||
45 | #include <asm/arch/h1940.h> | ||
45 | #include <asm/arch/nand.h> | 46 | #include <asm/arch/nand.h> |
46 | #include <asm/arch/fb.h> | 47 | #include <asm/arch/fb.h> |
47 | 48 | ||
@@ -224,7 +225,9 @@ static void __init rx3715_init_irq(void) | |||
224 | 225 | ||
225 | static void __init rx3715_init_machine(void) | 226 | static void __init rx3715_init_machine(void) |
226 | { | 227 | { |
228 | memcpy(phys_to_virt(H1940_SUSPEND_RESUMEAT), h1940_pm_return, 1024); | ||
227 | s3c2410_pm_init(); | 229 | s3c2410_pm_init(); |
230 | |||
228 | s3c24xx_fb_set_platdata(&rx3715_lcdcfg); | 231 | s3c24xx_fb_set_platdata(&rx3715_lcdcfg); |
229 | } | 232 | } |
230 | 233 | ||
diff --git a/arch/arm/mach-s3c2410/mach-smdk2410.c b/arch/arm/mach-s3c2410/mach-smdk2410.c index b3b0171d5052..01c0c986d827 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2410.c +++ b/arch/arm/mach-s3c2410/mach-smdk2410.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/list.h> | 35 | #include <linux/list.h> |
36 | #include <linux/timer.h> | 36 | #include <linux/timer.h> |
37 | #include <linux/init.h> | 37 | #include <linux/init.h> |
38 | #include <linux/serial_core.h> | ||
38 | #include <linux/platform_device.h> | 39 | #include <linux/platform_device.h> |
39 | 40 | ||
40 | #include <asm/mach/arch.h> | 41 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2413.c b/arch/arm/mach-s3c2410/mach-smdk2413.c index 3a4ca7f6f7b9..4f89abd7a6df 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2413.c +++ b/arch/arm/mach-s3c2410/mach-smdk2413.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | #include <linux/timer.h> | 18 | #include <linux/timer.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/serial_core.h> | ||
20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
21 | 22 | ||
22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2440.c b/arch/arm/mach-s3c2410/mach-smdk2440.c index e2205ff1b0ee..2b61f4ed1da4 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2440.c +++ b/arch/arm/mach-s3c2410/mach-smdk2440.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/list.h> | 19 | #include <linux/list.h> |
20 | #include <linux/timer.h> | 20 | #include <linux/timer.h> |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/serial_core.h> | ||
22 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
23 | 24 | ||
24 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index a0d7692cdb2b..a382fc095110 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
@@ -41,6 +41,7 @@ | |||
41 | 41 | ||
42 | #include <asm/arch/regs-serial.h> | 42 | #include <asm/arch/regs-serial.h> |
43 | #include <asm/arch/regs-gpio.h> | 43 | #include <asm/arch/regs-gpio.h> |
44 | #include <asm/arch/leds-gpio.h> | ||
44 | 45 | ||
45 | #include "clock.h" | 46 | #include "clock.h" |
46 | #include "devs.h" | 47 | #include "devs.h" |
@@ -313,6 +314,50 @@ static struct platform_device vr1000_dm9k1 = { | |||
313 | } | 314 | } |
314 | }; | 315 | }; |
315 | 316 | ||
317 | /* LEDS */ | ||
318 | |||
319 | static struct s3c24xx_led_platdata vr1000_led1_pdata = { | ||
320 | .name = "led1", | ||
321 | .gpio = S3C2410_GPB0, | ||
322 | .def_trigger = "", | ||
323 | }; | ||
324 | |||
325 | static struct s3c24xx_led_platdata vr1000_led2_pdata = { | ||
326 | .name = "led2", | ||
327 | .gpio = S3C2410_GPB1, | ||
328 | .def_trigger = "", | ||
329 | }; | ||
330 | |||
331 | static struct s3c24xx_led_platdata vr1000_led3_pdata = { | ||
332 | .name = "led3", | ||
333 | .gpio = S3C2410_GPB2, | ||
334 | .def_trigger = "", | ||
335 | }; | ||
336 | |||
337 | static struct platform_device vr1000_led1 = { | ||
338 | .name = "s3c24xx_led", | ||
339 | .id = 1, | ||
340 | .dev = { | ||
341 | .platform_data = &vr1000_led1_pdata, | ||
342 | }, | ||
343 | }; | ||
344 | |||
345 | static struct platform_device vr1000_led2 = { | ||
346 | .name = "s3c24xx_led", | ||
347 | .id = 2, | ||
348 | .dev = { | ||
349 | .platform_data = &vr1000_led2_pdata, | ||
350 | }, | ||
351 | }; | ||
352 | |||
353 | static struct platform_device vr1000_led3 = { | ||
354 | .name = "s3c24xx_led", | ||
355 | .id = 3, | ||
356 | .dev = { | ||
357 | .platform_data = &vr1000_led3_pdata, | ||
358 | }, | ||
359 | }; | ||
360 | |||
316 | /* devices for this board */ | 361 | /* devices for this board */ |
317 | 362 | ||
318 | static struct platform_device *vr1000_devices[] __initdata = { | 363 | static struct platform_device *vr1000_devices[] __initdata = { |
@@ -325,7 +370,10 @@ static struct platform_device *vr1000_devices[] __initdata = { | |||
325 | &serial_device, | 370 | &serial_device, |
326 | &vr1000_nor, | 371 | &vr1000_nor, |
327 | &vr1000_dm9k0, | 372 | &vr1000_dm9k0, |
328 | &vr1000_dm9k1 | 373 | &vr1000_dm9k1, |
374 | &vr1000_led1, | ||
375 | &vr1000_led2, | ||
376 | &vr1000_led3, | ||
329 | }; | 377 | }; |
330 | 378 | ||
331 | static struct clk *vr1000_clocks[] = { | 379 | static struct clk *vr1000_clocks[] = { |
diff --git a/arch/arm/mach-s3c2410/mach-vstms.c b/arch/arm/mach-s3c2410/mach-vstms.c index ea554e7c006e..0360e1055bcd 100644 --- a/arch/arm/mach-s3c2410/mach-vstms.c +++ b/arch/arm/mach-s3c2410/mach-vstms.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/list.h> | 15 | #include <linux/list.h> |
16 | #include <linux/timer.h> | 16 | #include <linux/timer.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/serial_core.h> | ||
18 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
19 | 20 | ||
20 | #include <linux/mtd/mtd.h> | 21 | #include <linux/mtd/mtd.h> |
diff --git a/arch/arm/mach-s3c2410/pm-h1940.S b/arch/arm/mach-s3c2410/pm-h1940.S new file mode 100644 index 000000000000..7d66de7ff7db --- /dev/null +++ b/arch/arm/mach-s3c2410/pm-h1940.S | |||
@@ -0,0 +1,33 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/pm-h1940.S | ||
2 | * | ||
3 | * Copyright (c) 2006 Ben Dooks <ben-linux@fluff.org> | ||
4 | * | ||
5 | * H1940 Suspend to RAM | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | |||
21 | #include <linux/linkage.h> | ||
22 | #include <asm/assembler.h> | ||
23 | #include <asm/hardware.h> | ||
24 | #include <asm/arch/map.h> | ||
25 | |||
26 | #include <asm/arch/regs-gpio.h> | ||
27 | |||
28 | .text | ||
29 | .global h1940_pm_return | ||
30 | |||
31 | h1940_pm_return: | ||
32 | mov r0, #S3C2410_PA_GPIO | ||
33 | ldr pc, [ r0, #S3C2410_GSTATUS3 - S3C24XX_VA_GPIO ] | ||
diff --git a/arch/arm/mach-s3c2410/pm-simtec.c b/arch/arm/mach-s3c2410/pm-simtec.c index 42cd05e298f8..619133eb7168 100644 --- a/arch/arm/mach-s3c2410/pm-simtec.c +++ b/arch/arm/mach-s3c2410/pm-simtec.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <asm/io.h> | 27 | #include <asm/io.h> |
28 | 28 | ||
29 | #include <asm/arch/map.h> | 29 | #include <asm/arch/map.h> |
30 | #include <asm/arch/regs-serial.h> | ||
31 | #include <asm/arch/regs-gpio.h> | 30 | #include <asm/arch/regs-gpio.h> |
32 | #include <asm/arch/regs-mem.h> | 31 | #include <asm/arch/regs-mem.h> |
33 | 32 | ||
diff --git a/arch/arm/mach-s3c2410/pm.c b/arch/arm/mach-s3c2410/pm.c index b49a0b3b72b3..00834097eb82 100644 --- a/arch/arm/mach-s3c2410/pm.c +++ b/arch/arm/mach-s3c2410/pm.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/crc32.h> | 34 | #include <linux/crc32.h> |
35 | #include <linux/ioport.h> | 35 | #include <linux/ioport.h> |
36 | #include <linux/delay.h> | 36 | #include <linux/delay.h> |
37 | #include <linux/serial_core.h> | ||
37 | 38 | ||
38 | #include <asm/cacheflush.h> | 39 | #include <asm/cacheflush.h> |
39 | #include <asm/hardware.h> | 40 | #include <asm/hardware.h> |
diff --git a/arch/arm/mach-s3c2410/s3c2410-clock.c b/arch/arm/mach-s3c2410/s3c2410-clock.c index 00abe199a08e..992cc6af230e 100644 --- a/arch/arm/mach-s3c2410/s3c2410-clock.c +++ b/arch/arm/mach-s3c2410/s3c2410-clock.c | |||
@@ -30,13 +30,18 @@ | |||
30 | #include <linux/clk.h> | 30 | #include <linux/clk.h> |
31 | #include <linux/mutex.h> | 31 | #include <linux/mutex.h> |
32 | #include <linux/delay.h> | 32 | #include <linux/delay.h> |
33 | #include <linux/serial_core.h> | ||
34 | |||
35 | #include <asm/mach/map.h> | ||
33 | 36 | ||
34 | #include <asm/hardware.h> | 37 | #include <asm/hardware.h> |
35 | #include <asm/io.h> | 38 | #include <asm/io.h> |
36 | 39 | ||
40 | #include <asm/arch/regs-serial.h> | ||
37 | #include <asm/arch/regs-clock.h> | 41 | #include <asm/arch/regs-clock.h> |
38 | #include <asm/arch/regs-gpio.h> | 42 | #include <asm/arch/regs-gpio.h> |
39 | 43 | ||
44 | #include "s3c2410.h" | ||
40 | #include "clock.h" | 45 | #include "clock.h" |
41 | #include "cpu.h" | 46 | #include "cpu.h" |
42 | 47 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2410-dma.c b/arch/arm/mach-s3c2410/s3c2410-dma.c index 51e5098b32e8..e67ba3911f11 100644 --- a/arch/arm/mach-s3c2410/s3c2410-dma.c +++ b/arch/arm/mach-s3c2410/s3c2410-dma.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2410-dma.c | 1 | /* linux/arch/arm/mach-s3c2410/s3c2410-dma.c |
2 | * | 2 | * |
3 | * (c) 2006 Simtec Electronics | 3 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2410 DMA selection | 6 | * S3C2410 DMA selection |
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/sysdev.h> | 17 | #include <linux/sysdev.h> |
18 | #include <linux/serial_core.h> | ||
18 | 19 | ||
19 | #include <asm/dma.h> | 20 | #include <asm/dma.h> |
20 | #include <asm/arch/dma.h> | 21 | #include <asm/arch/dma.h> |
@@ -131,6 +132,7 @@ static int s3c2410_dma_add(struct sys_device *sysdev) | |||
131 | return s3c24xx_dma_init_map(&s3c2410_dma_sel); | 132 | return s3c24xx_dma_init_map(&s3c2410_dma_sel); |
132 | } | 133 | } |
133 | 134 | ||
135 | #if defined(CONFIG_CPU_S3C2410) | ||
134 | static struct sysdev_driver s3c2410_dma_driver = { | 136 | static struct sysdev_driver s3c2410_dma_driver = { |
135 | .add = s3c2410_dma_add, | 137 | .add = s3c2410_dma_add, |
136 | }; | 138 | }; |
@@ -141,9 +143,10 @@ static int __init s3c2410_dma_init(void) | |||
141 | } | 143 | } |
142 | 144 | ||
143 | arch_initcall(s3c2410_dma_init); | 145 | arch_initcall(s3c2410_dma_init); |
146 | #endif | ||
144 | 147 | ||
148 | #if defined(CONFIG_CPU_S3C2442) | ||
145 | /* S3C2442 DMA contains the same selection table as the S3C2410 */ | 149 | /* S3C2442 DMA contains the same selection table as the S3C2410 */ |
146 | |||
147 | static struct sysdev_driver s3c2442_dma_driver = { | 150 | static struct sysdev_driver s3c2442_dma_driver = { |
148 | .add = s3c2410_dma_add, | 151 | .add = s3c2410_dma_add, |
149 | }; | 152 | }; |
@@ -154,5 +157,5 @@ static int __init s3c2442_dma_init(void) | |||
154 | } | 157 | } |
155 | 158 | ||
156 | arch_initcall(s3c2442_dma_init); | 159 | arch_initcall(s3c2442_dma_init); |
157 | 160 | #endif | |
158 | 161 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2410-pm.c b/arch/arm/mach-s3c2410/s3c2410-pm.c index e51d76669512..8bb6e5e21f59 100644 --- a/arch/arm/mach-s3c2410/s3c2410-pm.c +++ b/arch/arm/mach-s3c2410/s3c2410-pm.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
33 | 33 | ||
34 | #include <asm/arch/regs-gpio.h> | 34 | #include <asm/arch/regs-gpio.h> |
35 | #include <asm/arch/h1940.h> | ||
35 | 36 | ||
36 | #include "cpu.h" | 37 | #include "cpu.h" |
37 | #include "pm.h" | 38 | #include "pm.h" |
@@ -52,12 +53,41 @@ static void s3c2410_pm_prepare(void) | |||
52 | DBG("GSTATUS3 0x%08x\n", __raw_readl(S3C2410_GSTATUS3)); | 53 | DBG("GSTATUS3 0x%08x\n", __raw_readl(S3C2410_GSTATUS3)); |
53 | DBG("GSTATUS4 0x%08x\n", __raw_readl(S3C2410_GSTATUS4)); | 54 | DBG("GSTATUS4 0x%08x\n", __raw_readl(S3C2410_GSTATUS4)); |
54 | 55 | ||
56 | if (machine_is_h1940()) { | ||
57 | void *base = phys_to_virt(H1940_SUSPEND_CHECK); | ||
58 | unsigned long ptr; | ||
59 | unsigned long calc = 0; | ||
60 | |||
61 | /* generate check for the bootloader to check on resume */ | ||
62 | |||
63 | for (ptr = 0; ptr < 0x40000; ptr += 0x400) | ||
64 | calc += __raw_readl(base+ptr); | ||
65 | |||
66 | __raw_writel(calc, phys_to_virt(H1940_SUSPEND_CHECKSUM)); | ||
67 | } | ||
68 | |||
69 | /* the RX3715 uses similar code and the same H1940 and the | ||
70 | * same offsets for resume and checksum pointers */ | ||
71 | |||
72 | if (machine_is_rx3715()) { | ||
73 | void *base = phys_to_virt(H1940_SUSPEND_CHECK); | ||
74 | unsigned long ptr; | ||
75 | unsigned long calc = 0; | ||
76 | |||
77 | /* generate check for the bootloader to check on resume */ | ||
78 | |||
79 | for (ptr = 0; ptr < 0x40000; ptr += 0x4) | ||
80 | calc += __raw_readl(base+ptr); | ||
81 | |||
82 | __raw_writel(calc, phys_to_virt(H1940_SUSPEND_CHECKSUM)); | ||
83 | } | ||
84 | |||
55 | if ( machine_is_aml_m5900() ) | 85 | if ( machine_is_aml_m5900() ) |
56 | s3c2410_gpio_setpin(S3C2410_GPF2, 1); | 86 | s3c2410_gpio_setpin(S3C2410_GPF2, 1); |
57 | 87 | ||
58 | } | 88 | } |
59 | 89 | ||
60 | int s3c2410_pm_resume(struct sys_device *dev) | 90 | static int s3c2410_pm_resume(struct sys_device *dev) |
61 | { | 91 | { |
62 | unsigned long tmp; | 92 | unsigned long tmp; |
63 | 93 | ||
@@ -81,6 +111,7 @@ static int s3c2410_pm_add(struct sys_device *dev) | |||
81 | return 0; | 111 | return 0; |
82 | } | 112 | } |
83 | 113 | ||
114 | #if defined(CONFIG_CPU_S3C2410) | ||
84 | static struct sysdev_driver s3c2410_pm_driver = { | 115 | static struct sysdev_driver s3c2410_pm_driver = { |
85 | .add = s3c2410_pm_add, | 116 | .add = s3c2410_pm_add, |
86 | .resume = s3c2410_pm_resume, | 117 | .resume = s3c2410_pm_resume, |
@@ -94,7 +125,9 @@ static int __init s3c2410_pm_drvinit(void) | |||
94 | } | 125 | } |
95 | 126 | ||
96 | arch_initcall(s3c2410_pm_drvinit); | 127 | arch_initcall(s3c2410_pm_drvinit); |
128 | #endif | ||
97 | 129 | ||
130 | #if defined(CONFIG_CPU_S3C2440) | ||
98 | static struct sysdev_driver s3c2440_pm_driver = { | 131 | static struct sysdev_driver s3c2440_pm_driver = { |
99 | .add = s3c2410_pm_add, | 132 | .add = s3c2410_pm_add, |
100 | .resume = s3c2410_pm_resume, | 133 | .resume = s3c2410_pm_resume, |
@@ -106,7 +139,9 @@ static int __init s3c2440_pm_drvinit(void) | |||
106 | } | 139 | } |
107 | 140 | ||
108 | arch_initcall(s3c2440_pm_drvinit); | 141 | arch_initcall(s3c2440_pm_drvinit); |
142 | #endif | ||
109 | 143 | ||
144 | #if defined(CONFIG_CPU_S3C2442) | ||
110 | static struct sysdev_driver s3c2442_pm_driver = { | 145 | static struct sysdev_driver s3c2442_pm_driver = { |
111 | .add = s3c2410_pm_add, | 146 | .add = s3c2410_pm_add, |
112 | .resume = s3c2410_pm_resume, | 147 | .resume = s3c2410_pm_resume, |
@@ -118,3 +153,4 @@ static int __init s3c2442_pm_drvinit(void) | |||
118 | } | 153 | } |
119 | 154 | ||
120 | arch_initcall(s3c2442_pm_drvinit); | 155 | arch_initcall(s3c2442_pm_drvinit); |
156 | #endif | ||
diff --git a/arch/arm/mach-s3c2410/s3c2410.c b/arch/arm/mach-s3c2410/s3c2410.c index 183e4033ce61..4cdc0d70c19f 100644 --- a/arch/arm/mach-s3c2410/s3c2410.c +++ b/arch/arm/mach-s3c2410/s3c2410.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/sysdev.h> | 19 | #include <linux/sysdev.h> |
20 | #include <linux/serial_core.h> | ||
20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
21 | 22 | ||
22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
@@ -38,11 +39,9 @@ | |||
38 | /* Initial IO mappings */ | 39 | /* Initial IO mappings */ |
39 | 40 | ||
40 | static struct map_desc s3c2410_iodesc[] __initdata = { | 41 | static struct map_desc s3c2410_iodesc[] __initdata = { |
41 | IODESC_ENT(USBHOST), | ||
42 | IODESC_ENT(CLKPWR), | 42 | IODESC_ENT(CLKPWR), |
43 | IODESC_ENT(LCD), | 43 | IODESC_ENT(LCD), |
44 | IODESC_ENT(TIMER), | 44 | IODESC_ENT(TIMER), |
45 | IODESC_ENT(ADC), | ||
46 | IODESC_ENT(WATCHDOG), | 45 | IODESC_ENT(WATCHDOG), |
47 | }; | 46 | }; |
48 | 47 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2412-clock.c b/arch/arm/mach-s3c2410/s3c2412-clock.c index c95ed3e18580..8f94ad83901d 100644 --- a/arch/arm/mach-s3c2410/s3c2412-clock.c +++ b/arch/arm/mach-s3c2410/s3c2412-clock.c | |||
@@ -30,13 +30,18 @@ | |||
30 | #include <linux/clk.h> | 30 | #include <linux/clk.h> |
31 | #include <linux/mutex.h> | 31 | #include <linux/mutex.h> |
32 | #include <linux/delay.h> | 32 | #include <linux/delay.h> |
33 | #include <linux/serial_core.h> | ||
34 | |||
35 | #include <asm/mach/map.h> | ||
33 | 36 | ||
34 | #include <asm/hardware.h> | 37 | #include <asm/hardware.h> |
35 | #include <asm/io.h> | 38 | #include <asm/io.h> |
36 | 39 | ||
40 | #include <asm/arch/regs-serial.h> | ||
37 | #include <asm/arch/regs-clock.h> | 41 | #include <asm/arch/regs-clock.h> |
38 | #include <asm/arch/regs-gpio.h> | 42 | #include <asm/arch/regs-gpio.h> |
39 | 43 | ||
44 | #include "s3c2412.h" | ||
40 | #include "clock.h" | 45 | #include "clock.h" |
41 | #include "cpu.h" | 46 | #include "cpu.h" |
42 | 47 | ||
@@ -49,7 +54,7 @@ | |||
49 | * set the correct muxing at initialisation | 54 | * set the correct muxing at initialisation |
50 | */ | 55 | */ |
51 | 56 | ||
52 | int s3c2412_clkcon_enable(struct clk *clk, int enable) | 57 | static int s3c2412_clkcon_enable(struct clk *clk, int enable) |
53 | { | 58 | { |
54 | unsigned int clocks = clk->ctrlbit; | 59 | unsigned int clocks = clk->ctrlbit; |
55 | unsigned long clkcon; | 60 | unsigned long clkcon; |
@@ -556,7 +561,7 @@ struct clk_init { | |||
556 | struct clk *src_1; | 561 | struct clk *src_1; |
557 | }; | 562 | }; |
558 | 563 | ||
559 | struct clk_init clks_src[] __initdata = { | 564 | static struct clk_init clks_src[] __initdata = { |
560 | { | 565 | { |
561 | .clk = &clk_usysclk, | 566 | .clk = &clk_usysclk, |
562 | .bit = S3C2412_CLKSRC_USBCLK_HCLK, | 567 | .bit = S3C2412_CLKSRC_USBCLK_HCLK, |
@@ -619,7 +624,7 @@ static void __init s3c2412_clk_initparents(void) | |||
619 | 624 | ||
620 | /* clocks to add straight away */ | 625 | /* clocks to add straight away */ |
621 | 626 | ||
622 | struct clk *clks[] __initdata = { | 627 | static struct clk *clks[] __initdata = { |
623 | &clk_ext, | 628 | &clk_ext, |
624 | &clk_usb_bus, | 629 | &clk_usb_bus, |
625 | &clk_erefclk, | 630 | &clk_erefclk, |
diff --git a/arch/arm/mach-s3c2410/s3c2412-dma.c b/arch/arm/mach-s3c2410/s3c2412-dma.c index 171f3706d36d..fe71a8fdb87c 100644 --- a/arch/arm/mach-s3c2410/s3c2412-dma.c +++ b/arch/arm/mach-s3c2410/s3c2412-dma.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2412-dma.c | 1 | /* linux/arch/arm/mach-s3c2410/s3c2412-dma.c |
2 | * | 2 | * |
3 | * (c) 2006 Simtec Electronics | 3 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2412 DMA selection | 6 | * S3C2412 DMA selection |
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/sysdev.h> | 17 | #include <linux/sysdev.h> |
18 | #include <linux/serial_core.h> | ||
18 | 19 | ||
19 | #include <asm/dma.h> | 20 | #include <asm/dma.h> |
20 | #include <asm/arch/dma.h> | 21 | #include <asm/arch/dma.h> |
diff --git a/arch/arm/mach-s3c2410/s3c2412-irq.c b/arch/arm/mach-s3c2410/s3c2412-irq.c index 7f741547658f..ffcc30b23a80 100644 --- a/arch/arm/mach-s3c2410/s3c2412-irq.c +++ b/arch/arm/mach-s3c2410/s3c2412-irq.c | |||
@@ -98,7 +98,7 @@ s3c2412_irq_unmask(unsigned int irqno) | |||
98 | __raw_writel(mask & ~bitval, S3C2410_INTMSK); | 98 | __raw_writel(mask & ~bitval, S3C2410_INTMSK); |
99 | } | 99 | } |
100 | 100 | ||
101 | static struct irqchip s3c2412_irq_eint0t4 = { | 101 | static struct irq_chip s3c2412_irq_eint0t4 = { |
102 | .ack = s3c2412_irq_ack, | 102 | .ack = s3c2412_irq_ack, |
103 | .mask = s3c2412_irq_mask, | 103 | .mask = s3c2412_irq_mask, |
104 | .unmask = s3c2412_irq_unmask, | 104 | .unmask = s3c2412_irq_unmask, |
@@ -112,7 +112,7 @@ static int s3c2412_irq_add(struct sys_device *sysdev) | |||
112 | 112 | ||
113 | for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) { | 113 | for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) { |
114 | set_irq_chip(irqno, &s3c2412_irq_eint0t4); | 114 | set_irq_chip(irqno, &s3c2412_irq_eint0t4); |
115 | set_irq_handler(irqno, do_edge_IRQ); | 115 | set_irq_handler(irqno, handle_edge_irq); |
116 | set_irq_flags(irqno, IRQF_VALID); | 116 | set_irq_flags(irqno, IRQF_VALID); |
117 | } | 117 | } |
118 | 118 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2412.c b/arch/arm/mach-s3c2410/s3c2412.c index e76431c41461..2f651a811ecd 100644 --- a/arch/arm/mach-s3c2410/s3c2412.c +++ b/arch/arm/mach-s3c2410/s3c2412.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/sysdev.h> | 19 | #include <linux/sysdev.h> |
20 | #include <linux/serial_core.h> | ||
20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
21 | 22 | ||
22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
@@ -60,7 +61,6 @@ static struct map_desc s3c2412_iodesc[] __initdata = { | |||
60 | IODESC_ENT(CLKPWR), | 61 | IODESC_ENT(CLKPWR), |
61 | IODESC_ENT(LCD), | 62 | IODESC_ENT(LCD), |
62 | IODESC_ENT(TIMER), | 63 | IODESC_ENT(TIMER), |
63 | IODESC_ENT(ADC), | ||
64 | IODESC_ENT(WATCHDOG), | 64 | IODESC_ENT(WATCHDOG), |
65 | }; | 65 | }; |
66 | 66 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2440-clock.c b/arch/arm/mach-s3c2410/s3c2440-clock.c index 15796864d010..ba13c1d079d1 100644 --- a/arch/arm/mach-s3c2410/s3c2440-clock.c +++ b/arch/arm/mach-s3c2410/s3c2440-clock.c | |||
@@ -113,18 +113,18 @@ static int s3c2440_clk_add(struct sys_device *sysdev) | |||
113 | { | 113 | { |
114 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); | 114 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); |
115 | unsigned long clkdivn; | 115 | unsigned long clkdivn; |
116 | struct clk *clk_h; | 116 | struct clk *clock_h; |
117 | struct clk *clk_p; | 117 | struct clk *clock_p; |
118 | struct clk *clk_upll; | 118 | struct clk *clock_upll; |
119 | 119 | ||
120 | printk("S3C2440: Clock Support, DVS %s\n", | 120 | printk("S3C2440: Clock Support, DVS %s\n", |
121 | (camdivn & S3C2440_CAMDIVN_DVSEN) ? "on" : "off"); | 121 | (camdivn & S3C2440_CAMDIVN_DVSEN) ? "on" : "off"); |
122 | 122 | ||
123 | clk_p = clk_get(NULL, "pclk"); | 123 | clock_p = clk_get(NULL, "pclk"); |
124 | clk_h = clk_get(NULL, "hclk"); | 124 | clock_h = clk_get(NULL, "hclk"); |
125 | clk_upll = clk_get(NULL, "upll"); | 125 | clock_upll = clk_get(NULL, "upll"); |
126 | 126 | ||
127 | if (IS_ERR(clk_p) || IS_ERR(clk_h) || IS_ERR(clk_upll)) { | 127 | if (IS_ERR(clock_p) || IS_ERR(clock_h) || IS_ERR(clock_upll)) { |
128 | printk(KERN_ERR "S3C2440: Failed to get parent clocks\n"); | 128 | printk(KERN_ERR "S3C2440: Failed to get parent clocks\n"); |
129 | return -EINVAL; | 129 | return -EINVAL; |
130 | } | 130 | } |
@@ -132,8 +132,8 @@ static int s3c2440_clk_add(struct sys_device *sysdev) | |||
132 | /* check rate of UPLL, and if it is near 96MHz, then change | 132 | /* check rate of UPLL, and if it is near 96MHz, then change |
133 | * to using half the UPLL rate for the system */ | 133 | * to using half the UPLL rate for the system */ |
134 | 134 | ||
135 | if (clk_get_rate(clk_upll) > (94 * MHZ)) { | 135 | if (clk_get_rate(clock_upll) > (94 * MHZ)) { |
136 | clk_usb_bus.rate = clk_get_rate(clk_upll) / 2; | 136 | clk_usb_bus.rate = clk_get_rate(clock_upll) / 2; |
137 | 137 | ||
138 | mutex_lock(&clocks_mutex); | 138 | mutex_lock(&clocks_mutex); |
139 | 139 | ||
@@ -144,9 +144,9 @@ static int s3c2440_clk_add(struct sys_device *sysdev) | |||
144 | mutex_unlock(&clocks_mutex); | 144 | mutex_unlock(&clocks_mutex); |
145 | } | 145 | } |
146 | 146 | ||
147 | s3c2440_clk_cam.parent = clk_h; | 147 | s3c2440_clk_cam.parent = clock_h; |
148 | s3c2440_clk_ac97.parent = clk_p; | 148 | s3c2440_clk_ac97.parent = clock_p; |
149 | s3c2440_clk_cam_upll.parent = clk_upll; | 149 | s3c2440_clk_cam_upll.parent = clock_upll; |
150 | 150 | ||
151 | s3c24xx_register_clock(&s3c2440_clk_ac97); | 151 | s3c24xx_register_clock(&s3c2440_clk_ac97); |
152 | s3c24xx_register_clock(&s3c2440_clk_cam); | 152 | s3c24xx_register_clock(&s3c2440_clk_cam); |
diff --git a/arch/arm/mach-s3c2410/s3c2440-dma.c b/arch/arm/mach-s3c2410/s3c2440-dma.c index 11e109c84a15..47b861b9443d 100644 --- a/arch/arm/mach-s3c2410/s3c2440-dma.c +++ b/arch/arm/mach-s3c2410/s3c2440-dma.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440-dma.c | 1 | /* linux/arch/arm/mach-s3c2410/s3c2440-dma.c |
2 | * | 2 | * |
3 | * (c) 2006 Simtec Electronics | 3 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2440 DMA selection | 6 | * S3C2440 DMA selection |
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/sysdev.h> | 17 | #include <linux/sysdev.h> |
18 | #include <linux/serial_core.h> | ||
18 | 19 | ||
19 | #include <asm/dma.h> | 20 | #include <asm/dma.h> |
20 | #include <asm/arch/dma.h> | 21 | #include <asm/arch/dma.h> |
diff --git a/arch/arm/mach-s3c2410/s3c2440-irq.c b/arch/arm/mach-s3c2410/s3c2440-irq.c index 39db0752d53b..1ba19b27ab05 100644 --- a/arch/arm/mach-s3c2410/s3c2440-irq.c +++ b/arch/arm/mach-s3c2410/s3c2440-irq.c | |||
@@ -42,10 +42,10 @@ | |||
42 | /* WDT/AC97 */ | 42 | /* WDT/AC97 */ |
43 | 43 | ||
44 | static void s3c_irq_demux_wdtac97(unsigned int irq, | 44 | static void s3c_irq_demux_wdtac97(unsigned int irq, |
45 | struct irqdesc *desc) | 45 | struct irq_desc *desc) |
46 | { | 46 | { |
47 | unsigned int subsrc, submsk; | 47 | unsigned int subsrc, submsk; |
48 | struct irqdesc *mydesc; | 48 | struct irq_desc *mydesc; |
49 | 49 | ||
50 | /* read the current pending interrupts, and the mask | 50 | /* read the current pending interrupts, and the mask |
51 | * for what it is available */ | 51 | * for what it is available */ |
@@ -90,7 +90,7 @@ s3c_irq_wdtac97_ack(unsigned int irqno) | |||
90 | s3c_irqsub_maskack(irqno, INTMSK_WDT, 3<<13); | 90 | s3c_irqsub_maskack(irqno, INTMSK_WDT, 3<<13); |
91 | } | 91 | } |
92 | 92 | ||
93 | static struct irqchip s3c_irq_wdtac97 = { | 93 | static struct irq_chip s3c_irq_wdtac97 = { |
94 | .mask = s3c_irq_wdtac97_mask, | 94 | .mask = s3c_irq_wdtac97_mask, |
95 | .unmask = s3c_irq_wdtac97_unmask, | 95 | .unmask = s3c_irq_wdtac97_unmask, |
96 | .ack = s3c_irq_wdtac97_ack, | 96 | .ack = s3c_irq_wdtac97_ack, |
@@ -105,12 +105,12 @@ static int s3c2440_irq_add(struct sys_device *sysdev) | |||
105 | /* add new chained handler for wdt, ac7 */ | 105 | /* add new chained handler for wdt, ac7 */ |
106 | 106 | ||
107 | set_irq_chip(IRQ_WDT, &s3c_irq_level_chip); | 107 | set_irq_chip(IRQ_WDT, &s3c_irq_level_chip); |
108 | set_irq_handler(IRQ_WDT, do_level_IRQ); | 108 | set_irq_handler(IRQ_WDT, handle_level_irq); |
109 | set_irq_chained_handler(IRQ_WDT, s3c_irq_demux_wdtac97); | 109 | set_irq_chained_handler(IRQ_WDT, s3c_irq_demux_wdtac97); |
110 | 110 | ||
111 | for (irqno = IRQ_S3C2440_WDT; irqno <= IRQ_S3C2440_AC97; irqno++) { | 111 | for (irqno = IRQ_S3C2440_WDT; irqno <= IRQ_S3C2440_AC97; irqno++) { |
112 | set_irq_chip(irqno, &s3c_irq_wdtac97); | 112 | set_irq_chip(irqno, &s3c_irq_wdtac97); |
113 | set_irq_handler(irqno, do_level_IRQ); | 113 | set_irq_handler(irqno, handle_level_irq); |
114 | set_irq_flags(irqno, IRQF_VALID); | 114 | set_irq_flags(irqno, IRQF_VALID); |
115 | } | 115 | } |
116 | 116 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2440.c b/arch/arm/mach-s3c2410/s3c2440.c index 0ab50f44f318..344eb27cca48 100644 --- a/arch/arm/mach-s3c2410/s3c2440.c +++ b/arch/arm/mach-s3c2410/s3c2440.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/serial_core.h> | ||
20 | #include <linux/sysdev.h> | 21 | #include <linux/sysdev.h> |
21 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
22 | 23 | ||
@@ -28,17 +29,9 @@ | |||
28 | #include <asm/io.h> | 29 | #include <asm/io.h> |
29 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
30 | 31 | ||
31 | #include <asm/arch/regs-clock.h> | ||
32 | #include <asm/arch/regs-serial.h> | ||
33 | #include <asm/arch/regs-gpio.h> | ||
34 | #include <asm/arch/regs-gpioj.h> | ||
35 | #include <asm/arch/regs-dsc.h> | ||
36 | |||
37 | #include "s3c2440.h" | 32 | #include "s3c2440.h" |
38 | #include "clock.h" | ||
39 | #include "devs.h" | 33 | #include "devs.h" |
40 | #include "cpu.h" | 34 | #include "cpu.h" |
41 | #include "pm.h" | ||
42 | 35 | ||
43 | static struct sys_device s3c2440_sysdev = { | 36 | static struct sys_device s3c2440_sysdev = { |
44 | .cls = &s3c2440_sysclass, | 37 | .cls = &s3c2440_sysclass, |
diff --git a/arch/arm/mach-s3c2410/s3c2440.h b/arch/arm/mach-s3c2410/s3c2440.h index 29cb6df65a48..dcd316076c59 100644 --- a/arch/arm/mach-s3c2410/s3c2440.h +++ b/arch/arm/mach-s3c2410/s3c2440.h | |||
@@ -8,28 +8,10 @@ | |||
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | ||
12 | * Modifications: | ||
13 | * 24-Aug-2004 BJD Start of S3C2440 CPU support | ||
14 | * 04-Nov-2004 BJD Added s3c2440_init_uarts() | ||
15 | * 04-Jan-2005 BJD Moved uart init to cpu code | ||
16 | * 10-Jan-2005 BJD Moved 2440 specific init here | ||
17 | * 14-Jan-2005 BJD Split the clock initialisation code | ||
18 | */ | 11 | */ |
19 | 12 | ||
20 | #ifdef CONFIG_CPU_S3C2440 | 13 | #ifdef CONFIG_CPU_S3C2440 |
21 | |||
22 | extern int s3c2440_init(void); | 14 | extern int s3c2440_init(void); |
23 | |||
24 | extern void s3c2440_map_io(struct map_desc *mach_desc, int size); | ||
25 | |||
26 | extern void s3c2440_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
27 | |||
28 | extern void s3c2440_init_clocks(int xtal); | ||
29 | |||
30 | #else | 15 | #else |
31 | #define s3c2440_init_clocks NULL | ||
32 | #define s3c2440_init_uarts NULL | ||
33 | #define s3c2440_map_io NULL | ||
34 | #define s3c2440_init NULL | 16 | #define s3c2440_init NULL |
35 | #endif | 17 | #endif |
diff --git a/arch/arm/mach-s3c2410/s3c2442-clock.c b/arch/arm/mach-s3c2410/s3c2442-clock.c index d9f54b5cab7f..4e292ca7c9be 100644 --- a/arch/arm/mach-s3c2410/s3c2442-clock.c +++ b/arch/arm/mach-s3c2410/s3c2442-clock.c | |||
@@ -117,18 +117,18 @@ static int s3c2442_clk_add(struct sys_device *sysdev) | |||
117 | { | 117 | { |
118 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); | 118 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); |
119 | unsigned long clkdivn; | 119 | unsigned long clkdivn; |
120 | struct clk *clk_h; | 120 | struct clk *clock_h; |
121 | struct clk *clk_p; | 121 | struct clk *clock_p; |
122 | struct clk *clk_upll; | 122 | struct clk *clock_upll; |
123 | 123 | ||
124 | printk("S3C2442: Clock Support, DVS %s\n", | 124 | printk("S3C2442: Clock Support, DVS %s\n", |
125 | (camdivn & S3C2440_CAMDIVN_DVSEN) ? "on" : "off"); | 125 | (camdivn & S3C2440_CAMDIVN_DVSEN) ? "on" : "off"); |
126 | 126 | ||
127 | clk_p = clk_get(NULL, "pclk"); | 127 | clock_p = clk_get(NULL, "pclk"); |
128 | clk_h = clk_get(NULL, "hclk"); | 128 | clock_h = clk_get(NULL, "hclk"); |
129 | clk_upll = clk_get(NULL, "upll"); | 129 | clock_upll = clk_get(NULL, "upll"); |
130 | 130 | ||
131 | if (IS_ERR(clk_p) || IS_ERR(clk_h) || IS_ERR(clk_upll)) { | 131 | if (IS_ERR(clock_p) || IS_ERR(clock_h) || IS_ERR(clock_upll)) { |
132 | printk(KERN_ERR "S3C2442: Failed to get parent clocks\n"); | 132 | printk(KERN_ERR "S3C2442: Failed to get parent clocks\n"); |
133 | return -EINVAL; | 133 | return -EINVAL; |
134 | } | 134 | } |
@@ -136,8 +136,8 @@ static int s3c2442_clk_add(struct sys_device *sysdev) | |||
136 | /* check rate of UPLL, and if it is near 96MHz, then change | 136 | /* check rate of UPLL, and if it is near 96MHz, then change |
137 | * to using half the UPLL rate for the system */ | 137 | * to using half the UPLL rate for the system */ |
138 | 138 | ||
139 | if (clk_get_rate(clk_upll) > (94 * MHZ)) { | 139 | if (clk_get_rate(clock_upll) > (94 * MHZ)) { |
140 | clk_usb_bus.rate = clk_get_rate(clk_upll) / 2; | 140 | clk_usb_bus.rate = clk_get_rate(clock_upll) / 2; |
141 | 141 | ||
142 | mutex_lock(&clocks_mutex); | 142 | mutex_lock(&clocks_mutex); |
143 | 143 | ||
@@ -148,8 +148,8 @@ static int s3c2442_clk_add(struct sys_device *sysdev) | |||
148 | mutex_unlock(&clocks_mutex); | 148 | mutex_unlock(&clocks_mutex); |
149 | } | 149 | } |
150 | 150 | ||
151 | s3c2442_clk_cam.parent = clk_h; | 151 | s3c2442_clk_cam.parent = clock_h; |
152 | s3c2442_clk_cam_upll.parent = clk_upll; | 152 | s3c2442_clk_cam_upll.parent = clock_upll; |
153 | 153 | ||
154 | s3c24xx_register_clock(&s3c2442_clk_cam); | 154 | s3c24xx_register_clock(&s3c2442_clk_cam); |
155 | s3c24xx_register_clock(&s3c2442_clk_cam_upll); | 155 | s3c24xx_register_clock(&s3c2442_clk_cam_upll); |
diff --git a/arch/arm/mach-s3c2410/s3c2442.c b/arch/arm/mach-s3c2410/s3c2442.c index 581667efd13c..428732ee68c4 100644 --- a/arch/arm/mach-s3c2410/s3c2442.c +++ b/arch/arm/mach-s3c2410/s3c2442.c | |||
@@ -16,29 +16,11 @@ | |||
16 | #include <linux/list.h> | 16 | #include <linux/list.h> |
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/serial_core.h> |
20 | #include <linux/sysdev.h> | 20 | #include <linux/sysdev.h> |
21 | #include <linux/clk.h> | ||
22 | |||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/mach/map.h> | ||
25 | #include <asm/mach/irq.h> | ||
26 | |||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/irq.h> | ||
30 | |||
31 | #include <asm/arch/regs-clock.h> | ||
32 | #include <asm/arch/regs-serial.h> | ||
33 | #include <asm/arch/regs-gpio.h> | ||
34 | #include <asm/arch/regs-gpioj.h> | ||
35 | #include <asm/arch/regs-dsc.h> | ||
36 | 21 | ||
37 | #include "s3c2442.h" | 22 | #include "s3c2442.h" |
38 | #include "clock.h" | ||
39 | #include "devs.h" | ||
40 | #include "cpu.h" | 23 | #include "cpu.h" |
41 | #include "pm.h" | ||
42 | 24 | ||
43 | static struct sys_device s3c2442_sysdev = { | 25 | static struct sys_device s3c2442_sysdev = { |
44 | .cls = &s3c2442_sysclass, | 26 | .cls = &s3c2442_sysclass, |
diff --git a/arch/arm/mach-s3c2410/s3c244x-irq.c b/arch/arm/mach-s3c2410/s3c244x-irq.c index 146f2109dd90..ede94636a72a 100644 --- a/arch/arm/mach-s3c2410/s3c244x-irq.c +++ b/arch/arm/mach-s3c2410/s3c244x-irq.c | |||
@@ -42,10 +42,10 @@ | |||
42 | /* camera irq */ | 42 | /* camera irq */ |
43 | 43 | ||
44 | static void s3c_irq_demux_cam(unsigned int irq, | 44 | static void s3c_irq_demux_cam(unsigned int irq, |
45 | struct irqdesc *desc) | 45 | struct irq_desc *desc) |
46 | { | 46 | { |
47 | unsigned int subsrc, submsk; | 47 | unsigned int subsrc, submsk; |
48 | struct irqdesc *mydesc; | 48 | struct irq_desc *mydesc; |
49 | 49 | ||
50 | /* read the current pending interrupts, and the mask | 50 | /* read the current pending interrupts, and the mask |
51 | * for what it is available */ | 51 | * for what it is available */ |
@@ -89,7 +89,7 @@ s3c_irq_cam_ack(unsigned int irqno) | |||
89 | s3c_irqsub_maskack(irqno, INTMSK_CAM, 3<<11); | 89 | s3c_irqsub_maskack(irqno, INTMSK_CAM, 3<<11); |
90 | } | 90 | } |
91 | 91 | ||
92 | static struct irqchip s3c_irq_cam = { | 92 | static struct irq_chip s3c_irq_cam = { |
93 | .mask = s3c_irq_cam_mask, | 93 | .mask = s3c_irq_cam_mask, |
94 | .unmask = s3c_irq_cam_unmask, | 94 | .unmask = s3c_irq_cam_unmask, |
95 | .ack = s3c_irq_cam_ack, | 95 | .ack = s3c_irq_cam_ack, |
@@ -100,18 +100,18 @@ static int s3c244x_irq_add(struct sys_device *sysdev) | |||
100 | unsigned int irqno; | 100 | unsigned int irqno; |
101 | 101 | ||
102 | set_irq_chip(IRQ_NFCON, &s3c_irq_level_chip); | 102 | set_irq_chip(IRQ_NFCON, &s3c_irq_level_chip); |
103 | set_irq_handler(IRQ_NFCON, do_level_IRQ); | 103 | set_irq_handler(IRQ_NFCON, handle_level_irq); |
104 | set_irq_flags(IRQ_NFCON, IRQF_VALID); | 104 | set_irq_flags(IRQ_NFCON, IRQF_VALID); |
105 | 105 | ||
106 | /* add chained handler for camera */ | 106 | /* add chained handler for camera */ |
107 | 107 | ||
108 | set_irq_chip(IRQ_CAM, &s3c_irq_level_chip); | 108 | set_irq_chip(IRQ_CAM, &s3c_irq_level_chip); |
109 | set_irq_handler(IRQ_CAM, do_level_IRQ); | 109 | set_irq_handler(IRQ_CAM, handle_level_irq); |
110 | set_irq_chained_handler(IRQ_CAM, s3c_irq_demux_cam); | 110 | set_irq_chained_handler(IRQ_CAM, s3c_irq_demux_cam); |
111 | 111 | ||
112 | for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) { | 112 | for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) { |
113 | set_irq_chip(irqno, &s3c_irq_cam); | 113 | set_irq_chip(irqno, &s3c_irq_cam); |
114 | set_irq_handler(irqno, do_level_IRQ); | 114 | set_irq_handler(irqno, handle_level_irq); |
115 | set_irq_flags(irqno, IRQF_VALID); | 115 | set_irq_flags(irqno, IRQF_VALID); |
116 | } | 116 | } |
117 | 117 | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x.c b/arch/arm/mach-s3c2410/s3c244x.c index 9a2258270de9..23c7494ad10d 100644 --- a/arch/arm/mach-s3c2410/s3c244x.c +++ b/arch/arm/mach-s3c2410/s3c244x.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/list.h> | 16 | #include <linux/list.h> |
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/serial_core.h> | ||
19 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
20 | #include <linux/sysdev.h> | 21 | #include <linux/sysdev.h> |
21 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
@@ -47,8 +48,6 @@ static struct map_desc s3c244x_iodesc[] __initdata = { | |||
47 | IODESC_ENT(TIMER), | 48 | IODESC_ENT(TIMER), |
48 | IODESC_ENT(WATCHDOG), | 49 | IODESC_ENT(WATCHDOG), |
49 | IODESC_ENT(LCD), | 50 | IODESC_ENT(LCD), |
50 | IODESC_ENT(ADC), | ||
51 | IODESC_ENT(USBHOST), | ||
52 | }; | 51 | }; |
53 | 52 | ||
54 | /* uart initialisation */ | 53 | /* uart initialisation */ |
diff --git a/arch/arm/mach-s3c2410/usb-simtec.h b/arch/arm/mach-s3c2410/usb-simtec.h index d8aa6127dedb..03842ede9e71 100644 --- a/arch/arm/mach-s3c2410/usb-simtec.h +++ b/arch/arm/mach-s3c2410/usb-simtec.h | |||
@@ -10,9 +10,6 @@ | |||
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | * | ||
14 | * Modifications: | ||
15 | * 20-Aug-2004 BJD Created | ||
16 | */ | 13 | */ |
17 | 14 | ||
18 | extern int usb_simtec_init(void); | 15 | extern int usb_simtec_init(void); |
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 4575f316e141..e510295c2580 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
21 | 21 | ||
22 | #include <asm/div64.h> | 22 | #include <asm/div64.h> |
23 | #include <asm/cnt32_to_63.h> | ||
23 | #include <asm/hardware.h> | 24 | #include <asm/hardware.h> |
24 | #include <asm/system.h> | 25 | #include <asm/system.h> |
25 | #include <asm/pgtable.h> | 26 | #include <asm/pgtable.h> |
@@ -118,15 +119,21 @@ EXPORT_SYMBOL(cpufreq_get); | |||
118 | 119 | ||
119 | /* | 120 | /* |
120 | * This is the SA11x0 sched_clock implementation. This has | 121 | * This is the SA11x0 sched_clock implementation. This has |
121 | * a resolution of 271ns, and a maximum value of 1165s. | 122 | * a resolution of 271ns, and a maximum value of 32025597s (370 days). |
123 | * | ||
124 | * The return value is guaranteed to be monotonic in that range as | ||
125 | * long as there is always less than 582 seconds between successive | ||
126 | * calls to this function. | ||
127 | * | ||
122 | * ( * 1E9 / 3686400 => * 78125 / 288) | 128 | * ( * 1E9 / 3686400 => * 78125 / 288) |
123 | */ | 129 | */ |
124 | unsigned long long sched_clock(void) | 130 | unsigned long long sched_clock(void) |
125 | { | 131 | { |
126 | unsigned long long v; | 132 | unsigned long long v = cnt32_to_63(OSCR); |
127 | 133 | ||
128 | v = (unsigned long long)OSCR * 78125; | 134 | /* the <<1 gets rid of the cnt_32_to_63 top bit saving on a bic insn */ |
129 | do_div(v, 288); | 135 | v *= 78125<<1; |
136 | do_div(v, 288<<1); | ||
130 | 137 | ||
131 | return v; | 138 | return v; |
132 | } | 139 | } |
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c index fa6dc71bd6ad..b034ad69a324 100644 --- a/arch/arm/mach-sa1100/h3600.c +++ b/arch/arm/mach-sa1100/h3600.c | |||
@@ -702,7 +702,7 @@ static u32 gpio_irq_mask[] = { | |||
702 | GPIO2_SD_CON_SLT, | 702 | GPIO2_SD_CON_SLT, |
703 | }; | 703 | }; |
704 | 704 | ||
705 | static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc) | 705 | static void h3800_IRQ_demux(unsigned int irq, struct irq_desc *desc) |
706 | { | 706 | { |
707 | int i; | 707 | int i; |
708 | 708 | ||
@@ -719,14 +719,14 @@ static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc) | |||
719 | if (0) printk("%s KPIO 0x%08X\n", __FUNCTION__, irq); | 719 | if (0) printk("%s KPIO 0x%08X\n", __FUNCTION__, irq); |
720 | for (j = 0; j < H3800_KPIO_IRQ_COUNT; j++) | 720 | for (j = 0; j < H3800_KPIO_IRQ_COUNT; j++) |
721 | if (irq & kpio_irq_mask[j]) | 721 | if (irq & kpio_irq_mask[j]) |
722 | do_edge_IRQ(H3800_KPIO_IRQ_COUNT + j, irq_desc + H3800_KPIO_IRQ_COUNT + j); | 722 | handle_edge_irq(H3800_KPIO_IRQ_COUNT + j, irq_desc + H3800_KPIO_IRQ_COUNT + j); |
723 | 723 | ||
724 | /* GPIO2 */ | 724 | /* GPIO2 */ |
725 | irq = H3800_ASIC2_GPIINTFLAG; | 725 | irq = H3800_ASIC2_GPIINTFLAG; |
726 | if (0) printk("%s GPIO 0x%08X\n", __FUNCTION__, irq); | 726 | if (0) printk("%s GPIO 0x%08X\n", __FUNCTION__, irq); |
727 | for (j = 0; j < H3800_GPIO_IRQ_COUNT; j++) | 727 | for (j = 0; j < H3800_GPIO_IRQ_COUNT; j++) |
728 | if (irq & gpio_irq_mask[j]) | 728 | if (irq & gpio_irq_mask[j]) |
729 | do_edge_IRQ(H3800_GPIO_IRQ_COUNT + j, irq_desc + H3800_GPIO_IRQ_COUNT + j); | 729 | handle_edge_irq(H3800_GPIO_IRQ_COUNT + j, irq_desc + H3800_GPIO_IRQ_COUNT + j); |
730 | } | 730 | } |
731 | 731 | ||
732 | if (i >= MAX_ASIC_ISR_LOOPS) | 732 | if (i >= MAX_ASIC_ISR_LOOPS) |
diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c index f4c6322ca33e..5642aeca079e 100644 --- a/arch/arm/mach-sa1100/irq.c +++ b/arch/arm/mach-sa1100/irq.c | |||
@@ -110,7 +110,7 @@ static struct irq_chip sa1100_low_gpio_chip = { | |||
110 | * and call the handler. | 110 | * and call the handler. |
111 | */ | 111 | */ |
112 | static void | 112 | static void |
113 | sa1100_high_gpio_handler(unsigned int irq, struct irqdesc *desc) | 113 | sa1100_high_gpio_handler(unsigned int irq, struct irq_desc *desc) |
114 | { | 114 | { |
115 | unsigned int mask; | 115 | unsigned int mask; |
116 | 116 | ||
@@ -327,19 +327,19 @@ void __init sa1100_init_irq(void) | |||
327 | 327 | ||
328 | for (irq = 0; irq <= 10; irq++) { | 328 | for (irq = 0; irq <= 10; irq++) { |
329 | set_irq_chip(irq, &sa1100_low_gpio_chip); | 329 | set_irq_chip(irq, &sa1100_low_gpio_chip); |
330 | set_irq_handler(irq, do_edge_IRQ); | 330 | set_irq_handler(irq, handle_edge_irq); |
331 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 331 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
332 | } | 332 | } |
333 | 333 | ||
334 | for (irq = 12; irq <= 31; irq++) { | 334 | for (irq = 12; irq <= 31; irq++) { |
335 | set_irq_chip(irq, &sa1100_normal_chip); | 335 | set_irq_chip(irq, &sa1100_normal_chip); |
336 | set_irq_handler(irq, do_level_IRQ); | 336 | set_irq_handler(irq, handle_level_irq); |
337 | set_irq_flags(irq, IRQF_VALID); | 337 | set_irq_flags(irq, IRQF_VALID); |
338 | } | 338 | } |
339 | 339 | ||
340 | for (irq = 32; irq <= 48; irq++) { | 340 | for (irq = 32; irq <= 48; irq++) { |
341 | set_irq_chip(irq, &sa1100_high_gpio_chip); | 341 | set_irq_chip(irq, &sa1100_high_gpio_chip); |
342 | set_irq_handler(irq, do_edge_IRQ); | 342 | set_irq_handler(irq, handle_edge_irq); |
343 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 343 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
344 | } | 344 | } |
345 | 345 | ||
diff --git a/arch/arm/mach-sa1100/jornada720.c b/arch/arm/mach-sa1100/jornada720.c index 17f5a43acdb7..54ecdaa373d6 100644 --- a/arch/arm/mach-sa1100/jornada720.c +++ b/arch/arm/mach-sa1100/jornada720.c | |||
@@ -1,5 +1,15 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-sa1100/jornada720.c | 2 | * linux/arch/arm/mach-sa1100/jornada720.c |
3 | * | ||
4 | * HP Jornada720 init code | ||
5 | * | ||
6 | * Copyright (C) 2006 Filip Zyzniewski <filip.zyzniewski@tefnet.pl> | ||
7 | * Copyright (C) 2005 Michael Gernoth <michael@gernoth.net> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | * | ||
3 | */ | 13 | */ |
4 | 14 | ||
5 | #include <linux/init.h> | 15 | #include <linux/init.h> |
@@ -10,13 +20,13 @@ | |||
10 | #include <linux/ioport.h> | 20 | #include <linux/ioport.h> |
11 | #include <linux/mtd/mtd.h> | 21 | #include <linux/mtd/mtd.h> |
12 | #include <linux/mtd/partitions.h> | 22 | #include <linux/mtd/partitions.h> |
23 | #include <video/s1d13xxxfb.h> | ||
13 | 24 | ||
14 | #include <asm/hardware.h> | 25 | #include <asm/hardware.h> |
15 | #include <asm/hardware/sa1111.h> | 26 | #include <asm/hardware/sa1111.h> |
16 | #include <asm/irq.h> | 27 | #include <asm/irq.h> |
17 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
18 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
19 | |||
20 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/flash.h> | 31 | #include <asm/mach/flash.h> |
22 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
@@ -24,13 +34,170 @@ | |||
24 | 34 | ||
25 | #include "generic.h" | 35 | #include "generic.h" |
26 | 36 | ||
37 | /* | ||
38 | * HP Documentation referred in this file: | ||
39 | * http://www.jlime.com/downloads/development/docs/jornada7xx/jornada720.txt | ||
40 | */ | ||
41 | |||
42 | /* line 110 of HP's doc */ | ||
43 | #define TUCR_VAL 0x20000400 | ||
44 | |||
45 | /* memory space (line 52 of HP's doc) */ | ||
46 | #define SA1111REGSTART 0x40000000 | ||
47 | #define SA1111REGLEN 0x00001fff | ||
48 | #define EPSONREGSTART 0x48000000 | ||
49 | #define EPSONREGLEN 0x00100000 | ||
50 | #define EPSONFBSTART 0x48200000 | ||
51 | /* 512kB framebuffer */ | ||
52 | #define EPSONFBLEN 512*1024 | ||
53 | |||
54 | static struct s1d13xxxfb_regval s1d13xxxfb_initregs[] = { | ||
55 | /* line 344 of HP's doc */ | ||
56 | {0x0001,0x00}, // Miscellaneous Register | ||
57 | {0x01FC,0x00}, // Display Mode Register | ||
58 | {0x0004,0x00}, // General IO Pins Configuration Register 0 | ||
59 | {0x0005,0x00}, // General IO Pins Configuration Register 1 | ||
60 | {0x0008,0x00}, // General IO Pins Control Register 0 | ||
61 | {0x0009,0x00}, // General IO Pins Control Register 1 | ||
62 | {0x0010,0x01}, // Memory Clock Configuration Register | ||
63 | {0x0014,0x11}, // LCD Pixel Clock Configuration Register | ||
64 | {0x0018,0x01}, // CRT/TV Pixel Clock Configuration Register | ||
65 | {0x001C,0x01}, // MediaPlug Clock Configuration Register | ||
66 | {0x001E,0x01}, // CPU To Memory Wait State Select Register | ||
67 | {0x0020,0x00}, // Memory Configuration Register | ||
68 | {0x0021,0x45}, // DRAM Refresh Rate Register | ||
69 | {0x002A,0x01}, // DRAM Timings Control Register 0 | ||
70 | {0x002B,0x03}, // DRAM Timings Control Register 1 | ||
71 | {0x0030,0x1c}, // Panel Type Register | ||
72 | {0x0031,0x00}, // MOD Rate Register | ||
73 | {0x0032,0x4F}, // LCD Horizontal Display Width Register | ||
74 | {0x0034,0x07}, // LCD Horizontal Non-Display Period Register | ||
75 | {0x0035,0x01}, // TFT FPLINE Start Position Register | ||
76 | {0x0036,0x0B}, // TFT FPLINE Pulse Width Register | ||
77 | {0x0038,0xEF}, // LCD Vertical Display Height Register 0 | ||
78 | {0x0039,0x00}, // LCD Vertical Display Height Register 1 | ||
79 | {0x003A,0x13}, // LCD Vertical Non-Display Period Register | ||
80 | {0x003B,0x0B}, // TFT FPFRAME Start Position Register | ||
81 | {0x003C,0x01}, // TFT FPFRAME Pulse Width Register | ||
82 | {0x0040,0x05}, // LCD Display Mode Register (2:4bpp,3:8bpp,5:16bpp) | ||
83 | {0x0041,0x00}, // LCD Miscellaneous Register | ||
84 | {0x0042,0x00}, // LCD Display Start Address Register 0 | ||
85 | {0x0043,0x00}, // LCD Display Start Address Register 1 | ||
86 | {0x0044,0x00}, // LCD Display Start Address Register 2 | ||
87 | {0x0046,0x80}, // LCD Memory Address Offset Register 0 | ||
88 | {0x0047,0x02}, // LCD Memory Address Offset Register 1 | ||
89 | {0x0048,0x00}, // LCD Pixel Panning Register | ||
90 | {0x004A,0x00}, // LCD Display FIFO High Threshold Control Register | ||
91 | {0x004B,0x00}, // LCD Display FIFO Low Threshold Control Register | ||
92 | {0x0050,0x4F}, // CRT/TV Horizontal Display Width Register | ||
93 | {0x0052,0x13}, // CRT/TV Horizontal Non-Display Period Register | ||
94 | {0x0053,0x01}, // CRT/TV HRTC Start Position Register | ||
95 | {0x0054,0x0B}, // CRT/TV HRTC Pulse Width Register | ||
96 | {0x0056,0xDF}, // CRT/TV Vertical Display Height Register 0 | ||
97 | {0x0057,0x01}, // CRT/TV Vertical Display Height Register 1 | ||
98 | {0x0058,0x2B}, // CRT/TV Vertical Non-Display Period Register | ||
99 | {0x0059,0x09}, // CRT/TV VRTC Start Position Register | ||
100 | {0x005A,0x01}, // CRT/TV VRTC Pulse Width Register | ||
101 | {0x005B,0x10}, // TV Output Control Register | ||
102 | {0x0060,0x03}, // CRT/TV Display Mode Register (2:4bpp,3:8bpp,5:16bpp) | ||
103 | {0x0062,0x00}, // CRT/TV Display Start Address Register 0 | ||
104 | {0x0063,0x00}, // CRT/TV Display Start Address Register 1 | ||
105 | {0x0064,0x00}, // CRT/TV Display Start Address Register 2 | ||
106 | {0x0066,0x40}, // CRT/TV Memory Address Offset Register 0 | ||
107 | {0x0067,0x01}, // CRT/TV Memory Address Offset Register 1 | ||
108 | {0x0068,0x00}, // CRT/TV Pixel Panning Register | ||
109 | {0x006A,0x00}, // CRT/TV Display FIFO High Threshold Control Register | ||
110 | {0x006B,0x00}, // CRT/TV Display FIFO Low Threshold Control Register | ||
111 | {0x0070,0x00}, // LCD Ink/Cursor Control Register | ||
112 | {0x0071,0x01}, // LCD Ink/Cursor Start Address Register | ||
113 | {0x0072,0x00}, // LCD Cursor X Position Register 0 | ||
114 | {0x0073,0x00}, // LCD Cursor X Position Register 1 | ||
115 | {0x0074,0x00}, // LCD Cursor Y Position Register 0 | ||
116 | {0x0075,0x00}, // LCD Cursor Y Position Register 1 | ||
117 | {0x0076,0x00}, // LCD Ink/Cursor Blue Color 0 Register | ||
118 | {0x0077,0x00}, // LCD Ink/Cursor Green Color 0 Register | ||
119 | {0x0078,0x00}, // LCD Ink/Cursor Red Color 0 Register | ||
120 | {0x007A,0x1F}, // LCD Ink/Cursor Blue Color 1 Register | ||
121 | {0x007B,0x3F}, // LCD Ink/Cursor Green Color 1 Register | ||
122 | {0x007C,0x1F}, // LCD Ink/Cursor Red Color 1 Register | ||
123 | {0x007E,0x00}, // LCD Ink/Cursor FIFO Threshold Register | ||
124 | {0x0080,0x00}, // CRT/TV Ink/Cursor Control Register | ||
125 | {0x0081,0x01}, // CRT/TV Ink/Cursor Start Address Register | ||
126 | {0x0082,0x00}, // CRT/TV Cursor X Position Register 0 | ||
127 | {0x0083,0x00}, // CRT/TV Cursor X Position Register 1 | ||
128 | {0x0084,0x00}, // CRT/TV Cursor Y Position Register 0 | ||
129 | {0x0085,0x00}, // CRT/TV Cursor Y Position Register 1 | ||
130 | {0x0086,0x00}, // CRT/TV Ink/Cursor Blue Color 0 Register | ||
131 | {0x0087,0x00}, // CRT/TV Ink/Cursor Green Color 0 Register | ||
132 | {0x0088,0x00}, // CRT/TV Ink/Cursor Red Color 0 Register | ||
133 | {0x008A,0x1F}, // CRT/TV Ink/Cursor Blue Color 1 Register | ||
134 | {0x008B,0x3F}, // CRT/TV Ink/Cursor Green Color 1 Register | ||
135 | {0x008C,0x1F}, // CRT/TV Ink/Cursor Red Color 1 Register | ||
136 | {0x008E,0x00}, // CRT/TV Ink/Cursor FIFO Threshold Register | ||
137 | {0x0100,0x00}, // BitBlt Control Register 0 | ||
138 | {0x0101,0x00}, // BitBlt Control Register 1 | ||
139 | {0x0102,0x00}, // BitBlt ROP Code/Color Expansion Register | ||
140 | {0x0103,0x00}, // BitBlt Operation Register | ||
141 | {0x0104,0x00}, // BitBlt Source Start Address Register 0 | ||
142 | {0x0105,0x00}, // BitBlt Source Start Address Register 1 | ||
143 | {0x0106,0x00}, // BitBlt Source Start Address Register 2 | ||
144 | {0x0108,0x00}, // BitBlt Destination Start Address Register 0 | ||
145 | {0x0109,0x00}, // BitBlt Destination Start Address Register 1 | ||
146 | {0x010A,0x00}, // BitBlt Destination Start Address Register 2 | ||
147 | {0x010C,0x00}, // BitBlt Memory Address Offset Register 0 | ||
148 | {0x010D,0x00}, // BitBlt Memory Address Offset Register 1 | ||
149 | {0x0110,0x00}, // BitBlt Width Register 0 | ||
150 | {0x0111,0x00}, // BitBlt Width Register 1 | ||
151 | {0x0112,0x00}, // BitBlt Height Register 0 | ||
152 | {0x0113,0x00}, // BitBlt Height Register 1 | ||
153 | {0x0114,0x00}, // BitBlt Background Color Register 0 | ||
154 | {0x0115,0x00}, // BitBlt Background Color Register 1 | ||
155 | {0x0118,0x00}, // BitBlt Foreground Color Register 0 | ||
156 | {0x0119,0x00}, // BitBlt Foreground Color Register 1 | ||
157 | {0x01E0,0x00}, // Look-Up Table Mode Register | ||
158 | {0x01E2,0x00}, // Look-Up Table Address Register | ||
159 | /* not sure, wouldn't like to mess with the driver */ | ||
160 | {0x01E4,0x00}, // Look-Up Table Data Register | ||
161 | /* jornada doc says 0x00, but I trust the driver */ | ||
162 | {0x01F0,0x10}, // Power Save Configuration Register | ||
163 | {0x01F1,0x00}, // Power Save Status Register | ||
164 | {0x01F4,0x00}, // CPU-to-Memory Access Watchdog Timer Register | ||
165 | {0x01FC,0x01}, // Display Mode Register(0x01:LCD, 0x02:CRT, 0x03:LCD&CRT) | ||
166 | }; | ||
167 | |||
168 | static struct s1d13xxxfb_pdata s1d13xxxfb_data = { | ||
169 | .initregs = s1d13xxxfb_initregs, | ||
170 | .initregssize = ARRAY_SIZE(s1d13xxxfb_initregs), | ||
171 | .platform_init_video = NULL | ||
172 | }; | ||
27 | 173 | ||
28 | #define JORTUCR_VAL 0x20000400 | 174 | static struct resource s1d13xxxfb_resources[] = { |
175 | [0] = { | ||
176 | .start = EPSONFBSTART, | ||
177 | .end = EPSONFBSTART + EPSONFBLEN, | ||
178 | .flags = IORESOURCE_MEM, | ||
179 | }, | ||
180 | [1] = { | ||
181 | .start = EPSONREGSTART, | ||
182 | .end = EPSONREGSTART + EPSONREGLEN, | ||
183 | .flags = IORESOURCE_MEM, | ||
184 | } | ||
185 | }; | ||
186 | |||
187 | static struct platform_device s1d13xxxfb_device = { | ||
188 | .name = S1D_DEVICENAME, | ||
189 | .id = 0, | ||
190 | .dev = { | ||
191 | .platform_data = &s1d13xxxfb_data, | ||
192 | }, | ||
193 | .num_resources = ARRAY_SIZE(s1d13xxxfb_resources), | ||
194 | .resource = s1d13xxxfb_resources, | ||
195 | }; | ||
29 | 196 | ||
30 | static struct resource sa1111_resources[] = { | 197 | static struct resource sa1111_resources[] = { |
31 | [0] = { | 198 | [0] = { |
32 | .start = 0x40000000, | 199 | .start = SA1111REGSTART, |
33 | .end = 0x40001fff, | 200 | .end = SA1111REGSTART + SA1111REGLEN, |
34 | .flags = IORESOURCE_MEM, | 201 | .flags = IORESOURCE_MEM, |
35 | }, | 202 | }, |
36 | [1] = { | 203 | [1] = { |
@@ -53,18 +220,32 @@ static struct platform_device sa1111_device = { | |||
53 | .resource = sa1111_resources, | 220 | .resource = sa1111_resources, |
54 | }; | 221 | }; |
55 | 222 | ||
223 | static struct platform_device jornada720_mcu_device = { | ||
224 | .name = "jornada720_mcu", | ||
225 | .id = -1, | ||
226 | }; | ||
227 | |||
56 | static struct platform_device *devices[] __initdata = { | 228 | static struct platform_device *devices[] __initdata = { |
57 | &sa1111_device, | 229 | &sa1111_device, |
230 | &jornada720_mcu_device, | ||
231 | &s1d13xxxfb_device, | ||
58 | }; | 232 | }; |
59 | 233 | ||
234 | /* a stub for now, we theoretically cannot suspend without a flashboard */ | ||
235 | int pm_suspend(suspend_state_t state) | ||
236 | { | ||
237 | return -1; | ||
238 | } | ||
239 | |||
60 | static int __init jornada720_init(void) | 240 | static int __init jornada720_init(void) |
61 | { | 241 | { |
62 | int ret = -ENODEV; | 242 | int ret = -ENODEV; |
63 | 243 | ||
64 | if (machine_is_jornada720()) { | 244 | if (machine_is_jornada720()) { |
65 | GPDR |= GPIO_GPIO20; | 245 | GPDR |= GPIO_GPIO20; |
66 | TUCR = JORTUCR_VAL; /* set the oscillator out to the SA-1101 */ | 246 | /* oscillator setup (line 116 of HP's doc) */ |
67 | 247 | TUCR = TUCR_VAL; | |
248 | /* resetting SA1111 (line 118 of HP's doc) */ | ||
68 | GPSR = GPIO_GPIO20; | 249 | GPSR = GPIO_GPIO20; |
69 | udelay(1); | 250 | udelay(1); |
70 | GPCR = GPIO_GPIO20; | 251 | GPCR = GPIO_GPIO20; |
@@ -72,10 +253,6 @@ static int __init jornada720_init(void) | |||
72 | GPSR = GPIO_GPIO20; | 253 | GPSR = GPIO_GPIO20; |
73 | udelay(20); | 254 | udelay(20); |
74 | 255 | ||
75 | /* LDD4 is speaker, LDD3 is microphone */ | ||
76 | PPSR &= ~(PPC_LDD3 | PPC_LDD4); | ||
77 | PPDR |= PPC_LDD3 | PPC_LDD4; | ||
78 | |||
79 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); | 256 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); |
80 | } | 257 | } |
81 | return ret; | 258 | return ret; |
@@ -85,19 +262,19 @@ arch_initcall(jornada720_init); | |||
85 | 262 | ||
86 | static struct map_desc jornada720_io_desc[] __initdata = { | 263 | static struct map_desc jornada720_io_desc[] __initdata = { |
87 | { /* Epson registers */ | 264 | { /* Epson registers */ |
88 | .virtual = 0xf0000000, | 265 | .virtual = 0xf0000000, |
89 | .pfn = __phys_to_pfn(0x48000000), | 266 | .pfn = __phys_to_pfn(EPSONREGSTART), |
90 | .length = 0x00100000, | 267 | .length = EPSONREGLEN, |
91 | .type = MT_DEVICE | 268 | .type = MT_DEVICE |
92 | }, { /* Epson frame buffer */ | 269 | }, { /* Epson frame buffer */ |
93 | .virtual = 0xf1000000, | 270 | .virtual = 0xf1000000, |
94 | .pfn = __phys_to_pfn(0x48200000), | 271 | .pfn = __phys_to_pfn(EPSONFBSTART), |
95 | .length = 0x00100000, | 272 | .length = EPSONFBLEN, |
96 | .type = MT_DEVICE | 273 | .type = MT_DEVICE |
97 | }, { /* SA-1111 */ | 274 | }, { /* SA-1111 */ |
98 | .virtual = 0xf4000000, | 275 | .virtual = 0xf4000000, |
99 | .pfn = __phys_to_pfn(0x40000000), | 276 | .pfn = __phys_to_pfn(SA1111REGSTART), |
100 | .length = 0x00100000, | 277 | .length = SA1111REGLEN, |
101 | .type = MT_DEVICE | 278 | .type = MT_DEVICE |
102 | } | 279 | } |
103 | }; | 280 | }; |
@@ -106,7 +283,7 @@ static void __init jornada720_map_io(void) | |||
106 | { | 283 | { |
107 | sa1100_map_io(); | 284 | sa1100_map_io(); |
108 | iotable_init(jornada720_io_desc, ARRAY_SIZE(jornada720_io_desc)); | 285 | iotable_init(jornada720_io_desc, ARRAY_SIZE(jornada720_io_desc)); |
109 | 286 | ||
110 | sa1100_register_uart(0, 3); | 287 | sa1100_register_uart(0, 3); |
111 | sa1100_register_uart(1, 1); | 288 | sa1100_register_uart(1, 1); |
112 | } | 289 | } |
@@ -116,7 +293,7 @@ static struct mtd_partition jornada720_partitions[] = { | |||
116 | .name = "JORNADA720 boot firmware", | 293 | .name = "JORNADA720 boot firmware", |
117 | .size = 0x00040000, | 294 | .size = 0x00040000, |
118 | .offset = 0, | 295 | .offset = 0, |
119 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | 296 | .mask_flags = MTD_WRITEABLE, /* force read-only */ |
120 | }, { | 297 | }, { |
121 | .name = "JORNADA720 kernel", | 298 | .name = "JORNADA720 kernel", |
122 | .size = 0x000c0000, | 299 | .size = 0x000c0000, |
@@ -139,7 +316,7 @@ static struct mtd_partition jornada720_partitions[] = { | |||
139 | .offset = 0x00540000, | 316 | .offset = 0x00540000, |
140 | }, { | 317 | }, { |
141 | .name = "JORNADA720 usr local", | 318 | .name = "JORNADA720 usr local", |
142 | .size = 0, /* will expand to the end of the flash */ | 319 | .size = 0, /* will expand to the end of the flash */ |
143 | .offset = 0x00d00000, | 320 | .offset = 0x00d00000, |
144 | } | 321 | } |
145 | }; | 322 | }; |
@@ -147,10 +324,12 @@ static struct mtd_partition jornada720_partitions[] = { | |||
147 | static void jornada720_set_vpp(int vpp) | 324 | static void jornada720_set_vpp(int vpp) |
148 | { | 325 | { |
149 | if (vpp) | 326 | if (vpp) |
150 | PPSR |= 0x80; | 327 | /* enabling flash write (line 470 of HP's doc) */ |
328 | PPSR |= PPC_LDD7; | ||
151 | else | 329 | else |
152 | PPSR &= ~0x80; | 330 | /* disabling flash write (line 470 of HP's doc) */ |
153 | PPDR |= 0x80; | 331 | PPSR &= ~PPC_LDD7; |
332 | PPDR |= PPC_LDD7; | ||
154 | } | 333 | } |
155 | 334 | ||
156 | static struct flash_platform_data jornada720_flash_data = { | 335 | static struct flash_platform_data jornada720_flash_data = { |
diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c index 354d5e91da59..075d4d1d63be 100644 --- a/arch/arm/mach-sa1100/neponset.c +++ b/arch/arm/mach-sa1100/neponset.c | |||
@@ -29,12 +29,12 @@ | |||
29 | * is rather unfortunate. | 29 | * is rather unfortunate. |
30 | */ | 30 | */ |
31 | static void | 31 | static void |
32 | neponset_irq_handler(unsigned int irq, struct irqdesc *desc) | 32 | neponset_irq_handler(unsigned int irq, struct irq_desc *desc) |
33 | { | 33 | { |
34 | unsigned int irr; | 34 | unsigned int irr; |
35 | 35 | ||
36 | while (1) { | 36 | while (1) { |
37 | struct irqdesc *d; | 37 | struct irq_desc *d; |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * Acknowledge the parent IRQ. | 40 | * Acknowledge the parent IRQ. |
@@ -168,9 +168,9 @@ static int neponset_probe(struct platform_device *dev) | |||
168 | * Setup other Neponset IRQs. SA1111 will be done by the | 168 | * Setup other Neponset IRQs. SA1111 will be done by the |
169 | * generic SA1111 code. | 169 | * generic SA1111 code. |
170 | */ | 170 | */ |
171 | set_irq_handler(IRQ_NEPONSET_SMC9196, do_simple_IRQ); | 171 | set_irq_handler(IRQ_NEPONSET_SMC9196, handle_simple_irq); |
172 | set_irq_flags(IRQ_NEPONSET_SMC9196, IRQF_VALID | IRQF_PROBE); | 172 | set_irq_flags(IRQ_NEPONSET_SMC9196, IRQF_VALID | IRQF_PROBE); |
173 | set_irq_handler(IRQ_NEPONSET_USAR, do_simple_IRQ); | 173 | set_irq_handler(IRQ_NEPONSET_USAR, handle_simple_irq); |
174 | set_irq_flags(IRQ_NEPONSET_USAR, IRQF_VALID | IRQF_PROBE); | 174 | set_irq_flags(IRQ_NEPONSET_USAR, IRQF_VALID | IRQF_PROBE); |
175 | 175 | ||
176 | /* | 176 | /* |
diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c index 4284bd6f7a1f..29c89f9eb2ce 100644 --- a/arch/arm/mach-sa1100/time.c +++ b/arch/arm/mach-sa1100/time.c | |||
@@ -118,6 +118,7 @@ static struct irqaction sa1100_timer_irq = { | |||
118 | static void __init sa1100_timer_init(void) | 118 | static void __init sa1100_timer_init(void) |
119 | { | 119 | { |
120 | struct timespec tv; | 120 | struct timespec tv; |
121 | unsigned long flags; | ||
121 | 122 | ||
122 | set_rtc = sa1100_set_rtc; | 123 | set_rtc = sa1100_set_rtc; |
123 | 124 | ||
@@ -126,12 +127,12 @@ static void __init sa1100_timer_init(void) | |||
126 | do_settimeofday(&tv); | 127 | do_settimeofday(&tv); |
127 | 128 | ||
128 | OIER = 0; /* disable any timer interrupts */ | 129 | OIER = 0; /* disable any timer interrupts */ |
129 | OSCR = LATCH*2; /* push OSCR out of the way */ | ||
130 | OSMR0 = LATCH; /* set initial match */ | ||
131 | OSSR = 0xf; /* clear status on all timers */ | 130 | OSSR = 0xf; /* clear status on all timers */ |
132 | setup_irq(IRQ_OST0, &sa1100_timer_irq); | 131 | setup_irq(IRQ_OST0, &sa1100_timer_irq); |
132 | local_irq_save(flags); | ||
133 | OIER = OIER_E0; /* enable match on timer 0 to cause interrupts */ | 133 | OIER = OIER_E0; /* enable match on timer 0 to cause interrupts */ |
134 | OSCR = 0; /* initialize free-running timer */ | 134 | OSMR0 = OSCR + LATCH; /* set initial match */ |
135 | local_irq_restore(flags); | ||
135 | } | 136 | } |
136 | 137 | ||
137 | #ifdef CONFIG_NO_IDLE_HZ | 138 | #ifdef CONFIG_NO_IDLE_HZ |
diff --git a/arch/arm/mach-shark/irq.c b/arch/arm/mach-shark/irq.c index 297ecf130650..00a6c1466867 100644 --- a/arch/arm/mach-shark/irq.c +++ b/arch/arm/mach-shark/irq.c | |||
@@ -82,7 +82,7 @@ void __init shark_init_irq(void) | |||
82 | 82 | ||
83 | for (irq = 0; irq < NR_IRQS; irq++) { | 83 | for (irq = 0; irq < NR_IRQS; irq++) { |
84 | set_irq_chip(irq, &fb_chip); | 84 | set_irq_chip(irq, &fb_chip); |
85 | set_irq_handler(irq, do_edge_IRQ); | 85 | set_irq_handler(irq, handle_edge_irq); |
86 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 86 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
87 | } | 87 | } |
88 | 88 | ||
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 3b8576111c16..bf71507c76fd 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/amba/bus.h> | 27 | #include <linux/amba/bus.h> |
28 | #include <linux/amba/clcd.h> | 28 | #include <linux/amba/clcd.h> |
29 | 29 | ||
30 | #include <asm/cnt32_to_63.h> | ||
30 | #include <asm/system.h> | 31 | #include <asm/system.h> |
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/io.h> | 33 | #include <asm/io.h> |
@@ -77,7 +78,7 @@ static struct irq_chip sic_chip = { | |||
77 | }; | 78 | }; |
78 | 79 | ||
79 | static void | 80 | static void |
80 | sic_handle_irq(unsigned int irq, struct irqdesc *desc) | 81 | sic_handle_irq(unsigned int irq, struct irq_desc *desc) |
81 | { | 82 | { |
82 | unsigned long status = readl(VA_SIC_BASE + SIC_IRQ_STATUS); | 83 | unsigned long status = readl(VA_SIC_BASE + SIC_IRQ_STATUS); |
83 | 84 | ||
@@ -123,7 +124,7 @@ void __init versatile_init_irq(void) | |||
123 | for (i = IRQ_SIC_START; i <= IRQ_SIC_END; i++) { | 124 | for (i = IRQ_SIC_START; i <= IRQ_SIC_END; i++) { |
124 | if ((PIC_MASK & (1 << (i - IRQ_SIC_START))) == 0) { | 125 | if ((PIC_MASK & (1 << (i - IRQ_SIC_START))) == 0) { |
125 | set_irq_chip(i, &sic_chip); | 126 | set_irq_chip(i, &sic_chip); |
126 | set_irq_handler(i, do_level_IRQ); | 127 | set_irq_handler(i, handle_level_irq); |
127 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 128 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
128 | } | 129 | } |
129 | } | 130 | } |
@@ -228,14 +229,19 @@ void __init versatile_map_io(void) | |||
228 | 229 | ||
229 | /* | 230 | /* |
230 | * This is the Versatile sched_clock implementation. This has | 231 | * This is the Versatile sched_clock implementation. This has |
231 | * a resolution of 41.7ns, and a maximum value of about 179s. | 232 | * a resolution of 41.7ns, and a maximum value of about 35583 days. |
233 | * | ||
234 | * The return value is guaranteed to be monotonic in that range as | ||
235 | * long as there is always less than 89 seconds between successive | ||
236 | * calls to this function. | ||
232 | */ | 237 | */ |
233 | unsigned long long sched_clock(void) | 238 | unsigned long long sched_clock(void) |
234 | { | 239 | { |
235 | unsigned long long v; | 240 | unsigned long long v = cnt32_to_63(readl(VERSATILE_REFCOUNTER)); |
236 | 241 | ||
237 | v = (unsigned long long)readl(VERSATILE_REFCOUNTER) * 125; | 242 | /* the <<1 gets rid of the cnt_32_to_63 top bit saving on a bic insn */ |
238 | do_div(v, 3); | 243 | v *= 125<<1; |
244 | do_div(v, 3<<1); | ||
239 | 245 | ||
240 | return v; | 246 | return v; |
241 | } | 247 | } |
@@ -319,6 +325,19 @@ static struct platform_device smc91x_device = { | |||
319 | .resource = smc91x_resources, | 325 | .resource = smc91x_resources, |
320 | }; | 326 | }; |
321 | 327 | ||
328 | static struct resource versatile_i2c_resource = { | ||
329 | .start = VERSATILE_I2C_BASE, | ||
330 | .end = VERSATILE_I2C_BASE + SZ_4K - 1, | ||
331 | .flags = IORESOURCE_MEM, | ||
332 | }; | ||
333 | |||
334 | static struct platform_device versatile_i2c_device = { | ||
335 | .name = "versatile-i2c", | ||
336 | .id = -1, | ||
337 | .num_resources = 1, | ||
338 | .resource = &versatile_i2c_resource, | ||
339 | }; | ||
340 | |||
322 | #define VERSATILE_SYSMCI (__io_address(VERSATILE_SYS_BASE) + VERSATILE_SYS_MCI_OFFSET) | 341 | #define VERSATILE_SYSMCI (__io_address(VERSATILE_SYS_BASE) + VERSATILE_SYS_MCI_OFFSET) |
323 | 342 | ||
324 | unsigned int mmc_status(struct device *dev) | 343 | unsigned int mmc_status(struct device *dev) |
@@ -769,6 +788,7 @@ void __init versatile_init(void) | |||
769 | clk_register(&versatile_clcd_clk); | 788 | clk_register(&versatile_clcd_clk); |
770 | 789 | ||
771 | platform_device_register(&versatile_flash_device); | 790 | platform_device_register(&versatile_flash_device); |
791 | platform_device_register(&versatile_i2c_device); | ||
772 | platform_device_register(&smc91x_device); | 792 | platform_device_register(&smc91x_device); |
773 | 793 | ||
774 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | 794 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
diff --git a/arch/arm/mach-versatile/versatile_pb.c b/arch/arm/mach-versatile/versatile_pb.c index 503725b166fc..be439bb9d450 100644 --- a/arch/arm/mach-versatile/versatile_pb.c +++ b/arch/arm/mach-versatile/versatile_pb.c | |||
@@ -81,22 +81,18 @@ static struct amba_device *amba_devs[] __initdata = { | |||
81 | &mmc1_device, | 81 | &mmc1_device, |
82 | }; | 82 | }; |
83 | 83 | ||
84 | static int __init versatile_pb_init(void) | 84 | static void __init versatile_pb_init(void) |
85 | { | 85 | { |
86 | int i; | 86 | int i; |
87 | 87 | ||
88 | if (machine_is_versatile_pb()) { | 88 | versatile_init(); |
89 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | ||
90 | struct amba_device *d = amba_devs[i]; | ||
91 | amba_device_register(d, &iomem_resource); | ||
92 | } | ||
93 | } | ||
94 | 89 | ||
95 | return 0; | 90 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
91 | struct amba_device *d = amba_devs[i]; | ||
92 | amba_device_register(d, &iomem_resource); | ||
93 | } | ||
96 | } | 94 | } |
97 | 95 | ||
98 | arch_initcall(versatile_pb_init); | ||
99 | |||
100 | MACHINE_START(VERSATILE_PB, "ARM-Versatile PB") | 96 | MACHINE_START(VERSATILE_PB, "ARM-Versatile PB") |
101 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 97 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
102 | .phys_io = 0x101f1000, | 98 | .phys_io = 0x101f1000, |
@@ -105,5 +101,5 @@ MACHINE_START(VERSATILE_PB, "ARM-Versatile PB") | |||
105 | .map_io = versatile_map_io, | 101 | .map_io = versatile_map_io, |
106 | .init_irq = versatile_init_irq, | 102 | .init_irq = versatile_init_irq, |
107 | .timer = &versatile_timer, | 103 | .timer = &versatile_timer, |
108 | .init_machine = versatile_init, | 104 | .init_machine = versatile_pb_init, |
109 | MACHINE_END | 105 | MACHINE_END |
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index c0bfb8212b77..aade2f72c920 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -197,7 +197,7 @@ config CPU_ARM940T | |||
197 | select CPU_CP15_MPU | 197 | select CPU_CP15_MPU |
198 | help | 198 | help |
199 | ARM940T is a member of the ARM9TDMI family of general- | 199 | ARM940T is a member of the ARM9TDMI family of general- |
200 | purpose microprocessors with MPU and seperate 4KB | 200 | purpose microprocessors with MPU and separate 4KB |
201 | instruction and 4KB data cases, each with a 4-word line | 201 | instruction and 4KB data cases, each with a 4-word line |
202 | length. | 202 | length. |
203 | 203 | ||
@@ -333,7 +333,7 @@ config CPU_XSCALE | |||
333 | # XScale Core Version 3 | 333 | # XScale Core Version 3 |
334 | config CPU_XSC3 | 334 | config CPU_XSC3 |
335 | bool | 335 | bool |
336 | depends on ARCH_IXP23XX | 336 | depends on ARCH_IXP23XX || ARCH_IOP13XX |
337 | default y | 337 | default y |
338 | select CPU_32v5 | 338 | select CPU_32v5 |
339 | select CPU_ABRT_EV5T | 339 | select CPU_ABRT_EV5T |
@@ -580,7 +580,7 @@ config CPU_CACHE_ROUND_ROBIN | |||
580 | 580 | ||
581 | config CPU_BPREDICT_DISABLE | 581 | config CPU_BPREDICT_DISABLE |
582 | bool "Disable branch prediction" | 582 | bool "Disable branch prediction" |
583 | depends on CPU_ARM1020 || CPU_V6 | 583 | depends on CPU_ARM1020 || CPU_V6 || CPU_XSC3 |
584 | help | 584 | help |
585 | Say Y here to disable branch prediction. If unsure, say N. | 585 | Say Y here to disable branch prediction. If unsure, say N. |
586 | 586 | ||
diff --git a/arch/arm/mm/consistent.c b/arch/arm/mm/consistent.c index b797217e82be..6a9c362fef5e 100644 --- a/arch/arm/mm/consistent.c +++ b/arch/arm/mm/consistent.c | |||
@@ -238,7 +238,7 @@ __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, | |||
238 | * x86 does not mark the pages reserved... | 238 | * x86 does not mark the pages reserved... |
239 | */ | 239 | */ |
240 | SetPageReserved(page); | 240 | SetPageReserved(page); |
241 | set_pte(pte, mk_pte(page, prot)); | 241 | set_pte_ext(pte, mk_pte(page, prot), 0); |
242 | page++; | 242 | page++; |
243 | pte++; | 243 | pte++; |
244 | off++; | 244 | off++; |
diff --git a/arch/arm/mm/copypage-v4mc.c b/arch/arm/mm/copypage-v4mc.c index df1645e14b4c..ded0e96d069d 100644 --- a/arch/arm/mm/copypage-v4mc.c +++ b/arch/arm/mm/copypage-v4mc.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/page.h> | 19 | #include <asm/page.h> |
20 | #include <asm/pgtable.h> | 20 | #include <asm/pgtable.h> |
21 | #include <asm/tlbflush.h> | 21 | #include <asm/tlbflush.h> |
22 | #include <asm/cacheflush.h> | ||
22 | 23 | ||
23 | #include "mm.h" | 24 | #include "mm.h" |
24 | 25 | ||
@@ -69,9 +70,14 @@ mc_copy_user_page(void *from, void *to) | |||
69 | 70 | ||
70 | void v4_mc_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr) | 71 | void v4_mc_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr) |
71 | { | 72 | { |
73 | struct page *page = virt_to_page(kfrom); | ||
74 | |||
75 | if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) | ||
76 | __flush_dcache_page(page_mapping(page), page); | ||
77 | |||
72 | spin_lock(&minicache_lock); | 78 | spin_lock(&minicache_lock); |
73 | 79 | ||
74 | set_pte(TOP_PTE(0xffff8000), pfn_pte(__pa(kfrom) >> PAGE_SHIFT, minicache_pgprot)); | 80 | set_pte_ext(TOP_PTE(0xffff8000), pfn_pte(__pa(kfrom) >> PAGE_SHIFT, minicache_pgprot), 0); |
75 | flush_tlb_kernel_page(0xffff8000); | 81 | flush_tlb_kernel_page(0xffff8000); |
76 | 82 | ||
77 | mc_copy_user_page((void *)0xffff8000, kto); | 83 | mc_copy_user_page((void *)0xffff8000, kto); |
diff --git a/arch/arm/mm/copypage-v6.c b/arch/arm/mm/copypage-v6.c index 3d0d3a963d20..3adb79257f43 100644 --- a/arch/arm/mm/copypage-v6.c +++ b/arch/arm/mm/copypage-v6.c | |||
@@ -53,6 +53,10 @@ static void v6_copy_user_page_aliasing(void *kto, const void *kfrom, unsigned lo | |||
53 | { | 53 | { |
54 | unsigned int offset = CACHE_COLOUR(vaddr); | 54 | unsigned int offset = CACHE_COLOUR(vaddr); |
55 | unsigned long from, to; | 55 | unsigned long from, to; |
56 | struct page *page = virt_to_page(kfrom); | ||
57 | |||
58 | if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) | ||
59 | __flush_dcache_page(page_mapping(page), page); | ||
56 | 60 | ||
57 | /* | 61 | /* |
58 | * Discard data in the kernel mapping for the new page. | 62 | * Discard data in the kernel mapping for the new page. |
@@ -70,8 +74,8 @@ static void v6_copy_user_page_aliasing(void *kto, const void *kfrom, unsigned lo | |||
70 | */ | 74 | */ |
71 | spin_lock(&v6_lock); | 75 | spin_lock(&v6_lock); |
72 | 76 | ||
73 | set_pte(TOP_PTE(from_address) + offset, pfn_pte(__pa(kfrom) >> PAGE_SHIFT, PAGE_KERNEL)); | 77 | set_pte_ext(TOP_PTE(from_address) + offset, pfn_pte(__pa(kfrom) >> PAGE_SHIFT, PAGE_KERNEL), 0); |
74 | set_pte(TOP_PTE(to_address) + offset, pfn_pte(__pa(kto) >> PAGE_SHIFT, PAGE_KERNEL)); | 78 | set_pte_ext(TOP_PTE(to_address) + offset, pfn_pte(__pa(kto) >> PAGE_SHIFT, PAGE_KERNEL), 0); |
75 | 79 | ||
76 | from = from_address + (offset << PAGE_SHIFT); | 80 | from = from_address + (offset << PAGE_SHIFT); |
77 | to = to_address + (offset << PAGE_SHIFT); | 81 | to = to_address + (offset << PAGE_SHIFT); |
@@ -110,7 +114,7 @@ static void v6_clear_user_page_aliasing(void *kaddr, unsigned long vaddr) | |||
110 | */ | 114 | */ |
111 | spin_lock(&v6_lock); | 115 | spin_lock(&v6_lock); |
112 | 116 | ||
113 | set_pte(TOP_PTE(to_address) + offset, pfn_pte(__pa(kaddr) >> PAGE_SHIFT, PAGE_KERNEL)); | 117 | set_pte_ext(TOP_PTE(to_address) + offset, pfn_pte(__pa(kaddr) >> PAGE_SHIFT, PAGE_KERNEL), 0); |
114 | flush_tlb_kernel_page(to); | 118 | flush_tlb_kernel_page(to); |
115 | clear_page((void *)to); | 119 | clear_page((void *)to); |
116 | 120 | ||
diff --git a/arch/arm/mm/copypage-xscale.c b/arch/arm/mm/copypage-xscale.c index 84ebe0aa379e..2e455f82a4d5 100644 --- a/arch/arm/mm/copypage-xscale.c +++ b/arch/arm/mm/copypage-xscale.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/page.h> | 19 | #include <asm/page.h> |
20 | #include <asm/pgtable.h> | 20 | #include <asm/pgtable.h> |
21 | #include <asm/tlbflush.h> | 21 | #include <asm/tlbflush.h> |
22 | #include <asm/cacheflush.h> | ||
22 | 23 | ||
23 | #include "mm.h" | 24 | #include "mm.h" |
24 | 25 | ||
@@ -91,9 +92,14 @@ mc_copy_user_page(void *from, void *to) | |||
91 | 92 | ||
92 | void xscale_mc_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr) | 93 | void xscale_mc_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr) |
93 | { | 94 | { |
95 | struct page *page = virt_to_page(kfrom); | ||
96 | |||
97 | if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) | ||
98 | __flush_dcache_page(page_mapping(page), page); | ||
99 | |||
94 | spin_lock(&minicache_lock); | 100 | spin_lock(&minicache_lock); |
95 | 101 | ||
96 | set_pte(TOP_PTE(COPYPAGE_MINICACHE), pfn_pte(__pa(kfrom) >> PAGE_SHIFT, minicache_pgprot)); | 102 | set_pte_ext(TOP_PTE(COPYPAGE_MINICACHE), pfn_pte(__pa(kfrom) >> PAGE_SHIFT, minicache_pgprot), 0); |
97 | flush_tlb_kernel_page(COPYPAGE_MINICACHE); | 103 | flush_tlb_kernel_page(COPYPAGE_MINICACHE); |
98 | 104 | ||
99 | mc_copy_user_page((void *)COPYPAGE_MINICACHE, kto); | 105 | mc_copy_user_page((void *)COPYPAGE_MINICACHE, kto); |
diff --git a/arch/arm/mm/fault-armv.c b/arch/arm/mm/fault-armv.c index 7fc1b35a6746..cf95c5d0ce4c 100644 --- a/arch/arm/mm/fault-armv.c +++ b/arch/arm/mm/fault-armv.c | |||
@@ -61,7 +61,7 @@ static int adjust_pte(struct vm_area_struct *vma, unsigned long address) | |||
61 | if (pte_present(entry) && pte_val(entry) & shared_pte_mask) { | 61 | if (pte_present(entry) && pte_val(entry) & shared_pte_mask) { |
62 | flush_cache_page(vma, address, pte_pfn(entry)); | 62 | flush_cache_page(vma, address, pte_pfn(entry)); |
63 | pte_val(entry) &= ~shared_pte_mask; | 63 | pte_val(entry) &= ~shared_pte_mask; |
64 | set_pte(pte, entry); | 64 | set_pte_at(vma->vm_mm, address, pte, entry); |
65 | flush_tlb_page(vma, address); | 65 | flush_tlb_page(vma, address); |
66 | ret = 1; | 66 | ret = 1; |
67 | } | 67 | } |
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index 5e658a874498..9fd6d2eafb40 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c | |||
@@ -230,7 +230,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
230 | * If we're in an interrupt or have no user | 230 | * If we're in an interrupt or have no user |
231 | * context, we must not take the fault.. | 231 | * context, we must not take the fault.. |
232 | */ | 232 | */ |
233 | if (in_interrupt() || !mm) | 233 | if (in_atomic() || !mm) |
234 | goto no_context; | 234 | goto no_context; |
235 | 235 | ||
236 | /* | 236 | /* |
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index 454205b789d5..9df507d36e0b 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c | |||
@@ -26,7 +26,7 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr) | |||
26 | unsigned long to = ALIAS_FLUSH_START + (CACHE_COLOUR(vaddr) << PAGE_SHIFT); | 26 | unsigned long to = ALIAS_FLUSH_START + (CACHE_COLOUR(vaddr) << PAGE_SHIFT); |
27 | const int zero = 0; | 27 | const int zero = 0; |
28 | 28 | ||
29 | set_pte(TOP_PTE(to), pfn_pte(pfn, PAGE_KERNEL)); | 29 | set_pte_ext(TOP_PTE(to), pfn_pte(pfn, PAGE_KERNEL), 0); |
30 | flush_tlb_kernel_page(to); | 30 | flush_tlb_kernel_page(to); |
31 | 31 | ||
32 | asm( "mcrr p15, 0, %1, %0, c14\n" | 32 | asm( "mcrr p15, 0, %1, %0, c14\n" |
@@ -202,3 +202,42 @@ void flush_dcache_page(struct page *page) | |||
202 | } | 202 | } |
203 | } | 203 | } |
204 | EXPORT_SYMBOL(flush_dcache_page); | 204 | EXPORT_SYMBOL(flush_dcache_page); |
205 | |||
206 | /* | ||
207 | * Flush an anonymous page so that users of get_user_pages() | ||
208 | * can safely access the data. The expected sequence is: | ||
209 | * | ||
210 | * get_user_pages() | ||
211 | * -> flush_anon_page | ||
212 | * memcpy() to/from page | ||
213 | * if written to page, flush_dcache_page() | ||
214 | */ | ||
215 | void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) | ||
216 | { | ||
217 | unsigned long pfn; | ||
218 | |||
219 | /* VIPT non-aliasing caches need do nothing */ | ||
220 | if (cache_is_vipt_nonaliasing()) | ||
221 | return; | ||
222 | |||
223 | /* | ||
224 | * Write back and invalidate userspace mapping. | ||
225 | */ | ||
226 | pfn = page_to_pfn(page); | ||
227 | if (cache_is_vivt()) { | ||
228 | flush_cache_page(vma, vmaddr, pfn); | ||
229 | } else { | ||
230 | /* | ||
231 | * For aliasing VIPT, we can flush an alias of the | ||
232 | * userspace address only. | ||
233 | */ | ||
234 | flush_pfn_alias(pfn, vmaddr); | ||
235 | } | ||
236 | |||
237 | /* | ||
238 | * Invalidate kernel mapping. No data should be contained | ||
239 | * in this mapping of the page. FIXME: this is overkill | ||
240 | * since we actually ask for a write-back and invalidate. | ||
241 | */ | ||
242 | __cpuc_flush_dcache_page(page_address(page)); | ||
243 | } | ||
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 465440592791..251685fe73a8 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c | |||
@@ -38,89 +38,71 @@ | |||
38 | */ | 38 | */ |
39 | #define VM_ARM_SECTION_MAPPING 0x80000000 | 39 | #define VM_ARM_SECTION_MAPPING 0x80000000 |
40 | 40 | ||
41 | static inline void | 41 | static int remap_area_pte(pmd_t *pmd, unsigned long addr, unsigned long end, |
42 | remap_area_pte(pte_t * pte, unsigned long address, unsigned long size, | 42 | unsigned long phys_addr, pgprot_t prot) |
43 | unsigned long phys_addr, pgprot_t pgprot) | ||
44 | { | 43 | { |
45 | unsigned long end; | 44 | pte_t *pte; |
45 | |||
46 | pte = pte_alloc_kernel(pmd, addr); | ||
47 | if (!pte) | ||
48 | return -ENOMEM; | ||
46 | 49 | ||
47 | address &= ~PMD_MASK; | ||
48 | end = address + size; | ||
49 | if (end > PMD_SIZE) | ||
50 | end = PMD_SIZE; | ||
51 | BUG_ON(address >= end); | ||
52 | do { | 50 | do { |
53 | if (!pte_none(*pte)) | 51 | if (!pte_none(*pte)) |
54 | goto bad; | 52 | goto bad; |
55 | 53 | ||
56 | set_pte(pte, pfn_pte(phys_addr >> PAGE_SHIFT, pgprot)); | 54 | set_pte_ext(pte, pfn_pte(phys_addr >> PAGE_SHIFT, prot), 0); |
57 | address += PAGE_SIZE; | ||
58 | phys_addr += PAGE_SIZE; | 55 | phys_addr += PAGE_SIZE; |
59 | pte++; | 56 | } while (pte++, addr += PAGE_SIZE, addr != end); |
60 | } while (address && (address < end)); | 57 | return 0; |
61 | return; | ||
62 | 58 | ||
63 | bad: | 59 | bad: |
64 | printk("remap_area_pte: page already exists\n"); | 60 | printk(KERN_CRIT "remap_area_pte: page already exists\n"); |
65 | BUG(); | 61 | BUG(); |
66 | } | 62 | } |
67 | 63 | ||
68 | static inline int | 64 | static inline int remap_area_pmd(pgd_t *pgd, unsigned long addr, |
69 | remap_area_pmd(pmd_t * pmd, unsigned long address, unsigned long size, | 65 | unsigned long end, unsigned long phys_addr, |
70 | unsigned long phys_addr, unsigned long flags) | 66 | pgprot_t prot) |
71 | { | 67 | { |
72 | unsigned long end; | 68 | unsigned long next; |
73 | pgprot_t pgprot; | 69 | pmd_t *pmd; |
74 | 70 | int ret = 0; | |
75 | address &= ~PGDIR_MASK; | ||
76 | end = address + size; | ||
77 | |||
78 | if (end > PGDIR_SIZE) | ||
79 | end = PGDIR_SIZE; | ||
80 | 71 | ||
81 | phys_addr -= address; | 72 | pmd = pmd_alloc(&init_mm, pgd, addr); |
82 | BUG_ON(address >= end); | 73 | if (!pmd) |
74 | return -ENOMEM; | ||
83 | 75 | ||
84 | pgprot = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_WRITE | flags); | ||
85 | do { | 76 | do { |
86 | pte_t * pte = pte_alloc_kernel(pmd, address); | 77 | next = pmd_addr_end(addr, end); |
87 | if (!pte) | 78 | ret = remap_area_pte(pmd, addr, next, phys_addr, prot); |
88 | return -ENOMEM; | 79 | if (ret) |
89 | remap_area_pte(pte, address, end - address, address + phys_addr, pgprot); | 80 | return ret; |
90 | address = (address + PMD_SIZE) & PMD_MASK; | 81 | phys_addr += next - addr; |
91 | pmd++; | 82 | } while (pmd++, addr = next, addr != end); |
92 | } while (address && (address < end)); | 83 | return ret; |
93 | return 0; | ||
94 | } | 84 | } |
95 | 85 | ||
96 | static int | 86 | static int remap_area_pages(unsigned long start, unsigned long pfn, |
97 | remap_area_pages(unsigned long start, unsigned long pfn, | 87 | unsigned long size, unsigned long flags) |
98 | unsigned long size, unsigned long flags) | ||
99 | { | 88 | { |
100 | unsigned long address = start; | 89 | unsigned long addr = start; |
101 | unsigned long end = start + size; | 90 | unsigned long next, end = start + size; |
102 | unsigned long phys_addr = __pfn_to_phys(pfn); | 91 | unsigned long phys_addr = __pfn_to_phys(pfn); |
92 | pgprot_t prot = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | | ||
93 | L_PTE_DIRTY | L_PTE_WRITE | flags); | ||
94 | pgd_t *pgd; | ||
103 | int err = 0; | 95 | int err = 0; |
104 | pgd_t * dir; | ||
105 | 96 | ||
106 | phys_addr -= address; | 97 | BUG_ON(addr >= end); |
107 | dir = pgd_offset(&init_mm, address); | 98 | pgd = pgd_offset_k(addr); |
108 | BUG_ON(address >= end); | ||
109 | do { | 99 | do { |
110 | pmd_t *pmd = pmd_alloc(&init_mm, dir, address); | 100 | next = pgd_addr_end(addr, end); |
111 | if (!pmd) { | 101 | err = remap_area_pmd(pgd, addr, next, phys_addr, prot); |
112 | err = -ENOMEM; | 102 | if (err) |
113 | break; | ||
114 | } | ||
115 | if (remap_area_pmd(pmd, address, end - address, | ||
116 | phys_addr + address, flags)) { | ||
117 | err = -ENOMEM; | ||
118 | break; | 103 | break; |
119 | } | 104 | phys_addr += next - addr; |
120 | 105 | } while (pgd++, addr = next, addr != end); | |
121 | address = (address + PGDIR_SIZE) & PGDIR_MASK; | ||
122 | dir++; | ||
123 | } while (address && (address < end)); | ||
124 | 106 | ||
125 | return err; | 107 | return err; |
126 | } | 108 | } |
@@ -310,6 +292,8 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, | |||
310 | if (pfn >= 0x100000 && (__pfn_to_phys(pfn) & ~SUPERSECTION_MASK)) | 292 | if (pfn >= 0x100000 && (__pfn_to_phys(pfn) & ~SUPERSECTION_MASK)) |
311 | return NULL; | 293 | return NULL; |
312 | 294 | ||
295 | size = PAGE_ALIGN(size); | ||
296 | |||
313 | area = get_vm_area(size, VM_IOREMAP); | 297 | area = get_vm_area(size, VM_IOREMAP); |
314 | if (!area) | 298 | if (!area) |
315 | return NULL; | 299 | return NULL; |
diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index bb2bc9ab6bd3..a44e30970635 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h | |||
@@ -1,4 +1,7 @@ | |||
1 | /* the upper-most page table pointer */ | 1 | /* the upper-most page table pointer */ |
2 | |||
3 | #ifdef CONFIG_MMU | ||
4 | |||
2 | extern pmd_t *top_pmd; | 5 | extern pmd_t *top_pmd; |
3 | 6 | ||
4 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) | 7 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) |
@@ -13,6 +16,8 @@ static inline pmd_t *pmd_off_k(unsigned long virt) | |||
13 | return pmd_off(pgd_offset_k(virt), virt); | 16 | return pmd_off(pgd_offset_k(virt), virt); |
14 | } | 17 | } |
15 | 18 | ||
19 | #endif | ||
20 | |||
16 | struct map_desc; | 21 | struct map_desc; |
17 | struct meminfo; | 22 | struct meminfo; |
18 | struct pglist_data; | 23 | struct pglist_data; |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index f866bf6b97d4..655c8376f0b5 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -154,6 +154,26 @@ static int __init noalign_setup(char *__unused) | |||
154 | } | 154 | } |
155 | __setup("noalign", noalign_setup); | 155 | __setup("noalign", noalign_setup); |
156 | 156 | ||
157 | #ifndef CONFIG_SMP | ||
158 | void adjust_cr(unsigned long mask, unsigned long set) | ||
159 | { | ||
160 | unsigned long flags; | ||
161 | |||
162 | mask &= ~CR_A; | ||
163 | |||
164 | set &= mask; | ||
165 | |||
166 | local_irq_save(flags); | ||
167 | |||
168 | cr_no_alignment = (cr_no_alignment & ~mask) | set; | ||
169 | cr_alignment = (cr_alignment & ~mask) | set; | ||
170 | |||
171 | set_cr((get_cr() & ~mask) | set); | ||
172 | |||
173 | local_irq_restore(flags); | ||
174 | } | ||
175 | #endif | ||
176 | |||
157 | struct mem_types { | 177 | struct mem_types { |
158 | unsigned int prot_pte; | 178 | unsigned int prot_pte; |
159 | unsigned int prot_l1; | 179 | unsigned int prot_l1; |
@@ -265,7 +285,7 @@ static void __init build_mem_type_table(void) | |||
265 | if (arch_is_coherent()) { | 285 | if (arch_is_coherent()) { |
266 | if (cpu_is_xsc3()) { | 286 | if (cpu_is_xsc3()) { |
267 | mem_types[MT_MEMORY].prot_sect |= PMD_SECT_S; | 287 | mem_types[MT_MEMORY].prot_sect |= PMD_SECT_S; |
268 | mem_types[MT_MEMORY].prot_pte |= L_PTE_COHERENT; | 288 | mem_types[MT_MEMORY].prot_pte |= L_PTE_SHARED; |
269 | } | 289 | } |
270 | } | 290 | } |
271 | 291 | ||
@@ -294,12 +314,6 @@ static void __init build_mem_type_table(void) | |||
294 | mem_types[MT_DEVICE].prot_pte |= L_PTE_BUFFERABLE; | 314 | mem_types[MT_DEVICE].prot_pte |= L_PTE_BUFFERABLE; |
295 | mem_types[MT_DEVICE].prot_sect |= PMD_SECT_BUFFERED; | 315 | mem_types[MT_DEVICE].prot_sect |= PMD_SECT_BUFFERED; |
296 | 316 | ||
297 | /* | ||
298 | * User pages need to be mapped with the ASID | ||
299 | * (iow, non-global) | ||
300 | */ | ||
301 | user_pgprot |= L_PTE_ASID; | ||
302 | |||
303 | #ifdef CONFIG_SMP | 317 | #ifdef CONFIG_SMP |
304 | /* | 318 | /* |
305 | * Mark memory with the "shared" attribute for SMP systems | 319 | * Mark memory with the "shared" attribute for SMP systems |
@@ -408,7 +422,7 @@ alloc_init_page(unsigned long virt, unsigned long phys, unsigned int prot_l1, pg | |||
408 | } | 422 | } |
409 | ptep = pte_offset_kernel(pmdp, virt); | 423 | ptep = pte_offset_kernel(pmdp, virt); |
410 | 424 | ||
411 | set_pte(ptep, pfn_pte(phys >> PAGE_SHIFT, prot)); | 425 | set_pte_ext(ptep, pfn_pte(phys >> PAGE_SHIFT, prot), 0); |
412 | } | 426 | } |
413 | 427 | ||
414 | /* | 428 | /* |
@@ -619,6 +633,13 @@ void __init reserve_node_zero(pg_data_t *pgdat) | |||
619 | if (machine_is_p720t()) | 633 | if (machine_is_p720t()) |
620 | res_size = 0x00014000; | 634 | res_size = 0x00014000; |
621 | 635 | ||
636 | /* H1940 and RX3715 need to reserve this for suspend */ | ||
637 | |||
638 | if (machine_is_h1940() || machine_is_rx3715()) { | ||
639 | reserve_bootmem_node(pgdat, 0x30003000, 0x1000); | ||
640 | reserve_bootmem_node(pgdat, 0x30081000, 0x1000); | ||
641 | } | ||
642 | |||
622 | #ifdef CONFIG_SA1111 | 643 | #ifdef CONFIG_SA1111 |
623 | /* | 644 | /* |
624 | * Because of the SA1111 DMA bug, we want to preserve our | 645 | * Because of the SA1111 DMA bug, we want to preserve our |
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index d0e66424a597..05818fc0c705 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c | |||
@@ -6,10 +6,12 @@ | |||
6 | #include <linux/module.h> | 6 | #include <linux/module.h> |
7 | #include <linux/mm.h> | 7 | #include <linux/mm.h> |
8 | #include <linux/pagemap.h> | 8 | #include <linux/pagemap.h> |
9 | #include <linux/bootmem.h> | ||
9 | 10 | ||
10 | #include <asm/cacheflush.h> | 11 | #include <asm/cacheflush.h> |
11 | #include <asm/io.h> | 12 | #include <asm/io.h> |
12 | #include <asm/page.h> | 13 | #include <asm/page.h> |
14 | #include <asm/mach/arch.h> | ||
13 | 15 | ||
14 | #include "mm.h" | 16 | #include "mm.h" |
15 | 17 | ||
@@ -76,7 +78,7 @@ void __iomem *__ioremap(unsigned long phys_addr, size_t size, | |||
76 | } | 78 | } |
77 | EXPORT_SYMBOL(__ioremap); | 79 | EXPORT_SYMBOL(__ioremap); |
78 | 80 | ||
79 | void __iounmap(void __iomem *addr) | 81 | void __iounmap(volatile void __iomem *addr) |
80 | { | 82 | { |
81 | } | 83 | } |
82 | EXPORT_SYMBOL(__iounmap); | 84 | EXPORT_SYMBOL(__iounmap); |
diff --git a/arch/arm/mm/pgd.c b/arch/arm/mm/pgd.c index 20c1b0df75f2..50b9aed6000d 100644 --- a/arch/arm/mm/pgd.c +++ b/arch/arm/mm/pgd.c | |||
@@ -57,7 +57,7 @@ pgd_t *get_pgd_slow(struct mm_struct *mm) | |||
57 | 57 | ||
58 | init_pmd = pmd_offset(init_pgd, 0); | 58 | init_pmd = pmd_offset(init_pgd, 0); |
59 | init_pte = pte_offset_map_nested(init_pmd, 0); | 59 | init_pte = pte_offset_map_nested(init_pmd, 0); |
60 | set_pte(new_pte, *init_pte); | 60 | set_pte_ext(new_pte, *init_pte, 0); |
61 | pte_unmap_nested(init_pte); | 61 | pte_unmap_nested(init_pte); |
62 | pte_unmap(new_pte); | 62 | pte_unmap(new_pte); |
63 | } | 63 | } |
diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S index 1d8316f3cecf..700c04d6996e 100644 --- a/arch/arm/mm/proc-arm1020.S +++ b/arch/arm/mm/proc-arm1020.S | |||
@@ -29,9 +29,9 @@ | |||
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <asm/assembler.h> | 30 | #include <asm/assembler.h> |
31 | #include <asm/asm-offsets.h> | 31 | #include <asm/asm-offsets.h> |
32 | #include <asm/elf.h> | ||
32 | #include <asm/pgtable-hwdef.h> | 33 | #include <asm/pgtable-hwdef.h> |
33 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
34 | #include <asm/procinfo.h> | ||
35 | #include <asm/ptrace.h> | 35 | #include <asm/ptrace.h> |
36 | 36 | ||
37 | #include "proc-macros.S" | 37 | #include "proc-macros.S" |
@@ -397,7 +397,7 @@ ENTRY(cpu_arm1020_switch_mm) | |||
397 | * Set a PTE and flush it out | 397 | * Set a PTE and flush it out |
398 | */ | 398 | */ |
399 | .align 5 | 399 | .align 5 |
400 | ENTRY(cpu_arm1020_set_pte) | 400 | ENTRY(cpu_arm1020_set_pte_ext) |
401 | #ifdef CONFIG_MMU | 401 | #ifdef CONFIG_MMU |
402 | str r1, [r0], #-2048 @ linux version | 402 | str r1, [r0], #-2048 @ linux version |
403 | 403 | ||
@@ -477,7 +477,7 @@ arm1020_processor_functions: | |||
477 | .word cpu_arm1020_do_idle | 477 | .word cpu_arm1020_do_idle |
478 | .word cpu_arm1020_dcache_clean_area | 478 | .word cpu_arm1020_dcache_clean_area |
479 | .word cpu_arm1020_switch_mm | 479 | .word cpu_arm1020_switch_mm |
480 | .word cpu_arm1020_set_pte | 480 | .word cpu_arm1020_set_pte_ext |
481 | .size arm1020_processor_functions, . - arm1020_processor_functions | 481 | .size arm1020_processor_functions, . - arm1020_processor_functions |
482 | 482 | ||
483 | .section ".rodata" | 483 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm1020e.S b/arch/arm/mm/proc-arm1020e.S index 89b1d6d3d7c0..1cc206ab5eae 100644 --- a/arch/arm/mm/proc-arm1020e.S +++ b/arch/arm/mm/proc-arm1020e.S | |||
@@ -29,9 +29,9 @@ | |||
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <asm/assembler.h> | 30 | #include <asm/assembler.h> |
31 | #include <asm/asm-offsets.h> | 31 | #include <asm/asm-offsets.h> |
32 | #include <asm/elf.h> | ||
32 | #include <asm/pgtable-hwdef.h> | 33 | #include <asm/pgtable-hwdef.h> |
33 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
34 | #include <asm/procinfo.h> | ||
35 | #include <asm/ptrace.h> | 35 | #include <asm/ptrace.h> |
36 | 36 | ||
37 | #include "proc-macros.S" | 37 | #include "proc-macros.S" |
@@ -381,7 +381,7 @@ ENTRY(cpu_arm1020e_switch_mm) | |||
381 | * Set a PTE and flush it out | 381 | * Set a PTE and flush it out |
382 | */ | 382 | */ |
383 | .align 5 | 383 | .align 5 |
384 | ENTRY(cpu_arm1020e_set_pte) | 384 | ENTRY(cpu_arm1020e_set_pte_ext) |
385 | #ifdef CONFIG_MMU | 385 | #ifdef CONFIG_MMU |
386 | str r1, [r0], #-2048 @ linux version | 386 | str r1, [r0], #-2048 @ linux version |
387 | 387 | ||
@@ -458,7 +458,7 @@ arm1020e_processor_functions: | |||
458 | .word cpu_arm1020e_do_idle | 458 | .word cpu_arm1020e_do_idle |
459 | .word cpu_arm1020e_dcache_clean_area | 459 | .word cpu_arm1020e_dcache_clean_area |
460 | .word cpu_arm1020e_switch_mm | 460 | .word cpu_arm1020e_switch_mm |
461 | .word cpu_arm1020e_set_pte | 461 | .word cpu_arm1020e_set_pte_ext |
462 | .size arm1020e_processor_functions, . - arm1020e_processor_functions | 462 | .size arm1020e_processor_functions, . - arm1020e_processor_functions |
463 | 463 | ||
464 | .section ".rodata" | 464 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm1022.S b/arch/arm/mm/proc-arm1022.S index a089528e6bce..aff0ea08e2f8 100644 --- a/arch/arm/mm/proc-arm1022.S +++ b/arch/arm/mm/proc-arm1022.S | |||
@@ -18,9 +18,9 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <asm/assembler.h> | 19 | #include <asm/assembler.h> |
20 | #include <asm/asm-offsets.h> | 20 | #include <asm/asm-offsets.h> |
21 | #include <asm/elf.h> | ||
21 | #include <asm/pgtable-hwdef.h> | 22 | #include <asm/pgtable-hwdef.h> |
22 | #include <asm/pgtable.h> | 23 | #include <asm/pgtable.h> |
23 | #include <asm/procinfo.h> | ||
24 | #include <asm/ptrace.h> | 24 | #include <asm/ptrace.h> |
25 | 25 | ||
26 | #include "proc-macros.S" | 26 | #include "proc-macros.S" |
@@ -358,12 +358,12 @@ ENTRY(cpu_arm1022_switch_mm) | |||
358 | mov pc, lr | 358 | mov pc, lr |
359 | 359 | ||
360 | /* | 360 | /* |
361 | * cpu_arm1022_set_pte(ptep, pte) | 361 | * cpu_arm1022_set_pte_ext(ptep, pte, ext) |
362 | * | 362 | * |
363 | * Set a PTE and flush it out | 363 | * Set a PTE and flush it out |
364 | */ | 364 | */ |
365 | .align 5 | 365 | .align 5 |
366 | ENTRY(cpu_arm1022_set_pte) | 366 | ENTRY(cpu_arm1022_set_pte_ext) |
367 | #ifdef CONFIG_MMU | 367 | #ifdef CONFIG_MMU |
368 | str r1, [r0], #-2048 @ linux version | 368 | str r1, [r0], #-2048 @ linux version |
369 | 369 | ||
@@ -441,7 +441,7 @@ arm1022_processor_functions: | |||
441 | .word cpu_arm1022_do_idle | 441 | .word cpu_arm1022_do_idle |
442 | .word cpu_arm1022_dcache_clean_area | 442 | .word cpu_arm1022_dcache_clean_area |
443 | .word cpu_arm1022_switch_mm | 443 | .word cpu_arm1022_switch_mm |
444 | .word cpu_arm1022_set_pte | 444 | .word cpu_arm1022_set_pte_ext |
445 | .size arm1022_processor_functions, . - arm1022_processor_functions | 445 | .size arm1022_processor_functions, . - arm1022_processor_functions |
446 | 446 | ||
447 | .section ".rodata" | 447 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm1026.S b/arch/arm/mm/proc-arm1026.S index d6d84d92c7c7..65e43a109085 100644 --- a/arch/arm/mm/proc-arm1026.S +++ b/arch/arm/mm/proc-arm1026.S | |||
@@ -18,9 +18,9 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <asm/assembler.h> | 19 | #include <asm/assembler.h> |
20 | #include <asm/asm-offsets.h> | 20 | #include <asm/asm-offsets.h> |
21 | #include <asm/elf.h> | ||
21 | #include <asm/pgtable-hwdef.h> | 22 | #include <asm/pgtable-hwdef.h> |
22 | #include <asm/pgtable.h> | 23 | #include <asm/pgtable.h> |
23 | #include <asm/procinfo.h> | ||
24 | #include <asm/ptrace.h> | 24 | #include <asm/ptrace.h> |
25 | 25 | ||
26 | #include "proc-macros.S" | 26 | #include "proc-macros.S" |
@@ -347,12 +347,12 @@ ENTRY(cpu_arm1026_switch_mm) | |||
347 | mov pc, lr | 347 | mov pc, lr |
348 | 348 | ||
349 | /* | 349 | /* |
350 | * cpu_arm1026_set_pte(ptep, pte) | 350 | * cpu_arm1026_set_pte_ext(ptep, pte, ext) |
351 | * | 351 | * |
352 | * Set a PTE and flush it out | 352 | * Set a PTE and flush it out |
353 | */ | 353 | */ |
354 | .align 5 | 354 | .align 5 |
355 | ENTRY(cpu_arm1026_set_pte) | 355 | ENTRY(cpu_arm1026_set_pte_ext) |
356 | #ifdef CONFIG_MMU | 356 | #ifdef CONFIG_MMU |
357 | str r1, [r0], #-2048 @ linux version | 357 | str r1, [r0], #-2048 @ linux version |
358 | 358 | ||
@@ -436,7 +436,7 @@ arm1026_processor_functions: | |||
436 | .word cpu_arm1026_do_idle | 436 | .word cpu_arm1026_do_idle |
437 | .word cpu_arm1026_dcache_clean_area | 437 | .word cpu_arm1026_dcache_clean_area |
438 | .word cpu_arm1026_switch_mm | 438 | .word cpu_arm1026_switch_mm |
439 | .word cpu_arm1026_set_pte | 439 | .word cpu_arm1026_set_pte_ext |
440 | .size arm1026_processor_functions, . - arm1026_processor_functions | 440 | .size arm1026_processor_functions, . - arm1026_processor_functions |
441 | 441 | ||
442 | .section .rodata | 442 | .section .rodata |
diff --git a/arch/arm/mm/proc-arm6_7.S b/arch/arm/mm/proc-arm6_7.S index 0432e4806888..123a7dc7a433 100644 --- a/arch/arm/mm/proc-arm6_7.S +++ b/arch/arm/mm/proc-arm6_7.S | |||
@@ -15,9 +15,9 @@ | |||
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <asm/assembler.h> | 16 | #include <asm/assembler.h> |
17 | #include <asm/asm-offsets.h> | 17 | #include <asm/asm-offsets.h> |
18 | #include <asm/elf.h> | ||
18 | #include <asm/pgtable-hwdef.h> | 19 | #include <asm/pgtable-hwdef.h> |
19 | #include <asm/pgtable.h> | 20 | #include <asm/pgtable.h> |
20 | #include <asm/procinfo.h> | ||
21 | #include <asm/ptrace.h> | 21 | #include <asm/ptrace.h> |
22 | 22 | ||
23 | ENTRY(cpu_arm6_dcache_clean_area) | 23 | ENTRY(cpu_arm6_dcache_clean_area) |
@@ -209,14 +209,14 @@ ENTRY(cpu_arm7_switch_mm) | |||
209 | mov pc, lr | 209 | mov pc, lr |
210 | 210 | ||
211 | /* | 211 | /* |
212 | * Function: arm6_7_set_pte(pte_t *ptep, pte_t pte) | 212 | * Function: arm6_7_set_pte_ext(pte_t *ptep, pte_t pte, unsigned int ext) |
213 | * Params : r0 = Address to set | 213 | * Params : r0 = Address to set |
214 | * : r1 = value to set | 214 | * : r1 = value to set |
215 | * Purpose : Set a PTE and flush it out of any WB cache | 215 | * Purpose : Set a PTE and flush it out of any WB cache |
216 | */ | 216 | */ |
217 | .align 5 | 217 | .align 5 |
218 | ENTRY(cpu_arm6_set_pte) | 218 | ENTRY(cpu_arm6_set_pte_ext) |
219 | ENTRY(cpu_arm7_set_pte) | 219 | ENTRY(cpu_arm7_set_pte_ext) |
220 | #ifdef CONFIG_MMU | 220 | #ifdef CONFIG_MMU |
221 | str r1, [r0], #-2048 @ linux version | 221 | str r1, [r0], #-2048 @ linux version |
222 | 222 | ||
@@ -299,7 +299,7 @@ ENTRY(arm6_processor_functions) | |||
299 | .word cpu_arm6_do_idle | 299 | .word cpu_arm6_do_idle |
300 | .word cpu_arm6_dcache_clean_area | 300 | .word cpu_arm6_dcache_clean_area |
301 | .word cpu_arm6_switch_mm | 301 | .word cpu_arm6_switch_mm |
302 | .word cpu_arm6_set_pte | 302 | .word cpu_arm6_set_pte_ext |
303 | .size arm6_processor_functions, . - arm6_processor_functions | 303 | .size arm6_processor_functions, . - arm6_processor_functions |
304 | 304 | ||
305 | /* | 305 | /* |
@@ -315,7 +315,7 @@ ENTRY(arm7_processor_functions) | |||
315 | .word cpu_arm7_do_idle | 315 | .word cpu_arm7_do_idle |
316 | .word cpu_arm7_dcache_clean_area | 316 | .word cpu_arm7_dcache_clean_area |
317 | .word cpu_arm7_switch_mm | 317 | .word cpu_arm7_switch_mm |
318 | .word cpu_arm7_set_pte | 318 | .word cpu_arm7_set_pte_ext |
319 | .size arm7_processor_functions, . - arm7_processor_functions | 319 | .size arm7_processor_functions, . - arm7_processor_functions |
320 | 320 | ||
321 | .section ".rodata" | 321 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm720.S b/arch/arm/mm/proc-arm720.S index c2f0705bfd49..dc763be43362 100644 --- a/arch/arm/mm/proc-arm720.S +++ b/arch/arm/mm/proc-arm720.S | |||
@@ -36,9 +36,9 @@ | |||
36 | #include <linux/init.h> | 36 | #include <linux/init.h> |
37 | #include <asm/assembler.h> | 37 | #include <asm/assembler.h> |
38 | #include <asm/asm-offsets.h> | 38 | #include <asm/asm-offsets.h> |
39 | #include <asm/elf.h> | ||
39 | #include <asm/pgtable-hwdef.h> | 40 | #include <asm/pgtable-hwdef.h> |
40 | #include <asm/pgtable.h> | 41 | #include <asm/pgtable.h> |
41 | #include <asm/procinfo.h> | ||
42 | #include <asm/ptrace.h> | 42 | #include <asm/ptrace.h> |
43 | 43 | ||
44 | #include "proc-macros.S" | 44 | #include "proc-macros.S" |
@@ -88,13 +88,13 @@ ENTRY(cpu_arm720_switch_mm) | |||
88 | mov pc, lr | 88 | mov pc, lr |
89 | 89 | ||
90 | /* | 90 | /* |
91 | * Function: arm720_set_pte(pte_t *ptep, pte_t pte) | 91 | * Function: arm720_set_pte_ext(pte_t *ptep, pte_t pte, unsigned int ext) |
92 | * Params : r0 = Address to set | 92 | * Params : r0 = Address to set |
93 | * : r1 = value to set | 93 | * : r1 = value to set |
94 | * Purpose : Set a PTE and flush it out of any WB cache | 94 | * Purpose : Set a PTE and flush it out of any WB cache |
95 | */ | 95 | */ |
96 | .align 5 | 96 | .align 5 |
97 | ENTRY(cpu_arm720_set_pte) | 97 | ENTRY(cpu_arm720_set_pte_ext) |
98 | #ifdef CONFIG_MMU | 98 | #ifdef CONFIG_MMU |
99 | str r1, [r0], #-2048 @ linux version | 99 | str r1, [r0], #-2048 @ linux version |
100 | 100 | ||
@@ -204,7 +204,7 @@ ENTRY(arm720_processor_functions) | |||
204 | .word cpu_arm720_do_idle | 204 | .word cpu_arm720_do_idle |
205 | .word cpu_arm720_dcache_clean_area | 205 | .word cpu_arm720_dcache_clean_area |
206 | .word cpu_arm720_switch_mm | 206 | .word cpu_arm720_switch_mm |
207 | .word cpu_arm720_set_pte | 207 | .word cpu_arm720_set_pte_ext |
208 | .size arm720_processor_functions, . - arm720_processor_functions | 208 | .size arm720_processor_functions, . - arm720_processor_functions |
209 | 209 | ||
210 | .section ".rodata" | 210 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm740.S b/arch/arm/mm/proc-arm740.S index 40713818a87b..7069f495cf9b 100644 --- a/arch/arm/mm/proc-arm740.S +++ b/arch/arm/mm/proc-arm740.S | |||
@@ -12,9 +12,9 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/asm-offsets.h> | 14 | #include <asm/asm-offsets.h> |
15 | #include <asm/elf.h> | ||
15 | #include <asm/pgtable-hwdef.h> | 16 | #include <asm/pgtable-hwdef.h> |
16 | #include <asm/pgtable.h> | 17 | #include <asm/pgtable.h> |
17 | #include <asm/procinfo.h> | ||
18 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
19 | 19 | ||
20 | .text | 20 | .text |
diff --git a/arch/arm/mm/proc-arm7tdmi.S b/arch/arm/mm/proc-arm7tdmi.S index 22d7e3100ea6..d091c2571823 100644 --- a/arch/arm/mm/proc-arm7tdmi.S +++ b/arch/arm/mm/proc-arm7tdmi.S | |||
@@ -12,9 +12,9 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/asm-offsets.h> | 14 | #include <asm/asm-offsets.h> |
15 | #include <asm/elf.h> | ||
15 | #include <asm/pgtable-hwdef.h> | 16 | #include <asm/pgtable-hwdef.h> |
16 | #include <asm/pgtable.h> | 17 | #include <asm/pgtable.h> |
17 | #include <asm/procinfo.h> | ||
18 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
19 | 19 | ||
20 | .text | 20 | .text |
diff --git a/arch/arm/mm/proc-arm920.S b/arch/arm/mm/proc-arm920.S index 4adb46b3a4e0..75c945ed6c4d 100644 --- a/arch/arm/mm/proc-arm920.S +++ b/arch/arm/mm/proc-arm920.S | |||
@@ -28,9 +28,9 @@ | |||
28 | #include <linux/linkage.h> | 28 | #include <linux/linkage.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <asm/assembler.h> | 30 | #include <asm/assembler.h> |
31 | #include <asm/elf.h> | ||
31 | #include <asm/pgtable-hwdef.h> | 32 | #include <asm/pgtable-hwdef.h> |
32 | #include <asm/pgtable.h> | 33 | #include <asm/pgtable.h> |
33 | #include <asm/procinfo.h> | ||
34 | #include <asm/page.h> | 34 | #include <asm/page.h> |
35 | #include <asm/ptrace.h> | 35 | #include <asm/ptrace.h> |
36 | #include "proc-macros.S" | 36 | #include "proc-macros.S" |
@@ -344,12 +344,12 @@ ENTRY(cpu_arm920_switch_mm) | |||
344 | mov pc, lr | 344 | mov pc, lr |
345 | 345 | ||
346 | /* | 346 | /* |
347 | * cpu_arm920_set_pte(ptep, pte) | 347 | * cpu_arm920_set_pte(ptep, pte, ext) |
348 | * | 348 | * |
349 | * Set a PTE and flush it out | 349 | * Set a PTE and flush it out |
350 | */ | 350 | */ |
351 | .align 5 | 351 | .align 5 |
352 | ENTRY(cpu_arm920_set_pte) | 352 | ENTRY(cpu_arm920_set_pte_ext) |
353 | #ifdef CONFIG_MMU | 353 | #ifdef CONFIG_MMU |
354 | str r1, [r0], #-2048 @ linux version | 354 | str r1, [r0], #-2048 @ linux version |
355 | 355 | ||
@@ -423,7 +423,7 @@ arm920_processor_functions: | |||
423 | .word cpu_arm920_do_idle | 423 | .word cpu_arm920_do_idle |
424 | .word cpu_arm920_dcache_clean_area | 424 | .word cpu_arm920_dcache_clean_area |
425 | .word cpu_arm920_switch_mm | 425 | .word cpu_arm920_switch_mm |
426 | .word cpu_arm920_set_pte | 426 | .word cpu_arm920_set_pte_ext |
427 | .size arm920_processor_functions, . - arm920_processor_functions | 427 | .size arm920_processor_functions, . - arm920_processor_functions |
428 | 428 | ||
429 | .section ".rodata" | 429 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm922.S b/arch/arm/mm/proc-arm922.S index 571f082f0247..ffb751b877ff 100644 --- a/arch/arm/mm/proc-arm922.S +++ b/arch/arm/mm/proc-arm922.S | |||
@@ -29,9 +29,9 @@ | |||
29 | #include <linux/linkage.h> | 29 | #include <linux/linkage.h> |
30 | #include <linux/init.h> | 30 | #include <linux/init.h> |
31 | #include <asm/assembler.h> | 31 | #include <asm/assembler.h> |
32 | #include <asm/elf.h> | ||
32 | #include <asm/pgtable-hwdef.h> | 33 | #include <asm/pgtable-hwdef.h> |
33 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
34 | #include <asm/procinfo.h> | ||
35 | #include <asm/page.h> | 35 | #include <asm/page.h> |
36 | #include <asm/ptrace.h> | 36 | #include <asm/ptrace.h> |
37 | #include "proc-macros.S" | 37 | #include "proc-macros.S" |
@@ -348,12 +348,12 @@ ENTRY(cpu_arm922_switch_mm) | |||
348 | mov pc, lr | 348 | mov pc, lr |
349 | 349 | ||
350 | /* | 350 | /* |
351 | * cpu_arm922_set_pte(ptep, pte) | 351 | * cpu_arm922_set_pte_ext(ptep, pte, ext) |
352 | * | 352 | * |
353 | * Set a PTE and flush it out | 353 | * Set a PTE and flush it out |
354 | */ | 354 | */ |
355 | .align 5 | 355 | .align 5 |
356 | ENTRY(cpu_arm922_set_pte) | 356 | ENTRY(cpu_arm922_set_pte_ext) |
357 | #ifdef CONFIG_MMU | 357 | #ifdef CONFIG_MMU |
358 | str r1, [r0], #-2048 @ linux version | 358 | str r1, [r0], #-2048 @ linux version |
359 | 359 | ||
@@ -427,7 +427,7 @@ arm922_processor_functions: | |||
427 | .word cpu_arm922_do_idle | 427 | .word cpu_arm922_do_idle |
428 | .word cpu_arm922_dcache_clean_area | 428 | .word cpu_arm922_dcache_clean_area |
429 | .word cpu_arm922_switch_mm | 429 | .word cpu_arm922_switch_mm |
430 | .word cpu_arm922_set_pte | 430 | .word cpu_arm922_set_pte_ext |
431 | .size arm922_processor_functions, . - arm922_processor_functions | 431 | .size arm922_processor_functions, . - arm922_processor_functions |
432 | 432 | ||
433 | .section ".rodata" | 433 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm925.S b/arch/arm/mm/proc-arm925.S index 8d9a9f93b011..44c2c997819f 100644 --- a/arch/arm/mm/proc-arm925.S +++ b/arch/arm/mm/proc-arm925.S | |||
@@ -52,9 +52,9 @@ | |||
52 | #include <linux/linkage.h> | 52 | #include <linux/linkage.h> |
53 | #include <linux/init.h> | 53 | #include <linux/init.h> |
54 | #include <asm/assembler.h> | 54 | #include <asm/assembler.h> |
55 | #include <asm/elf.h> | ||
55 | #include <asm/pgtable-hwdef.h> | 56 | #include <asm/pgtable-hwdef.h> |
56 | #include <asm/pgtable.h> | 57 | #include <asm/pgtable.h> |
57 | #include <asm/procinfo.h> | ||
58 | #include <asm/page.h> | 58 | #include <asm/page.h> |
59 | #include <asm/ptrace.h> | 59 | #include <asm/ptrace.h> |
60 | #include "proc-macros.S" | 60 | #include "proc-macros.S" |
@@ -391,12 +391,12 @@ ENTRY(cpu_arm925_switch_mm) | |||
391 | mov pc, lr | 391 | mov pc, lr |
392 | 392 | ||
393 | /* | 393 | /* |
394 | * cpu_arm925_set_pte(ptep, pte) | 394 | * cpu_arm925_set_pte_ext(ptep, pte, ext) |
395 | * | 395 | * |
396 | * Set a PTE and flush it out | 396 | * Set a PTE and flush it out |
397 | */ | 397 | */ |
398 | .align 5 | 398 | .align 5 |
399 | ENTRY(cpu_arm925_set_pte) | 399 | ENTRY(cpu_arm925_set_pte_ext) |
400 | #ifdef CONFIG_MMU | 400 | #ifdef CONFIG_MMU |
401 | str r1, [r0], #-2048 @ linux version | 401 | str r1, [r0], #-2048 @ linux version |
402 | 402 | ||
@@ -490,7 +490,7 @@ arm925_processor_functions: | |||
490 | .word cpu_arm925_do_idle | 490 | .word cpu_arm925_do_idle |
491 | .word cpu_arm925_dcache_clean_area | 491 | .word cpu_arm925_dcache_clean_area |
492 | .word cpu_arm925_switch_mm | 492 | .word cpu_arm925_switch_mm |
493 | .word cpu_arm925_set_pte | 493 | .word cpu_arm925_set_pte_ext |
494 | .size arm925_processor_functions, . - arm925_processor_functions | 494 | .size arm925_processor_functions, . - arm925_processor_functions |
495 | 495 | ||
496 | .section ".rodata" | 496 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-arm926.S b/arch/arm/mm/proc-arm926.S index 44a7a652d625..5b80b6bdd0cb 100644 --- a/arch/arm/mm/proc-arm926.S +++ b/arch/arm/mm/proc-arm926.S | |||
@@ -28,9 +28,9 @@ | |||
28 | #include <linux/linkage.h> | 28 | #include <linux/linkage.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <asm/assembler.h> | 30 | #include <asm/assembler.h> |
31 | #include <asm/elf.h> | ||
31 | #include <asm/pgtable-hwdef.h> | 32 | #include <asm/pgtable-hwdef.h> |
32 | #include <asm/pgtable.h> | 33 | #include <asm/pgtable.h> |
33 | #include <asm/procinfo.h> | ||
34 | #include <asm/page.h> | 34 | #include <asm/page.h> |
35 | #include <asm/ptrace.h> | 35 | #include <asm/ptrace.h> |
36 | #include "proc-macros.S" | 36 | #include "proc-macros.S" |
@@ -348,12 +348,12 @@ ENTRY(cpu_arm926_switch_mm) | |||
348 | mov pc, lr | 348 | mov pc, lr |
349 | 349 | ||
350 | /* | 350 | /* |
351 | * cpu_arm926_set_pte(ptep, pte) | 351 | * cpu_arm926_set_pte_ext(ptep, pte, ext) |
352 | * | 352 | * |
353 | * Set a PTE and flush it out | 353 | * Set a PTE and flush it out |
354 | */ | 354 | */ |
355 | .align 5 | 355 | .align 5 |
356 | ENTRY(cpu_arm926_set_pte) | 356 | ENTRY(cpu_arm926_set_pte_ext) |
357 | #ifdef CONFIG_MMU | 357 | #ifdef CONFIG_MMU |
358 | str r1, [r0], #-2048 @ linux version | 358 | str r1, [r0], #-2048 @ linux version |
359 | 359 | ||
@@ -439,7 +439,7 @@ arm926_processor_functions: | |||
439 | .word cpu_arm926_do_idle | 439 | .word cpu_arm926_do_idle |
440 | .word cpu_arm926_dcache_clean_area | 440 | .word cpu_arm926_dcache_clean_area |
441 | .word cpu_arm926_switch_mm | 441 | .word cpu_arm926_switch_mm |
442 | .word cpu_arm926_set_pte | 442 | .word cpu_arm926_set_pte_ext |
443 | .size arm926_processor_functions, . - arm926_processor_functions | 443 | .size arm926_processor_functions, . - arm926_processor_functions |
444 | 444 | ||
445 | .section ".rodata" | 445 | .section ".rodata" |
@@ -480,7 +480,7 @@ __arm926_proc_info: | |||
480 | b __arm926_setup | 480 | b __arm926_setup |
481 | .long cpu_arch_name | 481 | .long cpu_arch_name |
482 | .long cpu_elf_name | 482 | .long cpu_elf_name |
483 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_VFP|HWCAP_EDSP|HWCAP_JAVA | 483 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_JAVA |
484 | .long cpu_arm926_name | 484 | .long cpu_arm926_name |
485 | .long arm926_processor_functions | 485 | .long arm926_processor_functions |
486 | .long v4wbi_tlb_fns | 486 | .long v4wbi_tlb_fns |
diff --git a/arch/arm/mm/proc-arm940.S b/arch/arm/mm/proc-arm940.S index 2397f4b6e151..786c593778f0 100644 --- a/arch/arm/mm/proc-arm940.S +++ b/arch/arm/mm/proc-arm940.S | |||
@@ -11,9 +11,9 @@ | |||
11 | #include <linux/linkage.h> | 11 | #include <linux/linkage.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/elf.h> | ||
14 | #include <asm/pgtable-hwdef.h> | 15 | #include <asm/pgtable-hwdef.h> |
15 | #include <asm/pgtable.h> | 16 | #include <asm/pgtable.h> |
16 | #include <asm/procinfo.h> | ||
17 | #include <asm/ptrace.h> | 17 | #include <asm/ptrace.h> |
18 | 18 | ||
19 | /* ARM940T has a 4KB DCache comprising 256 lines of 4 words */ | 19 | /* ARM940T has a 4KB DCache comprising 256 lines of 4 words */ |
diff --git a/arch/arm/mm/proc-arm946.S b/arch/arm/mm/proc-arm946.S index e18617564421..a60c1421d450 100644 --- a/arch/arm/mm/proc-arm946.S +++ b/arch/arm/mm/proc-arm946.S | |||
@@ -13,9 +13,9 @@ | |||
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <asm/assembler.h> | 15 | #include <asm/assembler.h> |
16 | #include <asm/elf.h> | ||
16 | #include <asm/pgtable-hwdef.h> | 17 | #include <asm/pgtable-hwdef.h> |
17 | #include <asm/pgtable.h> | 18 | #include <asm/pgtable.h> |
18 | #include <asm/procinfo.h> | ||
19 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
20 | 20 | ||
21 | /* | 21 | /* |
diff --git a/arch/arm/mm/proc-arm9tdmi.S b/arch/arm/mm/proc-arm9tdmi.S index 918ebf65d4f6..4848eeac86b6 100644 --- a/arch/arm/mm/proc-arm9tdmi.S +++ b/arch/arm/mm/proc-arm9tdmi.S | |||
@@ -12,9 +12,9 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/asm-offsets.h> | 14 | #include <asm/asm-offsets.h> |
15 | #include <asm/elf.h> | ||
15 | #include <asm/pgtable-hwdef.h> | 16 | #include <asm/pgtable-hwdef.h> |
16 | #include <asm/pgtable.h> | 17 | #include <asm/pgtable.h> |
17 | #include <asm/procinfo.h> | ||
18 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
19 | 19 | ||
20 | .text | 20 | .text |
diff --git a/arch/arm/mm/proc-sa110.S b/arch/arm/mm/proc-sa110.S index c878064e9b88..6e226e12989f 100644 --- a/arch/arm/mm/proc-sa110.S +++ b/arch/arm/mm/proc-sa110.S | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <asm/assembler.h> | 18 | #include <asm/assembler.h> |
19 | #include <asm/asm-offsets.h> | 19 | #include <asm/asm-offsets.h> |
20 | #include <asm/procinfo.h> | 20 | #include <asm/elf.h> |
21 | #include <asm/hardware.h> | 21 | #include <asm/hardware.h> |
22 | #include <asm/pgtable-hwdef.h> | 22 | #include <asm/pgtable-hwdef.h> |
23 | #include <asm/pgtable.h> | 23 | #include <asm/pgtable.h> |
@@ -146,12 +146,12 @@ ENTRY(cpu_sa110_switch_mm) | |||
146 | #endif | 146 | #endif |
147 | 147 | ||
148 | /* | 148 | /* |
149 | * cpu_sa110_set_pte(ptep, pte) | 149 | * cpu_sa110_set_pte_ext(ptep, pte, ext) |
150 | * | 150 | * |
151 | * Set a PTE and flush it out | 151 | * Set a PTE and flush it out |
152 | */ | 152 | */ |
153 | .align 5 | 153 | .align 5 |
154 | ENTRY(cpu_sa110_set_pte) | 154 | ENTRY(cpu_sa110_set_pte_ext) |
155 | #ifdef CONFIG_MMU | 155 | #ifdef CONFIG_MMU |
156 | str r1, [r0], #-2048 @ linux version | 156 | str r1, [r0], #-2048 @ linux version |
157 | 157 | ||
@@ -222,7 +222,7 @@ ENTRY(sa110_processor_functions) | |||
222 | .word cpu_sa110_do_idle | 222 | .word cpu_sa110_do_idle |
223 | .word cpu_sa110_dcache_clean_area | 223 | .word cpu_sa110_dcache_clean_area |
224 | .word cpu_sa110_switch_mm | 224 | .word cpu_sa110_switch_mm |
225 | .word cpu_sa110_set_pte | 225 | .word cpu_sa110_set_pte_ext |
226 | .size sa110_processor_functions, . - sa110_processor_functions | 226 | .size sa110_processor_functions, . - sa110_processor_functions |
227 | 227 | ||
228 | .section ".rodata" | 228 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-sa1100.S b/arch/arm/mm/proc-sa1100.S index b23b66a6155a..9afb11d089fe 100644 --- a/arch/arm/mm/proc-sa1100.S +++ b/arch/arm/mm/proc-sa1100.S | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | #include <asm/assembler.h> | 23 | #include <asm/assembler.h> |
24 | #include <asm/asm-offsets.h> | 24 | #include <asm/asm-offsets.h> |
25 | #include <asm/procinfo.h> | 25 | #include <asm/elf.h> |
26 | #include <asm/hardware.h> | 26 | #include <asm/hardware.h> |
27 | #include <asm/pgtable-hwdef.h> | 27 | #include <asm/pgtable-hwdef.h> |
28 | #include <asm/pgtable.h> | 28 | #include <asm/pgtable.h> |
@@ -159,12 +159,12 @@ ENTRY(cpu_sa1100_switch_mm) | |||
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | /* | 161 | /* |
162 | * cpu_sa1100_set_pte(ptep, pte) | 162 | * cpu_sa1100_set_pte_ext(ptep, pte, ext) |
163 | * | 163 | * |
164 | * Set a PTE and flush it out | 164 | * Set a PTE and flush it out |
165 | */ | 165 | */ |
166 | .align 5 | 166 | .align 5 |
167 | ENTRY(cpu_sa1100_set_pte) | 167 | ENTRY(cpu_sa1100_set_pte_ext) |
168 | #ifdef CONFIG_MMU | 168 | #ifdef CONFIG_MMU |
169 | str r1, [r0], #-2048 @ linux version | 169 | str r1, [r0], #-2048 @ linux version |
170 | 170 | ||
@@ -237,7 +237,7 @@ ENTRY(sa1100_processor_functions) | |||
237 | .word cpu_sa1100_do_idle | 237 | .word cpu_sa1100_do_idle |
238 | .word cpu_sa1100_dcache_clean_area | 238 | .word cpu_sa1100_dcache_clean_area |
239 | .word cpu_sa1100_switch_mm | 239 | .word cpu_sa1100_switch_mm |
240 | .word cpu_sa1100_set_pte | 240 | .word cpu_sa1100_set_pte_ext |
241 | .size sa1100_processor_functions, . - sa1100_processor_functions | 241 | .size sa1100_processor_functions, . - sa1100_processor_functions |
242 | 242 | ||
243 | .section ".rodata" | 243 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-syms.c b/arch/arm/mm/proc-syms.c index ab143557e688..9f396b4fa0b7 100644 --- a/arch/arm/mm/proc-syms.c +++ b/arch/arm/mm/proc-syms.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #ifndef MULTI_CPU | 18 | #ifndef MULTI_CPU |
19 | EXPORT_SYMBOL(cpu_dcache_clean_area); | 19 | EXPORT_SYMBOL(cpu_dcache_clean_area); |
20 | EXPORT_SYMBOL(cpu_set_pte); | 20 | EXPORT_SYMBOL(cpu_set_pte_ext); |
21 | #else | 21 | #else |
22 | EXPORT_SYMBOL(processor); | 22 | EXPORT_SYMBOL(processor); |
23 | #endif | 23 | #endif |
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S index 6f72549f8843..7b1843befb9c 100644 --- a/arch/arm/mm/proc-v6.S +++ b/arch/arm/mm/proc-v6.S | |||
@@ -13,8 +13,8 @@ | |||
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <asm/assembler.h> | 14 | #include <asm/assembler.h> |
15 | #include <asm/asm-offsets.h> | 15 | #include <asm/asm-offsets.h> |
16 | #include <asm/elf.h> | ||
16 | #include <asm/hardware/arm_scu.h> | 17 | #include <asm/hardware/arm_scu.h> |
17 | #include <asm/procinfo.h> | ||
18 | #include <asm/pgtable-hwdef.h> | 18 | #include <asm/pgtable-hwdef.h> |
19 | #include <asm/pgtable.h> | 19 | #include <asm/pgtable.h> |
20 | 20 | ||
@@ -103,13 +103,14 @@ ENTRY(cpu_v6_switch_mm) | |||
103 | mov pc, lr | 103 | mov pc, lr |
104 | 104 | ||
105 | /* | 105 | /* |
106 | * cpu_v6_set_pte(ptep, pte) | 106 | * cpu_v6_set_pte_ext(ptep, pte, ext) |
107 | * | 107 | * |
108 | * Set a level 2 translation table entry. | 108 | * Set a level 2 translation table entry. |
109 | * | 109 | * |
110 | * - ptep - pointer to level 2 translation table entry | 110 | * - ptep - pointer to level 2 translation table entry |
111 | * (hardware version is stored at -1024 bytes) | 111 | * (hardware version is stored at -1024 bytes) |
112 | * - pte - PTE value to store | 112 | * - pte - PTE value to store |
113 | * - ext - value for extended PTE bits | ||
113 | * | 114 | * |
114 | * Permissions: | 115 | * Permissions: |
115 | * YUWD APX AP1 AP0 SVC User | 116 | * YUWD APX AP1 AP0 SVC User |
@@ -121,33 +122,34 @@ ENTRY(cpu_v6_switch_mm) | |||
121 | * 11x0 0 1 0 r/w r/o | 122 | * 11x0 0 1 0 r/w r/o |
122 | * 1111 0 1 1 r/w r/w | 123 | * 1111 0 1 1 r/w r/w |
123 | */ | 124 | */ |
124 | ENTRY(cpu_v6_set_pte) | 125 | ENTRY(cpu_v6_set_pte_ext) |
125 | #ifdef CONFIG_MMU | 126 | #ifdef CONFIG_MMU |
126 | str r1, [r0], #-2048 @ linux version | 127 | str r1, [r0], #-2048 @ linux version |
127 | 128 | ||
128 | bic r2, r1, #0x000003f0 | 129 | bic r3, r1, #0x000003f0 |
129 | bic r2, r2, #0x00000003 | 130 | bic r3, r3, #0x00000003 |
130 | orr r2, r2, #PTE_EXT_AP0 | 2 | 131 | orr r3, r3, r2 |
132 | orr r3, r3, #PTE_EXT_AP0 | 2 | ||
131 | 133 | ||
132 | tst r1, #L_PTE_WRITE | 134 | tst r1, #L_PTE_WRITE |
133 | tstne r1, #L_PTE_DIRTY | 135 | tstne r1, #L_PTE_DIRTY |
134 | orreq r2, r2, #PTE_EXT_APX | 136 | orreq r3, r3, #PTE_EXT_APX |
135 | 137 | ||
136 | tst r1, #L_PTE_USER | 138 | tst r1, #L_PTE_USER |
137 | orrne r2, r2, #PTE_EXT_AP1 | 139 | orrne r3, r3, #PTE_EXT_AP1 |
138 | tstne r2, #PTE_EXT_APX | 140 | tstne r3, #PTE_EXT_APX |
139 | bicne r2, r2, #PTE_EXT_APX | PTE_EXT_AP0 | 141 | bicne r3, r3, #PTE_EXT_APX | PTE_EXT_AP0 |
140 | 142 | ||
141 | tst r1, #L_PTE_YOUNG | 143 | tst r1, #L_PTE_YOUNG |
142 | biceq r2, r2, #PTE_EXT_APX | PTE_EXT_AP_MASK | 144 | biceq r3, r3, #PTE_EXT_APX | PTE_EXT_AP_MASK |
143 | 145 | ||
144 | tst r1, #L_PTE_EXEC | 146 | tst r1, #L_PTE_EXEC |
145 | orreq r2, r2, #PTE_EXT_XN | 147 | orreq r3, r3, #PTE_EXT_XN |
146 | 148 | ||
147 | tst r1, #L_PTE_PRESENT | 149 | tst r1, #L_PTE_PRESENT |
148 | moveq r2, #0 | 150 | moveq r3, #0 |
149 | 151 | ||
150 | str r2, [r0] | 152 | str r3, [r0] |
151 | mcr p15, 0, r0, c7, c10, 1 @ flush_pte | 153 | mcr p15, 0, r0, c7, c10, 1 @ flush_pte |
152 | #endif | 154 | #endif |
153 | mov pc, lr | 155 | mov pc, lr |
@@ -156,7 +158,7 @@ ENTRY(cpu_v6_set_pte) | |||
156 | 158 | ||
157 | 159 | ||
158 | cpu_v6_name: | 160 | cpu_v6_name: |
159 | .asciz "Some Random V6 Processor" | 161 | .asciz "ARMv6-compatible processor" |
160 | .align | 162 | .align |
161 | 163 | ||
162 | .section ".text.init", #alloc, #execinstr | 164 | .section ".text.init", #alloc, #execinstr |
@@ -207,11 +209,6 @@ __v6_setup: | |||
207 | #endif | 209 | #endif |
208 | mcr p15, 0, r4, c2, c0, 1 @ load TTB1 | 210 | mcr p15, 0, r4, c2, c0, 1 @ load TTB1 |
209 | #endif /* CONFIG_MMU */ | 211 | #endif /* CONFIG_MMU */ |
210 | #ifdef CONFIG_VFP | ||
211 | mrc p15, 0, r0, c1, c0, 2 | ||
212 | orr r0, r0, #(0xf << 20) | ||
213 | mcr p15, 0, r0, c1, c0, 2 @ Enable full access to VFP | ||
214 | #endif | ||
215 | adr r5, v6_crval | 212 | adr r5, v6_crval |
216 | ldmia r5, {r5, r6} | 213 | ldmia r5, {r5, r6} |
217 | mrc p15, 0, r0, c1, c0, 0 @ read control register | 214 | mrc p15, 0, r0, c1, c0, 0 @ read control register |
@@ -238,7 +235,7 @@ ENTRY(v6_processor_functions) | |||
238 | .word cpu_v6_do_idle | 235 | .word cpu_v6_do_idle |
239 | .word cpu_v6_dcache_clean_area | 236 | .word cpu_v6_dcache_clean_area |
240 | .word cpu_v6_switch_mm | 237 | .word cpu_v6_switch_mm |
241 | .word cpu_v6_set_pte | 238 | .word cpu_v6_set_pte_ext |
242 | .size v6_processor_functions, . - v6_processor_functions | 239 | .size v6_processor_functions, . - v6_processor_functions |
243 | 240 | ||
244 | .type cpu_arch_name, #object | 241 | .type cpu_arch_name, #object |
@@ -273,7 +270,7 @@ __v6_proc_info: | |||
273 | b __v6_setup | 270 | b __v6_setup |
274 | .long cpu_arch_name | 271 | .long cpu_arch_name |
275 | .long cpu_elf_name | 272 | .long cpu_elf_name |
276 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_VFP|HWCAP_EDSP|HWCAP_JAVA | 273 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_JAVA |
277 | .long cpu_v6_name | 274 | .long cpu_v6_name |
278 | .long v6_processor_functions | 275 | .long v6_processor_functions |
279 | .long v6wbi_tlb_fns | 276 | .long v6wbi_tlb_fns |
diff --git a/arch/arm/mm/proc-xsc3.S b/arch/arm/mm/proc-xsc3.S index 4ace2d8090c7..94a58455f346 100644 --- a/arch/arm/mm/proc-xsc3.S +++ b/arch/arm/mm/proc-xsc3.S | |||
@@ -2,7 +2,7 @@ | |||
2 | * linux/arch/arm/mm/proc-xsc3.S | 2 | * linux/arch/arm/mm/proc-xsc3.S |
3 | * | 3 | * |
4 | * Original Author: Matthew Gilbert | 4 | * Original Author: Matthew Gilbert |
5 | * Current Maintainer: Deepak Saxena <dsaxena@plexity.net> | 5 | * Current Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> |
6 | * | 6 | * |
7 | * Copyright 2004 (C) Intel Corp. | 7 | * Copyright 2004 (C) Intel Corp. |
8 | * Copyright 2005 (c) MontaVista Software, Inc. | 8 | * Copyright 2005 (c) MontaVista Software, Inc. |
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/linkage.h> | 27 | #include <linux/linkage.h> |
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <asm/assembler.h> | 29 | #include <asm/assembler.h> |
30 | #include <asm/procinfo.h> | 30 | #include <asm/elf.h> |
31 | #include <asm/hardware.h> | 31 | #include <asm/hardware.h> |
32 | #include <asm/pgtable.h> | 32 | #include <asm/pgtable.h> |
33 | #include <asm/pgtable-hwdef.h> | 33 | #include <asm/pgtable-hwdef.h> |
@@ -57,11 +57,6 @@ | |||
57 | #define L2_CACHE_ENABLE 1 | 57 | #define L2_CACHE_ENABLE 1 |
58 | 58 | ||
59 | /* | 59 | /* |
60 | * Enable the Branch Target Buffer (can cause crashes, see erratum #42.) | ||
61 | */ | ||
62 | #define BTB_ENABLE 0 | ||
63 | |||
64 | /* | ||
65 | * This macro is used to wait for a CP15 write and is needed | 60 | * This macro is used to wait for a CP15 write and is needed |
66 | * when we have to ensure that the last operation to the co-pro | 61 | * when we have to ensure that the last operation to the co-pro |
67 | * was completed before continuing with operation. | 62 | * was completed before continuing with operation. |
@@ -362,17 +357,19 @@ ENTRY(cpu_xsc3_switch_mm) | |||
362 | cpwait_ret lr, ip | 357 | cpwait_ret lr, ip |
363 | 358 | ||
364 | /* | 359 | /* |
365 | * cpu_xsc3_set_pte(ptep, pte) | 360 | * cpu_xsc3_set_pte_ext(ptep, pte, ext) |
366 | * | 361 | * |
367 | * Set a PTE and flush it out | 362 | * Set a PTE and flush it out |
368 | * | 363 | * |
369 | */ | 364 | */ |
370 | .align 5 | 365 | .align 5 |
371 | ENTRY(cpu_xsc3_set_pte) | 366 | ENTRY(cpu_xsc3_set_pte_ext) |
372 | str r1, [r0], #-2048 @ linux version | 367 | str r1, [r0], #-2048 @ linux version |
373 | 368 | ||
374 | bic r2, r1, #0xdf0 @ Keep C, B, coherency bits | 369 | bic r2, r1, #0xff0 @ Keep C, B bits |
375 | orr r2, r2, #PTE_TYPE_EXT @ extended page | 370 | orr r2, r2, #PTE_TYPE_EXT @ extended page |
371 | tst r1, #L_PTE_SHARED @ Shared? | ||
372 | orrne r2, r2, #0x200 | ||
376 | 373 | ||
377 | eor r3, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY | 374 | eor r3, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY |
378 | 375 | ||
@@ -432,9 +429,7 @@ __xsc3_setup: | |||
432 | mrc p15, 0, r0, c1, c0, 0 @ get control register | 429 | mrc p15, 0, r0, c1, c0, 0 @ get control register |
433 | bic r0, r0, r5 @ .... .... .... ..A. | 430 | bic r0, r0, r5 @ .... .... .... ..A. |
434 | orr r0, r0, r6 @ .... .... .... .C.M | 431 | orr r0, r0, r6 @ .... .... .... .C.M |
435 | #if BTB_ENABLE | ||
436 | orr r0, r0, #0x00000800 @ ..VI Z..S .... .... | 432 | orr r0, r0, #0x00000800 @ ..VI Z..S .... .... |
437 | #endif | ||
438 | #if L2_CACHE_ENABLE | 433 | #if L2_CACHE_ENABLE |
439 | orr r0, r0, #0x04000000 @ L2 enable | 434 | orr r0, r0, #0x04000000 @ L2 enable |
440 | #endif | 435 | #endif |
@@ -462,7 +457,7 @@ ENTRY(xsc3_processor_functions) | |||
462 | .word cpu_xsc3_do_idle | 457 | .word cpu_xsc3_do_idle |
463 | .word cpu_xsc3_dcache_clean_area | 458 | .word cpu_xsc3_dcache_clean_area |
464 | .word cpu_xsc3_switch_mm | 459 | .word cpu_xsc3_switch_mm |
465 | .word cpu_xsc3_set_pte | 460 | .word cpu_xsc3_set_pte_ext |
466 | .size xsc3_processor_functions, . - xsc3_processor_functions | 461 | .size xsc3_processor_functions, . - xsc3_processor_functions |
467 | 462 | ||
468 | .section ".rodata" | 463 | .section ".rodata" |
diff --git a/arch/arm/mm/proc-xscale.S b/arch/arm/mm/proc-xscale.S index 2749c1f88d7d..490e11b34231 100644 --- a/arch/arm/mm/proc-xscale.S +++ b/arch/arm/mm/proc-xscale.S | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/linkage.h> | 23 | #include <linux/linkage.h> |
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <asm/assembler.h> | 25 | #include <asm/assembler.h> |
26 | #include <asm/procinfo.h> | 26 | #include <asm/elf.h> |
27 | #include <asm/pgtable.h> | 27 | #include <asm/pgtable.h> |
28 | #include <asm/pgtable-hwdef.h> | 28 | #include <asm/pgtable-hwdef.h> |
29 | #include <asm/page.h> | 29 | #include <asm/page.h> |
@@ -421,14 +421,14 @@ ENTRY(cpu_xscale_switch_mm) | |||
421 | cpwait_ret lr, ip | 421 | cpwait_ret lr, ip |
422 | 422 | ||
423 | /* | 423 | /* |
424 | * cpu_xscale_set_pte(ptep, pte) | 424 | * cpu_xscale_set_pte_ext(ptep, pte, ext) |
425 | * | 425 | * |
426 | * Set a PTE and flush it out | 426 | * Set a PTE and flush it out |
427 | * | 427 | * |
428 | * Errata 40: must set memory to write-through for user read-only pages. | 428 | * Errata 40: must set memory to write-through for user read-only pages. |
429 | */ | 429 | */ |
430 | .align 5 | 430 | .align 5 |
431 | ENTRY(cpu_xscale_set_pte) | 431 | ENTRY(cpu_xscale_set_pte_ext) |
432 | str r1, [r0], #-2048 @ linux version | 432 | str r1, [r0], #-2048 @ linux version |
433 | 433 | ||
434 | bic r2, r1, #0xff0 | 434 | bic r2, r1, #0xff0 |
@@ -491,12 +491,7 @@ __xscale_setup: | |||
491 | mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB | 491 | mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB |
492 | mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer | 492 | mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer |
493 | mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs | 493 | mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs |
494 | #ifdef CONFIG_IWMMXT | 494 | mov r0, #1 << 6 @ cp6 for IOP3xx and Bulverde |
495 | mov r0, #0 @ initially disallow access to CP0/CP1 | ||
496 | #else | ||
497 | mov r0, #1 @ Allow access to CP0 | ||
498 | #endif | ||
499 | orr r0, r0, #1 << 6 @ cp6 for IOP3xx and Bulverde | ||
500 | orr r0, r0, #1 << 13 @ Its undefined whether this | 495 | orr r0, r0, #1 << 13 @ Its undefined whether this |
501 | mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes | 496 | mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes |
502 | 497 | ||
@@ -534,7 +529,7 @@ ENTRY(xscale_processor_functions) | |||
534 | .word cpu_xscale_do_idle | 529 | .word cpu_xscale_do_idle |
535 | .word cpu_xscale_dcache_clean_area | 530 | .word cpu_xscale_dcache_clean_area |
536 | .word cpu_xscale_switch_mm | 531 | .word cpu_xscale_switch_mm |
537 | .word cpu_xscale_set_pte | 532 | .word cpu_xscale_set_pte_ext |
538 | .size xscale_processor_functions, . - xscale_processor_functions | 533 | .size xscale_processor_functions, . - xscale_processor_functions |
539 | 534 | ||
540 | .section ".rodata" | 535 | .section ".rodata" |
@@ -909,7 +904,7 @@ __pxa270_proc_info: | |||
909 | b __xscale_setup | 904 | b __xscale_setup |
910 | .long cpu_arch_name | 905 | .long cpu_arch_name |
911 | .long cpu_elf_name | 906 | .long cpu_elf_name |
912 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_IWMMXT | 907 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP |
913 | .long cpu_pxa270_name | 908 | .long cpu_pxa270_name |
914 | .long xscale_processor_functions | 909 | .long xscale_processor_functions |
915 | .long v4wbi_tlb_fns | 910 | .long v4wbi_tlb_fns |
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index ec752e16d618..f2dc363de66b 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
@@ -113,7 +113,7 @@ endchoice | |||
113 | 113 | ||
114 | config OMAP_SERIAL_WAKE | 114 | config OMAP_SERIAL_WAKE |
115 | bool "Enable wake-up events for serial ports" | 115 | bool "Enable wake-up events for serial ports" |
116 | depends OMAP_MUX | 116 | depends on OMAP_MUX |
117 | default y | 117 | default y |
118 | help | 118 | help |
119 | Select this option if you want to have your system wake up | 119 | Select this option if you want to have your system wake up |
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 8162eed8b500..4f2fd5591337 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -410,7 +410,7 @@ static inline void set_24xx_gpio_triggering(void __iomem *base, int gpio, int tr | |||
410 | trigger & __IRQT_RISEDGE); | 410 | trigger & __IRQT_RISEDGE); |
411 | MOD_REG_BIT(OMAP24XX_GPIO_FALLINGDETECT, gpio_bit, | 411 | MOD_REG_BIT(OMAP24XX_GPIO_FALLINGDETECT, gpio_bit, |
412 | trigger & __IRQT_FALEDGE); | 412 | trigger & __IRQT_FALEDGE); |
413 | /* FIXME: Possibly do 'set_irq_handler(j, do_level_IRQ)' if only level | 413 | /* FIXME: Possibly do 'set_irq_handler(j, handle_level_irq)' if only level |
414 | * triggering requested. */ | 414 | * triggering requested. */ |
415 | } | 415 | } |
416 | 416 | ||
@@ -783,7 +783,7 @@ void omap_free_gpio(int gpio) | |||
783 | * line's interrupt handler has been run, we may miss some nested | 783 | * line's interrupt handler has been run, we may miss some nested |
784 | * interrupts. | 784 | * interrupts. |
785 | */ | 785 | */ |
786 | static void gpio_irq_handler(unsigned int irq, struct irqdesc *desc) | 786 | static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc) |
787 | { | 787 | { |
788 | void __iomem *isr_reg = NULL; | 788 | void __iomem *isr_reg = NULL; |
789 | u32 isr; | 789 | u32 isr; |
@@ -853,7 +853,7 @@ static void gpio_irq_handler(unsigned int irq, struct irqdesc *desc) | |||
853 | 853 | ||
854 | gpio_irq = bank->virtual_irq_start; | 854 | gpio_irq = bank->virtual_irq_start; |
855 | for (; isr != 0; isr >>= 1, gpio_irq++) { | 855 | for (; isr != 0; isr >>= 1, gpio_irq++) { |
856 | struct irqdesc *d; | 856 | struct irq_desc *d; |
857 | int irq_mask; | 857 | int irq_mask; |
858 | if (!(isr & 1)) | 858 | if (!(isr & 1)) |
859 | continue; | 859 | continue; |
@@ -1092,7 +1092,7 @@ static int __init _omap_gpio_init(void) | |||
1092 | set_irq_chip(j, &mpuio_irq_chip); | 1092 | set_irq_chip(j, &mpuio_irq_chip); |
1093 | else | 1093 | else |
1094 | set_irq_chip(j, &gpio_irq_chip); | 1094 | set_irq_chip(j, &gpio_irq_chip); |
1095 | set_irq_handler(j, do_simple_IRQ); | 1095 | set_irq_handler(j, handle_simple_irq); |
1096 | set_irq_flags(j, IRQF_VALID); | 1096 | set_irq_flags(j, IRQF_VALID); |
1097 | } | 1097 | } |
1098 | set_irq_chained_handler(bank->irq, gpio_irq_handler); | 1098 | set_irq_chained_handler(bank->irq, gpio_irq_handler); |
diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index 579c69ae9ff7..8bcb838e5444 100644 --- a/arch/arm/tools/mach-types +++ b/arch/arm/tools/mach-types | |||
@@ -12,7 +12,7 @@ | |||
12 | # | 12 | # |
13 | # http://www.arm.linux.org.uk/developer/machines/?action=new | 13 | # http://www.arm.linux.org.uk/developer/machines/?action=new |
14 | # | 14 | # |
15 | # Last update: Mon Oct 16 21:13:36 2006 | 15 | # Last update: Thu Dec 7 17:19:20 2006 |
16 | # | 16 | # |
17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number | 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number |
18 | # | 18 | # |
@@ -79,7 +79,7 @@ psionw ARCH_PSIONW PSIONW 60 | |||
79 | aln SA1100_ALN ALN 61 | 79 | aln SA1100_ALN ALN 61 |
80 | epxa ARCH_CAMELOT CAMELOT 62 | 80 | epxa ARCH_CAMELOT CAMELOT 62 |
81 | gds2200 SA1100_GDS2200 GDS2200 63 | 81 | gds2200 SA1100_GDS2200 GDS2200 63 |
82 | psion_series7 SA1100_PSION_SERIES7 PSION_SERIES7 64 | 82 | netbook SA1100_PSION_SERIES7 PSION_SERIES7 64 |
83 | xfile SA1100_XFILE XFILE 65 | 83 | xfile SA1100_XFILE XFILE 65 |
84 | accelent_ep9312 ARCH_ACCELENT_EP9312 ACCELENT_EP9312 66 | 84 | accelent_ep9312 ARCH_ACCELENT_EP9312 ACCELENT_EP9312 66 |
85 | ic200 ARCH_IC200 IC200 67 | 85 | ic200 ARCH_IC200 IC200 67 |
@@ -810,9 +810,9 @@ sb3010 MACH_SB3010 SB3010 795 | |||
810 | rm9200 MACH_RM9200 RM9200 796 | 810 | rm9200 MACH_RM9200 RM9200 796 |
811 | dma03 MACH_DMA03 DMA03 797 | 811 | dma03 MACH_DMA03 DMA03 797 |
812 | road_s101 MACH_ROAD_S101 ROAD_S101 798 | 812 | road_s101 MACH_ROAD_S101 ROAD_S101 798 |
813 | iq_nextgen_a MACH_IQ_NEXTGEN_A IQ_NEXTGEN_A 799 | 813 | iq81340sc MACH_IQ81340SC IQ81340SC 799 |
814 | iq_nextgen_b MACH_IQ_NEXTGEN_B IQ_NEXTGEN_B 800 | 814 | iq_nextgen_b MACH_IQ_NEXTGEN_B IQ_NEXTGEN_B 800 |
815 | iq_nextgen_c MACH_IQ_NEXTGEN_C IQ_NEXTGEN_C 801 | 815 | iq81340mc MACH_IQ81340MC IQ81340MC 801 |
816 | iq_nextgen_d MACH_IQ_NEXTGEN_D IQ_NEXTGEN_D 802 | 816 | iq_nextgen_d MACH_IQ_NEXTGEN_D IQ_NEXTGEN_D 802 |
817 | iq_nextgen_e MACH_IQ_NEXTGEN_E IQ_NEXTGEN_E 803 | 817 | iq_nextgen_e MACH_IQ_NEXTGEN_E IQ_NEXTGEN_E 803 |
818 | mallow_at91 MACH_MALLOW_AT91 MALLOW_AT91 804 | 818 | mallow_at91 MACH_MALLOW_AT91 MALLOW_AT91 804 |
@@ -1165,9 +1165,57 @@ pnx4010 MACH_PNX4010 PNX4010 1151 | |||
1165 | oxnas MACH_OXNAS OXNAS 1152 | 1165 | oxnas MACH_OXNAS OXNAS 1152 |
1166 | fiori MACH_FIORI FIORI 1153 | 1166 | fiori MACH_FIORI FIORI 1153 |
1167 | ml1200 MACH_ML1200 ML1200 1154 | 1167 | ml1200 MACH_ML1200 ML1200 1154 |
1168 | cactus MACH_CACTUS CACTUS 1155 | 1168 | pecos MACH_PECOS PECOS 1155 |
1169 | nb2xxx MACH_NB2XXX NB2XXX 1156 | 1169 | nb2xxx MACH_NB2XXX NB2XXX 1156 |
1170 | hw6900 MACH_HW6900 HW6900 1157 | 1170 | hw6900 MACH_HW6900 HW6900 1157 |
1171 | cdcs_quoll MACH_CDCS_QUOLL CDCS_QUOLL 1158 | 1171 | cdcs_quoll MACH_CDCS_QUOLL CDCS_QUOLL 1158 |
1172 | quicksilver MACH_QUICKSILVER QUICKSILVER 1159 | 1172 | quicksilver MACH_QUICKSILVER QUICKSILVER 1159 |
1173 | uplat926 MACH_UPLAT926 UPLAT926 1160 | 1173 | uplat926 MACH_UPLAT926 UPLAT926 1160 |
1174 | dep2410_dep2410 MACH_DEP2410_THOMAS DEP2410_THOMAS 1161 | ||
1175 | dtk2410 MACH_DTK2410 DTK2410 1162 | ||
1176 | chili MACH_CHILI CHILI 1163 | ||
1177 | demeter MACH_DEMETER DEMETER 1164 | ||
1178 | dionysus MACH_DIONYSUS DIONYSUS 1165 | ||
1179 | as352x MACH_AS352X AS352X 1166 | ||
1180 | service MACH_SERVICE SERVICE 1167 | ||
1181 | cs_e9301 MACH_CS_E9301 CS_E9301 1168 | ||
1182 | micro9m MACH_MICRO9M MICRO9M 1169 | ||
1183 | ia_mospck MACH_IA_MOSPCK IA_MOSPCK 1170 | ||
1184 | ql201b MACH_QL201B QL201B 1171 | ||
1185 | bbm MACH_BBM BBM 1174 | ||
1186 | exxx MACH_EXXX EXXX 1175 | ||
1187 | wma11b MACH_WMA11B WMA11B 1176 | ||
1188 | pelco_atlas MACH_PELCO_ATLAS PELCO_ATLAS 1177 | ||
1189 | g500 MACH_G500 G500 1178 | ||
1190 | bug MACH_BUG BUG 1179 | ||
1191 | mx33ads MACH_MX33ADS MX33ADS 1180 | ||
1192 | chub MACH_CHUB CHUB 1181 | ||
1193 | gta01 MACH_GTA01 GTA01 1182 | ||
1194 | w90n740 MACH_W90N740 W90N740 1183 | ||
1195 | medallion_sa2410 MACH_MEDALLION_SA2410 MEDALLION_SA2410 1184 | ||
1196 | ia_cpu_9200_2 MACH_IA_CPU_9200_2 IA_CPU_9200_2 1185 | ||
1197 | dimmrm9200 MACH_DIMMRM9200 DIMMRM9200 1186 | ||
1198 | pm9261 MACH_PM9261 PM9261 1187 | ||
1199 | mx21 MACH_MX21 MX21 1188 | ||
1200 | ml7304 MACH_ML7304 ML7304 1189 | ||
1201 | ucp250 MACH_UCP250 UCP250 1190 | ||
1202 | intboard MACH_INTBOARD INTBOARD 1191 | ||
1203 | gulfstream MACH_GULFSTREAM GULFSTREAM 1192 | ||
1204 | labquest MACH_LABQUEST LABQUEST 1193 | ||
1205 | vcmx313 MACH_VCMX313 VCMX313 1194 | ||
1206 | urg200 MACH_URG200 URG200 1195 | ||
1207 | cpux255lcdnet MACH_CPUX255LCDNET CPUX255LCDNET 1196 | ||
1208 | netdcu9 MACH_NETDCU9 NETDCU9 1197 | ||
1209 | netdcu10 MACH_NETDCU10 NETDCU10 1198 | ||
1210 | dspg_dga MACH_DSPG_DGA DSPG_DGA 1199 | ||
1211 | dspg_dvw MACH_DSPG_DVW DSPG_DVW 1200 | ||
1212 | solos MACH_SOLOS SOLOS 1201 | ||
1213 | at91sam9263ek MACH_AT91SAM9263EK AT91SAM9263EK 1202 | ||
1214 | osstbox MACH_OSSTBOX OSSTBOX 1203 | ||
1215 | kbat9261 MACH_KBAT9261 KBAT9261 1204 | ||
1216 | ct1100 MACH_CT1100 CT1100 1205 | ||
1217 | akcppxa MACH_AKCPPXA AKCPPXA 1206 | ||
1218 | zevio_1020 MACH_ZEVIO_1020 ZEVIO_1020 1207 | ||
1219 | hitrack MACH_HITRACK HITRACK 1208 | ||
1220 | syme1 MACH_SYME1 SYME1 1209 | ||
1221 | syhl1 MACH_SYHL1 SYHL1 1210 | ||
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index f08eafbddcc1..490d9d18a7d1 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c | |||
@@ -263,13 +263,36 @@ void VFP9_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs) | |||
263 | if (exceptions) | 263 | if (exceptions) |
264 | vfp_raise_exceptions(exceptions, trigger, orig_fpscr, regs); | 264 | vfp_raise_exceptions(exceptions, trigger, orig_fpscr, regs); |
265 | } | 265 | } |
266 | 266 | ||
267 | static void vfp_enable(void *unused) | ||
268 | { | ||
269 | u32 access = get_copro_access(); | ||
270 | |||
271 | /* | ||
272 | * Enable full access to VFP (cp10 and cp11) | ||
273 | */ | ||
274 | set_copro_access(access | CPACC_FULL(10) | CPACC_FULL(11)); | ||
275 | } | ||
276 | |||
277 | #include <linux/smp.h> | ||
278 | |||
267 | /* | 279 | /* |
268 | * VFP support code initialisation. | 280 | * VFP support code initialisation. |
269 | */ | 281 | */ |
270 | static int __init vfp_init(void) | 282 | static int __init vfp_init(void) |
271 | { | 283 | { |
272 | unsigned int vfpsid; | 284 | unsigned int vfpsid; |
285 | unsigned int cpu_arch = cpu_architecture(); | ||
286 | u32 access = 0; | ||
287 | |||
288 | if (cpu_arch >= CPU_ARCH_ARMv6) { | ||
289 | access = get_copro_access(); | ||
290 | |||
291 | /* | ||
292 | * Enable full access to VFP (cp10 and cp11) | ||
293 | */ | ||
294 | set_copro_access(access | CPACC_FULL(10) | CPACC_FULL(11)); | ||
295 | } | ||
273 | 296 | ||
274 | /* | 297 | /* |
275 | * First check that there is a VFP that we can use. | 298 | * First check that there is a VFP that we can use. |
@@ -277,13 +300,22 @@ static int __init vfp_init(void) | |||
277 | * we just need to read the VFPSID register. | 300 | * we just need to read the VFPSID register. |
278 | */ | 301 | */ |
279 | vfpsid = fmrx(FPSID); | 302 | vfpsid = fmrx(FPSID); |
303 | barrier(); | ||
280 | 304 | ||
281 | printk(KERN_INFO "VFP support v0.3: "); | 305 | printk(KERN_INFO "VFP support v0.3: "); |
282 | if (VFP_arch) { | 306 | if (VFP_arch) { |
283 | printk("not present\n"); | 307 | printk("not present\n"); |
308 | |||
309 | /* | ||
310 | * Restore the copro access register. | ||
311 | */ | ||
312 | if (cpu_arch >= CPU_ARCH_ARMv6) | ||
313 | set_copro_access(access); | ||
284 | } else if (vfpsid & FPSID_NODOUBLE) { | 314 | } else if (vfpsid & FPSID_NODOUBLE) { |
285 | printk("no double precision support\n"); | 315 | printk("no double precision support\n"); |
286 | } else { | 316 | } else { |
317 | smp_call_function(vfp_enable, NULL, 1, 1); | ||
318 | |||
287 | VFP_arch = (vfpsid & FPSID_ARCH_MASK) >> FPSID_ARCH_BIT; /* Extract the architecture version */ | 319 | VFP_arch = (vfpsid & FPSID_ARCH_MASK) >> FPSID_ARCH_BIT; /* Extract the architecture version */ |
288 | printk("implementor %02x architecture %d part %02x variant %x rev %x\n", | 320 | printk("implementor %02x architecture %d part %02x variant %x rev %x\n", |
289 | (vfpsid & FPSID_IMPLEMENTER_MASK) >> FPSID_IMPLEMENTER_BIT, | 321 | (vfpsid & FPSID_IMPLEMENTER_MASK) >> FPSID_IMPLEMENTER_BIT, |
@@ -291,9 +323,16 @@ static int __init vfp_init(void) | |||
291 | (vfpsid & FPSID_PART_MASK) >> FPSID_PART_BIT, | 323 | (vfpsid & FPSID_PART_MASK) >> FPSID_PART_BIT, |
292 | (vfpsid & FPSID_VARIANT_MASK) >> FPSID_VARIANT_BIT, | 324 | (vfpsid & FPSID_VARIANT_MASK) >> FPSID_VARIANT_BIT, |
293 | (vfpsid & FPSID_REV_MASK) >> FPSID_REV_BIT); | 325 | (vfpsid & FPSID_REV_MASK) >> FPSID_REV_BIT); |
326 | |||
294 | vfp_vector = vfp_support_entry; | 327 | vfp_vector = vfp_support_entry; |
295 | 328 | ||
296 | thread_register_notifier(&vfp_notifier_block); | 329 | thread_register_notifier(&vfp_notifier_block); |
330 | |||
331 | /* | ||
332 | * We detected VFP, and the support code is | ||
333 | * in place; report VFP support to userspace. | ||
334 | */ | ||
335 | elf_hwcap |= HWCAP_VFP; | ||
297 | } | 336 | } |
298 | return 0; | 337 | return 0; |
299 | } | 338 | } |