summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx-2.6.35.3
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-08-05 14:18:12 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-08-15 14:05:58 -0300
commit2f3c23cd1f7eebc2a6afc102008aa9de051c4729 (patch)
treeba3d1d98cf45ed99bebec0c503fa80eec3870b89 /recipes-kernel/linux/linux-imx-2.6.35.3
parent078cdb9ba3131711380d813fa77ad559ec059ce5 (diff)
downloadmeta-fsl-arm-2f3c23cd1f7eebc2a6afc102008aa9de051c4729.tar.gz
linux-imx (2.6.35.3): use 10.12.01 based kernel for mxs SoC family
Freescale maintains specific patches for their SoC families on respective branches so we now have specific SRCREV for each family. For mxs we're using the 10.12.01 branch while for mx5 we keep using 11.09.01 one and we ended keeping the specific patches of each SoC applying only on the right family. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/linux/linux-imx-2.6.35.3')
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/mx23-do-not-use-safe-write.patch31
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/mx23-dont-mange-IRQ_VDDA_BRNOUT.patch51
2 files changed, 82 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/mx23-do-not-use-safe-write.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/mx23-do-not-use-safe-write.patch
new file mode 100644
index 0000000..d25a3ec
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/mx23-do-not-use-safe-write.patch
@@ -0,0 +1,31 @@
1From: Otavio Salvador <otavio@ossystems.com.br>
2Subject: [PATCH 2/2] [MX23] Do not use safe write when building for MX23 arch
3
4The change 105ae4a60 include a safe write support for use with MX23
5but does not include a dummy implementation for other architecture
6making build to fail. This add a dummy version to allow the use with
7MX23 arch.
8
9Upstream-Status: Pending
10
11Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12---
13 arch/arm/plat-mxs/usb_common.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/arch/arm/plat-mxs/usb_common.c b/arch/arm/plat-mxs/usb_common.c
17index 700d168..c3bc9a9 100644
18--- a/arch/arm/plat-mxs/usb_common.c
19+++ b/arch/arm/plat-mxs/usb_common.c
20@@ -53,6 +53,8 @@ static void fsl_safe_writel(u32 val32, volatile u32 *addr)
21 {
22 __asm__ ("swp %0, %0, [%1]" : : "r"(val32), "r"(addr));
23 }
24+#else
25+static void fsl_safe_writel(u32 val32, volatile u32 *addr) { }
26 #endif
27
28 void fsl_usb_xcvr_register(struct fsl_xcvr_ops *xcvr_ops)
29--
301.7.10.4
31
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/mx23-dont-mange-IRQ_VDDA_BRNOUT.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/mx23-dont-mange-IRQ_VDDA_BRNOUT.patch
new file mode 100644
index 0000000..a98878a
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/mx23-dont-mange-IRQ_VDDA_BRNOUT.patch
@@ -0,0 +1,51 @@
1From: Otavio Salvador <otavio@ossystems.com.br>
2Subject: [PATCH 1/2] [MX23] Don't mangle IRQ_VDDA_BRNOUT for MX23 arch
3
4This has been introduced on commit e93820b3 and makes the kernel to
5fail to build for MX23 arch so we avoid the IRQ_VDDA_BRNOUT
6manipulation for MX23 arch as this IRQ is not available on MX23.
7
8Upstream-Status: Pending
9
10Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
11---
12 drivers/power/mxs/linux.c | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15diff --git a/drivers/power/mxs/linux.c b/drivers/power/mxs/linux.c
16index d5185fa..0d6c729 100644
17--- a/drivers/power/mxs/linux.c
18+++ b/drivers/power/mxs/linux.c
19@@ -1171,7 +1171,9 @@ static int __init mxs_bat_init(void)
20 disable_irq(IRQ_DCDC4P2_BRNOUT);
21 disable_irq(IRQ_BATT_BRNOUT);
22 disable_irq(IRQ_VDDD_BRNOUT);
23+#ifndef CONFIG_ARCH_MX23
24 disable_irq(IRQ_VDDA_BRNOUT);
25+#endif
26 if (no_battery)
27 disable_irq(IRQ_VDDIO_BRNOUT);
28 #ifndef CONFIG_ARCH_MX28
29@@ -1184,7 +1186,9 @@ static int __init mxs_bat_init(void)
30 mxs_set_irq_fiq(IRQ_DCDC4P2_BRNOUT, 1);
31 mxs_set_irq_fiq(IRQ_BATT_BRNOUT, 1);
32 mxs_set_irq_fiq(IRQ_VDDD_BRNOUT, 1);
33+#ifndef CONFIG_ARCH_MX23
34 mxs_set_irq_fiq(IRQ_VDDA_BRNOUT, 1);
35+#endif
36 if (no_battery)
37 mxs_set_irq_fiq(IRQ_VDDIO_BRNOUT, 1);
38 #ifndef CONFIG_ARCH_MX28
39@@ -1199,7 +1203,9 @@ static int __init mxs_bat_init(void)
40 enable_irq(IRQ_DCDC4P2_BRNOUT);
41 enable_irq(IRQ_BATT_BRNOUT);
42 enable_irq(IRQ_VDDD_BRNOUT);
43+#ifndef CONFIG_ARCH_MX23
44 enable_irq(IRQ_VDDA_BRNOUT);
45+#endif
46 if (no_battery)
47 enable_irq(IRQ_VDDIO_BRNOUT);
48 #ifndef CONFIG_ARCH_MX28
49--
501.7.10.4
51