]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/kernel/omap/beagle/expansion/0001-Beagle-expansion-add-buddy-param-for-expansionboard-.patch
OpenVPN: Added 'valid til (days)' field for N2N.
[people/pmueller/ipfire-2.x.git] / src / patches / kernel / omap / beagle / expansion / 0001-Beagle-expansion-add-buddy-param-for-expansionboard-.patch
1 From c070885eaf883884f89a77e2f71def5b447f914b Mon Sep 17 00:00:00 2001
2 From: Robert Nelson <robertcnelson@gmail.com>
3 Date: Tue, 11 Dec 2012 06:25:27 -0600
4 Subject: [PATCH 01/10] Beagle: expansion: add buddy param for expansionboard
5 names
6
7 Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
8 ---
9 arch/arm/mach-omap2/board-omap3beagle.c | 17 +++++++++++++++++
10 1 file changed, 17 insertions(+)
11
12 diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
13 index c3558f9..29d549c 100644
14 --- a/arch/arm/mach-omap2/board-omap3beagle.c
15 +++ b/arch/arm/mach-omap2/board-omap3beagle.c
16 @@ -23,6 +23,7 @@
17 #include <linux/pwm.h>
18 #include <linux/leds_pwm.h>
19 #include <linux/gpio.h>
20 +#include <linux/irq.h>
21 #include <linux/input.h>
22 #include <linux/gpio_keys.h>
23 #include <linux/opp.h>
24 @@ -191,6 +192,8 @@ static void __init omap3_beagle_init_rev(void)
25 }
26 }
27
28 +char expansionboard_name[16];
29 +
30 static struct mtd_partition omap3beagle_nand_partitions[] = {
31 /* All the partition sizes are listed in terms of NAND block size */
32 {
33 @@ -470,6 +473,18 @@ static struct omap_board_mux board_mux[] __initdata = {
34 };
35 #endif
36
37 +static int __init expansionboard_setup(char *str)
38 +{
39 + if (!machine_is_omap3_beagle())
40 + return 0;
41 +
42 + if (!str)
43 + return -EINVAL;
44 + strncpy(expansionboard_name, str, 16);
45 + pr_info("Beagle expansionboard: %s\n", expansionboard_name);
46 + return 0;
47 +}
48 +
49 static int __init beagle_opp_init(void)
50 {
51 int r = 0;
52 @@ -559,6 +574,8 @@ static void __init omap3_beagle_init(void)
53 pwm_add_table(pwm_lookup, ARRAY_SIZE(pwm_lookup));
54 }
55
56 +early_param("buddy", expansionboard_setup);
57 +
58 MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
59 /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */
60 .atag_offset = 0x100,
61 --
62 1.7.10.4
63