Pasthis

Raw | New paste
Never expires.
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index bb5083201b..71e8912696 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -771,7 +771,6 @@ config SYS_NS16550_PORT_MAPPED

 config SYS_NS16550_REG_SIZE
        int "ns16550 register width and endianness"
-       depends on SYS_NS16550_SERIAL || SPL_SYS_NS16550_SERIAL
        range -4 4
        default -4 if ARCH_OMAP2PLUS || ARCH_SUNXI
        default 1
diff --git a/include/ns16550.h b/include/ns16550.h
index f45fc8cecc..bdceaf071a 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -37,7 +37,7 @@
 #ifdef CONFIG_NS16550_DYNAMIC
 #define UART_REG(x)    unsigned char x
 #else
-#if defined(CONFIG_SYS_NS16550_MEM32) && !CONFIG_IS_ENABLED(DM_SERIAL)
+#if 0
 #define UART_REG(x) u32 x
 #elif !defined(CONFIG_SYS_NS16550_REG_SIZE) || (CONFIG_SYS_NS16550_REG_SIZE == 0)
 #error "Please define NS16550 registers size."