MIPS: MTX-1: cleanup and comments

Add some comments about mtx1_pci_idsel() and remove a dead block of old code.

Signed-off-by: Bruno Randolf <br1@einfach.org>
To: linux-mips@linux-mips.org
To: manuel.lauss@googlemail.com
Cc: florian@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/1449/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Bruno Randolf 2010-07-12 00:40:38 +09:00 committed by Ralf Baechle
parent f5c1ca77a3
commit b3b3c176d9
1 changed files with 4 additions and 8 deletions

View File

@ -108,14 +108,10 @@ void __init board_setup(void)
int int
mtx1_pci_idsel(unsigned int devsel, int assert) mtx1_pci_idsel(unsigned int devsel, int assert)
{ {
#define MTX_IDSEL_ONLY_0_AND_3 0 /* This function is only necessary to support a proprietary Cardbus
#if MTX_IDSEL_ONLY_0_AND_3 * adapter on the mtx-1 "singleboard" variant. It triggers a custom
if (devsel != 0 && devsel != 3) { * logic chip connected to EXT_IO3 (GPIO1) to suppress IDSEL signals.
printk(KERN_ERR "*** not 0 or 3\n"); */
return 0;
}
#endif
if (assert && devsel != 0) if (assert && devsel != 0)
/* Suppress signal to Cardbus */ /* Suppress signal to Cardbus */
alchemy_gpio_set_value(1, 0); /* set EXT_IO3 OFF */ alchemy_gpio_set_value(1, 0); /* set EXT_IO3 OFF */