[U-Boot] [PATCH v2 09/11] fsl/mpc85xx: introduce fsl_print_rcw function

York Sun yorksun at freescale.com
Fri Sep 6 22:04:04 CEST 2013


On 08/28/2013 07:04 AM, Valentin Longchamp wrote:
> The RCW gets printed on a lot of FSL 85xx devices and it is always done
> the same way.
> 
> The fsl_print_rcw function performs this exact same task.
> 
> Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
> ---
> Changes in v2: None
> 
>  arch/powerpc/cpu/mpc85xx/Makefile          |  1 +
>  arch/powerpc/cpu/mpc85xx/fsl_corenet_rcw.c | 43 ++++++++++++++++++++++++++++++
>  arch/powerpc/include/asm/fsl_rcw.h         | 19 +++++++++++++
>  board/freescale/b4860qds/b4860qds.c        | 13 ++-------
>  board/freescale/corenet_ds/corenet_ds.c    | 24 +++++++----------
>  board/freescale/t4qds/t4qds.c              | 12 ++-------
>  6 files changed, 76 insertions(+), 36 deletions(-)
>  create mode 100644 arch/powerpc/cpu/mpc85xx/fsl_corenet_rcw.c
>  create mode 100644 arch/powerpc/include/asm/fsl_rcw.h
> 
> diff --git a/arch/powerpc/cpu/mpc85xx/Makefile b/arch/powerpc/cpu/mpc85xx/Makefile
> index 4669883..8c51619 100644
> --- a/arch/powerpc/cpu/mpc85xx/Makefile
> +++ b/arch/powerpc/cpu/mpc85xx/Makefile
> @@ -114,6 +114,7 @@ COBJS-$(CONFIG_QE)	+= qe_io.o
>  COBJS-$(CONFIG_CPM2)	+= serial_scc.o
>  COBJS-$(CONFIG_SYS_FSL_QORIQ_CHASSIS1) += fsl_corenet_serdes.o
>  COBJS-$(CONFIG_SYS_FSL_QORIQ_CHASSIS2) += fsl_corenet2_serdes.o
> +COBJS-$(CONFIG_FSL_CORENET)	+= fsl_corenet_rcw.o
>  
>  # SoC specific SERDES support
>  COBJS-$(CONFIG_MPC8536) += mpc8536_serdes.o
> diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet_rcw.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet_rcw.c
> new file mode 100644
> index 0000000..ca3a566
> --- /dev/null
> +++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet_rcw.c
> @@ -0,0 +1,43 @@
> +/*
> + * (C) Copyright 2013 Keymile AG
> + * Valentin Longchamp <valentin.longchamp at keymile.com>
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
> + * MA 02110-1301 USA
> + */
> +
>

Please retain original copyright when you move partial code to a new
file. Also please use the new license string.

Also apply to other part of this patch.

York





More information about the U-Boot mailing list