forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/apbuart.c
....@@ -11,10 +11,6 @@
1111 * Copyright (C) 2009 Kristoffer Glembo <kristoffer@gaisler.com>, Aeroflex Gaisler AB
1212 */
1313
14
-#if defined(CONFIG_SERIAL_GRLIB_GAISLER_APBUART_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
15
-#define SUPPORT_SYSRQ
16
-#endif
17
-
1814 #include <linux/module.h>
1915 #include <linux/tty.h>
2016 #include <linux/tty_flip.h>
....@@ -626,6 +622,7 @@
626622 port->irq = 0;
627623 port->iotype = UPIO_MEM;
628624 port->ops = &grlib_apbuart_ops;
625
+ port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_GRLIB_GAISLER_APBUART_CONSOLE);
629626 port->flags = UPF_BOOT_AUTOCONF;
630627 port->line = line;
631628 port->uartclk = *freq_hz;