ata: Add APM X-Gene SoC SATA host controller support This patch adds support for the APM X-Gene SoC SATA host controller. In order for the host controller to work, the corresponding SATA PHY driver musts also be available. v3: * Move out the SATA PHY to another driver * Remove the clock-cells entry from DTS * Remove debug wrapper * Remove delay functions wrapper * Clean up resource and IRQ query * Remove query clock name * Switch to use dma_set_mask/dma_coherent_mask * Remove un-necessary devm_kfree * Update GPL license header to v2 * Spilt up function xgene_ahci_hardreset * Spilt up function xgene_ahci_probe * Remove all reference of CONFIG_ARCH_MSLIM * Clean up chip revision code v2: * Clean up file sata_xgene.c with Lindent and etc * Clean up file sata_xgene_serdes.c with Lindent and etc * Add description to each patch v1: * inital version Signed-off-by: Loc Ho <lho@xxxxxxx> Signed-off-by: Tuan Phan <tphan@xxxxxxx> Signed-off-by: Suman Tripathi <stripathi@xxxxxxx> Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx> Reviewed-by: Olof Johansson <olof@xxxxxxxxx> --- Loc Ho (4): ata: Export required functions by APM X-Gene SATA driver Documentation: Add documentation for APM X-Gene SATA controllor DTS binding ata: Add APM X-Gene SoC SATA host controller driver arm64: Add APM X-Gene SoC SATA host controller DTS entries .../devicetree/bindings/ata/apm-xgene.txt | 62 +- arch/arm64/boot/dts/apm-storm.dtsi | 70 ++ drivers/ata/Kconfig | 8 + drivers/ata/Makefile | 1 + drivers/ata/ahci.h | 6 + drivers/ata/libahci.c | 13 +- drivers/ata/sata_xgene.c | 1271 ++++++++++++++++++++ drivers/ata/sata_xgene.h | 96 ++ 8 files changed, 1521 insertions(+), 6 deletions(-) create mode 100644 drivers/ata/sata_xgene.c create mode 100644 drivers/ata/sata_xgene.h -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html