[U-Boot] [PATCH v2 6/8] dm: serial: use Driver Model for UniPhier serial driver

Simon Glass sjg at chromium.org
Fri Oct 24 05:55:04 CEST 2014


On 23 October 2014 07:26, 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>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  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 ++
>  16 files changed, 172 insertions(+), 136 deletions(-)
>  create mode 100644 arch/arm/cpu/armv7/uniphier/ph1-ld4/platdevice.c
>  create mode 100644 arch/arm/cpu/armv7/uniphier/ph1-pro4/platdevice.c
>  create mode 100644 arch/arm/cpu/armv7/uniphier/ph1-sld8/platdevice.c
>  create mode 100644 arch/arm/include/asm/arch-uniphier/platdevice.h
>  create mode 100644 include/dm/platform_data/serial-uniphier.h

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list