Add a big_endian flag alongside membase, regshift, and iotype. Most drivers currently use readl/writel, but if it is necessary to support a BE SoC, the driver can check this field to see which MMIO accessor functions to use. Signed-off-by: Kevin Cernekee <cernekee@xxxxxxxxx> --- include/linux/serial_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 21c2e05..ae372f4 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -138,7 +138,7 @@ struct uart_port { unsigned char x_char; /* xon/xoff char */ unsigned char regshift; /* reg offset shift */ unsigned char iotype; /* io access style */ - unsigned char unused1; + unsigned char big_endian; /* BE registers */ #define UPIO_PORT (0) #define UPIO_HUB6 (1) -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html