Skip to contentSkip to conversation

drivers: add the support for Silicon Image SATA controller

PATCH Superseded b29983 at freescale.com 1 participant 1 message Aug 9, 2011 Block layer

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drivers: add the support for Silicon Image SATA controller

From: Tang Yuantian <[email protected]>

Add the Silicon Image series PCI Express to Serial ATA controller support, including Sil3132, Sil3131 and Sil3124.
The SATA controller can be used to load kernel.

The features list:
- Supports 1-lane 2.5 Gbit/s PCI Express
- Supports one/two/four independent Serial ATA channels
- Supports Serial ATA Generation 2 transfer rate of 3.0 Gbit/s
- Supports LBA28 and LBA48

---
git tree: git://git.denx.de/u-boot.git
branch: master
Test platform:P1022DS, P4080DS
V2:
- add virt_to_bus to translate address
- fix some issues

 drivers/block/Makefile   |    1 +
 drivers/block/sata_sil.c |  720 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/block/sata_sil.h |  227 +++++++++++++++
 include/pci_ids.h        |    5 +
 4 files changed, 953 insertions(+), 0 deletions(-)
 create mode 100644 drivers/block/sata_sil.c
 create mode 100644 drivers/block/sata_sil.h
drivers/block/Makefile +1 -0
index 2efe981..98560ef 100644
@@ -36,6 +36,7 @@ COBJS-$(CONFIG_MX51_PATA) += mxc_ata.o
 COBJS-$(CONFIG_PATA_BFIN) += pata_bfin.o
 COBJS-$(CONFIG_SATA_DWC) += sata_dwc.o
 COBJS-$(CONFIG_SATA_SIL3114) += sata_sil3114.o
+COBJS-$(CONFIG_SATA_SIL) += sata_sil.o
 COBJS-$(CONFIG_IDE_SIL680) += sil680.o
 COBJS-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
 COBJS-$(CONFIG_SYSTEMACE) += systemace.o
drivers/block/sata_sil.c new file +720 -0

720 lines not on this page · raw message

drivers/block/sata_sil.h new file +227 -0

227 lines not on this page · raw message

include/pci_ids.h +5 -0
index 02a6c6e..12e4c02 100644
@@ -2110,3 +2110,8 @@
 
 #define PCI_VENDOR_ID_ADMTEK		0x1317
 #define PCI_DEVICE_ID_ADMTEK_AN983B	0x0985
+
+#define PCI_VENDOR_ID_SILICONIMAGE	0x1095
+#define PCI_DEVICE_ID_SIL3132		0x3132
+#define PCI_DEVICE_ID_SIL3124		0x3124
+#define PCI_DEVICE_ID_SIL3131		0x3131
Signature · 1 line
1.6.4