Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd314dc5 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma Committed by Stephen Boyd
Browse files

ata: ahci: Add SATA support for Qualcomm MSM chipsets



Add a glue driver for AHCI platform driver to support SATA
controller and PHY on Qualcomm's MSM platforms. The SATA
controller on MSM adheres to AHCI 1.3 specification and SATA
PHY is based on SATA 3.0 specification.

The glue driver acts as a device driver for msm_sata device and
registers AHCI device in its probe, AHCI platform driver then
acts as a device driver for created AHCI device. All the necessary
msm platform specific initialization is handled by msm_sata driver
while keeping ahci_platform generic enough.

Following are done during controller initialization:
 - SATA clocks initialization.
 - SATA regulator initialization.
 - SATA PHY calibration.

Change-Id: I3e36289992c340bc16fcb2a6c52468cc95679fe8
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 93f6b2ee
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -97,6 +97,17 @@ config SATA_AHCI_PLATFORM

	  If unsure, say N.

config SATA_AHCI_MSM
	tristate "Qualcomm MSM AHCI SATA support"
	depends on ARCH_MSM
	select SATA_AHCI_PLATFORM
	help
	  This option enables support for AHCI SATA controller
	  integrated into Qualcomm MSM chipsets. For more
	  information please refer to http://www.qualcomm.com/chipsets.

	  If unsure, say N.

config SATA_FSL
	tristate "Freescale 3.0Gbps SATA support"
	depends on FSL_SOC
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ obj-$(CONFIG_SATA_INIC162X) += sata_inic162x.o
obj-$(CONFIG_SATA_SIL24)	+= sata_sil24.o
obj-$(CONFIG_SATA_DWC)		+= sata_dwc_460ex.o
obj-$(CONFIG_SATA_HIGHBANK)	+= sata_highbank.o libahci.o
obj-$(CONFIG_SATA_AHCI_MSM)	+= ahci_msm.o

# SFF w/ custom DMA
obj-$(CONFIG_PDC_ADMA)		+= pdc_adma.o

drivers/ata/ahci_msm.c

0 → 100644
+778 −0

File added.

Preview size limit exceeded, changes collapsed.