[U-Boot] [PATCH V4 0/9] EXYNOS5: Enable DWMMC, add FDT support for DWMMC and

Amar
2013-01-04T09:34:01Z

This patch set enables and initialises DWMMC for Exynos5250 on SMDK5250.
Adds driver changes required for DWMMC.
Adds FDT support for DWMMC.
Adds EMMC boot support for SMDK5250.

This patch set is based on:
"EXYNOS: mmc: support DesignWare Controller for Samsung-SoC", which
is merged in u-boot-mmc.
"Exynos: clock: support get_mmc_clk for exynos".
"Add DT based ethernet driver for SMDK5250".
"SMDK5250: Add FDT support" present at the following link
http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/149991

Changes from V1:
1)Corrected in response to review comments.
2)Created separate board files for FDT and non-FDT versions.
3)Added binding file for DWMMC device node.
4)Removed the propname 'index' from device node.
5)Prefixed the vendor name 'samsung' before propname in device node.
6)Ensured to have same signature for the function exynos_dwmci_init()
for both FDT and non-FDT versions.
7)EMMC clock setting has been moved from spl_boot.c to clock_init.c.

Changes from V2:
1)Updation of commit message and resubmition of proper patch set.

Changes from V3:
1)Updated to use the macro DWMCI_CTRL_SEND_AS_CCSD instead of the
hard coded value (1 << 10).
2)In the file exynos_dw_mmc.c, replaced the new function
exynos5_mmc_set_clk_div() with the existing function set_mmc_clk().
set_mmc_clk() will do the purpose.
3)In the file exynos_dw_mmc.c, computation of FSYS block clock
divisor (pre-ratio) value is added.
4)Removed the new function exynos5_mmc_set_clk_div() from clock.c.

Amar (9):
FDT: Add compatible string for DWMMC
EXYNOS5: FDT: Add DWMMC device node data
DWMMC: Initialise dwmci and resolve EMMC read write issues
EXYNOS5: DWMMC: Added FDT support for DWMMC
EXYNOS5: DWMMC: API to set mmc clock divisor
SMDK5250: Initialise and Enable DWMMC, support FDT and non-FDT
MMC: APIs to support resize of EMMC boot partition
SMDK5250: Enable EMMC booting
COMMON: MMC: Command to support EMMC booting and to

arch/arm/cpu/armv7/exynos/clock.c | 4 +-
arch/arm/dts/exynos5250.dtsi | 32 ++++
arch/arm/include/asm/arch-exynos/clk.h | 3 +
arch/arm/include/asm/arch-exynos/dwmmc.h | 4 +
board/samsung/dts/exynos5250-smdk5250.dts | 22 +++
board/samsung/smdk5250/Makefile | 4 +
board/samsung/smdk5250/clock_init.c | 15 ++
board/samsung/smdk5250/clock_init.h | 5 +
board/samsung/smdk5250/exynos5-dt.c | 242 ++++++++++++++++++++++++++++++
board/samsung/smdk5250/smdk5250.c | 97 ++++++------
board/samsung/smdk5250/spl_boot.c | 52 ++++++-
common/cmd_mmc.c | 84 ++++++++++-
doc/device-tree-bindings/exynos/dwmmc.txt | 29 ++++
drivers/mmc/dw_mmc.c | 14 +-
drivers/mmc/exynos_dw_mmc.c | 129 +++++++++++++++-
drivers/mmc/mmc.c | 118 +++++++++++++++
include/configs/exynos5250-dt.h | 2 +
include/dwmmc.h | 4 +
include/fdtdec.h | 1 +
include/i2c.h | 2 +
include/mmc.h | 16 ++
lib/fdtdec.c | 1 +
22 files changed, 806 insertions(+), 74 deletions(-)
create mode 100644 board/samsung/smdk5250/exynos5-dt.c
create mode 100644 doc/device-tree-bindings/exynos/dwmmc.txt

--
1.8.0