Author: rminnich
Date: 2006-10-18 18:00:10 +0200 (Wed, 18 Oct 2006)
New Revision: 2461
Modified:
trunk/LinuxBIOSv2/src/mainboard/olpc/btest/mainboard.c
Log:
add the CAFE IRQ support
Modified: trunk/LinuxBIOSv2/src/mainboard/olpc/btest/mainboard.c
===================================================================
--- trunk/LinuxBIOSv2/src/mainboard/olpc/btest/mainboard.c 2006-10-18 15:46:24 UTC (rev 2460)
+++ trunk/LinuxBIOSv2/src/mainboard/olpc/btest/mainboard.c 2006-10-18 16:00:10 UTC (rev 2461)
@@ -68,6 +68,33 @@
write_bit(rev > 0 ? 1 : 0);
}
+void
+init_cafe_irq(void){
+ const unsigned char slots_cafe[4] = {11, 0, 0, 0};
+
+
+ /* CAFE PCI slots */
+ pci_assign_irqs(0, 0x0C, slots_cafe);
+
+ /* Make the pin assignments - NOTENOTENOTE: This should be
+ * configurable!
+ */
+
+ /* Configure the GPIO pins to use - class 0, index 9 to configure
+ * AB. Write 0xFF to disable
+ */
+
+ vrWrite(0x9, 0XFF00);
+
+ /* Configure the GPIO pins to use - class 0, index A to configure
+ * CD. Write 0xFF to disable
+ */
+
+ vrWrite(0xA, 0xFFFF);
+
+}
+
+
static void init(struct device *dev) {
/*
unsigned bus = 0;
@@ -94,6 +121,7 @@
#endif
init_dcon();
+ init_cafe_irq();
printk_debug("OLPC BTEST EXIT %s\n", __FUNCTION__);
}