X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fns16550.h;h=51f1c17b317ab4aace4c24d5d8aaff9a0837b630;hb=10d1a160f5e28b05f891c050ca2f23855b226f5f;hp=ce606b5738396651e758c662aa9a3e5a8fcd0ba1;hpb=453c0d7558215cbc8636d94af172886d84e0dbba;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/ns16550.h b/include/ns16550.h index ce606b5..51f1c17 100644 --- a/include/ns16550.h +++ b/include/ns16550.h @@ -1,6 +1,6 @@ /* * NS16550 Serial Port - * originally from linux source (arch/ppc/boot/ns16550.h) + * originally from linux source (arch/powerpc/boot/ns16550.h) * * Cleanup and unification * (C) 2009 by Detlev Zundel, DENX Software Engineering GmbH @@ -21,8 +21,12 @@ * will not allocate storage for arrays of size 0 */ +#include + #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) +#define UART_REG(x) u32 x #elif (CONFIG_SYS_NS16550_REG_SIZE > 0) #define UART_REG(x) \ unsigned char prepad_##x[CONFIG_SYS_NS16550_REG_SIZE - 1]; \