1 diff -Nurb linux/arch/mips/au1000/mtx-1/board_setup.c /home/br1/linux-idsel/arch/mips/au1000/mtx-1/board_setup.c
2 --- linux/arch/mips/au1000/mtx-1/board_setup.c 2005-08-18 18:23:59.000000000 +0200
3 +++ /home/br1/linux-idsel/arch/mips/au1000/mtx-1/board_setup.c 2005-08-18 18:19:48.000000000 +0200
6 extern struct rtc_ops no_rtc_ops;
8 +extern int (*board_pci_idsel)(unsigned int devsel, int assert);
9 +int mtx1_pci_idsel(unsigned int devsel, int assert);
12 void board_reset (void)
14 /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
16 au_writel( 0xFFFFFFFF, SYS_TRIOUTCLR );
17 au_writel( 0x00000001, SYS_OUTPUTCLR ); // set M66EN (PCI 66MHz) to OFF
18 au_writel( 0x00000008, SYS_OUTPUTSET ); // set PCI CLKRUN# to OFF
19 + au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON
20 au_writel( 0x00000020, SYS_OUTPUTCLR ); // set eth PHY TX_ER to OFF
22 // enable LED and set it to green
23 au_writel( au_readl(GPIO2_DIR) | 0x1800, GPIO2_DIR );
24 au_writel( 0x18000800, GPIO2_OUTPUT );
26 + board_pci_idsel = mtx1_pci_idsel;
28 printk("4G Systems MTX-1 Board\n");
35 +mtx1_pci_idsel(unsigned int devsel, int assert)
37 +#define MTX_IDSEL_ONLY_0_AND_3 0
38 +#if MTX_IDSEL_ONLY_0_AND_3
39 + if (devsel != 0 && devsel != 3) {
40 + printk("*** not 0 or 3\n");
45 + if (assert && devsel != 0) {
46 + // supress signal to cardbus
47 + au_writel( 0x00000002, SYS_OUTPUTCLR ); // set EXT_IO3 OFF
50 + au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON
55 diff -Nurb linux/arch/mips/au1000/mtx-1/irqmap.c /home/br1/linux-idsel/arch/mips/au1000/mtx-1/irqmap.c
56 --- linux/arch/mips/au1000/mtx-1/irqmap.c 2005-08-18 18:24:05.000000000 +0200
57 +++ /home/br1/linux-idsel/arch/mips/au1000/mtx-1/irqmap.c 2005-08-16 16:37:39.000000000 +0200
62 - {INTA, INTB, INTX, INTX}, /* IDSEL 0 */
63 + {INTA, INTA, INTX, INTX}, /* IDSEL 0 */
64 {INTB, INTA, INTX, INTX}, /* IDSEL 1 */
65 {INTC, INTD, INTX, INTX}, /* IDSEL 2 */
66 {INTD, INTC, INTX, INTX}, /* IDSEL 3 */