Skip to contentSkip to conversation

dm: sunxi: Use DM for MMC and SATA on all A20 boards

PATCH Superseded Adam Sampson 2 participants 2 messages Jun 28, 2018 – Jun 29, 2018

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dm: sunxi: Use DM for MMC and SATA on all A20 boards

Generalise the change in commit 3936514b82e8 ("dm: sunxi: Move Linksprite_pcDuino3 to use DM for MMC, SATA") so it applies to all A20
boards: use the driver model for MMC and SATA, in preparation for CONFIG_BLK defaulting to y.

Tested on Linksprite pcDuino3 Nano.

---
Changes for v2:
- at Maxime's suggestion, enabled by default at the Kconfig level for all A20 boards (which means the one board Simon updated previously doesn't need to specify them any more)

 arch/arm/mach-sunxi/Kconfig           | 2 ++
 configs/Linksprite_pcDuino3_defconfig | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-sunxi/Kconfig +2 -0
index a3f7723028..78f76f52d0 100644
@@ -174,6 +174,8 @@ config MACH_SUN7I
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
 	select ARCH_SUPPORT_PSCI
+	select DM_MMC
+	select DM_SCSI if SCSI
 	select DRAM_SUN4I
 	select PHY_SUN4I_USB
 	select SUNXI_GEN_SUN4I
configs/Linksprite_pcDuino3_defconfig +0 -2
index d7e9c26cbf..f987cef711 100644
@@ -13,10 +13,8 @@ CONFIG_SPL_I2C_SUPPORT=y
 # CONFIG_SPL_DOS_PARTITION is not set
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_SCSI_AHCI=y
-CONFIG_DM_MMC=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_SUN7I_GMAC=y
 CONFIG_SCSI=y
-CONFIG_DM_SCSI=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 1/1 dm: sunxi: Use DM for MMC and SATA on all A20 boards

Quoted 23 lines · Adam Sampson

Generalise the change in commit 3936514b82e8 ("dm: sunxi: Move Linksprite_pcDuino3 to use DM for MMC, SATA") so it applies to all A20
boards: use the driver model for MMC and SATA, in preparation for CONFIG_BLK defaulting to y.

Tested on Linksprite pcDuino3 Nano.

---
Changes for v2:
- at Maxime's suggestion, enabled by default at the Kconfig level for all A20 boards (which means the one board Simon updated previously doesn't need to specify them any more)

 arch/arm/mach-sunxi/Kconfig           | 2 ++
 configs/Linksprite_pcDuino3_defconfig | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-sunxi/Kconfig +0 -0
index a3f7723028..78f76f52d0 100644

arch/arm/mach-sunxi/Kconfig config MACH_SUN7I · line 178

Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +2 -0
@@ -174,6 +174,8 @@ config MACH_SUN7I
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
 	select ARCH_SUPPORT_PSCI
+	select DM_MMC
+	select DM_SCSI if SCSI

I guess we would need an if MMC for DM_MMC, there's some boards without MMC support, but once that is fixed:

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180629/dfbc3a3c/attachment.sig>