diff options
author | Faiz Abbas <faiz_abbas@ti.com> | 2020-02-26 13:44:34 +0530 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-03-09 08:33:16 +0800 |
commit | a85121392015e30bd12302ea2986b7ca662d198d (patch) | |
tree | 167dd48c999a37c6468712fe6b31291e142704e6 /arch/arm/mach-mvebu/lowlevel_spl.S | |
parent | c7d106b4eb3fef78cd05a51b3b6950f152d93c06 (diff) |
mmc: am654_sdhci: Implement workaround for card detect
The 4 bit MMC controllers have an internal debounce for the SDCD line
with a debounce delay of 1 second. Therefore, after clocks to the IP are
enabled, software has to wait for this time before it can power on the
controller.
Add a deferred_probe() callback which polls on sdcd for a maximum of 2 seconds
before switching on power to the controller or (in the case of no card)
returning a ENOMEDIUM. This pushes the 1 second wait time to when the
card is actually needed rather than at every probe() making sure that
users who don't insert an SD card in the slot don't have to wait such a
long time.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-mvebu/lowlevel_spl.S')
0 files changed, 0 insertions, 0 deletions