diff --git a/c/src/lib/libbsp/sparc/leon2/ChangeLog b/c/src/lib/libbsp/sparc/leon2/ChangeLog index 201e17371c..befc3c0f3f 100644 --- a/c/src/lib/libbsp/sparc/leon2/ChangeLog +++ b/c/src/lib/libbsp/sparc/leon2/ChangeLog @@ -1,3 +1,9 @@ +2007-11-30 Daniel Hellstrom + + * rasta/rasta.c: LEON2 PCI RASTA driver. Changes RASTA PCI interrupt to + 5 from 4. This is to avoid conflict with the LAN9C111 network MAC + driver using interrupt 4. + 2007-10-11 Daniel Hellstrom * Makefile.am, preinstall.am: Fixes bug in OC-CAN baud rate calculator. diff --git a/c/src/lib/libbsp/sparc/leon2/rasta/rasta.c b/c/src/lib/libbsp/sparc/leon2/rasta/rasta.c index 9e6ec8fb27..ae28904ed8 100644 --- a/c/src/lib/libbsp/sparc/leon2/rasta/rasta.c +++ b/c/src/lib/libbsp/sparc/leon2/rasta/rasta.c @@ -1,3 +1,7 @@ +/* + * $Id$ + */ + #include #include #include @@ -12,7 +16,7 @@ /* If RASTA_SRAM is defined SRAM will be used, else SDRAM */ /*#define RASTA_SRAM 1*/ -#define RASTA_IRQ 4 +#define RASTA_IRQ 5 /* Offset from 0x80000000 (dual bus version) */ #define AHB1_IOAREA_BASE_ADDR 0x80100000 @@ -288,7 +292,7 @@ int rasta_register(void) /* Configure AT697 ioport bit 7 to input pci irq */ regs->PIO_Direction &= ~(1<<7); - regs->PIO_Interrupt = 0x87; /* level sensitive */ + regs->PIO_Interrupt |= (0x87<<8); /* level sensitive */ apb_base[0x100] |= 0x40000000; /* Set GRPCI mmap 0x4 */ apb_base[0x104] = 0x40000000; /* 0xA0000000; Point PAGE1 to RAM */