]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-omap-2.6.39/sakoman/0027-OMAP-Overo-Add-support-for-spidev.patch
linux-omap 2.6.39: import from OE
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-omap-2.6.39 / sakoman / 0027-OMAP-Overo-Add-support-for-spidev.patch
1 From 61e1cb7dbff3b611644d6ba811f8b83db148c1e1 Mon Sep 17 00:00:00 2001
2 From: Scott Ellis <scottellis.developer@gmail.com>
3 Date: Sun, 23 Jan 2011 20:39:35 -0800
4 Subject: [PATCH 27/28] OMAP: Overo: Add support for spidev
6 ---
7  arch/arm/mach-omap2/board-overo.c |   16 ++++++++++++++++
8  1 files changed, 16 insertions(+), 0 deletions(-)
10 diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c
11 index 61c59fc..05dd3eb 100644
12 --- a/arch/arm/mach-omap2/board-overo.c
13 +++ b/arch/arm/mach-omap2/board-overo.c
14 @@ -683,6 +683,14 @@ static struct spi_board_info overo_spi_board_info[] __initdata = {
15                 .irq                    = OMAP_GPIO_IRQ(OVERO_GPIO_PENDOWN),
16                 .platform_data          = &ads7846_config,
17         },
18 +#elif defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
19 +       {
20 +               .modalias               = "spidev",
21 +               .bus_num                = 1,
22 +               .chip_select            = 0,
23 +               .max_speed_hz           = 48000000,
24 +               .mode                   = SPI_MODE_0,
25 +       },
26  #endif
27  #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \
28         defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE)
29 @@ -693,6 +701,14 @@ static struct spi_board_info overo_spi_board_info[] __initdata = {
30                 .max_speed_hz           = 500000,
31                 .mode                   = SPI_MODE_3,
32         },
33 +#elif defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
34 +       {
35 +               .modalias               = "spidev",
36 +               .bus_num                = 1,
37 +               .chip_select            = 1,
38 +               .max_speed_hz           = 48000000,
39 +               .mode                   = SPI_MODE_0,
40 +       },
41  #endif
42  };
43  
44 -- 
45 1.6.6.1