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

Alison Wang alison.wang at nxp.com
Fri Feb 24 02:16:10 UTC 2017


> -----Original Message-----
> From: Peng Fan [mailto:peng.fan at nxp.com]
> Sent: Wednesday, February 22, 2017 4:22 PM
> To: sbabic at denx.de
> Cc: u-boot at lists.denx.de; Peng Fan <peng.fan at nxp.com>; Bhuvanchandra DV
> <bhuvanchandra.dv at toradex.com>; york sun <york.sun at nxp.com>; Shaohui
> Xie <Shaohui.Xie at nxp.com>; Alison Wang <b18965 at freescale.com>
> Subject: [PATCH V3 13/19] serial: lpuart: restructure lpuart driver
> 
> 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 use the orignal code.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com> Reviewed-by : Stefano Babic
> <sbabic at denx.de>
> Cc: Bhuvanchandra DV <bhuvanchandra.dv at toradex.com>
> Cc: York Sun <york.sun at nxp.com>
> Cc: Shaohui Xie <Shaohui.Xie at nxp.com>
> Cc: Alison Wang <b18965 at freescale.com>
> ---
> V3:
>  add review tag
> V2:
>  New. I do not have vf610 and LSx board, please help test if you have
> the board.
> 
>  arch/arm/cpu/armv7/vf610/generic.c                 |   5 +
>  .../arm/include/asm/arch-fsl-layerscape/imx-regs.h |  42 ----
>  arch/arm/include/asm/arch-ls102xa/imx-regs.h       |  40 ---
>  arch/arm/include/asm/arch-vf610/clock.h            |   1 +
>  arch/arm/include/asm/arch-vf610/imx-regs.h         |  28 ---
>  drivers/serial/serial_lpuart.c                     | 267 +++++++++++--
> --------
>  6 files changed, 148 insertions(+), 235 deletions(-)
> 
[Alison Wang] Reviewed-by: Alison Wang <alison.wang at nxp.com>


Best Regards,
Alison Wang


More information about the U-Boot mailing list