]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 26 Nov 2012 00:43:49 +0000 (19:43 -0500)
commit8e6fde54d324aee0eec175e9a974d727b4aaa51c
tree613f259ba3bb26a14f90c63f544eb0ba6bf66bbe
parentcd5b3f9b638dd4278b650b02e1d361a7317283ca
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