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 / 0166-bcm2708-Allow-disk-activity-led-gpio-to-be-specified.patch
1 From 6fa3166b901b1f3a88e52c232c09df48c430303d Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Tue, 11 Feb 2014 17:03:51 +0000
4 Subject: [PATCH 166/196] bcm2708: Allow disk activity led gpio to be specified
5
6 ---
7 arch/arm/mach-bcm2708/bcm2708.c | 8 +++++++-
8 1 file changed, 7 insertions(+), 1 deletion(-)
9
10 diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
11 index 993379c..caa9f48 100644
12 --- a/arch/arm/mach-bcm2708/bcm2708.c
13 +++ b/arch/arm/mach-bcm2708/bcm2708.c
14 @@ -83,6 +83,8 @@
15 /* command line parameters */
16 static unsigned boardrev, serial;
17 static unsigned uart_clock;
18 +static unsigned disk_led_gpio = 16;
19 +static unsigned disk_led_active_low = 1;
20 static unsigned reboot_part = 0;
21 static unsigned w1_gpio_pin = W1_GPIO;
22
23 @@ -965,7 +967,9 @@ static struct platform_device bcm2708_led_device = {
24
25 static void __init bcm2708_init_led(void)
26 {
27 - platform_device_register(&bcm2708_led_device);
28 + bcm2708_leds[0].gpio = disk_led_gpio;
29 + bcm2708_leds[0].active_low = disk_led_active_low;
30 + platform_device_register(&bcm2708_led_device);
31 }
32 #else
33 static inline void bcm2708_init_led(void)
34 @@ -1004,5 +1008,7 @@ MACHINE_END
35 module_param(boardrev, uint, 0644);
36 module_param(serial, uint, 0644);
37 module_param(uart_clock, uint, 0644);
38 +module_param(disk_led_gpio, uint, 0644);
39 +module_param(disk_led_active_low, uint, 0644);
40 module_param(reboot_part, uint, 0644);
41 module_param(w1_gpio_pin, uint, 0644);
42 --
43 1.9.1
44