diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0001-ARM-OMAP-add-spi-platform-devices.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0001-ARM-OMAP-add-spi-platform-devices.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0001-ARM-OMAP-add-spi-platform-devices.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0001-ARM-OMAP-add-spi-platform-devices.patch new file mode 100644 index 00000000..8988fd82 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0001-ARM-OMAP-add-spi-platform-devices.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | From 0031d3fb2d067f4c46e434f5f5c6c14cef2a83a3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tim Yamin <plasm@roo.me.uk> | ||
3 | Date: Sat, 11 Apr 2009 13:05:21 -0700 | ||
4 | Subject: [PATCH 01/17] ARM: OMAP: add spi platform devices | ||
5 | |||
6 | --- | ||
7 | arch/arm/mach-omap2/devices.c | 32 ++++++++++++++++++++++++++++++++ | ||
8 | 1 files changed, 32 insertions(+), 0 deletions(-) | ||
9 | |||
10 | diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c | ||
11 | index 18ad931..ae67ada 100644 | ||
12 | --- a/arch/arm/mach-omap2/devices.c | ||
13 | +++ b/arch/arm/mach-omap2/devices.c | ||
14 | @@ -15,6 +15,7 @@ | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/io.h> | ||
17 | #include <linux/clk.h> | ||
18 | +#include <linux/spi/spi_gpio.h> | ||
19 | |||
20 | #include <mach/hardware.h> | ||
21 | #include <asm/mach-types.h> | ||
22 | @@ -373,6 +374,37 @@ static struct platform_device omap2_mcspi4 = { | ||
23 | .platform_data = &omap2_mcspi4_config, | ||
24 | }, | ||
25 | }; | ||
26 | + | ||
27 | +static struct spi_gpio_platform_data spi3_gpio_platform_data = { | ||
28 | + .miso = 132, | ||
29 | + .mosi = 131, | ||
30 | + .sck = 130, | ||
31 | + .num_chipselect = 1, | ||
32 | +}; | ||
33 | + | ||
34 | +static struct platform_device spi3_gpio = { | ||
35 | + .name = "spi_gpio", | ||
36 | + .id = 3, | ||
37 | + .dev = { | ||
38 | + .platform_data = &spi3_gpio_platform_data, | ||
39 | + }, | ||
40 | +}; | ||
41 | + | ||
42 | +static struct spi_gpio_platform_data spi4_gpio_platform_data = { | ||
43 | + .miso = 159, | ||
44 | + .mosi = 158, | ||
45 | + .sck = 156, | ||
46 | + .num_chipselect = 1, | ||
47 | +}; | ||
48 | + | ||
49 | +static struct platform_device spi4_gpio = { | ||
50 | + .name = "spi_gpio", | ||
51 | + .id = 4, | ||
52 | + .dev = { | ||
53 | + .platform_data = &spi4_gpio_platform_data, | ||
54 | + }, | ||
55 | +}; | ||
56 | + | ||
57 | #endif | ||
58 | |||
59 | #ifdef CONFIG_ARCH_OMAP4 | ||
60 | -- | ||
61 | 1.6.6.1 | ||
62 | |||