mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
ata: fsl_ahci: Add sata DM support for Freescale powerpc socs
This patch is to support Freescale sata driver with dts initialized. Also resolved the following problems. ===================== WARNING ====================== This board does not use CONFIG_DM_SCSI. Please update the storage controller to use CONFIG_DM_SCSI before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/MIGRATION.txt for more info. ==================================================== Signed-off-by: Peng Ma <peng.ma@nxp.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
This commit is contained in:
parent
ad9f2be334
commit
1ee4942918
4 changed files with 1042 additions and 0 deletions
|
@ -59,6 +59,16 @@ config DWC_AHCI
|
|||
Enable this driver to support Sata devices through
|
||||
Synopsys DWC AHCI module.
|
||||
|
||||
config FSL_AHCI
|
||||
bool "Enable Freescale AHCI driver support"
|
||||
select SCSI_AHCI
|
||||
depends on AHCI
|
||||
depends on DM_SCSI
|
||||
help
|
||||
Enable this driver to support Sata devices found in
|
||||
some Freescale PowerPC SoCs.
|
||||
|
||||
|
||||
config DWC_AHSATA
|
||||
bool "Enable DWC AHSATA driver support"
|
||||
select LIBATA
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
|
||||
obj-$(CONFIG_DWC_AHCI) += dwc_ahci.o
|
||||
obj-$(CONFIG_FSL_AHCI) += fsl_ahci.o
|
||||
obj-$(CONFIG_AHCI) += ahci-uclass.o
|
||||
obj-$(CONFIG_AHCI_PCI) += ahci-pci.o
|
||||
obj-$(CONFIG_SCSI_AHCI) += ahci.o
|
||||
|
|
1030
drivers/ata/fsl_ahci.c
Normal file
1030
drivers/ata/fsl_ahci.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -312,6 +312,7 @@ typedef struct fsl_sata {
|
|||
int wcache;
|
||||
int flush;
|
||||
int flush_ext;
|
||||
u32 dma_flag;
|
||||
} fsl_sata_t;
|
||||
|
||||
#define READ_CMD 0
|
||||
|
|
Loading…
Reference in a new issue