linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / linux / linux-omap-2.6.39 / sakoman / 0028-OMAP-Overo-Add-support-for-spidev.patch
blobbdbe1feaaa4f495f8b475d1e968bd6f1c61d9a21
1 From d83a600cbe0cfca8c8fd9f5566dd45166cc9e142 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 28/31] 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,
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,
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
44 --
45 1.6.6.1