18fa5723aSChris Zankel /*
28fa5723aSChris Zankel  * platform/serial.h
38fa5723aSChris Zankel  *
48fa5723aSChris Zankel  * This file is subject to the terms and conditions of the GNU General Public
58fa5723aSChris Zankel  * License.  See the file "COPYING" in the main directory of this archive
68fa5723aSChris Zankel  * for more details.
78fa5723aSChris Zankel  *
88fa5723aSChris Zankel  * Copyright (C) 2001 Tensilica Inc.
98fa5723aSChris Zankel  */
108fa5723aSChris Zankel 
118fa5723aSChris Zankel #ifndef _XTENSA_XT2000_SERIAL_H
128fa5723aSChris Zankel #define _XTENSA_XT2000_SERIAL_H
138fa5723aSChris Zankel 
148f8d5745SMax Filippov #include <asm/core.h>
158fa5723aSChris Zankel #include <asm/io.h>
168fa5723aSChris Zankel 
178fa5723aSChris Zankel /*  National-Semi PC16552D DUART:  */
188fa5723aSChris Zankel 
198fa5723aSChris Zankel #define DUART16552_1_INTNUM	XCHAL_EXTINT4_NUM
208fa5723aSChris Zankel #define DUART16552_2_INTNUM	XCHAL_EXTINT5_NUM
218fa5723aSChris Zankel 
228fa5723aSChris Zankel #define DUART16552_1_ADDR	IOADDR(0x0d050020)	/* channel 1 */
238fa5723aSChris Zankel #define DUART16552_2_ADDR	IOADDR(0x0d050000)	/* channel 2 */
248fa5723aSChris Zankel 
258fa5723aSChris Zankel #define DUART16552_XTAL_FREQ	18432000	/* crystal frequency in Hz */
268fa5723aSChris Zankel #define BASE_BAUD ( DUART16552_XTAL_FREQ / 16 )
278fa5723aSChris Zankel 
288fa5723aSChris Zankel #endif /* _XTENSA_XT2000_SERIAL_H */
29