diff options
Diffstat (limited to 'recipes-kernel/linux/linux-imx-2.6.35.3/mx23-dont-mange-IRQ_VDDA_BRNOUT.patch')
-rw-r--r-- | recipes-kernel/linux/linux-imx-2.6.35.3/mx23-dont-mange-IRQ_VDDA_BRNOUT.patch | 51 |
1 files changed, 51 insertions, 0 deletions
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 @@ | |||
1 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
2 | Subject: [PATCH 1/2] [MX23] Don't mangle IRQ_VDDA_BRNOUT for MX23 arch | ||
3 | |||
4 | This has been introduced on commit e93820b3 and makes the kernel to | ||
5 | fail to build for MX23 arch so we avoid the IRQ_VDDA_BRNOUT | ||
6 | manipulation for MX23 arch as this IRQ is not available on MX23. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
11 | --- | ||
12 | drivers/power/mxs/linux.c | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
14 | |||
15 | diff --git a/drivers/power/mxs/linux.c b/drivers/power/mxs/linux.c | ||
16 | index 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 | -- | ||
50 | 1.7.10.4 | ||
51 | |||