Skip to contentSkip to conversation

8250 driver patch for Blackfin platforms

PATCH Javier Herrero 1 participant 1 message Nov 26, 2007 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I had modified the 8250.c driver as follows for Blackfin uClinux. Robin Getz had suggested me that this patch should be sumitted upstream. I hope that this is is the right way.

Regards,

Javier

drivers/serial/8250.c +6 -0
@@ -92,7 +92,9 @@
  */
 #define CONFIG_HUB6 1
 
+#ifndef CONFIG_BLACKFIN
 #include <asm/serial.h>
+#endif
 
 /*
  * SERIAL_PORT_DFNS tells us about built-in ports that have no
@@ -1544,6 +1546,10 @@
 		i->head = &up->list;
 		spin_unlock_irq(&i->lock);
 
+#ifdef CONFIG_BLACKFIN
+		irq_flags |= IRQF_TRIGGER_HIGH;
+#endif
+
 		ret = request_irq(up->port.irq, serial8250_interrupt,
 				  irq_flags, "serial", i);
 		if (ret < 0)
Signature · 5 lines
------------------------------------------------------------------------
Javier Herrero                            EMAIL: [email protected]
HV Sistemas S.L.                          PHONE:         +34 949 336 806
Los Charcones, 17A                        FAX:           +34 949 336 792
19170 El Casar - Guadalajara - Spain      WEB: http://www.hvsistemas.com