Re: [U-Boot] [PATCH V3 13/19] serial: lpuart: restructure lpuart driver

2017-02-23 Thread Alison Wang
> -Original Message- > From: Peng Fan [mailto:peng@nxp.com] > Sent: Wednesday, February 22, 2017 4:22 PM > To: sba...@denx.de > Cc: u-boot@lists.denx.de; Peng Fan ; Bhuvanchandra DV > ; york sun ; Shaohui > Xie ; Alison Wang > Subject: [PATCH V3 13/19] serial: lpuart: restructure lpua

[U-Boot] [PATCH V3 13/19] serial: lpuart: restructure lpuart driver

2017-02-22 Thread Peng Fan
Drop CONFIG_LPUART_32B_REG. Move the register structure to a common file include/fsl_lpuart.h Define lpuart_serial_platdata structure which includes the reg base and flags. For 32Bit register access, use lpuart_read32/lpuart_write32 which handles big/little endian. For 8Bit register access, still u