changeset 166:45e120332249

Fix GPIO and hint mem location of if_rt
author ray@terran.dlink.ua
date Thu, 30 Jun 2011 12:42:56 +0300
parents f5c544925644
children 3a427c56ae2f
files boards/D-Link/DIR-620/board.hints boards/D-Link/DIR-620/files/etc/rc.d/ADAPTATION
diffstat 2 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/boards/D-Link/DIR-620/board.hints	Thu Jun 30 12:41:14 2011 +0300
+++ b/boards/D-Link/DIR-620/board.hints	Thu Jun 30 12:42:56 2011 +0300
@@ -12,11 +12,11 @@
 hint.nvram.1.flags=9 # 1 = No check, 2 = Format U-Boot
 
 # on-board Ralink Frame Engine
-#hint.rt.0.at="nexus0"
-#hint.rt.0.maddr=0x12000000
-#hint.rt.0.msize=0x200000
-#hint.rt.0.irq=9
-hint.rt.0.macaddr="00:18:e7:d5:83:90"
+hint.rt.0.at="nexus0"
+hint.rt.0.maddr=0x10100000
+hint.rt.0.msize=0x10000
+hint.rt.0.irq=3
+#hint.rt.0.macaddr="00:18:e7:d5:83:90"
 
 # on-board Ralink 2872 802.11n core
 hint.rt2860.0.at="nexus0"
@@ -70,15 +70,15 @@
 hint.gpioled.0.at="gpiobus0"
 hint.gpioled.0.pins="0x0100"
 hint.gpioled.0.name="status_yellow"
-hint.gpioled.0.flags="0x0002"
+hint.gpioled.0.flags="0x0102"
 
 #GPIO9  STATUS
 hint.gpioled.1.at="gpiobus0"
 hint.gpioled.1.pins="0x0200"
 hint.gpioled.1.name="status"
-hint.gpioled.1.flags="0x0002"
+hint.gpioled.1.flags="0x0102"
 
-#GPIO11 WPS Orange
+#GPIO11 WPS BiColor Orange
 hint.gpioled.2.at="gpiobus0"
 hint.gpioled.2.pins="0x0800"
 hint.gpioled.2.name="wps_orange"
@@ -88,19 +88,19 @@
 hint.gpioled.3.at="gpiobus0"
 hint.gpioled.3.pins="0x1000"
 hint.gpioled.3.name="wan"
-hint.gpioled.3.flags="0x0002"
+hint.gpioled.3.flags="0x0102"
 
-#GPIO13 WPS Blue
-hint.gpioled.3.at="gpiobus0"
-hint.gpioled.3.pins="0x2000"
-hint.gpioled.3.name="wps"
-hint.gpioled.3.flags="0x0002"
+#GPIO13 WPS BiColor Blue
+hint.gpioled.4.at="gpiobus0"
+hint.gpioled.4.pins="0x2000"
+hint.gpioled.4.name="wps"
+hint.gpioled.4.flags="0x0002"
 
 #GPIO14 WAN Yellow
-hint.gpioled.3.at="gpiobus0"
-hint.gpioled.3.pins="0x4000"
-hint.gpioled.3.name="wan_yellow"
-hint.gpioled.3.flags="0x0002"
+hint.gpioled.5.at="gpiobus0"
+hint.gpioled.5.pins="0x4000"
+hint.gpioled.5.name="wan_yellow"
+hint.gpioled.5.flags="0x0102"
 
 hint.cfi.0.width=2
 hint.cfi.0.shift=2
--- a/boards/D-Link/DIR-620/files/etc/rc.d/ADAPTATION	Thu Jun 30 12:41:14 2011 +0300
+++ b/boards/D-Link/DIR-620/files/etc/rc.d/ADAPTATION	Thu Jun 30 12:42:56 2011 +0300
@@ -40,7 +40,7 @@
 	switchctl /dev/switch0 set port 5 pvid 1 flags Tag
 	switchctl /dev/switch0 set port 6 pvid 1 flags Tag
 
-	gpioctl -f /dev/gpioc0 -c 14 IN II PU INT
+	gpioctl -f /dev/gpioc0 -c 10 IN II PU INT
 
 	# Import MAC addresses with known names
 	kenv LAN_MAC_ADDR=`kenv ethaddr`