[U-Boot] [PATCH v2] armv8: ls1088a: Update MC boot sequence

2017-10-04 Thread Bogdan Purcareata
The MC boot sequence is contained in mc_env_boot. Update LS1088A boards to use this function, and hook it to reset_phy so that it's called late enough, after the ports have been initialized, for proper DPC / DPL fixup. Signed-off-by: Bogdan Purcareata --- This patch follows the work of pre

Re: [U-Boot] [PATCH] armv8: ls1088a: Update MC boot sequence

2017-10-04 Thread Bogdan Purcareata
Hello York, > -Original Message- > From: York Sun > Sent: Wednesday, October 04, 2017 8:22 PM > To: Bogdan Purcareata ; Prabhakar Kushwaha > ; Ashish Kumar ; u- > b...@lists.denx.de > Subject: Re: [PATCH] armv8: ls1088a: Update MC boot sequence > > On

[U-Boot] [PATCH] armv8: ls1088a: Update MC boot sequence

2017-10-04 Thread Bogdan Purcareata
addresses are properly set in DPC / DPL. Signed-off-by: Bogdan Purcareata --- board/freescale/ls1088a/eth_ls1088aqds.c | 14 -- board/freescale/ls1088a/eth_ls1088ardb.c | 13 - include/configs/ls1088a_common.h | 6 ++ 3 files changed, 22 insertions(+), 11

[U-Boot] [PATCH v3 2/2] drivers: net: fsl-mc: Include MAC addr fixup to DPL

2017-05-24 Thread Bogdan Purcareata
variables take precedence over the MAC addresses already visible in the DPL/DPC. Signed-off-by: Bogdan Purcareata Signed-off-by: Heinz Wrobel --- v2 -> v3: - no changes v1 -> v2: - initialize variables to fix compiler warnings - remove prints drivers/net/fsl-mc/mc.c

[U-Boot] [PATCH v3 1/2] drivers: net: fsl-mc: Link MC boot to PHY_RESET_R

2017-05-24 Thread Bogdan Purcareata
phy hook, as it gets called at a later moment, when all board PHY devices have been initialized. Signed-off-by: Bogdan Purcareata Signed-off-by: Heinz Wrobel --- v2 -> v3: - add dummy reset_phy() implementation in board/freescale/ls2080a/ls2080a.c for proper compilation on ls2080a_simu and ls2

Re: [U-Boot] [PATCH v2 1/2] drivers: net: fsl-mc: Link MC boot to PHY_RESET_R

2017-05-23 Thread Bogdan Purcareata
> -Original Message- > From: york sun > Sent: Tuesday, May 23, 2017 7:11 PM > To: Bogdan Purcareata ; Prabhakar Kushwaha > ; u-boot@lists.denx.de > Cc: Heinz Wrobel > Subject: Re: [PATCH v2 1/2] drivers: net: fsl-mc: Link MC boot to > PHY_RESET_R > >

[U-Boot] [PATCH v2 2/2] drivers: net: fsl-mc: Include MAC addr fixup to DPL

2017-05-19 Thread Bogdan Purcareata
variables take precedence over the MAC addresses already visible in the DPL/DPC. Signed-off-by: Bogdan Purcareata Signed-off-by: Heinz Wrobel --- v1 -> v2: - initialize variables to fix compiler warnings - remove prints drivers/net/fsl-mc/mc.c |

[U-Boot] [PATCH v2 1/2] drivers: net: fsl-mc: Link MC boot to PHY_RESET_R

2017-05-19 Thread Bogdan Purcareata
phy hook, as it gets called at a later moment, when all board PHY devices have been initialized. Signed-off-by: Bogdan Purcareata Signed-off-by: Heinz Wrobel --- v1 -> v2: - keep the reset_phy implementation on each board; some boards might want to do something else besides booting the MC.

Re: [U-Boot] [PATCH 2/2] drivers: net: fsl-mc: Include MAC addr fixup in DPL

2017-05-18 Thread Bogdan Purcareata
> -Original Message- > From: york sun > Sent: Friday, May 19, 2017 12:04 AM > To: Bogdan Purcareata ; Prabhakar Kushwaha > ; u-boot@lists.denx.de > Cc: Heinz Wrobel > Subject: Re: [PATCH 2/2] drivers: net: fsl-mc: Include MAC addr fixup in > DPL > >

[U-Boot] [PATCH 2/2] drivers: net: fsl-mc: Include MAC addr fixup in DPL

2017-05-18 Thread Bogdan Purcareata
variables take precedence over the MAC addresses already visible in the DPL/DPC. Signed-off-by: Bogdan Purcareata Signed-off-by: Heinz Wrobel --- drivers/net/fsl-mc/mc.c | 260 1 file changed, 197 insertions(+), 63 deletions(-) diff --git a

[U-Boot] [PATCH 1/2] drivers: net: fsl-mc: Define PHY_RESET_R function

2017-05-18 Thread Bogdan Purcareata
HY devices have been initialized. Signed-off-by: Bogdan Purcareata Signed-off-by: Heinz Wrobel --- board/freescale/ls2080aqds/eth.c | 8 board/freescale/ls2080ardb/eth_ls2080rdb.c | 7 +-- drivers/net/fsl-mc/mc.c| 18 ++

[U-Boot] [PATCH 10/11] board: ls2080a: Initialize eth before mcinitcmd

2017-04-27 Thread Bogdan Purcareata
The mcinitcmd usually boots the MC, and also patches the DPC with u-boot environment MAC addresses for the MAC phy interfaces. In order for this to work, the board phy interfaces must be initialized before this point. Signed-off-by: Bogdan Purcareata --- board/freescale/ls2080aqds/eth.c

[U-Boot] [PATCH 11/11] drivers: net: fsl-mc: Write MAC address in eth_device

2017-04-27 Thread Bogdan Purcareata
MC might boot before MAC addresses are assigned to eth_devices from the u-boot environment. Write them when booting the MC so that they are available for the DPC fixup. Signed-off-by: Bogdan Purcareata --- drivers/net/fsl-mc/mc.c | 8 1 file changed, 8 insertions(+) diff --git a

[U-Boot] [PATCH] drivers: net: fsl-mc: Fixup MAC addresses in DPC

2017-01-11 Thread Bogdan Purcareata
where they are randomly assigned (no u-boot env value declared for port). The patch assumes the "/board_info/ports/" node is present in the DPC. Signed-off-by: Bogdan Purcareata --- drivers/net/fsl-mc/mc.c | 103 +++- 1 file changed, 101

Re: [U-Boot] [PATCH] pcie/layerscape: fix bug in bus number computation when setting msi-map

2016-06-03 Thread Bogdan Purcareata
Ping? Bogdan P. On 17.05.2016 10:18, Bogdan Purcareata wrote: > When multiple PCI cards are present in an ls2080a board, the second > card does not get its msi-map set up properly due to a bug in computing > the bus number. > > The bus number returned by PCI_BDF() is not the

[U-Boot] [PATCH] pcie/layerscape: fix bug in bus number computation when setting msi-map

2016-05-17 Thread Bogdan Purcareata
number is relative to hose->first_busno, so that has to be subtracted from the PCI device id. Signed-off-by: Bogdan Purcareata Acked-by: Stuart Yoder --- drivers/pci/pcie_layerscape.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pcie_layerscape.