]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mmc: sdhci-pxav3: Add base clock quirk
authorKevin Liu <kliu5@marvell.com>
Wed, 17 Oct 2012 11:04:45 +0000 (19:04 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 6 Dec 2012 18:54:45 +0000 (13:54 -0500)
commit35d110e71a6f1d1d336a18be50bde755abebe3fb
treea5ec95b2bc63a80fb05332d83be766d810e88391
parent5f1a4dd0372038f2490afa4540cd66b8d092839e
mmc: sdhci-pxav3: Add base clock quirk

Enable the quirk SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN since
SD_CAPABILITIES_1[15:8](BASE_FREQ) can't get correct base clock value.
It returns a fixed pre-set value like 200 on some sdhci-pxav3 based
platforms like MMP3 while return 0 on the other sdhci-pxav3 based
platforms.  So we enable the quirk and get the base clock via function
get_max_clock. Also add get_max_clock.

Reported-by: Philip Rakity <prakity@marvell.com>
Reviewed-by: Philip Rakity <prakity@Marvell.com>
Acked-by: Zhangfei Gao <zhangfei.gao@marvell.com>
Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-pxav3.c