Skip to content

Commit 0e87de0

Browse files
akanisettidleach02
authored andcommitted
dts: x86: intel: alder_lake: Added UARTs DMA instances
Added UARTs DMA instances to enable Async operations on ADL platform Signed-off-by: Anisetti Avinash Krishna <[email protected]>
1 parent 0018204 commit 0e87de0

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

boards/x86/intel_adl/Kconfig.defconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,16 @@ config SHELL_STACK_SIZE
4646
endif # SHELL
4747
endif # ACPI
4848

49+
if DMA
50+
config DMA_64BIT
51+
default y
52+
config DMA_DW_HW_LLI
53+
default n
54+
config DMA_DW_CHANNEL_COUNT
55+
default 2
56+
endif
57+
58+
config UART_NS16550_INTEL_LPSS_DMA
59+
default y
60+
4961
endif # BOARD_INTEL_ADL_CRB || BOARD_INTEL_ADL_RVP || BOARD_UP_SQUARED_PRO_7000

boards/x86/intel_adl/intel_adl_crb.dts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@
2323
&uart0 {
2424
status = "okay";
2525
};
26-
27-
&uart1 {
28-
status = "okay";
29-
};

dts/x86/intel/alder_lake.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
status = "disabled";
7979
};
8080

81+
uart1_dma: uart1_dma {
82+
compatible = "intel,lpss";
83+
#dma-cells = <1>;
84+
status = "disabled";
85+
};
86+
8187
uart1: uart1 {
8288
compatible = "ns16550";
8389
vendor-id = <0x8086>;
@@ -87,6 +93,14 @@
8793
reg-shift = <2>;
8894
interrupts = <PCIE_IRQ_DETECT IRQ_TYPE_LOWEST_LEVEL_LOW 3>;
8995
interrupt-parent = <&intc>;
96+
dmas = <&uart1_dma 0>, <&uart1_dma 1>;
97+
dma-names = "tx", "rx";
98+
status = "disabled";
99+
};
100+
101+
uart2_dma: uart2_dma {
102+
compatible = "intel,lpss";
103+
#dma-cells = <1>;
90104
status = "disabled";
91105
};
92106

@@ -99,6 +113,8 @@
99113
reg-shift = <2>;
100114
interrupts = <PCIE_IRQ_DETECT IRQ_TYPE_LOWEST_LEVEL_LOW 3>;
101115
interrupt-parent = <&intc>;
116+
dmas = <&uart2_dma 0>, <&uart2_dma 1>;
117+
dma-names = "tx", "rx";
102118

103119
status = "disabled";
104120
};

0 commit comments

Comments
 (0)