summaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files/drivers/leds
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-08 18:40:16 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-08 18:40:16 +0000
commit88731c199b6c0d769cd768213bd85e31069d8804 (patch)
tree0bb17afb914bff4f7615af1502dea0c96c32b3dd /target/linux/ifxmips/files/drivers/leds
parent63b0dfc1a158d5d438be409192e79001d9fe677c (diff)
several cleanups for ifxmips. removes all code that has not been cleaned up properly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18008 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files/drivers/leds')
-rw-r--r--target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c b/target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c
index 04e4ef8d0..86116d654 100644
--- a/target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c
+++ b/target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c
@@ -37,6 +37,7 @@
#define DRVNAME "ifxmips_led"
+/* might need to be changed depending on shift register used on the pcb */
#if 1
#define IFXMIPS_LED_CLK_EDGE IFXMIPS_LED_FALLING
#else
@@ -98,7 +99,8 @@ void ifxmips_led_setup_gpio(void)
{
int i = 0;
- /* we need to setup pins SH,D,ST (4,5,6) */
+ /* leds are controlled via a shift register
+ we need to setup pins SH,D,ST (4,5,6) to make it work */
for (i = 4; i < 7; i++) {
ifxmips_port_set_altsel0(IFXMIPS_LED_GPIO_PORT, i);
ifxmips_port_clear_altsel1(IFXMIPS_LED_GPIO_PORT, i);