[lantiq] adds new lantiq kernel. once the codebase is fully tested and know to be...
[openwrt.git] / target / linux / au1000 / patches-2.6.32 / 005-mtx1_fix_pci.patch
1 diff --git a/arch/mips/alchemy/mtx-1/board_setup.c b/arch/mips/alchemy/mtx-1/board_setup.c
2 index 45b61c9..17140ac 100644
3 --- a/arch/mips/alchemy/mtx-1/board_setup.c
4 +++ b/arch/mips/alchemy/mtx-1/board_setup.c
5 @@ -56,8 +56,6 @@ void __init board_setup(void)
6 }
7 #endif
8
9 - alchemy_gpio2_enable();
10 -
11 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
12 /* Enable USB power switch */
13 alchemy_gpio_direction_output(204, 0);
14 @@ -92,20 +90,12 @@ void __init board_setup(void)
15 int
16 mtx1_pci_idsel(unsigned int devsel, int assert)
17 {
18 -#define MTX_IDSEL_ONLY_0_AND_3 0
19 -#if MTX_IDSEL_ONLY_0_AND_3
20 - if (devsel != 0 && devsel != 3) {
21 - printk(KERN_ERR "*** not 0 or 3\n");
22 - return 0;
23 - }
24 -#endif
25 -
26 if (assert && devsel != 0)
27 /* Suppress signal to Cardbus */
28 gpio_set_value(1, 0); /* set EXT_IO3 OFF */
29 else
30 gpio_set_value(1, 1); /* set EXT_IO3 ON */
31
32 - au_sync_udelay(1);
33 + udelay(1);
34 return 1;
35 }
This page took 0.043191 seconds and 5 git commands to generate.