ramips: disabled whnat as workaround

This commit is contained in:
lean 2022-07-08 15:59:41 +08:00
parent 63434c83c9
commit b01b487f95
2 changed files with 2 additions and 2 deletions

View File

@ -855,7 +855,7 @@ static int hnat_remove(struct platform_device *pdev)
static const struct mtk_hnat_data hnat_data_v1 = {
.num_of_sch = 2,
.whnat = true,
.whnat = false,
.per_flow_accounting = false,
.mcast = false,
.version = MTK_HNAT_V1,

View File

@ -13,7 +13,7 @@
fbdiv = (pll >> CPU_PLL_FBDIV_SHIFT) & CPU_PLL_FBDIV_MASK;
prediv = (pll >> CPU_PLL_PREDIV_SHIFT) & CPU_PLL_PREDIV_MASK;
+ /* When using the PLL, this code will overclock the CPU */
+#define MT7621A_TARGET_CLOCK_HZ 1100000000
+#define MT7621A_TARGET_CLOCK_HZ 1000000000
+ target_fbdiv = (MT7621A_TARGET_CLOCK_HZ * ffiv) / ffrac;
+ target_fbdiv = target_fbdiv << prediv_tbl[prediv];
+ target_fbdiv = (target_fbdiv / xtal_clk) - 1;