diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 19:08:50 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 19:08:50 -0400 |
| commit | 65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (patch) | |
| tree | 344e03a5039a44982c1b78d6113633b21b434820 /arch/arm/plat-omap | |
| parent | 541010e4b8921cd781ff02ae68028501457045b6 (diff) | |
| parent | 0181b61a988424b5cc44fe09e6968142359c815e (diff) | |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (95 commits)
[ARM] 4578/1: CM-x270: PCMCIA support
[ARM] 4577/1: ITE 8152 PCI bridge support
[ARM] 4576/1: CM-X270 machine support
[ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
[ARM] pxa: move pxa_set_mode() from pxa2xx_mainstone.c to mainstone.c
[ARM] pxa: move pxa_set_mode() from pxa2xx_lubbock.c to lubbock.c
[ARM] pxa: Make cpu_is_pxaXXX dependent on configuration symbols
[ARM] pxa: PXA3xx base support
[NET] smc91x: fix PXA DMA support code
[SERIAL] Fix console initialisation ordering
[ARM] pxa: tidy up arch/arm/mach-pxa/Makefile
[ARM] Update arch/arm/Kconfig for drivers/Kconfig changes
[ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
[ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
[ARM] Rename consistent_sync() as dma_cache_maint()
[ARM] 4572/1: ep93xx: add cirrus logic edb9307 support
[ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support
[ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32
[ARM] 4594/1: ns9xxx: use the new gpio functions
[ARM] 4593/1: ns9xxx: implement generic clockevents
...
Diffstat (limited to 'arch/arm/plat-omap')
| -rw-r--r-- | arch/arm/plat-omap/Kconfig | 9 | ||||
| -rw-r--r-- | arch/arm/plat-omap/Makefile | 1 | ||||
| -rw-r--r-- | arch/arm/plat-omap/debug-devices.c | 86 | ||||
| -rw-r--r-- | arch/arm/plat-omap/dma.c | 6 |
4 files changed, 94 insertions, 8 deletions
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index cfc69f3842fd..c1f7e5a819a3 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
| @@ -20,10 +20,15 @@ endchoice | |||
| 20 | 20 | ||
| 21 | comment "OMAP Feature Selections" | 21 | comment "OMAP Feature Selections" |
| 22 | 22 | ||
| 23 | config OMAP_DEBUG_LEDS | 23 | config OMAP_DEBUG_DEVICES |
| 24 | bool | 24 | bool |
| 25 | help | 25 | help |
| 26 | For debug card leds on TI reference boards. | 26 | For debug cards on TI reference boards. |
| 27 | |||
| 28 | config OMAP_DEBUG_LEDS | ||
| 29 | bool | ||
| 30 | depends on OMAP_DEBUG_DEVICES | ||
| 31 | default y if LEDS || LEDS_OMAP_DEBUG | ||
| 27 | 32 | ||
| 28 | config OMAP_RESET_CLOCKS | 33 | config OMAP_RESET_CLOCKS |
| 29 | bool "Reset unused clocks during boot" | 34 | bool "Reset unused clocks during boot" |
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 41a3c1cf3bd4..2549129aabc6 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
| @@ -17,4 +17,5 @@ obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o | |||
| 17 | 17 | ||
| 18 | obj-$(CONFIG_CPU_FREQ) += cpu-omap.o | 18 | obj-$(CONFIG_CPU_FREQ) += cpu-omap.o |
| 19 | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o | 19 | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o |
| 20 | obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o | ||
| 20 | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o | 21 | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o |
diff --git a/arch/arm/plat-omap/debug-devices.c b/arch/arm/plat-omap/debug-devices.c new file mode 100644 index 000000000000..83a5f8b91857 --- /dev/null +++ b/arch/arm/plat-omap/debug-devices.c | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/plat-omap/debug-devices.c | ||
| 3 | * | ||
| 4 | * Copyright (C) 2005 Nokia Corporation | ||
| 5 | * Modified from mach-omap2/board-h4.c | ||
| 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/kernel.h> | ||
| 13 | #include <linux/init.h> | ||
| 14 | #include <linux/platform_device.h> | ||
| 15 | |||
| 16 | #include <asm/hardware.h> | ||
| 17 | #include <asm/io.h> | ||
| 18 | |||
| 19 | #include <asm/arch/board.h> | ||
| 20 | #include <asm/arch/gpio.h> | ||
| 21 | |||
| 22 | |||
| 23 | /* Many OMAP development platforms reuse the same "debug board"; these | ||
| 24 | * platforms include H2, H3, H4, and Perseus2. | ||
| 25 | */ | ||
| 26 | |||
| 27 | static struct resource smc91x_resources[] = { | ||
| 28 | [0] = { | ||
| 29 | .flags = IORESOURCE_MEM, | ||
| 30 | }, | ||
| 31 | [1] = { | ||
| 32 | .flags = IORESOURCE_IRQ, | ||
| 33 | }, | ||
| 34 | }; | ||
| 35 | |||
| 36 | static struct platform_device smc91x_device = { | ||
| 37 | .name = "smc91x", | ||
| 38 | .id = -1, | ||
| 39 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
| 40 | .resource = smc91x_resources, | ||
| 41 | }; | ||
| 42 | |||
| 43 | static struct resource led_resources[] = { | ||
| 44 | [0] = { | ||
| 45 | .flags = IORESOURCE_MEM, | ||
| 46 | }, | ||
| 47 | }; | ||
| 48 | |||
| 49 | static struct platform_device led_device = { | ||
| 50 | .name = "omap_dbg_led", | ||
| 51 | .id = -1, | ||
| 52 | .num_resources = ARRAY_SIZE(led_resources), | ||
| 53 | .resource = led_resources, | ||
| 54 | }; | ||
| 55 | |||
| 56 | static struct platform_device *debug_devices[] __initdata = { | ||
| 57 | &smc91x_device, | ||
| 58 | &led_device, | ||
| 59 | /* ps2 kbd + mouse ports */ | ||
| 60 | /* 4 extra uarts */ | ||
| 61 | /* 6 input dip switches */ | ||
| 62 | /* 8 output pins */ | ||
| 63 | }; | ||
| 64 | |||
| 65 | int __init debug_card_init(u32 addr, unsigned gpio) | ||
| 66 | { | ||
| 67 | int status; | ||
| 68 | |||
| 69 | smc91x_resources[0].start = addr + 0x300; | ||
| 70 | smc91x_resources[0].end = addr + 0x30f; | ||
| 71 | |||
| 72 | smc91x_resources[1].start = OMAP_GPIO_IRQ(gpio); | ||
| 73 | smc91x_resources[1].end = OMAP_GPIO_IRQ(gpio); | ||
| 74 | |||
| 75 | status = omap_request_gpio(gpio); | ||
| 76 | if (status < 0) { | ||
| 77 | printk(KERN_ERR "GPIO%d unavailable for smc91x IRQ\n", gpio); | ||
| 78 | return status; | ||
| 79 | } | ||
| 80 | omap_set_gpio_direction(gpio, 1); | ||
| 81 | |||
| 82 | led_resources[0].start = addr; | ||
| 83 | led_resources[0].end = addr + SZ_4K - 1; | ||
| 84 | |||
| 85 | return platform_add_devices(debug_devices, ARRAY_SIZE(debug_devices)); | ||
| 86 | } | ||
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 88d5b6d9f950..05a38498cbe0 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
| @@ -1347,11 +1347,6 @@ void omap_stop_lcd_dma(void) | |||
| 1347 | omap_writew(w, OMAP1610_DMA_LCD_CTRL); | 1347 | omap_writew(w, OMAP1610_DMA_LCD_CTRL); |
| 1348 | } | 1348 | } |
| 1349 | 1349 | ||
| 1350 | int omap_lcd_dma_ext_running(void) | ||
| 1351 | { | ||
| 1352 | return lcd_dma.ext_ctrl && lcd_dma.active; | ||
| 1353 | } | ||
| 1354 | |||
| 1355 | /*----------------------------------------------------------------------------*/ | 1350 | /*----------------------------------------------------------------------------*/ |
| 1356 | 1351 | ||
| 1357 | static int __init omap_init_dma(void) | 1352 | static int __init omap_init_dma(void) |
| @@ -1493,7 +1488,6 @@ EXPORT_SYMBOL(omap_free_lcd_dma); | |||
| 1493 | EXPORT_SYMBOL(omap_enable_lcd_dma); | 1488 | EXPORT_SYMBOL(omap_enable_lcd_dma); |
| 1494 | EXPORT_SYMBOL(omap_setup_lcd_dma); | 1489 | EXPORT_SYMBOL(omap_setup_lcd_dma); |
| 1495 | EXPORT_SYMBOL(omap_stop_lcd_dma); | 1490 | EXPORT_SYMBOL(omap_stop_lcd_dma); |
| 1496 | EXPORT_SYMBOL(omap_lcd_dma_ext_running); | ||
| 1497 | EXPORT_SYMBOL(omap_set_lcd_dma_b1); | 1491 | EXPORT_SYMBOL(omap_set_lcd_dma_b1); |
| 1498 | EXPORT_SYMBOL(omap_set_lcd_dma_single_transfer); | 1492 | EXPORT_SYMBOL(omap_set_lcd_dma_single_transfer); |
| 1499 | EXPORT_SYMBOL(omap_set_lcd_dma_ext_controller); | 1493 | EXPORT_SYMBOL(omap_set_lcd_dma_ext_controller); |
