aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2011-03-01 16:27:44 +0100
committerSteffen Sledz <sledz@dresearch.de>2011-03-02 08:30:29 +0100
commit1022ff526e424719668248e6df4edda53e24b8c1 (patch)
tree2efd119872e831fcb512082aeec40d7ceb897076 /recipes/linux
parent5f6eb6a2050afce92d815c5d6d349a7d29f34aa8 (diff)
downloadopenembedded-1022ff526e424719668248e6df4edda53e24b8c1.tar.gz
linux-ea3250-2.6.27.8: refresh lpc32xx-spwm.patch, so it can apply cleanly
Diffstat (limited to 'recipes/linux')
-rw-r--r--recipes/linux/linux-ea3250-2.6.27.8/lpc32xx-spwm.patch62
1 files changed, 39 insertions, 23 deletions
diff --git a/recipes/linux/linux-ea3250-2.6.27.8/lpc32xx-spwm.patch b/recipes/linux/linux-ea3250-2.6.27.8/lpc32xx-spwm.patch
index 64e9fff1eb..4185f0a3cf 100644
--- a/recipes/linux/linux-ea3250-2.6.27.8/lpc32xx-spwm.patch
+++ b/recipes/linux/linux-ea3250-2.6.27.8/lpc32xx-spwm.patch
@@ -1,6 +1,7 @@
-diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/arch-lpc32xx.c linux-2.6.27.8-new/arch/arm/mach-lpc32xx/arch-lpc32xx.c
---- linux-2.6.27.8/arch/arm/mach-lpc32xx/arch-lpc32xx.c 2009-11-24 15:42:39.000000000 +0100
-+++ linux-2.6.27.8-new/arch/arm/mach-lpc32xx/arch-lpc32xx.c 2009-11-24 15:52:40.000000000 +0100
+Index: linux-2.6.27.8/arch/arm/mach-lpc32xx/arch-lpc32xx.c
+===================================================================
+--- linux-2.6.27.8.orig/arch/arm/mach-lpc32xx/arch-lpc32xx.c 2011-03-01 16:09:18.000000000 +0100
++++ linux-2.6.27.8/arch/arm/mach-lpc32xx/arch-lpc32xx.c 2011-03-01 16:13:03.165618120 +0100
@@ -342,6 +342,9 @@
tmp |= UART_UART6_IRDAMOD_BYPASS;
#endif
@@ -11,9 +12,10 @@ diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/
}
static struct map_desc lpc32xx_io_desc[] __initdata = {
-diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h linux-2.6.27.8-new/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h
---- linux-2.6.27.8/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux-2.6.27.8-new/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h 2009-11-24 15:54:09.000000000 +0100
+Index: linux-2.6.27.8/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ linux-2.6.27.8/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h 2011-03-01 16:13:03.165618120 +0100
@@ -0,0 +1,31 @@
+/*
+ * linux/arch/arm/mach-lpc32xx/include/mach/lpc32xx_pwm.h
@@ -46,9 +48,10 @@ diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/
+#define PERIPH_CLK 0x01
+
+#endif
-diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/Kconfig linux-2.6.27.8-new/arch/arm/mach-lpc32xx/Kconfig
---- linux-2.6.27.8/arch/arm/mach-lpc32xx/Kconfig 2009-11-24 15:42:39.000000000 +0100
-+++ linux-2.6.27.8-new/arch/arm/mach-lpc32xx/Kconfig 2009-11-24 16:01:16.000000000 +0100
+Index: linux-2.6.27.8/arch/arm/mach-lpc32xx/Kconfig
+===================================================================
+--- linux-2.6.27.8.orig/arch/arm/mach-lpc32xx/Kconfig 2011-03-01 16:09:19.000000000 +0100
++++ linux-2.6.27.8/arch/arm/mach-lpc32xx/Kconfig 2011-03-01 16:13:03.165618120 +0100
@@ -185,6 +185,12 @@
which support is selected, the ethernet interface driver needs to be
selected in the device driver networking section.
@@ -62,9 +65,10 @@ diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/
menu "Standard UARTS"
config MACH_LPC32XX_UART5_ENABLE
-diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/Makefile linux-2.6.27.8-new/arch/arm/mach-lpc32xx/Makefile
---- linux-2.6.27.8/arch/arm/mach-lpc32xx/Makefile 2009-11-24 15:42:39.000000000 +0100
-+++ linux-2.6.27.8-new/arch/arm/mach-lpc32xx/Makefile 2009-11-24 16:01:39.000000000 +0100
+Index: linux-2.6.27.8/arch/arm/mach-lpc32xx/Makefile
+===================================================================
+--- linux-2.6.27.8.orig/arch/arm/mach-lpc32xx/Makefile 2011-03-01 16:09:19.000000000 +0100
++++ linux-2.6.27.8/arch/arm/mach-lpc32xx/Makefile 2011-03-01 16:13:03.165618120 +0100
@@ -7,6 +7,7 @@
obj-y := timer-lpc32xx.o irq-lpc32xx.o arch-lpc32xx.o
obj-y += serial-lpc32xx.o clocks-lpc32xx.o
@@ -73,9 +77,10 @@ diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/
obj-m :=
obj-n :=
obj- :=
-diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/spwm-lpc32xx.c linux-2.6.27.8-new/arch/arm/mach-lpc32xx/spwm-lpc32xx.c
---- linux-2.6.27.8/arch/arm/mach-lpc32xx/spwm-lpc32xx.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux-2.6.27.8-new/arch/arm/mach-lpc32xx/spwm-lpc32xx.c 2009-11-24 16:07:20.000000000 +0100
+Index: linux-2.6.27.8/arch/arm/mach-lpc32xx/spwm-lpc32xx.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ linux-2.6.27.8/arch/arm/mach-lpc32xx/spwm-lpc32xx.c 2011-03-01 16:13:03.168953120 +0100
@@ -0,0 +1,126 @@
+/*
+ * linux/arch/arm/mach-lpc32xx/spwm-lpc32xx.c
@@ -203,15 +208,25 @@ diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/
+ lpc32xx_spwm_set_clockdiv(PWM1, 1);
+ lpc32xx_spwm_set_clockdiv(PWM2, 1);
+}
-diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/sys-lpc32xx.h linux-2.6.27.8-new/arch/arm/mach-lpc32xx/sys-lpc32xx.h
---- linux-2.6.27.8/arch/arm/mach-lpc32xx/sys-lpc32xx.h 2009-11-24 15:42:39.000000000 +0100
-+++ linux-2.6.27.8-new/arch/arm/mach-lpc32xx/sys-lpc32xx.h 2009-11-24 16:08:24.000000000 +0100
+Index: linux-2.6.27.8/arch/arm/mach-lpc32xx/sys-lpc32xx.h
+===================================================================
+--- linux-2.6.27.8.orig/arch/arm/mach-lpc32xx/sys-lpc32xx.h 2011-03-01 16:09:19.000000000 +0100
++++ linux-2.6.27.8/arch/arm/mach-lpc32xx/sys-lpc32xx.h 2011-03-01 16:18:36.725648119 +0100
+@@ -30,7 +30,7 @@
+ #include <mach/board.h>
+
+ #define TIMER0_IOBASE io_p2v(TIMER0_BASE)
+-#define TIMER1_IOBASE io_p2v(TIMER1_BASE)
++#define TIMER1_IOBASE io_p2v(TIMER1_BASE)
+ #define CLKPWR_IOBASE io_p2v(CLK_PM_BASE)
+ #define GPIO_IOBASE io_p2v(GPIO_BASE)
+
@@ -83,14 +83,17 @@
#endif
/* Chip specific structures and functions */
--extern struct platform_device serial_std_platform_device;
--extern struct platform_device serial_hspd_platform_device;
+-extern struct platform_device serial_std_platform_device;
+-extern struct platform_device serial_hspd_platform_device;
+extern struct platform_device serial_std_platform_device;
+extern struct platform_device serial_hspd_platform_device;
extern struct sys_timer lpc32xx_timer;
@@ -220,8 +235,9 @@ diff -Naur -X linux/Documentation/dontdiff linux-2.6.27.8/arch/arm/mach-lpc32xx/
extern void __init lpc32xx_init (void);
extern void __init lpc32xx_map_io(void);
extern int __init clk_init(void);
-+#if defined(CONFIG_SPWM_LPC32XX)
-+extern void lpc32xx_spwm_init(void);
-+#endif
+++#if defined(CONFIG_SPWM_LPC32XX)
+++extern void lpc32xx_spwm_init(void);
+++#endif
#endif
+