]> git.sur5r.net Git - u-boot/commit
mmc/dwmmc: modify FIFO threshold only if value explicitly set
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 27 Nov 2013 13:00:52 +0000 (17:00 +0400)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Sun, 8 Dec 2013 12:08:47 +0000 (14:08 +0200)
commit9108b315f228b464379211be26f594ea3dc82cc5
treec7bebfc6eccdf271667a4dc65bda7809cd482007
parent18ab67559736335d743503d92b49129e505e1baf
mmc/dwmmc: modify FIFO threshold only if value explicitly set

If platform provides "host->fifoth_val" it will be used for
initialization of DWMCI_FIFOTH register. Otherwise default value will be
used.

This implementation allows:
 * escape unclear and recursive calculations that are currently in use
 * use whatever custom value for DWMCI_FIFOTH initialization if any
particular SoC requires it

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Mischa Jonker <mjonker@synopsys.com>
Cc: Alim Akhtar <alim.akhtar@samsung.com>
Cc: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Amar <amarendra.xt@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Andy Fleming <afleming@freescale.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
drivers/mmc/dw_mmc.c