diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-07-01 22:28:16 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-07-01 22:28:16 +0000 |
commit | a757dd969eccb012ba4a5d3a47efecb33ce34f39 (patch) | |
tree | 4f1d590f7ab271f413b0f291ca02a05039b47da5 /target/linux/au1000/patches-2.6.34/004-mtx1_fix_pci.patch | |
parent | 5d141849c3284b89ae2a6ecdfea9be2195a8998d (diff) | |
download | master-187ad058-a757dd969eccb012ba4a5d3a47efecb33ce34f39.tar.gz master-187ad058-a757dd969eccb012ba4a5d3a47efecb33ce34f39.tar.bz2 master-187ad058-a757dd969eccb012ba4a5d3a47efecb33ce34f39.zip |
[au1000] add 2.6.34 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22041 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/au1000/patches-2.6.34/004-mtx1_fix_pci.patch')
-rw-r--r-- | target/linux/au1000/patches-2.6.34/004-mtx1_fix_pci.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/au1000/patches-2.6.34/004-mtx1_fix_pci.patch b/target/linux/au1000/patches-2.6.34/004-mtx1_fix_pci.patch new file mode 100644 index 0000000000..a637602d87 --- /dev/null +++ b/target/linux/au1000/patches-2.6.34/004-mtx1_fix_pci.patch @@ -0,0 +1,33 @@ +--- a/arch/mips/alchemy/mtx-1/board_setup.c ++++ b/arch/mips/alchemy/mtx-1/board_setup.c +@@ -67,7 +67,6 @@ static void mtx1_power_off(void) + + void __init board_setup(void) + { +- alchemy_gpio2_enable(); + + #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) + /* Enable USB power switch */ +@@ -107,21 +106,13 @@ void __init board_setup(void) + int + mtx1_pci_idsel(unsigned int devsel, int assert) + { +-#define MTX_IDSEL_ONLY_0_AND_3 0 +-#if MTX_IDSEL_ONLY_0_AND_3 +- if (devsel != 0 && devsel != 3) { +- printk(KERN_ERR "*** not 0 or 3\n"); +- return 0; +- } +-#endif +- + if (assert && devsel != 0) + /* Suppress signal to Cardbus */ + gpio_set_value(1, 0); /* set EXT_IO3 OFF */ + else + gpio_set_value(1, 1); /* set EXT_IO3 ON */ + +- au_sync_udelay(1); ++ udelay(1); + return 1; + } + |