changeset 214:962fbb250394

Enable switch drivers/framework
author ray@terran.dlink.ua
date Sat, 15 Oct 2011 02:34:15 +0300
parents c95f20a7c688
children c8817f686a7b
files boards/D-Link/DIR-632/board.hints boards/D-Link/DIR-632/board.mk
diffstat 2 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/boards/D-Link/DIR-632/board.hints	Sat Oct 15 02:34:09 2011 +0300
+++ b/boards/D-Link/DIR-632/board.hints	Sat Oct 15 02:34:15 2011 +0300
@@ -2,8 +2,6 @@
 hint.apb.0.at="nexus0"
 hint.apb.0.irq=4
 
-#hint.ath.0.at="apb0"
-
 # uart0
 hint.uart.0.at="apb0"
 # see atheros/uart_cpu_ar71xx.c why +3
@@ -48,7 +46,7 @@
 hint.arge.1.maddr=0x1a000000
 hint.arge.1.msize=0x1000
 hint.arge.1.irq=3
-hint.arge.1.media=100
+hint.arge.1.media=1000
 hint.arge.1.fduplex=1
 #hint.arge.1.phymask=0x00000001 # Limit to only PHY0 (internal S26 switch)
 hint.arge.1.phymask=0xffffffff
@@ -60,7 +58,7 @@
 hint.switch.0.iface="arge0"
 hint.switch.0.driver="rtl830x_switch"
 hint.switch.1.iface="arge1"
-hint.switch.1.driver="ar724x_switch"
+hint.switch.1.driver="ar8x16_switch"
 
 # GPIO
 hint.gpio.0.at="apb0"
--- a/boards/D-Link/DIR-632/board.mk	Sat Oct 15 02:34:09 2011 +0300
+++ b/boards/D-Link/DIR-632/board.mk	Sat Oct 15 02:34:15 2011 +0300
@@ -25,7 +25,7 @@
 # Include usb and SoC usb controller drivers
 WITH_USB=yes
 WITH_IPSEC=yes
-WITH_WIRELESS=yes
+#WITH_WIRELESS=yes
 # Builded modules
 KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/umass usb/ucom cam zlib
 
@@ -35,7 +35,11 @@
 KERNCONF_OPTIONS+=	ALT_BREAK_TO_DEBUGGER
 KERNCONF_OPTIONS+=	BREAK_TO_DEBUGGER
 
+KERNCONF_DEVICES+=	switch_rtl830x
+
+
 .if !defined(WITHOUT_WIRELESS)
+KERNCONF_MODULES_OVERRIDE+=wlan_xauth wlan_wep wlan_tkip wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt
 KERNCONF_OPTIONS+=	IEEE80211_DEBUG
 KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_MESH
 KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_TDMA
@@ -47,14 +51,20 @@
 
 KERNCONF_OPTIONS+=	AH_DEBUG
 KERNCONF_OPTIONS+=	ATH_DEBUG
+KERNCONF_OPTIONS+=	ATH_DIAGAPI
+KERNCONF_OPTIONS+=	ATH_ENABLE_11N
 KERNCONF_OPTIONS+=	AH_SUPPORT_AR5416
+#KERNCONF_OPTIONS+=	AH_SUPPORT_AR9130
 KERNCONF_OPTIONS+=	AH_RXCFG_SDMAMW_4BYTES
+# interrupt mitigation not possible on AR9130
+# option		AH_AR5416_INTERRUPT_MITIGATION
 KERNCONF_DEVICES+=	ath
 KERNCONF_DEVICES+=	ath_hal
 KERNCONF_DEVICES+=	ath_pci
 KERNCONF_DEVICES+=	ath_rate_sample
 .endif
 
+
 #.if !defined(WITHOUT_WIRELESS)
 #KERNCONF_OPTIONS+=	IEEE80211_DEBUG
 ##KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_MESH
@@ -95,7 +105,7 @@
 #
 ###################################################
 
-TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn ppp hostap
+TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn ppp hostap ath
 # nfs_client
 
 KERNEL_COMPRESSION=oldlzma