mfd: Correct ro and cd implemantion on DM355
authorVipin Bhandari <vipin.bhandari@ti.com>
Thu, 30 Jul 2009 08:19:17 +0000 (04:19 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Sep 2009 07:46:54 +0000 (09:46 +0200)
commit89a99e76f6888166edb145f576cc4a761ee0e0a9
tree8e18d832e704146cdbb3c3edb80f94511dd8d885
parent8d360d8c03e1e8514bbaf606b1cd3b818dfc445d
mfd: Correct ro and cd implemantion on DM355

This patch corrects the support for MMCSD card detection
and read only feature for SoC DM355.

EVMDM355_ECP_VA4.pdf, from Spectrum digital, suggests that
Bit 2 and 4 should be checked for card detection. However
on the EVM, bits 1 and 3 gives this status, for MMC/SD
instance 0 and 1 respectively. The pdf also suggests that
Bit 1 and 3 should be checked for write protection. However
on the EVM bits 2 and 4 gives this status.

This document can be downloaded from
http://c6000.spectrumdigital.com/evmdm355/reve/files/EVMDM355_ECP_VA4.pdf

Signed-off-by: Vipin Bhandari <vipin.bhandari@ti.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/dm355evm_msp.c