[U-Boot] [PATCH v2 00/15] dm: sata: mmc: Convert a sunxi board to driver model for MMC, SATA

Simon Glass sjg at chromium.org
Tue Jul 4 19:31:17 UTC 2017


At present SCSI support for driver model works only with PCI controllers.

This series makes the following changes:

- Adjusts SATA/AHCI support to work with non-PCI controllers
- Allows driver model to be used for MMC in U-Boot proper without
requiring it to be used in SPL
- Adjusts sunxi MMC and SATA drivers to support driver model
- Enables this on a single board (Linksprite_pcDuino3)

Even with this series the AHCI uclass still does not have any operations.
This will be needed for drivers which do not use SCSI. Further work is
needed to complete this.

Changes in v2:
- Drop debugging printf() now that the card detect is working
- Add new patch to correct polarity of MMC card detect on Linksprite_pcDuino3

Simon Glass (15):
  ahci: Support non-PCI controllers
  dm: mmc: Allow disabling driver model in SPL
  fdt: Correct fdt_get_base_address()
  dm: scsi: Drop duplicate SCSI and DM_SCSI options
  dm: ahci: Correct uclass private data
  dm: mmc: sunxi: Rename struct sunxi_mmc_host to sunxi_mmc_priv
  dm: mmc: sunxi: Rename mmchost to priv
  dm: mmc: sunxi: Pass private data around explicitly
  dm: mmc: sunxi: Drop mmc_clk_io_on()
  dm: mmc: sunxi: Add support for driver model
  dm: sunxi: Linksprite_pcDuino3: Correct polarity of MMC card detect
  dm: scsi: Don't scan the SCSI bus when probing
  dm: sunxi: sata: Don't build sata support into SPL
  dm: sata: sunxi: Add support for driver model
  dm: sunxi: Move Linksprite_pcDuino3 to use DM for MMC, SATA

 arch/arm/dts/sun7i-a20-pcduino3.dts   |   2 +-
 arch/x86/cpu/ivybridge/sata.c         |   2 +-
 board/sunxi/Makefile                  |   2 +
 board/sunxi/ahci.c                    |  61 +++++-
 common/fdt_support.c                  |   7 +-
 common/spl/spl_mmc.c                  |   4 +-
 configs/Linksprite_pcDuino3_defconfig |   7 +-
 drivers/ata/Kconfig                   |  18 --
 drivers/ata/ahci-uclass.c             |   2 +
 drivers/ata/ahci.c                    |  33 ++--
 drivers/block/Kconfig                 |  12 ++
 drivers/block/Makefile                |   4 +-
 drivers/mmc/Kconfig                   |  21 ++
 drivers/mmc/Makefile                  |   4 +-
 drivers/mmc/mmc-uclass.c              |   6 +-
 drivers/mmc/mmc.c                     |  28 +--
 drivers/mmc/mmc_legacy.c              |   2 +-
 drivers/mmc/mmc_private.h             |   6 +-
 drivers/mmc/omap_hsmmc.c              |  20 +-
 drivers/mmc/sunxi_mmc.c               | 359 +++++++++++++++++++++++-----------
 drivers/scsi/scsi.c                   |   2 +-
 include/ahci.h                        |  14 +-
 include/blk.h                         |   4 +-
 include/mmc.h                         |  12 +-
 24 files changed, 431 insertions(+), 201 deletions(-)

-- 
2.13.2.725.g09c95d1e9-goog



More information about the U-Boot mailing list