4 * $Id: bfin_serial_5xx.c,v 1.80 2006/10/12 03:16:38 sonicz Exp $
7 +#include <linux/sysrq.h>
8 #include <linux/module.h>
10 #include <linux/tty_flip.h>
11 @@ -650,9 +651,10 @@ static void receive_chars(struct bfin_se
12 struct tty_struct *tty = info->tty;
13 unsigned char ch = 0, flag = 0;
14 unsigned short status = 0;
15 -#if defined(CONFIG_BF531) || defined(CONFIG_BF532) || defined(CONFIG_BF533)
16 - static int in_break=0;
17 +#ifdef CONFIG_MAGIC_SYSRQ
18 + static int in_break = 0;
23 #ifdef CONFIG_BFIN_UART_CTSRTS
24 @@ -665,16 +667,13 @@ static void receive_chars(struct bfin_se
25 ACCESS_PORT_IER(uart_regs);
26 ch = (unsigned char)bfin_read16(uart_regs->rpUART_RBR);
33 -#if defined(CONFIG_BF531) || defined(CONFIG_BF532) || defined(CONFIG_BF533)
34 +#ifdef CONFIG_MAGIC_SYSRQ
37 - ch = (unsigned char)bfin_read16(uart_regs->rpUART_RBR);
40 + handle_sysrq(ch, regs, NULL);
45 @@ -683,7 +682,7 @@ static void receive_chars(struct bfin_se
48 status_handle(info, status);
49 -#if defined(CONFIG_BF531) || defined(CONFIG_BF532) || defined(CONFIG_BF533)
50 +#ifdef CONFIG_MAGIC_SYSRQ
53 } else if (status & PE) {
54 @@ -696,6 +695,7 @@ static void receive_chars(struct bfin_se
56 status_handle(info, status);
59 tty_insert_flip_char(tty, ch, flag);
61 tty_flip_buffer_push(tty);