summaryrefslogtreecommitdiff
path: root/target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2009-10-08 18:40:16 +0000
committerJohn Crispin <john@openwrt.org>2009-10-08 18:40:16 +0000
commitba78d97022f9f6b0e7951f05475f4933ab0d8aac (patch)
tree38762399b9d497d1c7c61cb4ceb67abb02da10f3 /target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c
parent017ede680fabc86ed51a17bc9691f3b436842c8b (diff)
downloadmtk-20170518-ba78d97022f9f6b0e7951f05475f4933ab0d8aac.zip
mtk-20170518-ba78d97022f9f6b0e7951f05475f4933ab0d8aac.tar.gz
mtk-20170518-ba78d97022f9f6b0e7951f05475f4933ab0d8aac.tar.bz2
several cleanups for ifxmips. removes all code that has not been cleaned up properly
SVN-Revision: 18008
Diffstat (limited to 'target/linux/ifxmips/files/drivers/leds/leds-ifxmips.c')
-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 04e4ef8..86116d6 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);