This series gathers all remaining patches we need to enable DM_MMC for Allwinner boards. It relies on the clock gates framework already merged, and adds the respective gates and resets for each SoC. It then teaches the sunxi MMC driver to use the clock framework for those reset and gates clocks. The "mod clock", responsible for setting the actual interface speed, is still handled in the MMC driver, as the DM_CLK part of that is not ready yet (and is not trivial). This allows to turn on DM_MMC, and gets rid of the doomsday warning message every Allwinner board was blessed with for a while.
This series is available at: https://github.com/apritzel/u-boot/commits/sunxi-dm-gates --------------------------- Jagan, can you please have a look whether this is fine? If you are not sure about patch 7, you can leave this one out for now. If you are good with it, can you merge it to sunxi/master and send the PR, so that it still goes into the release? We can then fix all the remaining issues until the release. Cheers, Andre. Changes in v4: - Add proper A80 support (special MMC config clock) - Add V3s support (gates and resets) - Fix pinmux problem when not booting via SD or eMMC - smaller fixes per ML discussion Changes for v3: - Handle clock via CLK framework. Changes for v2: - update the 'reset enablement' logic to do required SoC's Andre Przywara (5): sunxi: clk: enable clk and reset for CCU devices sunxi: clk: add MMC gates/resets sunxi: clk: A80: add MMC clock support mmc: sunxi: Add DM clk and reset support sunxi: board: do MMC pinmux setup for DM_MMC builds Jagan Teki (4): mmc: sunxi: Add remaining compatible strings mmc: sunxi: Add DM_MMC support for H6 arm: sunxi: Enable DM_MMC arm: dts: sunxi: Enumerate MMC2 as MMC1 arch/arm/Kconfig | 1 + arch/arm/dts/sunxi-u-boot.dtsi | 4 +++ arch/arm/mach-sunxi/Kconfig | 1 - board/sunxi/board.c | 15 ++++++++++ configs/Linksprite_pcDuino3_defconfig | 1 - drivers/clk/sunxi/clk_a10.c | 4 +++ drivers/clk/sunxi/clk_a10s.c | 3 ++ drivers/clk/sunxi/clk_a23.c | 6 ++++ drivers/clk/sunxi/clk_a31.c | 8 +++++ drivers/clk/sunxi/clk_a64.c | 6 ++++ drivers/clk/sunxi/clk_a80.c | 32 +++++++++++++++++++- drivers/clk/sunxi/clk_a83t.c | 6 ++++ drivers/clk/sunxi/clk_h3.c | 6 ++++ drivers/clk/sunxi/clk_h6.c | 6 ++++ drivers/clk/sunxi/clk_r40.c | 8 +++++ drivers/clk/sunxi/clk_sunxi.c | 12 ++++++++ drivers/clk/sunxi/clk_v3s.c | 6 ++++ drivers/mmc/sunxi_mmc.c | 42 +++++++++++++++++++++++---- 18 files changed, 159 insertions(+), 8 deletions(-) -- 2.17.1 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

