* libchip/serial/ns16550.c: Enable interrupt code only for PowerPC or
	BSPs that support this feature.
This commit is contained in:
Joel Sherrill
2008-09-23 14:07:19 +00:00
parent d126b32055
commit 8c0cab0b09
2 changed files with 10 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
2008-09-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libchip/serial/ns16550.c: Enable interrupt code only for PowerPC or
BSPs that support this feature.
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/serial/ns16550.c: Fix typo. * libchip/serial/ns16550.c: Fix typo.

View File

@@ -30,28 +30,22 @@
#include <libchip/serial.h> #include <libchip/serial.h>
#include <libchip/sersupp.h> #include <libchip/sersupp.h>
#include <bsp.h>
#include "ns16550_p.h" #include "ns16550_p.h"
#if !defined(CPU_SIMPLE_VECTORED_INTERRUPTS) && !defined(__arm__)
#include <bsp/irq.h>
#define NS16550_SUPPORTED
#endif
#ifdef BSP_FEATURE_IRQ_EXTENSION #ifdef BSP_FEATURE_IRQ_EXTENSION
/* Nothing to do */ #include <bsp/irq.h>
#elif defined BSP_FEATURE_IRQ_LEGACY #elif defined BSP_FEATURE_IRQ_LEGACY
/* Nothing to do */ #include <bsp/irq.h>
#elif defined __PPC__ #elif defined __PPC__
#include <bsp/irq.h>
#define BSP_FEATURE_IRQ_LEGACY #define BSP_FEATURE_IRQ_LEGACY
#ifdef BSP_SHARED_HANDLER_SUPPORT #ifdef BSP_SHARED_HANDLER_SUPPORT
#define BSP_FEATURE_IRQ_LEGACY_SHARED_HANDLER_SUPPORT #define BSP_FEATURE_IRQ_LEGACY_SHARED_HANDLER_SUPPORT
#endif #endif
#else
#undef NS16650_SUPPORTED
#endif #endif
#if defined(NS16550_SUPPORTED)
/* /*
* Flow control is only supported when using interrupts * Flow control is only supported when using interrupts
*/ */
@@ -724,4 +718,3 @@ NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
return -1; return -1;
} }
} }
#endif /* defined(NS16550_SUPPORTED) */