forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/dz.c
....@@ -29,10 +29,6 @@
2929
3030 #undef DEBUG_DZ
3131
32
-#if defined(CONFIG_SERIAL_DZ_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
33
-#define SUPPORT_SYSRQ
34
-#endif
35
-
3632 #include <linux/bitops.h>
3733 #include <linux/compiler.h>
3834 #include <linux/console.h>
....@@ -677,7 +673,7 @@
677673 static int dz_map_port(struct uart_port *uport)
678674 {
679675 if (!uport->membase)
680
- uport->membase = ioremap_nocache(uport->mapbase,
676
+ uport->membase = ioremap(uport->mapbase,
681677 dec_kn_slot_size);
682678 if (!uport->membase) {
683679 printk(KERN_ERR "dz: Cannot map MMIO\n");
....@@ -787,6 +783,7 @@
787783 uport->ops = &dz_ops;
788784 uport->line = line;
789785 uport->mapbase = base;
786
+ uport->has_sysrq = IS_ENABLED(CONFIG_SERIAL_DZ_CONSOLE);
790787 }
791788 }
792789