]> git.sur5r.net Git - u-boot/blobdiff - include/configs/microblaze-generic.h
ARM:AM33XX: Replace CONFIG_AM335X with CONFIG_AM33XX
[u-boot] / include / configs / microblaze-generic.h
index 6b3fd7600371cdbc66f428b3d53c7f3f915a5bcf..03a6f5ad0b8d3eb741fe64774888aca54e38b4b0 100644 (file)
 #elif XILINX_UART16550_BASEADDR
 # define CONFIG_SYS_NS16550            1
 # define CONFIG_SYS_NS16550_SERIAL
-# define CONFIG_SYS_NS16550_REG_SIZE   -4
+# if defined(__MICROBLAZEEL__)
+#  define CONFIG_SYS_NS16550_REG_SIZE  -4
+# else
+#  define CONFIG_SYS_NS16550_REG_SIZE  4
+# endif
 # define CONFIG_CONS_INDEX             1
 # define CONFIG_SYS_NS16550_COM1 \
-                       (XILINX_UART16550_BASEADDR + 0x1000)
+               ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
 # define CONFIG_SYS_NS16550_CLK        XILINX_UART16550_CLOCK_HZ
 # define CONFIG_BAUDRATE       115200