mediatek: mt7622: add irq for spi-nor controller
authorChuanhong Guo <gch981213@gmail.com>
Sat, 30 Apr 2022 12:24:07 +0000 (20:24 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 30 Apr 2022 15:13:33 +0000 (23:13 +0800)
Save some CPU from unnecessary polling and make SPI flash reading
a tiny bit faster.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/mediatek/patches-5.15/104-mt7622-add-snor-irq.patch [new file with mode: 0644]

diff --git a/target/linux/mediatek/patches-5.15/104-mt7622-add-snor-irq.patch b/target/linux/mediatek/patches-5.15/104-mt7622-add-snor-irq.patch
new file mode 100644 (file)
index 0000000..506db69
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
++++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+@@ -577,6 +577,7 @@
+               compatible = "mediatek,mt7622-nor",
+                            "mediatek,mt8173-nor";
+               reg = <0 0x11014000 0 0xe0>;
++              interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
+               clocks = <&pericfg CLK_PERI_FLASH_PD>,
+                        <&topckgen CLK_TOP_FLASH_SEL>;
+               clock-names = "spi", "sf";