]> bbs.cooldavid.org Git - net-next-2.6.git/commit
davinci: DA830/OMAP-L137 EVM: use runtime detection for UI card
authorSekhar Nori <nsekhar@ti.com>
Wed, 21 Oct 2009 15:48:20 +0000 (21:18 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:34 +0000 (10:21 -0800)
commit77316f0575264c56fb0c8f241b946a91e3a00602
treefb73effd8a03ae5bf770cfda071111da31517e1e
parenta0433ac30c75e5c989088cc5503653cc7a12998a
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>
arch/arm/mach-davinci/Kconfig
arch/arm/mach-davinci/board-da830-evm.c