mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
ramips: disabled whnat as workaround
This commit is contained in:
parent
63434c83c9
commit
b01b487f95
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user