From 2ba5a8bb9f383740ab503b79445da1e924665c51 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 22 Nov 2009 19:32:17 +0100 Subject: fix compact flash support for wrap --- target/wrap/kernel.config | 11 +++-------- target/wrap/patches/fix-pata-sc1200.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 target/wrap/patches/fix-pata-sc1200.patch (limited to 'target/wrap') diff --git a/target/wrap/kernel.config b/target/wrap/kernel.config index b251afbc7..51c8272c9 100644 --- a/target/wrap/kernel.config +++ b/target/wrap/kernel.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.31.5 -# Sun Nov 22 18:11:22 2009 +# Sun Nov 22 19:32:12 2009 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -304,11 +304,6 @@ CONFIG_CMDLINE="console=ttyS0,38400" # CPU Frequency scaling # # CONFIG_CPU_FREQ is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set # CONFIG_CPU_IDLE is not set # @@ -500,7 +495,7 @@ CONFIG_ATA_SFF=y # CONFIG_SATA_VITESSE is not set # CONFIG_SATA_INIC162X is not set # CONFIG_PATA_ALI is not set -CONFIG_PATA_AMD=y +# CONFIG_PATA_AMD is not set # CONFIG_PATA_ARTOP is not set # CONFIG_PATA_ATIIXP is not set # CONFIG_PATA_CMD640_PCI is not set @@ -532,7 +527,7 @@ CONFIG_PATA_AMD=y # CONFIG_PATA_PDC_OLD is not set # CONFIG_PATA_RADISYS is not set # CONFIG_PATA_RZ1000 is not set -# CONFIG_PATA_SC1200 is not set +CONFIG_PATA_SC1200=y # CONFIG_PATA_SERVERWORKS is not set # CONFIG_PATA_PDC2027X is not set # CONFIG_PATA_SIL680 is not set diff --git a/target/wrap/patches/fix-pata-sc1200.patch b/target/wrap/patches/fix-pata-sc1200.patch new file mode 100644 index 000000000..c3d3ce527 --- /dev/null +++ b/target/wrap/patches/fix-pata-sc1200.patch @@ -0,0 +1,12 @@ +diff -Nur linux-2.6.31.5.orig/drivers/ata/pata_sc1200.c linux-2.6.31.5/drivers/ata/pata_sc1200.c +--- linux-2.6.31.5.orig/drivers/ata/pata_sc1200.c 2009-10-23 00:57:56.000000000 +0200 ++++ linux-2.6.31.5/drivers/ata/pata_sc1200.c 2009-11-22 19:19:29.000000000 +0100 +@@ -236,7 +236,7 @@ + .port_ops = &sc1200_port_ops + }; + /* Can't enable port 2 yet, see top comments */ +- const struct ata_port_info *ppi[] = { &info, }; ++ const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info }; + + return ata_pci_sff_init_one(dev, ppi, &sc1200_sht, NULL); + } -- cgit v1.2.3