]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/ns16550.h
clk: arm: snapdragon: add () around macro args and fixup indentation
[karo-tx-uboot.git] / include / ns16550.h
index 0607379537d7ccf1038a0d322fdf29d95fbc0df4..1311f4cb919e3dff6917a593fb390671613f5795 100644 (file)
@@ -33,7 +33,7 @@
 
 #if !defined(CONFIG_SYS_NS16550_REG_SIZE) || (CONFIG_SYS_NS16550_REG_SIZE == 0)
 #error "Please define NS16550 registers size."
-#elif defined(CONFIG_SYS_NS16550_MEM32)
+#elif defined(CONFIG_SYS_NS16550_MEM32) && !defined(CONFIG_DM_SERIAL)
 #define UART_REG(x) u32 x
 #elif (CONFIG_SYS_NS16550_REG_SIZE > 0)
 #define UART_REG(x)                                               \
@@ -56,6 +56,7 @@ struct ns16550_platdata {
        unsigned long base;
        int reg_shift;
        int clock;
+       int reg_offset;
 };
 
 struct udevice;