summaryrefslogtreecommitdiff
path: root/recipes-kernel
diff options
context:
space:
mode:
authorMike Nicholson <Mike.Nicholson@multitech.com>2019-02-06 16:36:34 -0600
committerJohn Klug <john.klug@multitech.com>2019-07-03 11:22:01 -0500
commit5fe8c1becf4863f1f4b4660f529c92a288c8cbeb (patch)
tree61027931b2a0d1c66b6bc03a4f33f34e81a8393d /recipes-kernel
parentc3c357573b3fe5eff7b0436e8d031163bea40029 (diff)
downloadmeta-multitech-5fe8c1becf4863f1f4b4660f529c92a288c8cbeb.tar.gz
meta-multitech-5fe8c1becf4863f1f4b4660f529c92a288c8cbeb.tar.bz2
meta-multitech-5fe8c1becf4863f1f4b4660f529c92a288c8cbeb.zip
Use DMA for Venus on gps0/ttyS1, get Venus working
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/mtr/linux-4.9-mtr-device-tree.patch26
1 files changed, 15 insertions, 11 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtr/linux-4.9-mtr-device-tree.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtr/linux-4.9-mtr-device-tree.patch
index 15137e0..436fece 100644
--- a/recipes-kernel/linux/linux-at91-4.9.87/mtr/linux-4.9-mtr-device-tree.patch
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtr/linux-4.9-mtr-device-tree.patch
@@ -1,7 +1,7 @@
diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtr.dts linux-4.9.87/arch/arm/boot/dts/mtr.dts
--- linux-4.9.87.orig/arch/arm/boot/dts/mtr.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.9.87/arch/arm/boot/dts/mtr.dts 2019-01-03 15:17:51.799576663 -0600
-@@ -0,0 +1,258 @@
+@@ -0,0 +1,262 @@
+/*
+ * DTS file for Multi-Tech Systems mtr Hardware
+ *
@@ -123,6 +123,10 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtr.dts linux-4.9.87/arch/arm/boo
+ };
+ };
+
++ usart0: serial@f801c000 {
++ status = "disabled";
++ };
++
+ rtc@fffffeb0 {
+ status = "okay";
+ };
@@ -348,15 +352,6 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/at91sam9x5ek.dtsi linux-4.9.87/ar
};
};
-@@ -49,7 +37,7 @@
- status = "okay";
- };
-
-- usart0: serial@f801c000 {
-+ uart0: serial@f8040000 {
- atmel,use-dma-rx;
- atmel,use-dma-tx;
- status = "okay";
@@ -58,25 +46,12 @@
usb2: gadget@f803c000 {
pinctrl-names = "default";
@@ -465,7 +460,7 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/at91sam9x5.dtsi linux-4.9.87/arch
ssc0 = &ssc0;
pwm0 = &pwm0;
};
-@@ -963,50 +960,7 @@
+@@ -963,54 +960,16 @@
status = "disabled";
};
@@ -517,6 +512,15 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/at91sam9x5.dtsi linux-4.9.87/arch
uart0: serial@f8040000 {
compatible = "atmel,at91sam9260-usart";
+ reg = <0xf8040000 0x200>;
++ atmel,use-dma-rx;
++ atmel,use-dma-tx;
++ dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(11)>,
++ <&dma0 1 (AT91_DMA_CFG_PER_ID(12) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
++ dma-names = "tx", "rx";
+ interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart0>;
diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi
index d3fa60aa..0fcaa00a 100644
--- a/arch/arm/boot/dts/at91sam9x5ek.dtsi