]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: esdhc: Add support for 8-bit bus width and non-removable card
authorOded Gabbay <ogabbay@advaoptical.com>
Thu, 27 Jun 2013 16:00:05 +0000 (12:00 -0400)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 17:57:09 +0000 (13:57 -0400)
commita382bef79b9ec2b13f039f86c3d43592fdbd9c39
tree1c30e17ab09309e18573d98519dbbe7a51a2740d
parent5278d3d1c6df0cf616db1c7d956bae9b7460d3a3
mmc: esdhc: Add support for 8-bit bus width and non-removable card

This patch adds support of connecting an MMC media using an 8-bit
bus width connection to Freescale's P2020 H/W SDHC controller. During
the probe function, the generic function mmc_of_parse is called to
detect whether the controller is configured with 8-bit bus width.

Also, the generic function detects if the non-removable property is
set in the device tree.  The function esdhc_pltfm_bus_width was added
because the bus width configuration is platform specific.

Signed-off-by: Oded Gabbay <ogabbay@advaoptical.com>
Reviewed-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc.h
drivers/mmc/host/sdhci-of-esdhc.c