Merge "[qca-ssdk-shell] fix malibu phy4 bx1000 half duplex"
diff --git a/include/fal/fal_port_ctrl.h b/include/fal/fal_port_ctrl.h
index ff3f0ac..313836c 100755
--- a/include/fal/fal_port_ctrl.h
+++ b/include/fal/fal_port_ctrl.h
@@ -83,6 +83,9 @@
#define FAL_PHY_GE_ADV_ALL \
(FAL_PHY_ADV_GE_SPEED_ALL | FAL_PHY_ADV_PAUSE | FAL_PHY_ADV_ASY_PAUSE)
+#define FAL_PHY_COMBO_ADV_ALL \
+ (FAL_PHY_ADV_BX_SPEED_ALL | FAL_PHY_ADV_GE_SPEED_ALL | FAL_PHY_ADV_PAUSE | FAL_PHY_ADV_ASY_PAUSE)
+
//phy capablity
#define FAL_PHY_AUTONEG_CAPS 0x01
#define FAL_PHY_100T2_HD_CAPS 0x02
@@ -110,8 +113,11 @@
#define FAL_PHY_INTR_DUPLEX_CHANGE 0x2
#define FAL_PHY_INTR_STATUS_UP_CHANGE 0x4
#define FAL_PHY_INTR_STATUS_DOWN_CHANGE 0x8
-#define FAL_PHY_INTR_BX_FX_STATUS_UP_CHANGE 0x40
-#define FAL_PHY_INTR_BX_FX_STATUS_DOWN_CHANGE 0x80
+#define FAL_PHY_INTR_BX_FX_STATUS_UP_CHANGE 0x10
+#define FAL_PHY_INTR_BX_FX_STATUS_DOWN_CHANGE 0x20
+#define FAL_PHY_INTR_MEDIA_STATUS_CHANGE 0x40
+#define FAL_PHY_INTR_WOL_STATUS 0x80
+#define FAL_PHY_INTR_POE_STATUS 0x100
typedef enum
{
diff --git a/src/shell/shell_io.c b/src/shell/shell_io.c
index ae78299..d9157f0 100755
--- a/src/shell/shell_io.c
+++ b/src/shell/shell_io.c
@@ -574,7 +574,7 @@
return SW_BAD_PARAM;
cmd_strtol(cmd_str, arg_val);
- if (*arg_val & (~FAL_PHY_GE_ADV_ALL))
+ if (*arg_val & (~FAL_PHY_COMBO_ADV_ALL))
{
//dprintf("input error should be within 0x3f\n");
return SW_BAD_VALUE;