summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/serial.h
blob: c55a0e2b47cae300431cd29443b55545d8a6aa81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * arch/xtensa/include/asm/serial.h
 *
 * Configuration details for 8250, 16450, 16550, etc. serial ports
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2001-2010 Tensilica Inc.
 */

#ifndef _XTENSA_SERIAL_H
#define _XTENSA_SERIAL_H

#include <asm/irq.h>
#include <platform/serial.h>

/* The 8250 driver treats IRQ 0 as absent.  For the Xtensa architecture,
   interrupt 0 is valid, must compare against NO_IRQ instead. */
#ifdef is_real_interrupt
#undef is_real_interrupt
#define is_real_interrupt(irq)	((irq) != NO_IRQ)
#endif

#endif	/* _XTENSA_SERIAL_H */