diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-09 18:51:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-09 18:51:46 +0000 |
commit | 95f14d052a7439c60e35a6d910d6bd3de023907c (patch) | |
tree | 83b1039c3c9d0ff8d8b842d1ec5fc4a392a3a7d2 /target/linux/cns3xxx/patches-3.8/080-sata_support.patch | |
parent | 85348d602e2c4b383fa0bec95fb97d9d79094743 (diff) | |
download | upstream-95f14d052a7439c60e35a6d910d6bd3de023907c.tar.gz upstream-95f14d052a7439c60e35a6d910d6bd3de023907c.tar.bz2 upstream-95f14d052a7439c60e35a6d910d6bd3de023907c.zip |
cns3xxx: add linux 3.8 support and use it by default
SVN-Revision: 35908
Diffstat (limited to 'target/linux/cns3xxx/patches-3.8/080-sata_support.patch')
-rw-r--r-- | target/linux/cns3xxx/patches-3.8/080-sata_support.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/patches-3.8/080-sata_support.patch b/target/linux/cns3xxx/patches-3.8/080-sata_support.patch new file mode 100644 index 0000000000..a4feb2c332 --- /dev/null +++ b/target/linux/cns3xxx/patches-3.8/080-sata_support.patch @@ -0,0 +1,44 @@ +--- a/arch/arm/mach-cns3xxx/devices.c ++++ b/arch/arm/mach-cns3xxx/devices.c +@@ -41,7 +41,7 @@ static struct resource cns3xxx_ahci_reso + static u64 cns3xxx_ahci_dmamask = DMA_BIT_MASK(32); + + static struct platform_device cns3xxx_ahci_pdev = { +- .name = "ahci", ++ .name = "cns3xxx-ahci", + .id = 0, + .resource = cns3xxx_ahci_resource, + .num_resources = ARRAY_SIZE(cns3xxx_ahci_resource), +--- a/drivers/ata/ahci_platform.c ++++ b/drivers/ata/ahci_platform.c +@@ -31,6 +31,7 @@ enum ahci_type { + AHCI, /* standard platform ahci */ + IMX53_AHCI, /* ahci on i.mx53 */ + STRICT_AHCI, /* delayed DMA engine start */ ++ CNS3XXX_AHCI, /* AHCI on cns3xxx */ + }; + + static struct platform_device_id ahci_devtype[] = { +@@ -44,6 +45,9 @@ static struct platform_device_id ahci_de + .name = "strict-ahci", + .driver_data = STRICT_AHCI, + }, { ++ .name = "cns3xxx-ahci", ++ .driver_data = CNS3XXX_AHCI, ++ }, { + /* sentinel */ + } + }; +@@ -80,6 +84,12 @@ static const struct ata_port_info ahci_p + .udma_mask = ATA_UDMA6, + .port_ops = &ahci_platform_ops, + }, ++ [CNS3XXX_AHCI] = { ++ .flags = AHCI_FLAG_COMMON, ++ .pio_mask = ATA_PIO4, ++ .udma_mask = ATA_UDMA6, ++ .port_ops = &ahci_platform_retry_srst_ops, ++ } + }; + + static struct scsi_host_template ahci_platform_sht = { |