Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154427
b: refs/heads/master
c: 2216c6e
h: refs/heads/master
i:
  154425: 35304ff
  154423: 4e388fc
v: v3
  • Loading branch information
Tobias Mueller authored and Richard Purdie committed Jun 23, 2009
1 parent cc570e2 commit 794663f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fd02170e25b3b60fc21cd7b64bf1ed42e6a7cbe
refs/heads/master: 2216c6e83ccbc9d34f541621ff23f510cd8a256f
1 change: 1 addition & 0 deletions trunk/drivers/leds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ config LEDS_ALIX2
depends on LEDS_CLASS && X86 && EXPERIMENTAL
help
This option enables support for the PCEngines ALIX.2 and ALIX.3 LEDs.
You have to set leds-alix2.force=1 for boards with Award BIOS.

config LEDS_H1940
tristate "LED Support for iPAQ H1940 device"
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/leds/leds-alix2.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

static int force = 0;
module_param(force, bool, 0444);
MODULE_PARM_DESC(force, "Assume system has ALIX.2 style LEDs");
MODULE_PARM_DESC(force, "Assume system has ALIX.2/ALIX.3 style LEDs");

struct alix_led {
struct led_classdev cdev;
Expand Down Expand Up @@ -155,6 +155,11 @@ static int __init alix_led_init(void)
goto out;
}

/* enable output on GPIO for LED 1,2,3 */
outl(1 << 6, 0x6104);
outl(1 << 9, 0x6184);
outl(1 << 11, 0x6184);

pdev = platform_device_register_simple(KBUILD_MODNAME, -1, NULL, 0);
if (!IS_ERR(pdev)) {
ret = platform_driver_probe(&alix_led_driver, alix_led_probe);
Expand Down

0 comments on commit 794663f

Please sign in to comment.