From 789e2cee59f45a871b689c22295fe1cae016f1ec Mon Sep 17 00:00:00 2001 From: ACwifidude Date: Sun, 5 Sep 2021 19:27:31 -0500 Subject: [PATCH] ipq806x: NSS Hard Hardware Offloading, delete NSS1 to save memory --- .../files/arch/arm/boot/dts/qcom-ipq8065.dtsi | 6 ---- ...s-in-dts-files-for-NSS-support.patch.patch | 30 +------------------ 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi index 6761ff1e90..269494ff4b 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi @@ -171,9 +171,3 @@ qcom,mid-frequency = <800000000>; qcom,max-frequency = <800000000>; }; - -&nss1 { - qcom,low-frequency = <800000000>; - qcom,mid-frequency = <800000000>; - qcom,max-frequency = <800000000>; -}; diff --git a/target/linux/ipq806x/patches-5.4/990-00-Add-required-entries-in-dts-files-for-NSS-support.patch.patch b/target/linux/ipq806x/patches-5.4/990-00-Add-required-entries-in-dts-files-for-NSS-support.patch.patch index 83d4ecf44d..6d56945e55 100644 --- a/target/linux/ipq806x/patches-5.4/990-00-Add-required-entries-in-dts-files-for-NSS-support.patch.patch +++ b/target/linux/ipq806x/patches-5.4/990-00-Add-required-entries-in-dts-files-for-NSS-support.patch.patch @@ -13,7 +13,7 @@ gmac0: ethernet@37000000 { device_type = "network"; compatible = "qcom,ipq806x-gmac"; -@@ -1492,7 +1498,132 @@ +@@ -1492,7 +1498,104 @@ regulator-always-on; }; @@ -73,34 +73,6 @@ + qcom,clmap-enabled; + }; + -+ nss1: nss@40800000 { -+ compatible = "qcom,nss"; -+ qcom,low-frequency = <733000000>; /* orig value 110000000 */ -+ qcom,mid-frequency = <733000000>; /* orig value 550000000 */ -+ qcom,max-frequency = <733000000>; -+ -+ interrupts = , -+ ; -+ reg = <0x36400000 0x1000 0x39010000 0x10000>; -+ reg-names = "nphys", "vphys"; -+ resets = <&gcc UBI32_CORE2_CLKRST_CLAMP_RESET>, -+ <&gcc UBI32_CORE2_CLAMP_RESET>, -+ <&gcc UBI32_CORE2_AHB_RESET>, -+ <&gcc UBI32_CORE2_AXI_RESET>; -+ reset-names = "clkrst-clamp", "clamp", "ahb", "axi"; -+ -+ qcom,id = <1>; -+ qcom,num-irq = <2>; -+ qcom,load-addr = <0x40800000>; -+ qcom,num-queue = <2>; -+ qcom,turbo-frequency; -+ -+ qcom,capwap-enabled; -+ qcom,crypto-enabled; -+ qcom,dtls-enabled; -+ qcom,ipsec-enabled; -+ }; -+ + crypto1: crypto@38000000 { + compatible = "qcom,nss-crypto"; + reg = <0x38000000 0x20000>, <0x38004000 0x22000>;