mmc: core: Fix HS switch failure in mmc_select_hs400
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 27 May 2016 06:57:25 +0000 (14:57 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 30 May 2016 09:30:56 +0000 (17:30 +0800)
commit92e34f1027741f6c319bef8ba968d1c3350d3db9
tree7dbef1dfaca998fa9dcdff98c812728a0ae97ea6
parent53eb7ca76b981809e0362038f4a82930c8b1cc8f
mmc: core: Fix HS switch failure in mmc_select_hs400

We should change HS400 mode selection timing to meet JEDEC
specification. The JEDEC 5.1 said that change the frequency to <= 52MHZ
after HS_TIMING switch. Refer to section 6.6.2.3 "HS400" timing mode
selection:

Set the "Timing Interface" parameter in the HS_TIMING[185] field of the
Extended CSD register to 0x1 to switch to High Speed mode and then set
the clock frequency to a value not greater than 52MHZ.

Change-Id: Ia676b8e3ea4a66867372c9719d768a6d4405ff15
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/core/mmc.c