[qca-ssdk]: remove HPPE unused FPGA related codes
Change-Id: I327ba30ce9932f09810023fca560f167ec086d11
Signed-off-by: mingxinh <mingxinh@codeaurora.org>
diff --git a/src/init/ssdk_init.c b/src/init/ssdk_init.c
index 58046b6..e40a1bb 100755
--- a/src/init/ssdk_init.c
+++ b/src/init/ssdk_init.c
@@ -2822,40 +2822,6 @@
static int qca_hppe_vsi_hw_init(void)
{
return ppe_vsi_init(0);
-#if 0
-#ifdef ESS_ONLY_FPGA
- a_uint32_t port_default_vsi[6] = {2, 2, 2, 2, 3, 3};
-#else
- a_uint32_t port_default_vsi[6] = {0, 1, 2, 3, 4, 5};
-#endif
- a_uint32_t port_id = 0;
-
- fal_vsi_newaddr_lrn_t newaddr_lrn = {0};
- fal_vsi_stamove_t stamove = {0};
- fal_vsi_member_t member = {0};
- newaddr_lrn.action = 0;
- newaddr_lrn.lrn_en = 1;
- stamove.action = 0;
- stamove.stamove_en = 1;
-
- for(port_id = 1; port_id <= 6; port_id++)/*clean vsi table as zero*/
- fal_vsi_member_set(0, port_default_vsi[port_id-1], &member);
-
- for(port_id = 1; port_id <= 6; port_id++)
- {
- fal_vsi_newaddr_lrn_set(0, port_default_vsi[port_id-1], &newaddr_lrn);
- fal_vsi_stamove_set(0, port_default_vsi[port_id-1], &stamove);
- fal_port_vsi_set(0, port_id, port_default_vsi[port_id-1]);
- fal_vsi_member_get(0, port_default_vsi[port_id-1], &member);
- member.member_ports |= ((1<<port_id)|0x1);
- member.bc_ports |= ((1<<port_id)|0x1);
- member.umc_ports |= ((1<<port_id)|0x1);
- member.uuc_ports |= ((1<<port_id)|0x1);
- fal_vsi_member_set(0, port_default_vsi[port_id-1], &member);
- }
-
- return 0;
-#endif
}
static int qca_hppe_fdb_hw_init(void)
@@ -3810,7 +3776,6 @@
qca_hppe_interface_mode_init(cfg->mac_mode, cfg->mac_mode1,
cfg->mac_mode2);
#else
-#ifndef ESS_ONLY_FPGA
qca_hppe_xgmac_hw_init();
printk("hppe xgmac init success\n");
@@ -3824,18 +3789,6 @@
ssdk_dt_global.mac_mode = PORT_WRAPPER_QSGMII;
ssdk_dt_global.mac_mode1 = PORT_WRAPPER_USXGMII;
ssdk_dt_global.mac_mode2 = PORT_WRAPPER_USXGMII;
-
-#else
-
- for(i = 0; i < 5; i++) {
- hppe_port_type[i] = HPPE_PORT_GMAC_TYPE;
- }
- hppe_port_type[i] = HPPE_PORT_XGMAC_TYPE;
-
- ssdk_dt_global.mac_mode = PORT_WRAPPER_PSGMII;
- ssdk_dt_global.mac_mode1 = PORT_WRAPPER_MAX;
- ssdk_dt_global.mac_mode2 = PORT_WRAPPER_USXGMII;
-#endif
#endif
return 0;
}