]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: Add support for Cavium's ThunderX host controller
authorRobert Richter <rrichter@cavium.com>
Fri, 5 Jun 2015 17:49:26 +0000 (19:49 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 16 Jun 2015 20:12:14 +0000 (16:12 -0400)
commitbaddc196d3a3b6579e760c354b075a2560bde3b6
tree494118f03defc72ac408613bfc13ddefd6463605
parent68b2fafbf88009bf38859c3b3f2dfaf615f1c619
ahci: Add support for Cavium's ThunderX host controller

This patch adds support for Cavium's ThunderX host controller. The
controller resides on the SoC and is a AHCI compatible SATA controller
with one port, compliant with Serial ATA 3.1 and AHCI Revision 1.31.
There can exists multiple SATA controllers on the SoC.

The controller depends on MSI-X support since the PCI ECAM controller
on the SoC does not implement MSI nor lagacy intx interrupt support.
Thus, during device initialization, if MSI fails MSI-X will be used to
enable the device's interrupts.

The controller uses non-standard BAR0 for its register range. The
already existing device lookup (vendor and device id) that is already
implemented for other host controllers is used to change the PCI BAR.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c