Skip to contentSkip to conversation

hal/arm: Add Zynq v3.5.7 patches

PATCH Applied Stefan Roese 2 participants 2 messages Jan 21, 2014 – Jan 23, 2014 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 hal/arm: Add Zynq v3.5.7 patches

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.5.7 Linux Kernel with the latest arm-6 i-pipe patch additionally to the already present v3.8 support.

---
v3:
- Removed all non-ipipe related patches from post- patch
- Only EXPORT_SYMBOL_GPL(init_mm) is now removed

v2:
- Base pre-patch on top of a different git reopsitory based on v3.5.7
- Remove defconfig and other board specific stuff from post-patch
- All this leads to minimal pre- and post- patches as requested by Gilles

 ksrc/arch/arm/patches/README                       |  11 +-
 .../patches/zynq/ipipe-core-3.5.7-zynq-post.patch  | 271 +++++++++++++++++++++
 .../patches/zynq/ipipe-core-3.5.7-zynq-pre.patch   |  28 +++
 3 files changed, 309 insertions(+), 1 deletion(-)
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.5.7-zynq-post.patch
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.5.7-zynq-pre.patch
ksrc/arch/arm/patches/README +10 -1
index de47f32..ed406d9 100644
@@ -76,7 +76,7 @@ From [5]:
 2- apply raspberry/ipipe-core-3.8.13-raspberry-post-2.patch
 3- you can resume to generic installation instructions.
 
----- Zynq
+---- Zynq (v3.8)
 
 1- Checkout the xilinx-v14.5 tag (6a0bedad60e2bca8d9b50bf81b9895e29e31a6d7)
    from [6]
@@ -85,6 +85,15 @@ From [5]:
 4- apply ipipe-core-3.8-zynq-post.patch
 5- you can resume to generic installation instructions.
 
+---- Zynq (v3.5.7)
+
+1- Checkout the "xilinx-zynq-v3.5.7" branch from the DENX Linux git
+   repository [2]
+2- apply ipipe-core-3.5.7-zynq-pre.patch
+3- apply ipipe-core-3.5.7-arm-6.patch
+4- apply ipipe-core-3.5.7-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.5.7-zynq-post.patch new file +271 -0

271 lines not on this page · raw message

ksrc/arch/arm/patches/zynq/ipipe-core-3.5.7-zynq-pre.patch new file +28 -0
new file mode 100644
index 0000000..acde6c7
@@ -0,0 +1,28 @@
+diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
+index 4d7130c1..ea73045 100644
+--- a/arch/arm/kernel/smp.c
++++ b/arch/arm/kernel/smp.c
+@@ -223,9 +223,6 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
+ {
+ 	struct mm_struct *mm = &init_mm;
+ 	unsigned int cpu = smp_processor_id();
+-#ifdef CONFIG_ARCH_ZYNQ
+-	static bool booted;
+-#endif
+ 
+ 	/*
+ 	 * All kernel threads share the same mm context; grab a
+@@ -251,13 +248,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
+ 
+ 	notify_cpu_starting(cpu);
+ 
+-#ifdef CONFIG_ARCH_ZYNQ
+-	if (!booted)
+-		calibrate_delay();
+-	booted = true;
+-#else
+ 	calibrate_delay();
+-#endif
+ 
+ 	smp_store_cpu_info(cpu);
+ 
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 16 lines · Stefan Roese

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.5.7 Linux Kernel with the latest arm-6 i-pipe patch additionally to the already present v3.8 support.

---
v3:
- Removed all non-ipipe related patches from post- patch
- Only EXPORT_SYMBOL_GPL(init_mm) is now removed

v2:
- Base pre-patch on top of a different git reopsitory based on v3.5.7
- Remove defconfig and other board specific stuff from post-patch
- All this leads to minimal pre- and post- patches as requested by Gilles

Quoted 6 lines
 ksrc/arch/arm/patches/README                       |  11 +-
 .../patches/zynq/ipipe-core-3.5.7-zynq-post.patch  | 271 +++++++++++++++++++++
 .../patches/zynq/ipipe-core-3.5.7-zynq-pre.patch   |  28 +++
 3 files changed, 309 insertions(+), 1 deletion(-)
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.5.7-zynq-post.patch
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.5.7-zynq-pre.patch

Merged, thanks.

Signature · 1 line
                                                                Gilles.