powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Subsystems (2)
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Per T1040RM (Rev. 1, 08/2015), the value of FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT is wrong and should be 0x00000080 (bit 440 in the RCW).
---
arch/powerpc/include/asm/immap_85xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/immap_85xx.h +1 -1
@@ -1789,7 +1789,7 @@ typedef struct ccsr_gur {#define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII 0x20000000#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL 0x00000080#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_L2_SWITCH 0x00000000 -#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT 0x80000000 +#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT 0x00000080#define CONFIG_SYS_FSL_SCFG_PIXCLKCR_OFFSET 0x28#define PXCKEN_MASK 0x80000000#define PXCK_MASK 0x00FF0000
Signature · 1 line
2.7.4
PATCH 2/2 powerpc: t1040: Correct RCW EC2 settings
Per T1040RM (Rev. 1, 08/2015), there are 2 issues with the RCW EC2 settings.
- The value of FSL_CORENET_RCWSR13_EC2_FM1_GPIO is wrong and should be 0x04000000 (value of 1 in RCW bit [420:421])
- Value of 2/3 are reserved in RCW bit [420:421], hence there is no macro FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII.
---
arch/powerpc/include/asm/immap_85xx.h | 3 +-- drivers/net/fm/t1040.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-)
arch/powerpc/include/asm/immap_85xx.h +1 -2
@@ -1785,8 +1785,7 @@ typedef struct ccsr_gur {#define FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_MII 0x20000000#define FSL_CORENET_RCWSR13_EC2 0x0c000000/* bits 420..421 */ #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_RGMII 0x00000000 -#define FSL_CORENET_RCWSR13_EC2_FM1_GPIO 0x10000000 -#define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII 0x20000000 +#define FSL_CORENET_RCWSR13_EC2_FM1_GPIO 0x04000000#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL 0x00000080#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_L2_SWITCH 0x00000000#define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT 0x00000080
drivers/net/fm/t1040.c +0 -3
@@ -41,9 +41,6 @@ phy_interface_t fman_port_enet_if(enum fm_port port)if ((rcwsr13 &FSL_CORENET_RCWSR13_EC2 ) ==FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_RGMII )return PHY_INTERFACE_MODE_RGMII ; -else if ((rcwsr13 &FSL_CORENET_RCWSR13_EC2 ) == -FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII ) -return PHY_INTERFACE_MODE_MII ; }switch (port) {
Signature · 1 line
2.7.4
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
In reply to Bin MengQuoted 6 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong and should be0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
Poonam,
Please review and confirm on T1040. Thanks.
York
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Quoted 6 lines · York Sun
Quoted 4 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong and should be0x00000080(bit 440 in the RCW).
Quoted 8 lines
Quoted 2 lines
Signed-off-by Bin Meng <[email protected]>---
Poonam,
Please review and confirm on T1040. Thanks.
Ping ?
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Quoted 12 lines · Bin Meng
Quoted 10 lines · York Sun
Quoted 6 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong and should be0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
Quoted 6 lines
Quoted 4 lines
Poonam,
Please review and confirm on T1040. Thanks.
Ping ?
Ping ?
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Quoted 24 lines
-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Monday, October 22, 2018 7:41 AM
To: York Sun <[email protected]>
Cc: Poonam Aggrwal <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>
Subject: Re: [PATCH 1/2] powerpc: t1040: Correct RCWMAC2_GMII_SELvalueQuoted 6 lines · Bin Meng
Quoted 4 lines · York Sun
Quoted 2 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong andshould be
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Poonam,
Please review and confirm on T1040. Thanks.
Ping ?
Ping ?
Apologies Bin, York for such late response....
The patch looks correct, the value of FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT should be 0x80 indeed,
I would suggest that I test it once that DTSEC2 RGMII works with this change, because I see more changes which could be required in drivers/fm/t1040.c...seems a goof up there as well.
Kind Regards
Poonam
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Hi Poonam,
Quoted 30 lines · Poonam Aggrwal
Quoted 30 lines
-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Monday, October 22, 2018 7:41 AM
To: York Sun <[email protected]>
Cc: Poonam Aggrwal <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>
Subject: Re: [PATCH 1/2] powerpc: t1040: Correct RCWMAC2_GMII_SELvalueQuoted 6 lines · Bin Meng
Quoted 4 lines · York Sun
Quoted 2 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong andshould be
Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
Poonam,
Please review and confirm on T1040. Thanks.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Ping ?
Ping ?
Apologies Bin, York for such late response....
The patch looks correct, the value ofFSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTshould be0x80indeed,
I would suggest that I test it once that DTSEC2 RGMII works with this change, because I see more changes which could be required indrivers/fm/t1040.c...seemsa goof up there as well.
t1040.c changes is patch [2/2], see
https://lists.denx.de/pipermail/u-boot/2018-October/343499.html
Regards,
Bin
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Hello Bin,
Quoted 53 lines
-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Monday, October 22, 2018 9:41 AM
To: Poonam Aggrwal <[email protected]>
Cc: York Sun <[email protected]>; U-Boot Mailing List <[email protected]>
Subject: Re: [PATCH 1/2] powerpc: t1040: Correct RCWMAC2_GMII_SELvalueHi Poonam,
Quoted 31 lines · Poonam Aggrwal
Quoted 31 lines
-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Monday, October 22, 2018 7:41 AM
To: York Sun <[email protected]>
Cc: Poonam Aggrwal <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>
Subject: Re: [PATCH 1/2] powerpc: t1040: Correct RCWMAC2_GMII_SELvalueQuoted 6 lines · Bin Meng
Quoted 4 lines · York Sun
Quoted 2 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong andshould be
Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
Poonam,
Please review and confirm on T1040. Thanks.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Ping ?
Ping ?
Apologies Bin, York for such late response.... The patch looks correct, the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTshould be0x80indeed, I would suggest that I test it once that DTSEC2 RGMII works with this change, because I see more changes which could be required in
drivers/fm/t1040.c...seemsa goof up there as well.Quoted 1 line
Quoted 7 lines
t1040.cchanges is patch [2/2], see
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.de
nx.de%2Fpipermail%2Fu-boot%2F2018- October%2F343499.html&data=02%7C01%7Cpoonam.aggrwal%40nxp.co m%7Ce1f6945b731f464c4f6008d637d47259%7C686ea1d3bc2b4c6fa92cd99c5c 301635%7C0%7C0%7C636757782923893367&sdata=INveAWT0s6WsppKP TqCFYo50BH4sekDf9HFAscXxMw8%3D&reserved=0
This patch is correct, thanks for the fix..
Acked
Both the patches are good..
Thanks!
Quoted 3 lines
Regards,
Bin
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Quoted 64 lines · Poonam Aggrwal
Hello Bin,
Quoted 53 lines
-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Monday, October 22, 2018 9:41 AM
To: Poonam Aggrwal <[email protected]>
Cc: York Sun <[email protected]>; U-Boot Mailing List <[email protected]>
Subject: Re: [PATCH 1/2] powerpc: t1040: Correct RCWMAC2_GMII_SELvalueHi Poonam,
Quoted 31 lines · Poonam Aggrwal
Quoted 31 lines
-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Monday, October 22, 2018 7:41 AM
To: York Sun <[email protected]>
Cc: Poonam Aggrwal <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>
Subject: Re: [PATCH 1/2] powerpc: t1040: Correct RCWMAC2_GMII_SELvalueQuoted 6 lines · Bin Meng
Quoted 4 lines · York Sun
Quoted 2 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong andshould be
Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
Poonam,
Please review and confirm on T1040. Thanks.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Ping ?
Ping ?
Apologies Bin, York for such late response.... The patch looks correct, the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTshould be0x80indeed, I would suggest that I test it once that DTSEC2 RGMII works with this change, because I see more changes which could be required in
drivers/fm/t1040.c...seemsa goof up there as well.Quoted 1 line
Quoted 7 lines
t1040.cchanges is patch [2/2], see
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.de
nx.de%2Fpipermail%2Fu-boot%2F2018- October%2F343499.html&data=02%7C01%7Cpoonam.aggrwal%40nxp.co m%7Ce1f6945b731f464c4f6008d637d47259%7C686ea1d3bc2b4c6fa92cd99c5c 301635%7C0%7C0%7C636757782923893367&sdata=INveAWT0s6WsppKP TqCFYo50BH4sekDf9HFAscXxMw8%3D&reserved=0
Quoted 5 lines
This patch is correct, thanks for the fix..
AckedBoth the patches are good..
Thanks Poonam!
York, I believe these 2 patches need be included in the v2018.11 release.
Regards,
Bin
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
Quoted 6 lines · Bin Meng
On Thu, Oct 25, 2018 at 2:46 PM Poonam Aggrwal <[email protected]> wrote:
Thanks Poonam!
York, I believe these 2 patches need be included in the v2018.11 release.
They are in my queue.
York
PATCH 1/2 powerpc: t1040: Correct RCW MAC2_GMII_SEL value
In reply to Bin MengQuoted 6 lines · Bin Meng
Per T1040RM (Rev. 1, 08/2015), the value of
FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORTis wrong and should be0x00000080(bit 440 in the RCW).Signed-off-by Bin Meng <[email protected]>---
This set is applied to u-boot-mpc85xx master, awaiting upstream.
York