|
@@ -65,6 +65,8 @@ static inline void serial_out_shift(void *addr, int shift, int value)
|
|
|
out_le32(addr, value);
|
|
|
#elif defined(CONFIG_SYS_NS16550_MEM32) && defined(CONFIG_SYS_BIG_ENDIAN)
|
|
|
out_be32(addr, value);
|
|
|
+#elif defined(CONFIG_SYS_NS16550_MEM32)
|
|
|
+ writel(value, addr);
|
|
|
#elif defined(CONFIG_SYS_BIG_ENDIAN)
|
|
|
writeb(value, addr + (1 << shift) - 1);
|
|
|
#else
|
|
@@ -80,6 +82,8 @@ static inline int serial_in_shift(void *addr, int shift)
|
|
|
return in_le32(addr);
|
|
|
#elif defined(CONFIG_SYS_NS16550_MEM32) && defined(CONFIG_SYS_BIG_ENDIAN)
|
|
|
return in_be32(addr);
|
|
|
+#elif defined(CONFIG_SYS_NS16550_MEM32)
|
|
|
+ return readl(addr);
|
|
|
#elif defined(CONFIG_SYS_BIG_ENDIAN)
|
|
|
return readb(addr + (1 << shift) - 1);
|
|
|
#else
|