[PATCH v4 6/6] configs: ls1028a: enable the Ethernet switch driver in defconfig

Priyanka Jain (OSS) priyanka.jain at oss.nxp.com
Fri Jul 24 05:59:30 CEST 2020


>-----Original Message-----
>From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Claudiu Manoil
>Sent: Tuesday, May 5, 2020 11:13 PM
>To: u-boot at lists.denx.de
>Cc: joe.hershberger at ni.com; Alexandru Marginean
><alexandru.marginean at nxp.com>; Vladimir Oltean
><vladimir.oltean at nxp.com>
>Subject: [PATCH v4 6/6] configs: ls1028a: enable the Ethernet switch driver in
>defconfig
>
>From: Alex Marginean <alexandru.marginean at nxp.com>
>
>The switch driver for LS1028A Ethernet switch is now compiled in for both
>LS1028A boards.
>
>Signed-off-by: Alex Marginean <alexandru.marginean at nxp.com>
>Signed-off-by: Claudiu Manoil <claudiu.manoil at nxp.com>
>---
> configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++
> configs/ls1028aqds_tfa_defconfig             | 2 ++
> configs/ls1028ardb_tfa_SECURE_BOOT_defconfig | 2 ++
> configs/ls1028ardb_tfa_defconfig             | 2 ++
> 4 files changed, 8 insertions(+)
>
>diff --git a/configs/ls1028aqds_tfa_SECURE_BOOT_defconfig
>b/configs/ls1028aqds_tfa_SECURE_BOOT_defconfig
>index c5f0bd85da..2092009362 100644
>--- a/configs/ls1028aqds_tfa_SECURE_BOOT_defconfig
>+++ b/configs/ls1028aqds_tfa_SECURE_BOOT_defconfig
>@@ -56,6 +56,8 @@ CONFIG_DM_MDIO_MUX=y
> CONFIG_E1000=y
> CONFIG_FSL_ENETC=y
> CONFIG_MDIO_MUX_I2CREG=y
>+CONFIG_DM_DSA=y
>+CONFIG_MSCC_FELIX_SWITCH=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
>diff --git a/configs/ls1028aqds_tfa_defconfig
>b/configs/ls1028aqds_tfa_defconfig
>index 7085be77fe..47231f9157 100644
>--- a/configs/ls1028aqds_tfa_defconfig
>+++ b/configs/ls1028aqds_tfa_defconfig
>@@ -62,6 +62,8 @@ CONFIG_DM_MDIO_MUX=y
> CONFIG_E1000=y
> CONFIG_FSL_ENETC=y
> CONFIG_MDIO_MUX_I2CREG=y
>+CONFIG_DM_DSA=y
>+CONFIG_MSCC_FELIX_SWITCH=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
>diff --git a/configs/ls1028ardb_tfa_SECURE_BOOT_defconfig
>b/configs/ls1028ardb_tfa_SECURE_BOOT_defconfig
>index 6fa14af6af..40946e2e61 100644
>--- a/configs/ls1028ardb_tfa_SECURE_BOOT_defconfig
>+++ b/configs/ls1028ardb_tfa_SECURE_BOOT_defconfig
>@@ -53,6 +53,8 @@ CONFIG_DM_MDIO=y
> CONFIG_PHY_GIGE=y
> CONFIG_E1000=y
> CONFIG_FSL_ENETC=y
>+CONFIG_DM_DSA=y
>+CONFIG_MSCC_FELIX_SWITCH=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
>diff --git a/configs/ls1028ardb_tfa_defconfig
>b/configs/ls1028ardb_tfa_defconfig
>index 3ef5520969..9732aa3458 100644
>--- a/configs/ls1028ardb_tfa_defconfig
>+++ b/configs/ls1028ardb_tfa_defconfig
>@@ -60,6 +60,8 @@ CONFIG_DM_MDIO=y
> CONFIG_PHY_GIGE=y
> CONFIG_E1000=y
> CONFIG_FSL_ENETC=y
>+CONFIG_DM_DSA=y
>+CONFIG_MSCC_FELIX_SWITCH=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
>--
>2.17.1
Please fix below build warning
aarch64:  +   ls1028aqds_tfa ls1028aqds_tfa_SECURE_BOOT ls1028ardb_tfa ls1028ardb_tfa_SECURE_BOOT
+drivers/net/mscc_eswitch/felix_switch.c: In function 'felix_init_sxgmii':
+drivers/net/mscc_eswitch/felix_switch.c:197:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]
+  197 |   mdelay(10);
+      |   ^~~~~~
+drivers/net/mscc_eswitch/felix_switch.c: In function 'felix_init':
+drivers/net/mscc_eswitch/felix_switch.c:279:3: error: implicit declaration of function 'udelay' [-Werror=implicit-function-declaration]
+  279 |   udelay(10);
+cc1: all warnings being treated as errors
+make[3]: *** [drivers/net/mscc_eswitch/felix_switch.o] Error 1
+make[2]: *** [drivers/net/mscc_eswitch] Error 2
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2

Regards
Priyanka


More information about the U-Boot mailing list