linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Enable IRQ0 for PPC4xx UART.
@ 2007-03-20 19:02 Valentine Barshak
  0 siblings, 0 replies; only message in thread
From: Valentine Barshak @ 2007-03-20 19:02 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: ppc4xx_uart_irq0_fix.patch --]
[-- Type: text/plain, Size: 694 bytes --]

[PATCH] Enable IRQ0 for PPC4xx UART

Redefine is_real_interrupt(irq) macro,
since IRQ0 is valid for PPC4xx platform.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>

diff -ruN linux.orig/include/asm-ppc/serial.h linux/include/asm-ppc/serial.h
--- linux.orig/include/asm-ppc/serial.h	2007-03-16 18:04:16.000000000 +0300
+++ linux/include/asm-ppc/serial.h	2007-03-20 15:52:02.000000000 +0300
@@ -28,6 +28,9 @@
 #elif defined(CONFIG_SPRUCE)
 #include <platforms/spruce.h>
 #elif defined(CONFIG_4xx)
+/* UART IRQ0 is valid for PPC4xx */
+#undef is_real_interrupt
+#define is_real_interrupt(irq)	((irq) >= 0)
 #include <asm/ibm4xx.h>
 #elif defined(CONFIG_83xx)
 #include <asm/mpc83xx.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-20 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-20 19:02 [PATCH] Enable IRQ0 for PPC4xx UART Valentine Barshak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).