public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 06/11] arch/powerpc: Enable VSC9953 driver on T1040 and T1020
Date: Thu, 15 Jan 2015 13:26:54 -0800	[thread overview]
Message-ID: <54B8309E.3090005@freescale.com> (raw)
In-Reply-To: <1421064519-6248-7-git-send-email-codrin.ciubotariu@freescale.com>



On 01/12/2015 04:08 AM, Codrin Ciubotariu wrote:
> T1040 and T1020 are two Freescale SoCs with an integrated
> VSC9953 Gigabit L2 Switch. This patch initializes this L2
> switch on boards with T1040 and T1020.
> 
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com>
> ---
> 
> Changes for v2:
> 	- added patch description;
> 
> Changes for v3:
> 	- Removed "Change-id" line from comment;
> 
>  arch/powerpc/cpu/mpc8xxx/cpu.c            | 5 +++++
>  arch/powerpc/include/asm/config_mpc85xx.h | 3 +++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c
> index 2d28eb2..c92589f 100644
> --- a/arch/powerpc/cpu/mpc8xxx/cpu.c
> +++ b/arch/powerpc/cpu/mpc8xxx/cpu.c
> @@ -15,6 +15,7 @@
>  #include <netdev.h>
>  #include <asm/cache.h>
>  #include <asm/io.h>
> +#include <vsc9953.h>
>  
>  DECLARE_GLOBAL_DATA_PTR;
>  
> @@ -271,5 +272,9 @@ int cpu_eth_init(bd_t *bis)
>  #ifdef CONFIG_FMAN_ENET
>  	fm_standard_init(bis);
>  #endif
> +
> +#ifdef CONFIG_VSC9953
> +	vsc9953_init(bis);
> +#endif
>  	return 0;
>  }
> diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/include/asm/config_mpc85xx.h
> index 01b0905..79caac1 100644
> --- a/arch/powerpc/include/asm/config_mpc85xx.h
> +++ b/arch/powerpc/include/asm/config_mpc85xx.h
> @@ -747,6 +747,9 @@ defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
>  #define CONFIG_SYS_FSL_QORIQ_CHASSIS2	/* Freescale Chassis generation 2 */
>  #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
>  #define CONFIG_SYS_FSL_QMAN_V3		/* QMAN version 3 */
> +#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1020)
> +#define CONFIG_VSC9953			/* Vitesse L2 Switch */
> +#endif
>  #ifdef CONFIG_SYS_FSL_DDR4
>  #define CONFIG_SYS_FSL_DDRC_GEN4
>  #endif
> 

Codrin,

A question, do you want to enable the L2 switch regardless if the ports are
connected on the board? Would it be better to enable the feature in board header
file?

York

  reply	other threads:[~2015-01-15 21:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12 12:08 [U-Boot] [PATCH v3 00/11] Add driver for VSC9953 Ethernet Switch Codrin Ciubotariu
2015-01-12 12:08 ` [U-Boot] [PATCH v3 01/11] net/fm: Fix error when FMAN MAC has no PHY Codrin Ciubotariu
2015-01-23  0:37   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 02/11] arch/powerpc: Fix mapping of Freescale SerDes protocols Codrin Ciubotariu
2015-01-23  0:38   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 03/11] arch/powerpc: Add SGMII support for the L2 Switch ports Codrin Ciubotariu
2015-01-23  0:39   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 04/11] net/fm: Enable FMAN ports if l2switch ports are connected over SGMII Codrin Ciubotariu
2015-01-23  0:39   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 05/11] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP Codrin Ciubotariu
2015-01-15 20:59   ` York Sun
2015-01-15 21:02   ` York Sun
2015-01-15 21:42   ` Joe Hershberger
2015-01-23  0:40   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 06/11] arch/powerpc: Enable VSC9953 driver on T1040 and T1020 Codrin Ciubotariu
2015-01-15 21:26   ` York Sun [this message]
2015-01-12 12:08 ` [U-Boot] [PATCH v3 07/11] board/T1040qds: Fix lane-to-slot mapping for SerDes protocol 0x89 Codrin Ciubotariu
2015-01-23  0:42   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 08/11] board/T1040qds: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs Codrin Ciubotariu
2015-01-23  0:42   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 09/11] board/T104xrdb: " Codrin Ciubotariu
2015-01-23  0:43   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 10/11] board/T1040qds: Add VSC9953 support for T1040qds board Codrin Ciubotariu
2015-01-12 12:08 ` [U-Boot] [PATCH v3 11/11] board/T1040rdb: Add VSC9953 support for T1040rdb board Codrin Ciubotariu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B8309E.3090005@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox