mirror of https://github.com/hak5/openwrt-owl.git
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 539f6945d211e91b73bd098b11270beb766c8475 Mon Sep 17 00:00:00 2001
|
|
From: popcornmix <popcornmix@gmail.com>
|
|
Date: Thu, 19 Dec 2013 18:05:31 +0000
|
|
Subject: [PATCH 130/174] 1-wire: Add support for configuring pin for w1-gpio
|
|
kernel module See: https://github.com/raspberrypi/linux/pull/457
|
|
|
|
---
|
|
arch/arm/mach-bcm2708/bcm2708.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/arch/arm/mach-bcm2708/bcm2708.c
|
|
+++ b/arch/arm/mach-bcm2708/bcm2708.c
|
|
@@ -84,6 +84,7 @@
|
|
static unsigned boardrev, serial;
|
|
static unsigned uart_clock;
|
|
static unsigned reboot_part = 0;
|
|
+static unsigned w1_gpio_pin = W1_GPIO;
|
|
|
|
static void __init bcm2708_init_led(void);
|
|
|
|
@@ -766,6 +767,7 @@ void __init bcm2708_init(void)
|
|
bcm_register_device(&bcm2708_gpio_device);
|
|
#endif
|
|
#if defined(CONFIG_W1_MASTER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE)
|
|
+ w1_gpio_pdata.pin = w1_gpio_pin;
|
|
platform_device_register(&w1_device);
|
|
#endif
|
|
bcm_register_device(&bcm2708_systemtimer_device);
|
|
@@ -983,3 +985,4 @@ module_param(boardrev, uint, 0644);
|
|
module_param(serial, uint, 0644);
|
|
module_param(uart_clock, uint, 0644);
|
|
module_param(reboot_part, uint, 0644);
|
|
+module_param(w1_gpio_pin, uint, 0644);
|