Skip to contentSkip to conversation

hal/arm: Add Zynq v3.14.17 patches

PATCH Applied Stefan Roese 2 participants 2 messages Jan 22, 2015 – Jan 29, 2015 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 hal/arm: Add Zynq v3.14.17 patches

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.14.17 Linux Kernel additionally to the already present v3.5 and v3.8 support.

This version was tested with the following ipipe core arm patch:
- ipipe-core-3.14.17-arm-4.patch

---
v2:
- Update README and commit message to not specify which arm-* ipipe core patch has to be used. And mentioned the version it has been tested with.

 ksrc/arch/arm/patches/README                       |   9 +
 .../zynq/ipipe-core-3.14.17-zynq-post.patch        |  21 ++
 .../patches/zynq/ipipe-core-3.14.17-zynq-pre.patch | 236 +++++++++++++++++++++
 3 files changed, 266 insertions(+)
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-post.patch
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-pre.patch
ksrc/arch/arm/patches/README +9 -0
index 8b4f744..af4a42b 100644
@@ -95,6 +95,15 @@ From [5]:
 4- apply ipipe-core-3.5.7-zynq-post.patch
 5- you can resume to generic installation instructions.
 
+---- Zynq (v3.14.17)
+
+1- Checkout the "xilinx-zynq-v3.14.17" branch from the DENX Linux git
+   repository [2]
+2- apply zynq/ipipe-core-3.14.17-zynq-pre.patch
+3- apply ipipe-core-3.14.17-arm-*.patch
+4- apply zynq/ipipe-core-3.14.17-zynq-post.patch
+5- you can resume to generic installation instructions.
+
 -- External links
 
 [1] http://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git
ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-post.patch new file +21 -0
new file mode 100644
index 0000000..3c87d80
@@ -0,0 +1,21 @@
+diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c
+index 1f5fdfc..c4e682a 100644
+--- a/drivers/gpio/gpio-zynq.c
++++ b/drivers/gpio/gpio-zynq.c
+@@ -14,6 +14,7 @@
+ #include <linux/init.h>
+ #include <linux/interrupt.h>
+ #include <linux/io.h>
++#include <linux/ipipe.h>
+ #include <linux/irq.h>
+ #include <linux/irqchip/chained_irq.h>
+ #include <linux/irqdomain.h>
+@@ -446,7 +447,7 @@ static void zynq_gpio_irqhandler(unsigned int irq, struct irq_desc *desc)
+ 			chip->irq_ack(&gpio_irq_desc->irq_data);
+ 
+ 			/* call the pin specific handler */
+-			generic_handle_irq(gpio_irq);
++			ipipe_handle_demuxed_irq(gpio_irq);
+ 		}
+ 		/* shift to first virtual irq of next bank */
+ 		gpio_irq = gpio->irq_base + zynq_gpio_pin_table[bank_num] + 1;
ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-pre.patch new file +236 -0

236 lines not on this page · raw message

Signature · 1 line
2.2.2
#1 lore raw
Quoted 8 lines · Stefan Roese

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.14.17 Linux Kernel additionally to the already present v3.5 and v3.8 support.

This version was tested with the following ipipe core arm patch:
- ipipe-core-3.14.17-arm-4.patch

Merged, thanks.

Signature · 1 line
					    Gilles.