forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply EMAC DMA support and PMU fix to edge kernel
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
patch/kernel/archive/sunxi-6.11/patches.armbian/arm-dts-sun4i-a10-emac-dma-enable.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Ryzer58 <[email protected]> | ||
Date: Sat, 30 Nov 2024 22:29:50 +0000 | ||
Subject: Enable DMA support for the Allwinner A10 EMAC, which already exist in the sun4i-emac driver | ||
Signed-off-by: Ryzer58 <[email protected]> | ||
--- | ||
arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | ||
index cabf619c2e21..08a8433b595e 100644 | ||
--- a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | ||
+++ b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | ||
@@ -313,10 +313,12 @@ emac: ethernet@1c0b000 { | ||
compatible = "allwinner,sun4i-a10-emac"; | ||
reg = <0x01c0b000 0x1000>; | ||
interrupts = <55>; | ||
clocks = <&ccu CLK_AHB_EMAC>; | ||
allwinner,sram = <&emac_sram 1>; | ||
+ dmas = <&dma SUN4I_DMA_DEDICATED 7>; | ||
+ dma-names = "rx"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&emac_pins>; | ||
status = "disabled"; | ||
}; | ||
|
||
-- | ||
Created with Armbian build tools https://github.com/armbian/build | ||
|
31 changes: 31 additions & 0 deletions
31
patch/kernel/archive/sunxi-6.11/patches.armbian/arm-dts-sun4i-a10-pmu-irq-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Ryzer58 <[email protected]> | ||
Date: Sat, 30 Nov 2024 20:40:29 +0000 | ||
Subject: Correct perf interrupt source number as referenced in the Allwinner A10 User manual | ||
to resolve conflict with UART2. | ||
|
||
Signed-off-by: Ryzer58 <[email protected]> | ||
--- | ||
arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | ||
index 51a6464aab9a..cabf619c2e21 100644 | ||
--- a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | ||
+++ b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | ||
@@ -183,11 +183,11 @@ de: display-engine { | ||
status = "disabled"; | ||
}; | ||
|
||
pmu { | ||
compatible = "arm,cortex-a8-pmu"; | ||
- interrupts = <3>; | ||
+ interrupts = <66>; | ||
}; | ||
|
||
reserved-memory { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
-- | ||
Created with Armbian build tools https://github.com/armbian/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters