brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-3.10 / 0130-1-wire-Add-support-for-configuring-pin-for-w1-gpio-k.patch
1 From 9f49a38c6a2e2966982f307fab54c8a27f88d13b Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Thu, 19 Dec 2013 18:05:31 +0000
4 Subject: [PATCH 130/196] 1-wire: Add support for configuring pin for w1-gpio
5 kernel module See: https://github.com/raspberrypi/linux/pull/457
6
7 ---
8 arch/arm/mach-bcm2708/bcm2708.c | 3 +++
9 1 file changed, 3 insertions(+)
10
11 diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
12 index 90debb4..46586d8 100644
13 --- a/arch/arm/mach-bcm2708/bcm2708.c
14 +++ b/arch/arm/mach-bcm2708/bcm2708.c
15 @@ -84,6 +84,7 @@
16 static unsigned boardrev, serial;
17 static unsigned uart_clock;
18 static unsigned reboot_part = 0;
19 +static unsigned w1_gpio_pin = W1_GPIO;
20
21 static void __init bcm2708_init_led(void);
22
23 @@ -766,6 +767,7 @@ void __init bcm2708_init(void)
24 bcm_register_device(&bcm2708_gpio_device);
25 #endif
26 #if defined(CONFIG_W1_MASTER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE)
27 + w1_gpio_pdata.pin = w1_gpio_pin;
28 platform_device_register(&w1_device);
29 #endif
30 bcm_register_device(&bcm2708_systemtimer_device);
31 @@ -983,3 +985,4 @@ module_param(boardrev, uint, 0644);
32 module_param(serial, uint, 0644);
33 module_param(uart_clock, uint, 0644);
34 module_param(reboot_part, uint, 0644);
35 +module_param(w1_gpio_pin, uint, 0644);
36 --
37 1.9.1
38