X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fns16550.h;h=4e620676c453c6a4e0df04332befc0a1b34da592;hb=0745008145e0a30db06b21533512893ba0f706a2;hp=5784cfd97b859407c9b32fc3c4246e0674c742fd;hpb=e38b15b0619f9a8b869896229355808f494fb2ac;p=u-boot diff --git a/include/ns16550.h b/include/ns16550.h index 5784cfd97b..4e620676c4 100644 --- a/include/ns16550.h +++ b/include/ns16550.h @@ -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) \ @@ -53,7 +53,7 @@ * @clock: UART base clock speed in Hz */ struct ns16550_platdata { - unsigned char *base; + unsigned long base; int reg_shift; int clock; };