mmc: core: Dynamic freq scaling for SD,MMC,SDIO
authorPavan Kunapuli <pkunapuli@nvidia.com>
Thu, 4 Apr 2013 12:15:52 +0000 (17:15 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Wed, 10 Apr 2013 10:49:44 +0000 (03:49 -0700)
commit18a8df49d7fc837cc805ef2b0601d3a301915060
treeae72a68a611384c73dfecd22424ca107bb4ca810
parent50ef135c30f3f9a0b7758068fbf31d8db4f92893
mmc: core: Dynamic freq scaling for SD,MMC,SDIO

Added support for dynamic frequency scaling of SD,MMC,SDIO devices.
The device is registered with devfreq framework after enumeration if
CONFIG_MMC_FREQ_SCALING is enabled.

MMC frequency governor is added to dynamically scale the frequency.
The governor doesn't use central polling but schedules a work to poll
the status of the device periodically. Optional callbacks are provided
to have custom algorithms for determining the frequency.

Bug 1238045
Bug 1044607

Change-Id: Ic7f5669c784afa759ad52bf8373011838a76c01c
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/213012
GVS: Gerrit_Virtual_Submit
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
drivers/mmc/core/Kconfig
drivers/mmc/core/Makefile
drivers/mmc/core/core.c
drivers/mmc/core/core.h
include/linux/mmc/host.h