diff options
author | Koen Kooi <koen@openembedded.org> | 2010-06-07 12:14:52 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-06-07 12:57:16 +0200 |
commit | 87ec7b6c9a418455f3d05139a0832c73eba292c7 (patch) | |
tree | cb73d57a7c21d24d5c72f7289af6d04a1df04e14 /recipes/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch | |
parent | 144015f3021e08f8cc0afa6f54ffdfd79067b990 (diff) |
linux-omap-psp 2.6.32: rebase patches onto new baseline
Diffstat (limited to 'recipes/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch')
-rw-r--r-- | recipes/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/recipes/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch b/recipes/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch new file mode 100644 index 0000000000..3b7abf5992 --- /dev/null +++ b/recipes/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch @@ -0,0 +1,70 @@ +From fb0e78890ed606930231a32ea7d9b84ce0a88f58 Mon Sep 17 00:00:00 2001 +From: Koen Kooi <koen@dominion.thruhere.net> +Date: Sat, 15 May 2010 21:47:32 +0200 +Subject: [PATCH 45/48] ARM: OMAP: beagle: add support for beagleFPGA expansionboard: http://members.cox.net/ebrombaugh1/embedded/beagle/beagle_fpga.html + +--- + arch/arm/mach-omap2/board-omap3beagle.c | 26 ++++++++++++++++++++++++++ + 1 files changed, 26 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c +index 078e026..b313350 100644 +--- a/arch/arm/mach-omap2/board-omap3beagle.c ++++ b/arch/arm/mach-omap2/board-omap3beagle.c +@@ -24,6 +24,7 @@ + #include <linux/irq.h> + #include <linux/input.h> + #include <linux/gpio_keys.h> ++#include <linux/spi/spi.h> + + #include <linux/mtd/mtd.h> + #include <linux/mtd/partitions.h> +@@ -47,6 +48,7 @@ + #include <plat/timer-gp.h> + #include <plat/clock.h> + #include <plat/omap-pm.h> ++#include <plat/mcspi.h> + + #include "mux.h" + #include "mmc-twl4030.h" +@@ -609,6 +611,24 @@ static struct platform_device keys_gpio = { + }, + }; + ++static struct spi_board_info beaglefpga_mcspi_board_info[] = { ++ // spi 4.0 ++ { ++ .modalias = "spidev", ++ .max_speed_hz = 48000000, //48 Mbps ++ .bus_num = 4, ++ .chip_select = 0, ++ .mode = SPI_MODE_1, ++ }, ++}; ++ ++static void __init beaglefpga_init_spi(void) ++{ ++ /* hook the spi ports to the spidev driver */ ++ spi_register_board_info(beaglefpga_mcspi_board_info, ++ ARRAY_SIZE(beaglefpga_mcspi_board_info)); ++} ++ + static void __init omap3_beagle_init_irq(void) + { + if (cpu_is_omap3630()) +@@ -769,6 +789,12 @@ static void __init omap3_beagle_init(void) + gpio_export(162, 1); + } + ++ if(!strcmp(expansionboard_name, "beaglefpga")) ++ { ++ printk(KERN_INFO "Beagle expansionboard: Using McSPI for SPI\n"); ++ beaglefpga_init_spi(); ++ } ++ + usb_musb_init(); + usb_ehci_init(&ehci_pdata); + omap3beagle_flash_init(); +-- +1.6.6.1 + |