mfd: Adding twl6030 mmc card detect support for MMC1
commit72f2e2c763edc41f8eead042b6ff933acb0378e2
authorkishore kadiyala <kishore.kadiyala@ti.com>
Fri, 24 Sep 2010 17:13:20 +0000 (24 17:13 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:59 +0000 (29 00:29 +0200)
treeb31ca0ae6be04e9191fdd99fa157c9ec4b4598a2
parent8e00593557c3c5a7bc6f636412a1cadcf4624232
mfd: Adding twl6030 mmc card detect support for MMC1

Adding card detect callback function and card detect configuration
function for MMC1 Controller on OMAP4.

Card detect configuration function does initial configuration of the
MMC Control & PullUp-PullDown registers of Phoenix.

For MMC1 Controller, card detect interrupt source is
twl6030 which is non-gpio. The card detect call back function provides
card present/absent status by reading MMC Control register present
on twl6030.

Since OMAP4 doesn't use any GPIO line as used in OMAP3 for card detect,
the suspend/resume initialization which was done in omap_hsmmc_gpio_init
previously is moved to the probe thus making it generic for both OMAP3 &
OMAP4.

Cc: Tony Lindgren <tony@atomide.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Madhusudhan Chikkature <madhu.cr@ti.com>
Cc: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
arch/arm/mach-omap2/board-4430sdp.c
drivers/mfd/twl6030-irq.c
drivers/mmc/host/omap_hsmmc.c
include/linux/i2c/twl.h