30c01284755aebc9001d59c007f8b49d86c2b024
[14.07/openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0130-1-wire-Add-support-for-configuring-pin-for-w1-gpio-k.patch
1 From 539f6945d211e91b73bd098b11270beb766c8475 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/174] 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 --- a/arch/arm/mach-bcm2708/bcm2708.c
12 +++ b/arch/arm/mach-bcm2708/bcm2708.c
13 @@ -84,6 +84,7 @@
14  static unsigned boardrev, serial;
15  static unsigned uart_clock;
16  static unsigned reboot_part = 0;
17 +static unsigned w1_gpio_pin = W1_GPIO;
18  
19  static void __init bcm2708_init_led(void);
20  
21 @@ -766,6 +767,7 @@ void __init bcm2708_init(void)
22         bcm_register_device(&bcm2708_gpio_device);
23  #endif
24  #if defined(CONFIG_W1_MASTER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE)
25 +       w1_gpio_pdata.pin = w1_gpio_pin;
26         platform_device_register(&w1_device);
27  #endif
28         bcm_register_device(&bcm2708_systemtimer_device);
29 @@ -983,3 +985,4 @@ module_param(boardrev, uint, 0644);
30  module_param(serial, uint, 0644);
31  module_param(uart_clock, uint, 0644);
32  module_param(reboot_part, uint, 0644);
33 +module_param(w1_gpio_pin, uint, 0644);