diff mbox series

[v2] armv8: fsl-layerscape: LS1084A: Fix DPMAC1 support

Message ID 1578560027-23222-1-git-send-email-pramod.kumar_1@nxp.com
State New
Headers show
Series [v2] armv8: fsl-layerscape: LS1084A: Fix DPMAC1 support | expand

Commit Message

Pramod Kumar Jan. 9, 2020, 8:53 a.m. UTC
LS1088A has four personalities, LS1088A, LS1084A, LS1048A and LS1044A.
LS1088A and LS1084A support 2x 10G DPMAC however DPMAC1 is currently
disabled for LS1084A, Enable to support both 2x 10G DPMAC.

Signed-off-by: Pramod Kumar <pramod.kumar_1 at nxp.com>
---
Changes in v2: 
  - incorporate review comments 

 arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Priyanka Jain (OSS) Jan. 22, 2020, 9:56 a.m. UTC | #1
>-----Original Message-----
>From: Pramod Kumar <pramod.kumar_1 at nxp.com>
>Sent: Thursday, January 9, 2020 2:24 PM
>To: u-boot at lists.denx.de
>Cc: Priyanka Jain <priyanka.jain at nxp.com>; Pramod Kumar
><pramod.kumar_1 at nxp.com>
>Subject: [PATCH v2] armv8: fsl-layerscape: LS1084A: Fix DPMAC1 support
>
>LS1088A has four personalities, LS1088A, LS1084A, LS1048A and LS1044A.
>LS1088A and LS1084A support 2x 10G DPMAC however DPMAC1 is currently
>disabled for LS1084A, Enable to support both 2x 10G DPMAC.
>
>Signed-off-by: Pramod Kumar <pramod.kumar_1 at nxp.com>
This patch looks to be enhancing another patch "http://patchwork.ozlabs.org/patch/1220239/"
Can we combine both in single patch?
-Priyanka
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
index 67d97f8..280afbb 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
@@ -57,7 +57,7 @@  bool soc_has_mac1(void)
 	unsigned int svr = gur_in32(&gur->svr);
 	unsigned int version = SVR_SOC_VER(svr);
 
-	return version == SVR_LS1088A;
+	return (version == SVR_LS1088A || version == SVR_LS1084A);
 }
 
 int serdes_get_number(int serdes, int cfg)