/* * drivers/serial/sh-sci.c * * SuperH on-chip serial module support. (SCI with no FIFO / with FIFO) * * Copyright (C) 2002 - 2006 Paul Mundt * * based off of the old drivers/char/sh-sci.c by: * * Copyright (C) 1999, 2000 Niibe Yutaka * Copyright (C) 2000 Sugioka Toshinobu * Modified to support multiple serial ports. Stuart Menefy (May 2000). * Modified to support SecureEdge. David McCullough (2002) * Modified to support SH7300 SCIF. Takashi Kusuda (Jun 2003). * * 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. */#if defined(CONFIG_SERIAL_SH_SCI_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)#define SUPPORT_SYSRQ#endif#undef DEBUG#include<linux/module.h>#include<linux/errno.h>#include<linux/timer.h>#include<linux/interrupt.h>#include<linux/tty.h>#include<linux/tty_flip.h>#include<linux/serial.h>#include<linux/major.h>#include<linux/string.h>#include<linux/sysrq.h>#include<linux/ioport.h>#include<linux/mm.h>#include<linux/init.h>#include<linux/delay.h>#include<linux/console.h>#include<linux/platform_device.h>#ifdef CONFIG_CPU_FREQ#include<linux/notifier.h>#include<linux/cpufreq.h>#endif#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)#include<linux/ctype.h>#include<asm/clock.h>#include<asm/sh_bios.h>#include<asm/kgdb.h>#endif