aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/westbridge
diff options
context:
space:
mode:
authorDavid Cross <david.cross@cypress.com>2010-09-10 19:51:05 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-14 19:52:46 -0400
commit4ecea3c51b42419d6cd314b3d36c6ceaa9c204e9 (patch)
treec96fc0e8360f08c8be37bfcfd8c100986ba978fd /drivers/staging/westbridge
parent8be11ffcf59e9bcb5f0a2a2b2e7b43d56c797b98 (diff)
Staging: west bridge: Kconfig fix
This patch fixes the currently broken Kconfig for west bridge by introducing a dependency on a valid HAL Layer for the driver build. Signed-off-by: David Cross <david.cross@cypress.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/westbridge')
-rw-r--r--drivers/staging/westbridge/Kconfig29
1 files changed, 24 insertions, 5 deletions
diff --git a/drivers/staging/westbridge/Kconfig b/drivers/staging/westbridge/Kconfig
index 57468125b39..2b1c2ae557b 100644
--- a/drivers/staging/westbridge/Kconfig
+++ b/drivers/staging/westbridge/Kconfig
@@ -4,7 +4,7 @@
4 4
5menuconfig WESTBRIDGE 5menuconfig WESTBRIDGE
6 tristate "West Bridge support" 6 tristate "West Bridge support"
7 depends on HAS_IOMEM && BROKEN 7 depends on WESTBRIDGE_HAL_SELECTED
8 help 8 help
9 This selects West Bridge Peripheral controller support. 9 This selects West Bridge Peripheral controller support.
10 10
@@ -12,7 +12,7 @@ menuconfig WESTBRIDGE
12 12
13menuconfig WESTBRIDGE_ASTORIA 13menuconfig WESTBRIDGE_ASTORIA
14 bool "West Bridge Astoria support" 14 bool "West Bridge Astoria support"
15 depends on WESTBRIDGE != n 15 depends on WESTBRIDGE != n && WESTBRIDGE_HAL_SELECTED
16 help 16 help
17 This option enables support for West Bridge Astoria 17 This option enables support for West Bridge Astoria
18 18
@@ -20,11 +20,30 @@ if WESTBRIDGE_ASTORIA
20source "drivers/staging/westbridge/astoria/Kconfig" 20source "drivers/staging/westbridge/astoria/Kconfig"
21endif #WESTBRIDGE_ASTORIA 21endif #WESTBRIDGE_ASTORIA
22 22
23menuconfig MACH_OMAP3_WESTBRIDGE_AST_PNAND_HAL 23config WESTBRIDGE_HAL_SELECTED
24 boolean
25
26choice
27 prompt "West Bridge HAL"
28 help
29 West Bridge HAL/processor interface to be used
30
31#
32# HAL Layers
33#
34
35config MACH_OMAP3_WESTBRIDGE_AST_PNAND_HAL
24 bool "WESTBRIDGE OMAP3430 Astoria PNAND HAL" 36 bool "WESTBRIDGE OMAP3430 Astoria PNAND HAL"
25 depends on ARCH_OMAP3 && WESTBRIDGE_ASTORIA 37 depends on ARCH_OMAP3
38 select WESTBRIDGE_HAL_SELECTED
39 help
40 Include the OMAP3430 HAL for PNAND interface
41
42config MACH_NO_WESTBRIDGE
43 bool "no West Bridge HAL selected"
26 help 44 help
27 Include the OMAP3430 Linux Based HAL 45 Do not include any HAL layer(de-activates West Bridge option)
46endchoice
28 47
29config WESTBRIDGE_DEBUG 48config WESTBRIDGE_DEBUG
30 bool "West Bridge debugging" 49 bool "West Bridge debugging"