]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/kernel/omap/beagle/expansion/0008-Beagle-expansion-add-spidev.patch
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
[people/teissler/ipfire-2.x.git] / src / patches / kernel / omap / beagle / expansion / 0008-Beagle-expansion-add-spidev.patch
1 From 5258354e6e4d0b55334099868668a166d967c1d2 Mon Sep 17 00:00:00 2001
2 From: Russell Hay <russell.hay@gmail.com>
3 Date: Tue, 11 Dec 2012 06:53:58 -0600
4 Subject: [PATCH 08/10] Beagle: expansion: add spidev
5
6 Signed-off-by: Russell Hay <russell.hay@gmail.com>
7 Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
8 ---
9 arch/arm/mach-omap2/board-omap3beagle.c | 10 ++++++++++
10 1 file changed, 10 insertions(+)
11
12 diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
13 index c257f3c..3e0313ee 100644
14 --- a/arch/arm/mach-omap2/board-omap3beagle.c
15 +++ b/arch/arm/mach-omap2/board-omap3beagle.c
16 @@ -1117,6 +1117,16 @@ static void __init omap3_beagle_init(void)
17 #endif
18 }
19
20 + if (!strcmp(expansionboard_name, "spidev"))
21 + {
22 + #if IS_ENABLED(CONFIG_SPI_SPIDEV)
23 + pr_info("Beagle expansionboard: registering spidev\n");
24 + omap3_beagle_config_mcspi3_mux();
25 + omap3_beagle_config_mcspi4_mux();
26 + spi_register_board_info(beagle_mcspi_board_info, ARRAY_SIZE(beagle_mcspi_board_info));
27 + #endif
28 + }
29 +
30 if (!strcmp(expansionboard2_name, "bbtoys-ulcd"))
31 {
32 #if IS_ENABLED(CONFIG_TOUCHSCREEN_TSC2007)
33 --
34 1.7.10.4
35