source: branches/backfire/target/linux/au1000/patches-2.6.32/005-mtx1_fix_pci.patch

Last change on this file was 22051, checked in by florian, 6 years ago

[backfire] backport r22040

File size: 933 bytes
  • arch/mips/alchemy/mtx-1/board_setup.c

    diff --git a/arch/mips/alchemy/mtx-1/board_setup.c b/arch/mips/alchemy/mtx-1/board_setup.c
    index 45b61c9..17140ac 100644
    a b void __init board_setup(void) 
    5656        } 
    5757#endif 
    5858 
    59         alchemy_gpio2_enable(); 
    60  
    6159#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) 
    6260        /* Enable USB power switch */ 
    6361        alchemy_gpio_direction_output(204, 0); 
    void __init board_setup(void) 
    9290int 
    9391mtx1_pci_idsel(unsigned int devsel, int assert) 
    9492{ 
    95 #define MTX_IDSEL_ONLY_0_AND_3 0 
    96 #if MTX_IDSEL_ONLY_0_AND_3 
    97         if (devsel != 0 && devsel != 3) { 
    98                 printk(KERN_ERR "*** not 0 or 3\n"); 
    99                 return 0; 
    100         } 
    101 #endif 
    102  
    10393        if (assert && devsel != 0) 
    10494                /* Suppress signal to Cardbus */ 
    10595                gpio_set_value(1, 0);   /* set EXT_IO3 OFF */ 
    10696        else 
    10797                gpio_set_value(1, 1);   /* set EXT_IO3 ON */ 
    10898 
    109         au_sync_udelay(1); 
     99        udelay(1); 
    110100        return 1; 
    111101} 
Note: See TracBrowser for help on using the repository browser.