diff options
author | Tony Lindgren <tony@atomide.com> | 2013-01-11 14:24:20 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-01-11 14:24:20 -0500 |
commit | a62a6e98c370ccca37d353a5f763b532411a4c14 (patch) | |
tree | 595f6e60c10156a1a2295e6975e6266c034dc1f5 | |
parent | 808b7e07464db6a4ef840016d4bac1d99a34cc7c (diff) |
ARM: OMAP2+: Disable code that currently does not work with multiplaform
We still need to fix up few places for multiplatform support,
but that can proceed separately. Fix the issue by making the
problem drivers depends !ARCH_MULTIPLATFORM for now.
The remaining pieces that are not multiplatform compatible
for omap2+ SoCs are:
1. Some drivers are using custom omap_dm_timer calls
There are two drivers that are directly usign omap hardware
timers for PWM and DSP clocking: drivers/media/rc/ir-rx51.c and
drivers/staging/tidspbridge/core/dsp-clock.c. These can be
fixed for multiplatform by allowing a minimal set of hardware
timers to be accessed, and for some functionality by using the
hrtimer framework.
2. Hardware OMAP4_ERRATA_I688 needs to be fixed up
This can't be enabled for multiplatform configurations in
it's current form. It may be possible to fix it up to do
instruction replacement early on during init. Luckily it
looks like this errata does not seem to get hit with
mainline kernel code alone at least currently.
3. Legacy header needed for omap-sham.c
Looks like it still needs mach/irqs.h for omap1 that
does not exist for multiplatform systems. Just ifdef
it for now.
4. Mailbox is waiting to get moved to drivers
Disable it for now to avoid adding a dependency to the
mailbox patches.
Cc: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Cc: Sean Young <sean@mess.org>
Cc: "Víctor Manuel Jáquez Leal" <vjaquez@igalia.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
[tony@atomide.com: updated to disable mailbox]
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/Kconfig | 2 | ||||
-rw-r--r-- | drivers/crypto/omap-sham.c | 3 | ||||
-rw-r--r-- | drivers/media/rc/Kconfig | 2 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/Kconfig | 2 |
5 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 41b581fd0213..492d76466833 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -397,7 +397,7 @@ config OMAP3_SDRC_AC_TIMING | |||
397 | 397 | ||
398 | config OMAP4_ERRATA_I688 | 398 | config OMAP4_ERRATA_I688 |
399 | bool "OMAP4 errata: Async Bridge Corruption" | 399 | bool "OMAP4 errata: Async Bridge Corruption" |
400 | depends on ARCH_OMAP4 | 400 | depends on ARCH_OMAP4 && !ARCH_MULTIPLATFORM |
401 | select ARCH_HAS_BARRIERS | 401 | select ARCH_HAS_BARRIERS |
402 | help | 402 | help |
403 | If a data is stalled inside asynchronous bridge because of back | 403 | If a data is stalled inside asynchronous bridge because of back |
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index 665870dce3c8..03f12525913e 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
@@ -118,7 +118,7 @@ config OMAP_MUX_WARNINGS | |||
118 | 118 | ||
119 | config OMAP_MBOX_FWK | 119 | config OMAP_MBOX_FWK |
120 | tristate "Mailbox framework support" | 120 | tristate "Mailbox framework support" |
121 | depends on ARCH_OMAP | 121 | depends on ARCH_OMAP && !ARCH_MULTIPLATFORM |
122 | help | 122 | help |
123 | Say Y here if you want to use OMAP Mailbox framework support for | 123 | Say Y here if you want to use OMAP Mailbox framework support for |
124 | DSP, IVA1.0 and IVA2 in OMAP1/2/3. | 124 | DSP, IVA1.0 and IVA2 in OMAP1/2/3. |
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 90d34adc2a66..9e6947bc296f 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c | |||
@@ -38,7 +38,10 @@ | |||
38 | #include <crypto/internal/hash.h> | 38 | #include <crypto/internal/hash.h> |
39 | 39 | ||
40 | #include <linux/omap-dma.h> | 40 | #include <linux/omap-dma.h> |
41 | |||
42 | #ifdef CONFIG_ARCH_OMAP1 | ||
41 | #include <mach/irqs.h> | 43 | #include <mach/irqs.h> |
44 | #endif | ||
42 | 45 | ||
43 | #define SHA_REG_DIGEST(x) (0x00 + ((x) * 0x04)) | 46 | #define SHA_REG_DIGEST(x) (0x00 + ((x) * 0x04)) |
44 | #define SHA_REG_DIN(x) (0x1C + ((x) * 0x04)) | 47 | #define SHA_REG_DIN(x) (0x1C + ((x) * 0x04)) |
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig index 79ba242fe263..19f3563c61da 100644 --- a/drivers/media/rc/Kconfig +++ b/drivers/media/rc/Kconfig | |||
@@ -291,7 +291,7 @@ config IR_TTUSBIR | |||
291 | 291 | ||
292 | config IR_RX51 | 292 | config IR_RX51 |
293 | tristate "Nokia N900 IR transmitter diode" | 293 | tristate "Nokia N900 IR transmitter diode" |
294 | depends on OMAP_DM_TIMER && LIRC | 294 | depends on OMAP_DM_TIMER && LIRC && !ARCH_MULTIPLATFORM |
295 | ---help--- | 295 | ---help--- |
296 | Say Y or M here if you want to enable support for the IR | 296 | Say Y or M here if you want to enable support for the IR |
297 | transmitter diode built in the Nokia N900 (RX51) device. | 297 | transmitter diode built in the Nokia N900 (RX51) device. |
diff --git a/drivers/staging/tidspbridge/Kconfig b/drivers/staging/tidspbridge/Kconfig index 0dd479f5638d..60848f198b48 100644 --- a/drivers/staging/tidspbridge/Kconfig +++ b/drivers/staging/tidspbridge/Kconfig | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | menuconfig TIDSPBRIDGE | 5 | menuconfig TIDSPBRIDGE |
6 | tristate "DSP Bridge driver" | 6 | tristate "DSP Bridge driver" |
7 | depends on ARCH_OMAP3 | 7 | depends on ARCH_OMAP3 && !ARCH_MULTIPLATFORM |
8 | select OMAP_MBOX_FWK | 8 | select OMAP_MBOX_FWK |
9 | help | 9 | help |
10 | DSP/BIOS Bridge is designed for platforms that contain a GPP and | 10 | DSP/BIOS Bridge is designed for platforms that contain a GPP and |