source:
freewrt/target/linux/au1000-2.6/patches/008-isdel_cardbus.patch@
475ad56
| Last change on this file since 475ad56 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 2.4 KB | |
-
arch/mips/au1000/mtx-1/board_setup.c
diff -urN linux-2.6.16.7/arch/mips/au1000/mtx-1/board_setup.c linux-2.6.16.7.new/arch/mips/au1000/mtx-1/board_setup.c
old new 44 44 #include <asm/pgtable.h> 45 45 #include <asm/mach-au1x00/au1000.h> 46 46 47 extern int (*board_pci_idsel)(unsigned int devsel, int assert); 48 int mtx1_pci_idsel(unsigned int devsel, int assert); 49 47 50 void board_reset (void) 48 51 { 49 52 /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ … … 77 80 au_writel( 0xFFFFFFFF, SYS_TRIOUTCLR ); 78 81 au_writel( 0x00000001, SYS_OUTPUTCLR ); // set M66EN (PCI 66MHz) to OFF 79 82 au_writel( 0x00000008, SYS_OUTPUTSET ); // set PCI CLKRUN# to OFF 83 au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON 80 84 au_writel( 0x00000020, SYS_OUTPUTCLR ); // set eth PHY TX_ER to OFF 81 85 82 86 // enable LED and set it to green 83 87 au_writel( au_readl(GPIO2_DIR) | 0x1800, GPIO2_DIR ); 84 88 au_writel( 0x18000800, GPIO2_OUTPUT ); 85 89 90 board_pci_idsel = mtx1_pci_idsel; 91 86 92 printk("4G Systems MTX-1 Board\n"); 87 93 } 94 95 int 96 mtx1_pci_idsel(unsigned int devsel, int assert) 97 { 98 #define MTX_IDSEL_ONLY_0_AND_3 0 99 #if MTX_IDSEL_ONLY_0_AND_3 100 if (devsel != 0 && devsel != 3) { 101 printk("*** not 0 or 3\n"); 102 return 0; 103 } 104 #endif 105 106 if (assert && devsel != 0) { 107 // supress signal to cardbus 108 au_writel( 0x00000002, SYS_OUTPUTCLR ); // set EXT_IO3 OFF 109 } 110 else { 111 au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON 112 } 113 au_sync_udelay(1); 114 return 1; 115 } 116 -
arch/mips/au1000/mtx-1/irqmap.c
diff -urN linux-2.6.16.7/arch/mips/au1000/mtx-1/irqmap.c linux-2.6.16.7.new/arch/mips/au1000/mtx-1/irqmap.c
old new 48 48 #include <asm/mach-au1x00/au1000.h> 49 49 50 50 char irq_tab_alchemy[][5] __initdata = { 51 [0] = { -1, INTA, INT B, INTX, INTX}, /* IDSEL 00 - AdapterA-Slot0 (top) */51 [0] = { -1, INTA, INTA, INTX, INTX}, /* IDSEL 00 - AdapterA-Slot0 (top) */ 52 52 [1] = { -1, INTB, INTA, INTX, INTX}, /* IDSEL 01 - AdapterA-Slot1 (bottom) */ 53 53 [2] = { -1, INTC, INTD, INTX, INTX}, /* IDSEL 02 - AdapterB-Slot0 (top) */ 54 54 [3] = { -1, INTD, INTC, INTX, INTX}, /* IDSEL 03 - AdapterB-Slot1 (bottom) */
Note:
See TracBrowser
for help on using the repository browser.
