]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: omap_hsmmc: Enable HSPE bit for high speed cards
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Mon, 19 Nov 2012 16:29:58 +0000 (21:59 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 4 Dec 2012 18:43:01 +0000 (13:43 -0500)
commit6c0c8005ee475d434c33d59a9dd8c5c7d4fdb789
tree045800fe1ed08ba58916a96f6a5ff6b7190119a2
parent44d72ce65c0fa8102b0586010cbf907ab0c2ed02
mmc: omap_hsmmc: Enable HSPE bit for high speed cards

HSMMC IP on AM33xx need a special setting to handle High-speed cards.
Other platforms like TI81xx, OMAP4 may need this as-well. This depends
on the HSMMC IP timing closure done for the high speed cards.

From AM335x TRM (SPRUH73F - 18.3.12 Output Signals Generation):

The MMC/SD/SDIO output signals can be driven on either falling edge or
rising edge depending on the SD_HCTL[2] HSPE bit. This feature allows
to reach better timing performance, and thus to increase data transfer
frequency.

There are few pre-requisites for enabling the HSPE bit
- Controller should support High-Speed-Enable Bit and
- Controller should not be using DDR Mode and
- Controller should advertise that it supports High Speed in
  capabilities register and
- MMC/SD clock coming out of controller > 25MHz

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt
arch/arm/plat-omap/include/plat/mmc.h
drivers/mmc/host/omap_hsmmc.c