[U-Boot] [PATCH 5/7] dm: serial: use Driver Model for UniPhier serial driver

Simon Glass sjg at chromium.org
Thu Oct 23 05:30:23 CEST 2014


HI Masahiro,

On 22 October 2014 03:14, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
> This commit converts UniPhier on-chip serial driver to driver model.
>
> Since UniPhier SoCs do not have Device Tree support, some board files
> should be added under arch/arm/cpu/armv7/uniphier/ph1-*/ directories.
> (Device Tree support for UniPhier platform is still under way.)
>
> Now the base address and master clock frequency are passed from
> platform data, so CONFIG_SYS_UNIPHIER_SERIAL_BASE* and
> CONFIG_SYS_UNIPHIER_UART_CLK should be removed.
>
> Tested on UniPhier PH1-LD4 ref board.
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> ---
>
>  arch/arm/cpu/armv7/uniphier/ph1-ld4/Makefile      |   1 +
>  arch/arm/cpu/armv7/uniphier/ph1-ld4/platdevice.c  |  15 ++
>  arch/arm/cpu/armv7/uniphier/ph1-pro4/Makefile     |   1 +
>  arch/arm/cpu/armv7/uniphier/ph1-pro4/platdevice.c |  15 ++
>  arch/arm/cpu/armv7/uniphier/ph1-sld8/Makefile     |   1 +
>  arch/arm/cpu/armv7/uniphier/ph1-sld8/platdevice.c |  15 ++
>  arch/arm/include/asm/arch-uniphier/platdevice.h   |  24 +++
>  configs/ph1_ld4_defconfig                         |   2 +
>  configs/ph1_pro4_defconfig                        |   2 +
>  configs/ph1_sld8_defconfig                        |   2 +
>  drivers/serial/serial_uniphier.c                  | 199 ++++++++--------------
>  include/configs/ph1_ld4.h                         |   2 -
>  include/configs/ph1_pro4.h                        |   2 -
>  include/configs/ph1_sld8.h                        |   2 -
>  include/configs/uniphier-common.h                 |   7 +-
>  include/dm/platform_data/serial-uniphier.h        |  18 ++

I'm not 100% sure about that directory, but it seems reasonable.

Acked-by: Simon Glass <sjg at chromium.org>

Regards,
Simon


More information about the U-Boot mailing list