summaryrefslogtreecommitdiffstats
path: root/drivers/mci/imx-esdhc.c
Commit message (Collapse)AuthorAgeFilesLines
* mci i.MX esdhc: Add oftree supportSascha Hauer2012-09-231-5/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MMC i.MX esdhc: Fix sparse warningsSascha Hauer2012-06-301-10/+10
| | | | | | mostly by moving the registers into the correct address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mmc i.MX esdhc: Add i.MX6 supportSascha Hauer2012-04-241-3/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove duplicate voltage setup for imx-esdhcAlexander Shiyan2012-03-181-2/+0
| | | | | | | We are already setup voltages from capabilities register. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci i.MX esdhc: make 8bit modes platform dependentSascha Hauer2012-02-091-1/+5
| | | | | | | | Whether the controller works in 8bit mode is not only dependent on the controller but also on the board having wired up 8 data lines, so put a capabilities field in platform data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci i.MX esdhc: use timeout loopsSascha Hauer2012-02-091-7/+20
| | | | | | | | Too often I have waited to get a reaction from this driver when something goes wrong. Use timeout loops instead of inifinite polling loops. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: remove unused device argument from set_iosSascha Hauer2012-02-091-2/+1
| | | | | | This argmuent is unused in all drivers, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci core: replace discrete ios values with struct iosSascha Hauer2012-02-091-4/+12
| | | | | | | As we'll need more arguments to set_ios over time put them in a struct mci_ios like the kernel does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-esdhc: add support of card detectJean-Christophe PLAGNIOL-VILLARD2011-12-051-0/+37
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci imx-esdhc: do not overwrite probed host capsSascha Hauer2011-12-051-1/+0
| | | | | | | The caps are read from the hardware but overwritten afterwards. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci imx esdhc: enable i.MX53 fix for i.MX51 aswellSascha Hauer2011-12-051-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce io.hSascha Hauer2011-09-221-1/+1
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: parent fixupsSascha Hauer2011-08-171-0/+1
| | | | | | | Make the mci host a child of the hardware device and the disk a child of the mci host. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MCI imx-esdhc: remove unnecessary large delaySascha Hauer2011-07-251-5/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MCI imx-esdhc: Fix multiblock transfers on i.MX53Sascha Hauer2011-07-251-8/+13
| | | | | | | | | | | | | | | | | | | In the Kernel this bug is described like this: > The CMDTYPE of the CMD register (offset 0xE) should be set to > "11" when the STOP CMD12 is issued on imx53 to abort one > open ended multi-blk IO. Otherwise the TC INT wouldn't > be generated. > In exact block transfer, the controller doesn't complete the > operations automatically as required at the end of the > transfer and remains on hold if the abort command is not sent. > As a result, the TC flag is not asserted and SW received timeout > exeception. Bit1 of Vendor Spec registor is used to fix it. We do not use exact block transfers in barebox, so we only need the first part of this fix. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci i.MX esdhc: convert to struct resourceSascha Hauer2011-07-191-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MCI imx-esdhc: Fix cache flush/inval for multi block supportSascha Hauer2011-07-051-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-esdhc: fix printf compiler warningsSascha Hauer2011-01-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add i.MX esdhc supportSascha Hauer2010-10-111-0/+512
This adds a driver for the esdhc controller found on Freescale i.MX25/35/51 SoCs. This code is based on the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>