From: shinkoi2005 <shi...@gm...> - 2007-11-12 15:15:37
|
> I'm glad that it works on your R2D-1. Both my R2D-1 boards do not have > working CF. Just to double-check - are using a R2D with one or two pci > slots? My R2D-1 has two pci slots. The picture is the following. <http://tree.celinuxforum.org/pubwiki/moin.cgi/RTS7751R2DHandlingManual> > Can you please post the BVERREG and VERREG register values from your > R2D-1? Then I'll post mine when I get back into the office. My R2D-1's VERREG and BVERREG is the folloing. R2D VERREG:0x0033, BVERREG:0x0011 diff a/arch/sh/boards/renesas/rts7751r2d/irq.c b/arch/sh/boards/renesas/rts7751r2d/irq.c --- a/arch/sh/boards/renesas/rts7751r2d/irq.c +++ b/arch/sh/boards/renesas/rts7751r2d/irq.c @@ -129,8 +129,12 @@ int rts7751r2d_irq_demux(int irq) void __init init_rts7751r2d_IRQ(void) { struct intc_desc *d; + unsigned short ver = ctrl_inw(PA_VERREG); /* FPGA Revision */ + unsigned short bver = ctrl_inw(PA_BVERREG); /* Board Revision */ - switch (ctrl_inw(PA_VERREG) & 0xf0) { + printk(KERN_INFO "R2D VERREG:0x%04x, BVERREG:0x%04x\n", ver, bver); + + switch (ver & 0xf0) { #ifdef CONFIG_RTS7751R2D_PLUS case 0x10: printk(KERN_INFO "Using R2D-PLUS interrupt controller.\n"); @@ -148,7 +152,7 @@ void __init init_rts7751r2d_IRQ(void) #endif default: printk(KERN_INFO "Unknown R2D interrupt controller 0x%04x\n", - ctrl_inw(PA_VERREG)); + ver); return; } |