Skip to contentSkip to conversation

sata: Add SATA driver with DMA support for Marvell Kirkwood and Armada XP

PATCH New Stefan Roese 1 participant 1 message Dec 14, 2015 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sata: Add SATA driver with DMA support for Marvell Kirkwood and Armada XP

From: Tor Krill <[email protected]>

This patch adds a new SATA driver for the Marvell Kirkwood and Armada 370 / XP SoC's.

This driver supports the SATA controller of some Mavell SoC's. Here a (most likely incomplete) list of the supported SoC's:
- Kirkwood
- Armada 370
- Armada XP

This driver implementation is an alternative to the already available driver via the "ide" commands interface (drivers/block/mvsata_ide.c). But this driver only supports PIO mode and as this new driver also supports transfer via DMA, its much faster.

Please note, that the newer SoC's (e.g. Armada 38x) are not supported by this driver. As they have an AHCI compatible SATA controller integrated.

The original version of this driver was sent by Tor Krill to the U-Boot list a few years ago. Here the link:

http://lists.denx.de/pipermail/u-boot/2010-June/073147.html

Changes by Stefan:
- Coding-style cleanup
- Support for Armada XP added
- MBUS window setup added
- D-cache flush and invalidation added - works with dcache enabled on Armada XP
- Removed mdelay() from ata_wait_register() and add timer based timeout detection to speed up the transfer

---
 drivers/block/Makefile  |    1 +
 drivers/block/sata_mv.c | 1045 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 1046 insertions(+)
 create mode 100644 drivers/block/sata_mv.c
drivers/block/Makefile +1 -0
index f161c01..eb8bda9 100644
@@ -14,6 +14,7 @@ obj-$(CONFIG_MVSATA_IDE) += mvsata_ide.o
 obj-$(CONFIG_MX51_PATA) += mxc_ata.o
 obj-$(CONFIG_PATA_BFIN) += pata_bfin.o
 obj-$(CONFIG_SATA_DWC) += sata_dwc.o
+obj-$(CONFIG_SATA_MV) += sata_mv.o
 obj-$(CONFIG_SATA_SIL3114) += sata_sil3114.o
 obj-$(CONFIG_SATA_SIL) += sata_sil.o
 obj-$(CONFIG_IDE_SIL680) += sil680.o
drivers/block/sata_mv.c new file +1045 -0

1,045 lines not on this page · raw message

Signature · 1 line
2.6.4