Skip to content

Tegra30: MMC: Add DT-based MMC driver for Tegra30/Cardhu

Tom Warren u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 0 repliesNew
  2. v26 patches 0 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Use mmc_id instead of base address in pad_init_mmc
- Remove all TEGRA_SDMMCx_BASE defines, no longer used
- Add/use compatible entry for Tegra30 SDMMC driver Changes in v3:
- Remove GP SDIO pad cfg writes - done in pinmux/padctrl init tables

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Tegra30: fdt: Add SDMMC (sdhci) nodes for T30 boards (Cardhu for now)arch/arm/dts/tegra30.dtsi board/nvidia/dts/tegra30-cardhu.dts+47 -00 replies
2/6Tegra: MMC: Added/update SDMMC registers/base addresses for T20/T30arch/arm/include/asm/arch-tegra/tegra_mmc.h+29 -60 replies
3/6Tegra30: MMC: Add SD bus power-rail and SDMMC pad init routinesboard/nvidia/cardhu/cardhu.c board/nvidia/common/board.c+81 -10 replies
4/6mmc: Tegra: Add SD bus power/voltage function and MMC pad init call.drivers/mmc/tegra_mmc.c+55 -80 replies
5/6Tegra30: mmc: Add Tegra30 SDMMC compatible entry to fdtdec & driverinclude/fdtdec.h lib/fdtdec.c+3 -10 replies
6/6Tegra30: MMC: Enable DT MMC driver support for Tegra30 Cardhu boardsinclude/configs/cardhu.h include/configs/tegra30-common.h+22 -11 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchStephen Warren
1/6
2/6
3/6
4/6
5/6
6/6R-b

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

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/6] Tegra30: MMC: Add DT-based MMC driver for Tegra30/Cardhu

This patchset adds SDMMC device-tree support to the Tegra30 dts files, and enables the Tegra MMC driver on Tegra30 Cardhu.

I've tested this on my Cardhu-A04 and everything works fine, including card detect. All Tegra boards also build w/o error, and Seaboard MMC functionality is unchanged.

Changes in v2:
- Use mmc_id instead of base address in pad_init_mmc
- Remove all TEGRA_SDMMCx_BASE defines, no longer used
- Add/use compatible entry for Tegra30 SDMMC driver Changes in v3:
- Remove GP SDIO pad cfg writes - done in pinmux/padctrl init tables

Tom Warren (6):
Tegra30: fdt: Add SDMMC (sdhci) nodes for T30 boards (Cardhu for now)
Tegra: MMC: Added/update SDMMC registers/base addresses for T20/T30
Tegra30: MMC: Add SD bus power-rail and SDMMC pad init routines
mmc: Tegra: Add SD bus power/voltage function and MMC pad init call.
Tegra30: mmc: Add Tegra30 SDMMC compatible entry to fdtdec & driver
Tegra30: MMC: Enable DT MMC driver support for Tegra30 Cardhu boards

 arch/arm/dts/tegra30.dtsi                   |   32 ++++++++++++++
 arch/arm/include/asm/arch-tegra/tegra_mmc.h |   35 ++++++++++++---
 board/nvidia/cardhu/cardhu.c                |   51 +++++++++++++++++++++
 board/nvidia/common/board.c                 |   31 +++++++++++++-
 board/nvidia/dts/tegra30-cardhu.dts         |   15 ++++++
 drivers/mmc/tegra_mmc.c                     |   63 +++++++++++++++++++++++---
 include/configs/cardhu.h                    |   20 ++++++++-
 include/configs/tegra30-common.h            |    3 +
 include/fdtdec.h                            |    3 +-
 lib/fdtdec.c                                |    1 +
 10 files changed, 237 insertions(+), 17 deletions(-)