Skip to content

Freescale SDHCI Fixes

Bernhard Beschow qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14hw/sd/sdhci: Fix TYPE_IMX_USDHC to implement sd-spec-version 3 by defaulthw/sd/sdhci.c+2 -00 replies
2/14hw/arm/fsl-imx6: Remove now redundant setting of "sd-spec-version" propertyhw/arm/fsl-imx6.c+0 -20 replies
3/14hw/arm/fsl-imx6: Fix naming of SDHCI related constants and attributeshw/arm/fsl-imx6.c include/hw/arm/fsl-imx6.h+10 -100 replies
4/14hw/arm/fsl-imx25: Apply missing reset quirkhw/arm/fsl-imx25.c+2 -00 replies
5/14Revert "hw/sd/sdhci: Rename ESDHC_* defines to USDHC_*"hw/sd/sdhci.c+33 -330 replies
6/14hw/sd/sdhci: Consolidate eSDHC constantshw/sd/sdhci-internal.h hw/sd/sdhci.c+5 -50 replies
7/14hw/sd/sdhci: Rename usdhc_ functionshw/sd/sdhci.c+5 -50 replies
8/14hw/sd/sdhci: Add TYPE_FSL_ESDHC_BEhw/sd/sdhci.c include/hw/sd/sdhci.h+33 -00 replies
9/14hw/ppc/e500: Use TYPE_FSL_ESDHC_BEhw/ppc/e500.c+1 -90 replies
10/14hw/arm/fsl-imx25: Extract TYPE_FSL_ESDHC_LEhw/arm/fsl-imx25.c hw/sd/sdhci.c include/hw/sd/sdhci.h+34 -50 replies
11/14hw/sd/sdhci: Remove endianness propertyhw/sd/sdhci-internal.h hw/sd/sdhci.c include/hw/sd/sdhci.h+2 -350 replies
12/14hw/sd/sdhci: Add uSDHC-specific quirkhw/sd/sdhci.c+26 -20 replies
13/14hw/sd/sdhci: Remove vendor propertyhw/sd/sdhci-internal.h hw/sd/sdhci.c include/hw/sd/sdhci.h+2 -80 replies
14/14hw/sd/trace-events: Remove redundant "SWITCH " command namehw/sd/trace-events+1 -10 replies

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéBALATON Zoltan
SeriesR-b T-b
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

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

Read the v1 thread

Cover letter [PATCH 00/14] Freescale SDHCI Fixes

This series splits TYPE_IMX_USDHC into three device models which fixes issues in the ppce500 and some i.MX machines. In particular, it introduces uSDHC's predecessor eSDHC in big and little endian variants. Once the eSDHCs are split off, uSDHC emulation is improved which is a stepping stone towards running u-boot on the i.MX8MP (not implemented yet).

In a way this series picks up previous efforts:
* https://lore.kernel.org/qemu-devel/[email protected]
* https://lore.kernel.org/qemu-devel/[email protected]

There is quite some code churn involved to fix all the issues addressed in this series. Let me know if you have any better ideas to achieve the same.

Best regards,
Bernhard

Testing done:
* make check
* Boot https://www.qemu-advent-calendar.org/2018/download/day19.tar.xz in ppce500
* Boot guest in imx8mp-evk

Bernhard Beschow (14):
hw/sd/sdhci: Fix TYPE_IMX_USDHC to implement sd-spec-version 3 by
default
hw/arm/fsl-imx6: Remove now redundant setting of "sd-spec-version"
property
hw/arm/fsl-imx6: Fix naming of SDHCI related constants and attributes hw/arm/fsl-imx25: Apply missing reset quirk
Revert "hw/sd/sdhci: Rename ESDHC_* defines to USDHC_*" hw/sd/sdhci: Consolidate eSDHC constants
hw/sd/sdhci: Rename usdhc_ functions
hw/sd/sdhci: Add TYPE_FSL_ESDHC_BE
hw/ppc/e500: Use TYPE_FSL_ESDHC_BE
hw/arm/fsl-imx25: Extract TYPE_FSL_ESDHC_LE
hw/sd/sdhci: Remove endianness property
hw/sd/sdhci: Add uSDHC-specific quirk
hw/sd/sdhci: Remove vendor property
hw/sd/trace-events: Remove redundant "SWITCH " command name

 hw/sd/sdhci-internal.h    |   3 -
 include/hw/arm/fsl-imx6.h |   4 +-
 include/hw/sd/sdhci.h     |   8 +-
 hw/arm/fsl-imx25.c        |   5 +-
 hw/arm/fsl-imx6.c         |  18 ++--
 hw/ppc/e500.c             |  10 +-
 hw/sd/sdhci.c             | 201 ++++++++++++++++++++++++--------------
 hw/sd/trace-events        |   2 +-
 8 files changed, 146 insertions(+), 105 deletions(-)
Signature · 1 line
2.52.0