Skip to content

mmc: sdhci-esdhc-imx: add SD3.0 support

Dong Aisheng linux-arm-kernel linux-mmc 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v18 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* some minor changes made by addressing Shawn's comments
* move esdhc_set_clock shared by imx and powerpc to each platform driver since it's not much common anymore based on Shawn's suggestion.
* dts pinctrl group name changed according to Sascha's suggestion and rebased on latest tree.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mmc: sdhci: add hooks for platform specific tuningdrivers/mmc/host/sdhci.c drivers/mmc/host/sdhci.h+9 -00 replies
2/9mmc: sdhci: allow platform access of sdhci_send_commanddrivers/mmc/host/sdhci.c drivers/mmc/host/sdhci.h+4 -20 replies
3/9mmc: sdhci-esdhci: move common esdhc_set_clock to platform driverdrivers/mmc/host/sdhci-esdhc-imx.c drivers/mmc/host/sdhci-esdhc.h drivers/mmc/host/sdhci-of-esdhc.c+66 -410 replies
4/9sdhci: sdhci-esdhc-imx: support real clock on and off for imx6qdrivers/mmc/host/sdhci-esdhc-imx.c+17 -20 replies
5/9sdhci: sdhci-esdhci-imx: add sd3.0 clock tuning supportdrivers/mmc/host/sdhci-esdhc-imx.c+195 -10 replies
6/9sdhci: sdhci-esdhc-imx: change pinctrl state according to uhs modedrivers/mmc/host/sdhci-esdhc-imx.c include/linux/platform_data/mmc-esdhc-imx.h+99 -10 replies
7/9mmc: sdhci-esdhc-imx: correct pre_div for imx6qdrivers/mmc/host/sdhci-esdhc-imx.c+3 -00 replies
8/9mmc: sdhci-esdhc-imx: set actual_clock in clock settingdrivers/mmc/host/sdhci-esdhc-imx.c+2 -10 replies
9/9ARM: dts: imx6qdl: add uhs pinctrl state for usdhc3arch/arm/boot/dts/imx6qdl-sabreauto.dtsi arch/arm/boot/dts/imx6qdl.dtsi+34 -11 reply

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchShawn Guo
SeriesA-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/9] mmc: sdhci-esdhc-imx: add SD3.0 support

This patch series add SD3.0 support for i.MX6Q/DL.
Since freescale i.MX6Q/DL uSDHC clock tuning progress is a little different from the standard tuning process defined in host controller spec v3.0. So we add a hook to allow execute platform specific tuning instead of standard host controller tuning.

The main difference are:
1) not only generate Buffer Read Ready interrupt when tuning is performing. It generates all other DATA interrupts like the normal data command.
2) SDHCI_CTRL_EXEC_TUNING is not automatically cleared by HW, instead it's controlled by SW.
3) SDHCI_CTRL_TUNED_CLK is not automatically set by HW,
it's controlled by SW.
4) the clock delay for every tuning is set by SW.

Tested on i.MX6Q Sabreauto board.

The series is based on latest Linus tree.

ChangeLog since v1:
* some minor changes made by addressing Shawn's comments
* move esdhc_set_clock shared by imx and powerpc to each platform driver since it's not much common anymore based on Shawn's suggestion.
* dts pinctrl group name changed according to Sascha's suggestion and rebased on latest tree.

Dong Aisheng (9):
mmc: sdhci: add hooks for platform specific tuning
mmc: sdhci: allow platform access of sdhci_send_command
mmc: sdhci-esdhci: move common esdhc_set_clock to platform driver
sdhci: sdhci-esdhc-imx: support real clock on and off for imx6q
sdhci: sdhci-esdhci-imx: add sd3.0 clock tuning support
sdhci: sdhci-esdhc-imx: change pinctrl state according to uhs mode
mmc: sdhci-esdhc-imx: correct pre_div for imx6q
mmc: sdhci-esdhc-imx: set actual_clock in clock setting
ARM: dts: imx6qdl: add uhs pinctrl state for usdhc3

 arch/arm/boot/dts/imx6qdl-sabreauto.dtsi    |    5 +-
 arch/arm/boot/dts/imx6qdl.dtsi              |   30 +++
 drivers/mmc/host/sdhci-esdhc-imx.c          |  344 ++++++++++++++++++++++++++-
 drivers/mmc/host/sdhci-esdhc.h              |   37 ---
 drivers/mmc/host/sdhci-of-esdhc.c           |   35 +++-
 drivers/mmc/host/sdhci.c                    |   12 +-
 drivers/mmc/host/sdhci.h                    |    3 +
 include/linux/platform_data/mmc-esdhc-imx.h |    4 +
 8 files changed, 425 insertions(+), 45 deletions(-)