Re: [PATCH] OMAP3: RX51: support sleep indicator LEDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan McDowell <noodles@xxxxxxxx> writes:

> On Fri, Oct 02, 2009 at 08:35:55AM -0700, Kevin Hilman wrote:
>> The sleep indicator LEDs can be enabled/disabled by toggling GPIO162.
>> Request this GPIO in RX51 board init, disable by default and expose
>> GPIO162 to userspace so LEDs can be toggled from userspace:
>
> Wouldn't this be better done using the LED class subsystem?

No, these are HW controlled LEDs which blink based on whether the OMAP
is hitting retention or OFF mode etc.  The software has no control
over the blinking of LEDs themselves.  The GPIO simply enables them.

Kevin


>> To enable:
>> 
>>   # echo 1 > /sys/class/gpio/gpio162/value
>> 
>> To disable:
>> 
>>   # echo 0 > /sys/class/gpio/gpio162/value
>> 
>> Signed-off-by: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>
>> ---
>
> J.
>
> -- 
> 101 things you can't have too much of : 16 - Time.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux