From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Thu, 15 Jan 2015 13:26:54 -0800 Subject: [U-Boot] [PATCH v3 06/11] arch/powerpc: Enable VSC9953 driver on T1040 and T1020 In-Reply-To: <1421064519-6248-7-git-send-email-codrin.ciubotariu@freescale.com> References: <1421064519-6248-1-git-send-email-codrin.ciubotariu@freescale.com> <1421064519-6248-7-git-send-email-codrin.ciubotariu@freescale.com> Message-ID: <54B8309E.3090005@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > > 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 > #include > #include > +#include > > 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