diff options
author | Sekhar Nori <nsekhar@ti.com> | 2009-10-21 11:48:20 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-25 13:21:34 -0500 |
commit | 77316f0575264c56fb0c8f241b946a91e3a00602 (patch) | |
tree | fb73effd8a03ae5bf770cfda071111da31517e1e /arch/arm/mach-davinci/Kconfig | |
parent | a0433ac30c75e5c989088cc5503653cc7a12998a (diff) |
davinci: DA830/OMAP-L137 EVM: use runtime detection for UI card
This patch supports runtime detection of DA830 UI card and
eliminates the need for DA830_UI config option. Successful
probe of GPIO expander present on the UI card is used to
detect its presence. For this reason, GPIO_PCF857X is auto-
selected when DA830 EVM is configured. In case the UI card
is absent, the probe fails in reasonable time.
As a side effect this patch also gets rid of the voilation
of Documentation/SubmittingPatches section 2.2 in function
da830_evm_ui_expander_setup()
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/Kconfig')
-rw-r--r-- | arch/arm/mach-davinci/Kconfig | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index 89548287ca0f..006144401c95 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig | |||
@@ -100,21 +100,18 @@ config MACH_DAVINCI_DA830_EVM | |||
100 | bool "TI DA830/OMAP-L137 Reference Platform" | 100 | bool "TI DA830/OMAP-L137 Reference Platform" |
101 | default ARCH_DAVINCI_DA830 | 101 | default ARCH_DAVINCI_DA830 |
102 | depends on ARCH_DAVINCI_DA830 | 102 | depends on ARCH_DAVINCI_DA830 |
103 | select GPIO_PCF857X | ||
103 | help | 104 | help |
104 | Say Y here to select the TI DA830/OMAP-L137 Evaluation Module. | 105 | Say Y here to select the TI DA830/OMAP-L137 Evaluation Module. |
105 | 106 | ||
106 | config DA830_UI | ||
107 | bool "DA830/OMAP-L137 UI (User Interface) board support" | ||
108 | depends on MACH_DAVINCI_DA830_EVM | ||
109 | help | ||
110 | Say Y here if you have the DA830/OMAP-L137 UI | ||
111 | (User Interface) board installed and you want to | ||
112 | enable the peripherals located on User Interface | ||
113 | board. | ||
114 | |||
115 | choice | 107 | choice |
116 | prompt "Select DA830/OMAP-L137 UI board peripheral" | 108 | prompt "Select DA830/OMAP-L137 UI board peripheral" |
117 | depends on DA830_UI | 109 | depends on MACH_DAVINCI_DA830_EVM |
110 | help | ||
111 | The presence of UI card on the DA830/OMAP-L137 EVM is detected | ||
112 | automatically based on successful probe of the I2C based GPIO | ||
113 | expander on that board. This option selected in this menu has | ||
114 | an effect only in case of a successful UI card detection. | ||
118 | 115 | ||
119 | config DA830_UI_LCD | 116 | config DA830_UI_LCD |
120 | bool "LCD" | 117 | bool "LCD" |