[U-Boot] [PATCH 3/3] configs: sama5d27_som1_ek: Add defconfig for ENV/boot from uSD

2018-08-21 Thread Codrin Ciubotariu
-by: Codrin Ciubotariu --- configs/sama5d27_som1_ek_mmc1_defconfig | 91 + include/configs/sama5d27_som1_ek.h | 4 +- 2 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 configs/sama5d27_som1_ek_mmc1_defconfig diff --git a/configs

[U-Boot] [PATCH 2/3] configs: sama5d27_som1_ek: Set CONFIG_BOOTARGS using Kconfig

2018-08-21 Thread Codrin Ciubotariu
CONFIG_BOOTARGS can be set using Kconfig, so we no longer need it in the config files. Signed-off-by: Codrin Ciubotariu --- configs/sama5d27_som1_ek_mmc_defconfig | 2 ++ include/configs/sama5d27_som1_ek.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configs

[U-Boot] [PATCH 1/3] configs: sama5d27_som1_ek: Remove unnecessary FAT_ENV_xxx macros

2018-08-21 Thread Codrin Ciubotariu
FAT_ENV_xxx options can now be set using Kconfig, so we no longer need them in the config files. Signed-off-by: Codrin Ciubotariu --- include/configs/sama5d27_som1_ek.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/sama5d27_som1_ek.h b/include/configs/sama5d27_som1_ek.h

[U-Boot] [PATCH 0/3] configs: sama5d27_som1_ek: Cleanup and new

2018-08-21 Thread Codrin Ciubotariu
This series basically adds a new defconfig for sama5d27_som1_ek board to boot from uSD. Also needed to cleanup the board's config header. Codrin Ciubotariu (3): configs: sama5d27_som1_ek: Remove unnecessary FAT_ENV_xxx macros configs: sama5d27_som1_ek: Set CONFIG_BOOTARGS using Kconfig

[U-Boot] [PATCH] configs: sama5d2_xplained: Add defconfig for ENV/boot from eMMC

2018-08-21 Thread Codrin Ciubotariu
-by: Codrin Ciubotariu --- configs/sama5d2_xplained_emmc_defconfig | 88 + include/configs/sama5d2_xplained.h | 4 +- 2 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 configs/sama5d2_xplained_emmc_defconfig diff --git a/configs

[U-Boot] [PATCH] drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only

2016-03-15 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@nxp.com> --- drivers/net/vsc9953.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c index 44afe14..ef1435f 100644 --- a/drivers/net/vsc9953.c +++ b/drivers/net/vsc9953.c @@

[U-Boot] [PATCH] powerpc: t1040qds: Use generic ethsw commands

2016-03-14 Thread Codrin Ciubotariu
The commands for the VSC9953 l2 switch from T1040 became generic in patch https://patchwork.ozlabs.org/patch/499748/ and the define was renamed. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@nxp.com> --- include/configs/T1040QDS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH] drivers: net: vsc9953: Do not configure disabled ports

2016-03-14 Thread Codrin Ciubotariu
-of-line blocking for other frames. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@nxp.com> --- drivers/net/vsc9953.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c index ef1435f..2388438 100644 --- a/drive

[U-Boot] [PATCH 3/5] doc: t1040-l2switch: Update README

2015-12-15 Thread Codrin Ciubotariu
The driver for VSC9953 L2 switch IP supports many features and the documentation needs to be updated. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- doc/README.t1040-l2switch | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff

[U-Boot] [PATCH 0/5] vsc9953: fixes, cleanups and LAG support

2015-12-15 Thread Codrin Ciubotariu
that they are applied in the right order and no merge conflicts appear. Codrin Ciubotariu (5): drivers: net: vsc9953: Fix number of reserved registers drivers: net: vsc9953: Fix FDB aging time doc: t1040-l2switch: Update README common: cmd_ethsw: Spelling fixes drivers: net: vsc9953: Add LAG support

[U-Boot] [PATCH 2/5] drivers: net: vsc9953: Fix FDB aging time

2015-12-15 Thread Codrin Ciubotariu
By default, the aging period is set to 0, so the dynamic FDB entries are never removed. This patch sets the aging time to 300 seconds. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- drivers/net/vsc9953.c | 23 +++ include/vsc9953.h | 4 +

[U-Boot] [PATCH 5/5] drivers: net: vsc9953: Add LAG support

2015-12-15 Thread Codrin Ciubotariu
/Destination IP(v4/v6) addresses, Source/Destination ports. This hash will be used to select a single egress port from LAG. This also assures that frames from the same flow will always have the same egress port. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- common/cmd_e

[U-Boot] [PATCH 1/5] drivers: net: vsc9953: Fix number of reserved registers

2015-12-15 Thread Codrin Ciubotariu
There are only 21 registers reserved between ana_ana and ana_pgid register groups. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- include/vsc9953.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vsc9953.h b/include/vsc9953.h index c

[U-Boot] [PATCH 4/5] common: cmd_ethsw: Spelling fixes

2015-12-15 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- common/cmd_ethsw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_ethsw.c b/common/cmd_ethsw.c index 8e452e9..a5ed555 100644 --- a/common/cmd_ethsw.c +++ b/common/cmd_ethsw.c @@ -71,7

[U-Boot] [PATCH] T104xD4RDB: Fix PHY address for PHY connected to FM1@DTSEC3

2015-10-12 Thread Codrin Ciubotariu
On T1040D4RDB board, u-boot fails to connect port FM1@DTSEC3 to the Ethernet PHY because the wrong PHY address is used. Also, T1040D4RDB supports SGMII on one port only. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- include/configs/T104xRDB.h | 4 +++- 1 file chan

[U-Boot] [PATCH v4 12/16] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-09-09 Thread Codrin Ciubotariu
. The command has also been added to the generic ethsw parser from cmd_ethsw.c. Signed-off-by: Johnson Leung <johnson.le...@freescale.com> Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@freescale.com> --- Changes for v2: - removed Change-id field; Changes for v3:

[U-Boot] [PATCH v4 11/16] common/env_flags.c: Add function to validate a MAC address

2015-09-09 Thread Codrin Ciubotariu
The code that checks if a string has the format of a MAC address has been moved to a separate function called eth_validate_ethaddr_str(). This has been done to allow other components (such as vsc9953 driver) to validate a MAC address. Signed-off-by: Codrin Ciubotariu <codrin.ciub

[U-Boot] [PATCH v3 02/16] drivers/net/vsc9953: Cleanup patch

2015-07-24 Thread Codrin Ciubotariu
This patch groups some macros defined for registers and replaces some magic numbers from vsc9953 with macros. Also, port and port_nr words are replaced with port_no, puts each variable declaration on a line and removes unnecessary tabs. Signed-off-by: Codrin Ciubotariu codrin.ciubota

[U-Boot] [PATCH v3 01/16] drivers/net/vsc9953: Remove 'CONFIG_' from macros' name

2015-07-24 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v3: - none; new patch; drivers/net/vsc9953.c | 38 +++--- include/vsc9953.h | 46 +++--- 2 files changed, 42 insertions(+), 42

[U-Boot] [PATCH] include/bitfield.h: Assure new bitfield value doesn't touch unwanted bits

2015-07-24 Thread Codrin Ciubotariu
The new bitfield value must not be higher than its mask. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- include/bitfield.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bitfield.h b/include/bitfield.h index cffaf7a..a59f3c2 100644 --- a/include

[U-Boot] [PATCH v3 03/16] drivers/net/vsc9953: Fix bug when enabling a port

2015-07-24 Thread Codrin Ciubotariu
by replacing out_le32() with setbits_le32(). Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Dhanges for v3: - none; new patch; drivers/net/vsc9953.c | 4 ++-- include/vsc9953.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net

[U-Boot] [PATCH v3 05/16] include/bitfield: Add new bitfield operations

2015-07-24 Thread Codrin Ciubotariu
These new operations allow manipulation of bitfields within a word by using a mask instead of width and shift values to extract/replace the bitfields. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v3: - none; new patch; include/bitfield.h | 32

[U-Boot] [PATCH v3 04/16] drivers/net/vsc9953: Fix missing reserved register

2015-07-24 Thread Codrin Ciubotariu
The VSC9953 DS reserves a register between vlan_mask and anag_efil registers. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes for v3: - added

[U-Boot] [PATCH v3 09/16] drivers/net/vsc9953: Add command to show/clear port counters

2015-07-24 Thread Codrin Ciubotariu
The new added command: ethsw [port port_no] statistics { [help] | [clear] } will print counters like the number of Rx/Tx frames, number of Rx/Tx bytes, number of Rx/Tx unicast frames, etc. This patch also adds this commnd in the genereric ethsw parser from cmd_ethsw.c Signed-off-by: Codrin

[U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-07-24 Thread Codrin Ciubotariu
the command on a port or on all ports. For now, the defined commands are: ethsw [port port_no] { enable | disable | show } Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v3: - parser removed from previous patch: drivers/net/vsc9953: Refractor the parser

[U-Boot] [PATCH v3 06/16] drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch

2015-07-24 Thread Codrin Ciubotariu
should add a VLAN tag if the frame is classified to a different VLAN than the port's Port-based VLAN; Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes

[U-Boot] [PATCH v3 08/16] drivers/net/vsc9953: Use the generic Ethernet Switch parser

2015-07-24 Thread Codrin Ciubotariu
This patch replaces the parser used by VSC9953 L2 Switch driver with the generic one. Also, the config macro that enables the VSC9953 commands has been replaced in all the platforms that use this driver with the config macro that corresponds to the generic parser. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v3 13/16] drivers/net/vsc9953: Add VLAN commands for VSC9953

2015-07-24 Thread Codrin Ciubotariu
or the PVID of the port These commands have also been added to the ethsw generic parser from common/cmd_ethsw.c Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes

[U-Boot] [PATCH v3 12/16] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-07-24 Thread Codrin Ciubotariu
can be seen or flushed. The command has also been added to the generic ethsw parser from cmd_ethsw.c. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes for v3

[U-Boot] [PATCH v3 10/16] drivers/net/vsc9953: Add commands to enable/disable HW learning

2015-07-24 Thread Codrin Ciubotariu
The command: ethsw [port port_no] learning { [help] | show | auto | disable } can be used to enable/disable HW learning on a port. This patch also adds this command to the generic ethsw parser from cmd_ethsw. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin

[U-Boot] [PATCH v3 14/16] drivers/net/vsc9953: Add command for shared/private VLAN learning

2015-07-24 Thread Codrin Ciubotariu
generic parser from common/cmd_ethsw.c Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes for v3: - replaced values returned by functions

[U-Boot] [PATCH v3 16/16] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier

2015-07-24 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes for v3: - this patch also includes the Copyright year updates for the modified values; drivers/net/vsc9953.c | 2 +- include/vsc9953.h | 11

[U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-07-24 Thread Codrin Ciubotariu
The code from common/env_flags.c that checks if a string has the format of a MAC address has been moved in net/eth.c as a separate function called eth_validate_ethaddr_str(). Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v3: - none, new patch; common

[U-Boot] [PATCH v3 15/16] drivers/net/vsc9953: Add commands for VLAN ingress filtering

2015-07-24 Thread Codrin Ciubotariu
Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; Changes for v3: - replaced values returned by functions called by the parser with CMD_RET_

[U-Boot] [PATCH v3 00/16] Add more commands for VSC9953 L2 Switch

2015-07-24 Thread Codrin Ciubotariu
of 1 and 0 - small code fixes Codrin Ciubotariu (16): drivers/net/vsc9953: Remove 'CONFIG_' from macros' name drivers/net/vsc9953: Cleanup patch drivers/net/vsc9953: Fix bug when enabling a port drivers/net/vsc9953: Fix missing reserved register include/bitfield: Add new bitfield

[U-Boot] [PATCH 06/11 v2] drivers/net/vsc9953: Add commands to enable/disable HW learning

2015-06-23 Thread Codrin Ciubotariu
The command: ethsw [port port_no] learning { [help] | show | auto | disable } can be used to enable/disable HW learning on a port. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed

[U-Boot] [PATCH 00/11 v2] Add more commands for VSC9953 L2 Switch

2015-06-23 Thread Codrin Ciubotariu
Change-id field; - Added the patch that changes the License at the end of the patch set for an easier integration; Codrin Ciubotariu (11): drivers/net/vsc9953: Cleanup patch drivers/net/vsc9953: Fix missing reserved register drivers/net/vsc9953: Add default

[U-Boot] [PATCH 03/11 v2] drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch

2015-06-23 Thread Codrin Ciubotariu
should add a VLAN tag if the frame is classified to a different VLAN than the port's Port-based VLAN; Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; drivers/net

[U-Boot] [PATCH 01/11 v2] drivers/net/vsc9953: Cleanup patch

2015-06-23 Thread Codrin Ciubotariu
lines and to assure that only intended bits of a register are changed. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; drivers/net/vsc9953.c | 100 +- include/vsc9953.h | 47

[U-Boot] [PATCH 04/11 v2] drivers/net/vsc9953: Refractor the parser for VSC9953 commands

2015-06-23 Thread Codrin Ciubotariu
, the parser allows for optional keywords, such as port, to apply the command on a port or on all ports. The already defined commands are also changed a bit to: ethsw [port port_no] { enable | disable | show } Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2

[U-Boot] [PATCH 05/11 v2] drivers/net/vsc9953: Add command to show/clear port counters

2015-06-23 Thread Codrin Ciubotariu
The new added command: ethsw [port port_no] statistics { [help] | [clear] } will print counters like the number of Rx/Tx frames, number of Rx/Tx bytes, number of Rx/Tx unicast frames, etc. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed

[U-Boot] [PATCH 02/11 v2] drivers/net/vsc9953: Fix missing reserved register

2015-06-23 Thread Codrin Ciubotariu
The VSC9953 DS reserves a register between vlan_mask and anag_efil registers. Signed-off-by: Johnson Leung johnson.le...@freescale.com --- Changes for v2: - removed Change-id field; include/vsc9953.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vsc9953.h

[U-Boot] [PATCH 07/11 v2] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-06-23 Thread Codrin Ciubotariu
can be seen or flushed. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; drivers/net/vsc9953.c | 635 +- include/vsc9953

[U-Boot] [PATCH 11/11 v2] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier

2015-06-23 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - fixed the Copyright years from 2014-2015 to 2013, 2015; - removed Change-id field; include/vsc9953.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include

[U-Boot] [PATCH 08/11 v2] drivers/net/vsc9953: Add VLAN commands for VSC9953

2015-06-23 Thread Codrin Ciubotariu
or the PVID of the port Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; drivers/net/vsc9953.c | 678 +- include/vsc9953

[U-Boot] [PATCH 10/11 v2] drivers/net/vsc9953: Add commands for VLAN ingress filtering

2015-06-23 Thread Codrin Ciubotariu
The command: ethsw [port port_no] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port can be used to enable/disable/show VLAN ingress filtering on a port. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin

[U-Boot] [PATCH 09/11 v2] drivers/net/vsc9953: Add command for shared/private VLAN learning

2015-06-23 Thread Codrin Ciubotariu
...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed Change-id field; drivers/net/vsc9953.c | 155 ++ include/vsc9953.h | 3 + 2 files changed, 158 insertions(+) diff --git a/drivers

[U-Boot] [PATCH 08/10] drivers/net/vsc9953: Add VLAN commands for VSC9953

2015-06-11 Thread Codrin Ciubotariu
or the PVID of the port Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: If55943254f6f865d4bc2e18a4ab0620ab787fbc1 --- drivers/net/vsc9953.c | 678 +- include/vsc9953

[U-Boot] [PATCH 01/10] drivers/net/vsc9953: Cleanup patch

2015-06-11 Thread Codrin Ciubotariu
lines and to assure that only intended bits of a register are changed. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: Ib5f7d94bd6a39b909bf7b70bb12e15156a7e45c9 --- drivers/net/vsc9953.c | 100 +- include/vsc9953.h

[U-Boot] [PATCH 04/10] drivers/net/vsc9953: Refractor the parser for VSC9953 commands

2015-06-11 Thread Codrin Ciubotariu
, the parser allows for optional keywords, such as port, to apply the command on a port or on all ports. The already defined commands are also changed a bit to: ethsw [port port_no] { enable | disable | show } Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id

[U-Boot] [PATCH 02/10] drivers/net/vsc9953: Fix missing reserved register

2015-06-11 Thread Codrin Ciubotariu
The VSC9953 DS reserves a register between vlan_mask and anag_efil registers. Signed-off-by: Johnson Leung johnson.le...@freescale.com Change-Id: Ia7998cfcae932e8c1146dec98d6c6493b6bc1192 --- include/vsc9953.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vsc9953.h

[U-Boot] [PATCH 03/10] drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch

2015-06-11 Thread Codrin Ciubotariu
should add a VLAN tag if the frame is classified to a different VLAN than the port's Port-based VLAN; Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I2cd5ad30371ca8f64aec51afe5bd6b3c0a66569d --- drivers

[U-Boot] [PATCH 05/10] drivers/net/vsc9953: Add command to show/clear port counters

2015-06-11 Thread Codrin Ciubotariu
The new added command: ethsw [port port_no] statistics { [help] | [clear] } will print counters like the number of Rx/Tx frames, number of Rx/Tx bytes, number of Rx/Tx unicast frames, etc. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id

[U-Boot] [PATCH 07/10] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-06-11 Thread Codrin Ciubotariu
can be seen or flushed. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I63f2df7d2b5c885c96be4fec3874eaf994e3c26f --- drivers/net/vsc9953.c | 635 +- include/vsc9953

[U-Boot] [PATCH 06/10] drivers/net/vsc9953: Add commands to enable/disable HW learning

2015-06-11 Thread Codrin Ciubotariu
The command: ethsw [port port_no] learning { [help] | show | auto | disable } can be used to enable/disable HW learning on a port. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id

[U-Boot] [PATCH] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier

2015-06-11 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: Ifd82465cce10e310a4f974ae70dceab838ae27db --- include/vsc9953.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/vsc9953.h b/include/vsc9953.h index 26a08aa..753abba 100644

[U-Boot] [PATCH 09/10] drivers/net/vsc9953: Add command for shared/private VLAN learning

2015-06-11 Thread Codrin Ciubotariu
...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I6b2ac706ff9ef7bb9d873402b293455366cf5034 --- drivers/net/vsc9953.c | 155 ++ include/vsc9953.h | 3 + 2 files changed, 158 insertions(+) diff --git

[U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch

2015-06-11 Thread Codrin Ciubotariu
); - set/show PVID (ingress and egress VLAN tagging) for a port; - set egress tagging mod for a port; - configure VID source for egress tag; - make VLAN learning shared or private; - enable/disable VLAN ingress filtering on a port. Codrin Ciubotariu (10): drivers

[U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch

2015-06-11 Thread Codrin Ciubotariu
); - set/show PVID (ingress and egress VLAN tagging) for a port; - set egress tagging mod for a port; - configure VID source for egress tag; - make VLAN learning shared or private; - enable/disable VLAN ingress filtering on a port. Codrin Ciubotariu (10): drivers

[U-Boot] [PATCH 01/10] drivers/net/vsc9953: Cleanup patch

2015-06-11 Thread Codrin Ciubotariu
lines and to assure that only intended bits of a register are changed. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: Ib5f7d94bd6a39b909bf7b70bb12e15156a7e45c9 --- drivers/net/vsc9953.c | 100 +- include/vsc9953.h

[U-Boot] [PATCH 10/10] drivers/net/vsc9953: Add commands for VLAN ingress filtering

2015-06-11 Thread Codrin Ciubotariu
The command: ethsw [port port_no] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port can be used to enable/disable/show VLAN ingress filtering on a port. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin

[U-Boot] [PATCH v2] mpc85xx/T1040D4RDB: Disable all CPLD interrupts, except QSGMI1 and QSGMI2

2015-05-13 Thread Codrin Ciubotariu
is available only for T104XD4RDB boards; - added debug message if the CPLD verison doesn't support the int_mask register; - add defines for all interrupt mask bits. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- board/freescale/t104xrdb/cpld.c

[U-Boot] [PATCH] mpc85xx/T1040D4RDB: Disable all CPLD interrupts, except QSGMI1 and QSGMI2

2015-05-06 Thread Codrin Ciubotariu
available in CPLD with exception for QSGMII PHY interrupts, for which we have a driver in Linux. This patch depends on patches: mpc85xx/T104xD4RDB: Add T104xD4RDB boards support mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com

[U-Boot] [PATCH] T104xD4RDB: Enable L2 Switch on T104xD4RDB board

2015-03-27 Thread Codrin Ciubotariu
This patch enables L2 Switch support for board T104xRDB by defining CONFIG_VSC9953(_CMD) and the addresses for QSGMII Ethernet PHYs. This patch depends on patch: mpc85xx/T104xD4RDB: Add T104xD4RDB boards support Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- include

[U-Boot] [PATCH] net/phy/realtek: Disable interrupt on Realtek Ethernet PHY drivers

2015-02-13 Thread Codrin Ciubotariu
-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: Ic5e353da24f8fec335e446098ed863991a64 --- drivers/net/phy/realtek.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index a3ace68

[U-Boot] [PATCH v4 11/11] board/T1040rdb: Add VSC9953 support for T1040rdb board

2015-01-21 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040rdb board. The external L2 switch ports may be connected to PHYs only over QSGMII, for T1040rdb. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: None Changes for v3: - Removed Change-id line

[U-Boot] [PATCH v4 06/11] arch/powerpc: Initialize VSC9953 L2 Switch

2015-01-21 Thread Codrin Ciubotariu
This patch initializes VSC9953 L2 Switch for boards that have CONFIG_VSC9953 defined in their config file. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - added patch description; Changes for v3: - Removed Change-id line from comment

[U-Boot] [PATCH v4 10/11] board/T1040qds: Add VSC9953 support for T1040qds board

2015-01-21 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040QDS board. The L2 switch ports must be initialized according to the SerDes protocols. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: None Changes for v3: - Removed Change-id line from

[U-Boot] [PATCH v3 05/11] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP

2015-01-12 Thread Codrin Ciubotariu
for all ports For more detailse please see doc/README.t1040-l2switch Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - added debug messages if MDIO reads or writes timeout; - added debug messages when reset of VSC9953 switch fails; - replaced

[U-Boot] [PATCH v3 11/11] board/T1040rdb: Add VSC9953 support for T1040rdb board

2015-01-12 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040rdb board. The external L2 switch ports may be connected to PHYs only over QSGMII, for T1040rdb. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: None Changed for v3: - Removed Change-id line

[U-Boot] [PATCH v3 08/11] board/T1040qds: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs

2015-01-12 Thread Codrin Ciubotariu
no PHYs attatched, so they don't have a corresponding MDIO. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - added patch description; Changes for v3: - Removed Change-id line from comment; board/freescale/t1040qds/eth.c | 1 + 1 file changed

[U-Boot] [PATCH v3 10/11] board/T1040qds: Add VSC9953 support for T1040qds board

2015-01-12 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040QDS board. The L2 switch ports must be initialized according to the SerDes protocols. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: None Changes for v3: - Removed Change-id line from

[U-Boot] [PATCH v3 00/11] Add driver for VSC9953 Ethernet Switch

2015-01-12 Thread Codrin Ciubotariu
SerDes protocols; - removed Change-id lines from almost all the patches; Codrin Ciubotariu (11): net/fm: Fix error when FMAN MAC has no PHY arch/powerpc: Fix mapping of Freescale SerDes protocols arch/powerpc: Add SGMII support for the L2 Switch ports net/fm: Enable FMAN ports

[U-Boot] [PATCH v3 01/11] net/fm: Fix error when FMAN MAC has no PHY

2015-01-12 Thread Codrin Ciubotariu
U-boot assumes that all FMAN ports have a PHY. Some SoCs (like T1040) have fixed links. This means that the ports are connected MAC to MAc and there is no Ethernet PHY attatched. This patch initializes a FMAN MAC even if it doesn't have a PHY attached. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v3 02/11] arch/powerpc: Fix mapping of Freescale SerDes protocols

2015-01-12 Thread Codrin Ciubotariu
track of all the configured protocols. This patch replaces the u64 map values with static arrays. To keep track of the number of serdes protocols, the SERDES_PRCTL_COUNT vale has been added at the end of enum srds_prtcl. This value must always be the last one. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v3 03/11] arch/powerpc: Add SGMII support for the L2 Switch ports

2015-01-12 Thread Codrin Ciubotariu
Some Freescale SoCs like T1020 and T1040 have an integrated L2 Switch. The L2 Switch ports may be connected to Ethernet PHYs over SGMII and QSGMII. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - split a bug fix regarding Freescale SerDes protocols

[U-Boot] [PATCH v3 07/11] board/T1040qds: Fix lane-to-slot mapping for SerDes protocol 0x89

2015-01-12 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: None Changes for v3: - Removed Change-id line from comment; board/freescale/t1040qds/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/t1040qds/eth.c b/board/freescale/t1040qds

[U-Boot] [PATCH v3 06/11] arch/powerpc: Enable VSC9953 driver on T1040 and T1020

2015-01-12 Thread Codrin Ciubotariu
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.ciubota...@freescale.com --- Changes for v2: - added patch description; Changes for v3

[U-Boot] [PATCH v3 04/11] net/fm: Enable FMAN ports if l2switch ports are connected over SGMII

2015-01-12 Thread Codrin Ciubotariu
If SerDes is configured to connect L2 Switch ports from T1040 over SGMII or QSGMII, the two FMAN fixed ports (FM1@DTSEC1 and FM2@DTSEC2) that are connected to two L2 swtch ports must be enabled. These ports don't have PHYs and must be treated accordingly. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v3 09/11] board/T104xrdb: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs

2015-01-12 Thread Codrin Ciubotariu
no PHYs attatched, so they don't have a corresponding MDIO. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - Added patch description; Changes for v3: - Removed Change-id line from comment; board/freescale/t104xrdb/eth.c | 9 +++-- 1 file

[U-Boot] [PATCH v2 00/11] Add driver for VSC9953 Ethernet Switch

2014-12-19 Thread Codrin Ciubotariu
timeout; - added debug messages when reset of VSC9953 switch fails; - replaced Copyright and license to the generic one; - added patch descriptions; Codrin Ciubotariu (11): net/fm: Fix error when FMAN MAC has no PHY arch/powerpc: Fix mapping of Freescale SerDes protocols

[U-Boot] [PATCH v2 01/11] net/fm: Fix error when FMAN MAC has no PHY

2014-12-19 Thread Codrin Ciubotariu
U-boot assumes that all FMAN ports have a PHY. Some SoCs (like T1040) have fixed links. This means that the ports are connected MAC to MAc and there is no Ethernet PHY attatched. This patch initializes a FMAN MAC even if it doesn't have a PHY attached. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v2 04/11] net/fm: Enable FMAN ports if l2switch ports are connected over SGMII

2014-12-19 Thread Codrin Ciubotariu
If SerDes is configured to connect L2 Switch ports from T1040 over SGMII or QSGMII, the two FMAN fixed ports (FM1@DTSEC1 and FM2@DTSEC2) that are connected to two L2 swtch ports must be enabled. These ports don't have PHYs and must be treated accordingly. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v2 05/11] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP

2014-12-19 Thread Codrin Ciubotariu
for all ports For more detailse please see doc/README.t1040-l2switch Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I460852dc67c1dd3b387e57a50d73dc0ec5f77f8b --- doc/README.t1040-l2switch | 49 + drivers/net/Makefile | 1 + drivers/net/vsc9953.c | 497

[U-Boot] [PATCH v2 02/11] arch/powerpc: Fix mapping of Freescale SerDes protocols

2014-12-19 Thread Codrin Ciubotariu
track of all the configured protocols. This patch replaces the u64 map values with static arrays. To keep track of the number of serdes protocols, the SERDES_PRCTL_COUNT vale has been added at the end of enum srds_prtcl. This value must always be the last one. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH v2 08/11] board/T1040qds: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs

2014-12-19 Thread Codrin Ciubotariu
no PHYs attatched, so they don't have a corresponding MDIO. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I35d9b33667538eab40463035b5cbb290f7a1ee07 --- board/freescale/t1040qds/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/t1040qds/eth.c b

[U-Boot] [PATCH v2 06/11] arch/powerpc: Enable VSC9953 driver on T1040 and T1020

2014-12-19 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: If65224646f737270dad1ef3558a400a002e9d4b6 --- arch/powerpc/cpu/mpc8xxx/cpu.c| 7 +++ arch/powerpc/include/asm/config_mpc85xx.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/arch/powerpc/cpu

[U-Boot] [PATCH v2 07/11] board/T1040qds: Fix lane-to-slot mapping for SerDes protocol 0x89

2014-12-19 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I911b61580681f4b042b1f280a6a60ebf91d9ab13 --- board/freescale/t1040qds/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/t1040qds/eth.c b/board/freescale/t1040qds/eth.c index 06d9086..c6fc146

[U-Boot] [PATCH v2 11/11] board/T1040rdb: Add VSC9953 support for T1040rdb board

2014-12-19 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040rdb board. The external L2 switch ports may be connected to PHYs only over QSGMII, for T1040rdb. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I56ae23192daa882c66d04b64b9a7d32531a13db0 --- board/freescale

[U-Boot] [PATCH v2 03/11] arch/powerpc: Add SGMII support for the L2 Switch ports

2014-12-19 Thread Codrin Ciubotariu
Some Freescale SoCs like T1020 and T1040 have an integrated L2 Switch. The L2 Switch ports may be connected to Ethernet PHYs over SGMII and QSGMII. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: Idadad19d469efc45f03c6f8884c3647e02b28df4 --- arch/powerpc/cpu/mpc85xx

[U-Boot] [PATCH v2 10/11] board/T1040qds: Add VSC9953 support for T1040qds board

2014-12-19 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040QDS board. The L2 switch ports must be initialized according to the SerDes protocols. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I329f9cc1b1be745da23151e78831d8a3219b7f97 --- board/freescale/t1040qds

[U-Boot] [PATCH v2 09/11] board/T104xrdb: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs

2014-12-19 Thread Codrin Ciubotariu
no PHYs attatched, so they don't have a corresponding MDIO. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I379544addc0842a6c6fb515fe398a61012cb4b16 --- board/freescale/t104xrdb/eth.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/board

[U-Boot] [PATCH 03/10] net/fm: Enable FMAN ports if l2switch ports are connected over SGMII

2014-12-15 Thread Codrin Ciubotariu
If SerDes is configured to connect L2 Switch ports from T1040 over SGMII or QSGMII, the two FMAN fixed ports (FM1@DTSEC1 and FM2@DTSEC2) that are connected to two L2 swtch ports must be enabled. These ports don't have PHYs and must be treated accordingly. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH 08/10] board/T104xrdb: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs

2014-12-15 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I379544addc0842a6c6fb515fe398a61012cb4b16 --- board/freescale/t104xrdb/eth.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/board/freescale/t104xrdb/eth.c b/board/freescale/t104xrdb/eth.c

[U-Boot] [PATCH 07/10] board/T1040qds: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs

2014-12-15 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I35d9b33667538eab40463035b5cbb290f7a1ee07 --- board/freescale/t1040qds/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/t1040qds/eth.c b/board/freescale/t1040qds/eth.c index c6fc146..2f8e753

[U-Boot] [PATCH 01/10] net/fm: Fix error when FMAN MAC has no PHY

2014-12-15 Thread Codrin Ciubotariu
U-boot assumes that all FMAN ports have a PHY. Some SoCs (like T1040) have fixed links. This means that the ports are connected MAC to MAc and there is no Ethernet PHY attatched. This patch initializes a FMAN MAC even if it doesn't have a PHY attached. Signed-off-by: Codrin Ciubotariu

[U-Boot] [PATCH 02/10] arch/powerpc: Add SGMII support for the L2 Switch ports

2014-12-15 Thread Codrin Ciubotariu
Some Freescale SoCs like T1020 and T1040 have an integrated L2 Switch. The L2 Switch ports may be connected to Ethernet PHYs over SGMII and QSGMII. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: Idadad19d469efc45f03c6f8884c3647e02b28df4 --- arch/powerpc/cpu/mpc85xx

[U-Boot] [PATCH 09/10] board/T1040qds: Add VSC9953 support for T1040qds board

2014-12-15 Thread Codrin Ciubotariu
This patch configures and initializes the L2 switch on T1040QDS board. The L2 switch ports must be initialized according to the SerDes protocols. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I329f9cc1b1be745da23151e78831d8a3219b7f97 --- board/freescale/t1040qds

[U-Boot] [PATCH 04/10] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP

2014-12-15 Thread Codrin Ciubotariu
for all ports For more detailse please see doc/README.t1040-l2switch Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: I460852dc67c1dd3b387e57a50d73dc0ec5f77f8b --- doc/README.t1040-l2switch | 49 + drivers/net/Makefile | 1 + drivers/net/vsc9953.c | 489

[U-Boot] [PATCH 05/10] arch/powerpc: Enable VSC9953 driver on T1040 and T1020

2014-12-15 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com Change-Id: If65224646f737270dad1ef3558a400a002e9d4b6 --- arch/powerpc/cpu/mpc8xxx/cpu.c| 7 +++ arch/powerpc/include/asm/config_mpc85xx.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/arch/powerpc/cpu

  1   2   >