drivers: add the support for Silicon Image SATA controller
PATCH v3 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
V3:
- remove __IOMEM
- remove force cast
V2:
- add virt_to_bus to translate address
- fix some issues
drivers/block/Makefile | 1 + drivers/block/sata_sil.c | 723 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/block/sata_sil.h | 227 +++++++++++++++ include/pci_ids.h | 5 + 4 files changed, 956 insertions(+), 0 deletions(-) create mode 100644 drivers/block/sata_sil.c create mode 100644 drivers/block/sata_sil.h
drivers/block/Makefile +1 -0
@@ -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 +723 -0
723 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
@@ -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
PATCH v3 1/1 drivers: add the support for Silicon Image SATA controller
Dear b29983 at freescale.com,
Quoted 27 lines · In message <[email protected]> you wrote:
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 LBA48Signed-off-by Tang Yuantian <[email protected]>Signed-off-by Aaron Williams <[email protected]>Tested-by Lan Chunhe <[email protected]>---
git tree:git://git.denx.de/u-boot.git
branch: master
Test platform:P1022DS, P4080DS
V3:
- remove__IOMEM
- remove force cast
V2:
- addvirt_to_busto translate address
- fix some issues
Quoted 7 lines
drivers/block/Makefile | 1 + drivers/block/sata_sil.c | 723 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/block/sata_sil.h | 227 +++++++++++++++ include/pci_ids.h | 5 + 4 files changed, 956 insertions(+), 0 deletions(-) create mode 100644 drivers/block/sata_sil.c create mode 100644 drivers/block/sata_sil.h
Checkpatch says:
total: 0 errors, 2 warnings, 965 lines checked
Please clean up and resubmit. Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The face of war has never changed. Surely it is more logical to heal than to kill. -- Surak of Vulcan, "The Savage Curtain", stardate 5906.5
A message that is not in the archive (sent off-list or not yet received): 3C06C26914DACA4BB3A368F78CA0B3A70EA8F2@039-SN1MPN1-005.039d.mgd.msft.net
PATCH v3 1/1 drivers: add the support for Silicon Image SATA controller
Dear Tang Yuantian-B29983,
Quoted 6 lines · In message <3C06C26914DACA4BB3A368F78CA0B3A70EA8F2@039-SN1MPN1-005.039d.mgd.msf…
Did you say the following warnings:
---------
WARNING: Use #include <linux/io.h> instead of <asm/io.h> #79: FILE:drivers/block/sata_sil.c:26:
+#include <asm/io.h>
We should add this to a U-Boot specific ignore list.
Quoted 3 lines
WARNING: externs should be avoided in .c files
#90: FILE:drivers/block/sata_sil.c:37:
+externblock_dev_desc_tsata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
This should be fixed.
Quoted 2 lines
The first warning can't be fixed because there is no <
linux/io.h> in uboot.
Agreed.
Quoted 1 line
I left the second warning on purpose because other sata drivers do the same way.
Well, it would be better to fix the other drivers as well.
Quoted 1 line
I will fix the second warning.
Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is a human characteristic to love little animals, especially if they're attractive in some way. -- McCoy, "The Trouble with Tribbles", stardate 4525.6