aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/alchemy
diff options
context:
space:
mode:
authorBruno Randolf <randolf.bruno@googlemail.com>2010-07-11 11:40:38 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:26:05 -0400
commitb3b3c176d9150af542d9ba5e5b292d233883ff85 (patch)
tree073dba3fa8518483c1eba7fc07cf7c1baf57ecef /arch/mips/alchemy
parentf5c1ca77a3b2f9b424c4f39bd71143d0ac308924 (diff)
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>
Diffstat (limited to 'arch/mips/alchemy')
-rw-r--r--arch/mips/alchemy/mtx-1/board_setup.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/mips/alchemy/mtx-1/board_setup.c b/arch/mips/alchemy/mtx-1/board_setup.c
index def1a75d7561..ff3697387b89 100644
--- a/arch/mips/alchemy/mtx-1/board_setup.c
+++ b/arch/mips/alchemy/mtx-1/board_setup.c
@@ -108,14 +108,10 @@ void __init board_setup(void)
108int 108int
109mtx1_pci_idsel(unsigned int devsel, int assert) 109mtx1_pci_idsel(unsigned int devsel, int assert)
110{ 110{
111#define MTX_IDSEL_ONLY_0_AND_3 0 111 /* This function is only necessary to support a proprietary Cardbus
112#if MTX_IDSEL_ONLY_0_AND_3 112 * adapter on the mtx-1 "singleboard" variant. It triggers a custom
113 if (devsel != 0 && devsel != 3) { 113 * logic chip connected to EXT_IO3 (GPIO1) to suppress IDSEL signals.
114 printk(KERN_ERR "*** not 0 or 3\n"); 114 */
115 return 0;
116 }
117#endif
118
119 if (assert && devsel != 0) 115 if (assert && devsel != 0)
120 /* Suppress signal to Cardbus */ 116 /* Suppress signal to Cardbus */
121 alchemy_gpio_set_value(1, 0); /* set EXT_IO3 OFF */ 117 alchemy_gpio_set_value(1, 0); /* set EXT_IO3 OFF */