Mediatek:add support for disable second ppe fwd

This commit is contained in:
padavanonly 2023-12-05 15:43:21 +08:00 committed by hanwckf
parent c5668fe082
commit 9a719b3eb7

View File

@ -151,7 +151,8 @@ void set_gmac_ppe_fwd(int id, int enable)
/*disabled */
val = readl(reg);
if ((val & GDM_ALL_FRC_MASK) == BITS_GDM_ALL_FRC_P_PPE)
if (((val & GDM_ALL_FRC_MASK) == BITS_GDM_ALL_FRC_P_PPE ||
(val & GDM_ALL_FRC_MASK) == BITS_GDM_ALL_FRC_P_PPE1))
cr_set_field(reg, GDM_ALL_FRC_MASK,
BITS_GDM_ALL_FRC_P_CPU_PDMA);
}