changeset 167:3a427c56ae2f

Fix GPIO and hint mem location of if_rt
author ray@terran.dlink.ua
date Thu, 30 Jun 2011 12:43:33 +0300
parents 45e120332249
children fc2377c6fd55
files boards/D-Link/DIR-620Sec/board.hints boards/D-Link/DIR-620Sec/board.mk boards/D-Link/DIR-620Sec/files/etc/rc.d/ADAPTATION
diffstat 3 files changed, 17 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/boards/D-Link/DIR-620Sec/board.hints	Thu Jun 30 12:42:56 2011 +0300
+++ b/boards/D-Link/DIR-620Sec/board.hints	Thu Jun 30 12:43:33 2011 +0300
@@ -12,11 +12,10 @@
 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
 
 # uart0
 #hint.uart.0.at="obio0"
@@ -64,13 +63,13 @@
 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
 hint.gpioled.2.at="gpiobus0"
@@ -82,19 +81,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"
+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-620Sec/board.mk	Thu Jun 30 12:42:56 2011 +0300
+++ b/boards/D-Link/DIR-620Sec/board.mk	Thu Jun 30 12:43:33 2011 +0300
@@ -51,7 +51,7 @@
 #
 ###################################################
 
-TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn
+TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn ppp
 # hostap
 # nfs_client
 # racoon
--- a/boards/D-Link/DIR-620Sec/files/etc/rc.d/ADAPTATION	Thu Jun 30 12:42:56 2011 +0300
+++ b/boards/D-Link/DIR-620Sec/files/etc/rc.d/ADAPTATION	Thu Jun 30 12:43:33 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`