mmc: dw_mmc-rockchip: parse rockchip, desired-num-phases from DT
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 16 May 2017 06:28:54 +0000 (14:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 29 Jun 2017 15:13:59 +0000 (17:13 +0200)
commit1a12a70fa6784baf2b8b9301ac2c22d1b1ab2979
tree1099b339a26dce99cb1386eb903fadcaf2ac424c
parentfca0c33003b1523a9579696515870b164311e56e
mmc: dw_mmc-rockchip: parse rockchip, desired-num-phases from DT

Currently we unconditionally do tuning for each degree, which
costs 900ms for each boot and resume.

May someone argue that this is a question of accuracy VS time. But I
would say it's a trick of how we need to do decision for our boards.
If we don't care the time we spend at all, we could definitely do tuning
for each degree. But when we need to improve the user experience, for
instance, speed up resuming from S3, we should also have the right to
do that. This patch add parsing "rockchip,desired-num-phases", for folks
to specify the number of doing tuning. If not specified, 360 will be used
as before.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-rockchip.c