Changeset 18337
- Timestamp:
- 01/31/12 02:06:35 (16 months ago)
- Location:
- src/linux/universal/linux-3.2
- Files:
-
- 3 added
- 26 edited
-
.config_ag7240 (modified) (3 diffs)
-
.config_ar7240 (modified) (9 diffs)
-
.config_ar7240_nousb (modified) (1 diff)
-
.config_ar7242 (modified) (3 diffs)
-
.config_dir615e (modified) (2 diffs)
-
.config_dir632 (modified) (3 diffs)
-
.config_g450 (modified) (1 diff)
-
.config_hornet (modified) (1 diff)
-
.config_ubntm (modified) (2 diffs)
-
.config_wasp (added)
-
.config_wlae (modified) (2 diffs)
-
.config_wr741 (modified) (2 diffs)
-
.config_wzrg300nh2 (modified) (3 diffs)
-
.config_wzrg450 (modified) (13 diffs)
-
arch/mips/Kconfig (modified) (1 diff)
-
arch/mips/ar7240/gpio_driver.c (modified) (2 diffs)
-
arch/mips/ar7240/platform.c (modified) (1 diff)
-
arch/mips/ar7240/setup.c (modified) (1 diff)
-
arch/mips/include/asm/mach-ar7240/ar7240.h (modified) (1 diff)
-
arch/mips/pci/pci-ar71xx.c (modified) (1 diff)
-
arch/mips/pci/pci-ar724x.c (modified) (2 diffs)
-
drivers/net/ethernet/Kconfig (modified) (2 diffs)
-
drivers/net/ethernet/ag7240/Makefile (modified) (1 diff)
-
drivers/net/ethernet/ag7240/ag7240.c (modified) (8 diffs)
-
drivers/net/ethernet/ag7240/ag7240.h (modified) (3 diffs)
-
drivers/net/ethernet/ag7240/ag7240_phy.h (modified) (11 diffs)
-
drivers/net/ethernet/ag7240/athrs27_phy.c (added)
-
drivers/net/ethernet/ag7240/athrs27_phy.h (added)
-
init/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/universal/linux-3.2/.config_ag7240
r18313 r18337 57 57 # CONFIG_WR741 is not set 58 58 # CONFIG_AR7240_EMULATION is not set 59 # CONFIG_WASP_SUPPORT is not set 59 60 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set 60 61 CONFIG_LOONGSON_UART_BASE=y … … 918 919 CONFIG_AR7242_RGMII_PHY=y 919 920 # CONFIG_AR7242_S16_PHY is not set 921 # CONFIG_ATHRS27_PHY is not set 920 922 # CONFIG_AR7242_VIR_PHY is not set 921 923 # CONFIG_AR7242_RTL8309G_PHY is not set … … 923 925 CONFIG_AG7240_GE1_IS_CONNECTED=y 924 926 CONFIG_AG7240_GE1_MII=y 927 # CONFIG_AG7240_GE1_GMII is not set 928 # CONFIG_AG7240_GE1_RGMII is not set 929 CONFIG_GE1_EXTERNAL_PHY=y 925 930 CONFIG_AR7240_S26_PHY=y 926 931 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_ar7240
r18313 r18337 1 1 # 2 2 # Automatically generated file; DO NOT EDIT. 3 # Linux/mips 3.2. 0Kernel Configuration3 # Linux/mips 3.2.2 Kernel Configuration 4 4 # 5 5 CONFIG_MIPS=y … … 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 # CONFIG_AR7100_USB_GPIO_LED is not set 61 62 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set … … 475 476 # CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set 476 477 # CONFIG_NETFILTER_XT_TARGET_LED is not set 478 CONFIG_NETFILTER_XT_TARGET_IMQ=y 477 479 CONFIG_NETFILTER_XT_TARGET_MARK=y 478 480 CONFIG_NETFILTER_XT_TARGET_NFLOG=y … … 792 794 # CONFIG_MTD_DOC2001PLUS is not set 793 795 # CONFIG_MTD_DOCG3 is not set 794 # CONFIG_MTD_AR7100_SPI_FLASH is not set795 796 # CONFIG_MTD_FLASH_16MB is not set 796 797 CONFIG_MTD_FLASH_8MB=y 797 # CONFIG_MTD_AR9100_PARALLEL_FLASH is not set798 798 # CONFIG_WZRG450NH is not set 799 799 CONFIG_MTD_AR7240_SPI_FLASH=y … … 808 808 # CONFIG_PARPORT is not set 809 809 # CONFIG_BLK_DEV is not set 810 # CONFIG_BLK_CPQ_DA is not set811 # CONFIG_BLK_CPQ_CISS_DA is not set812 # CONFIG_BLK_DEV_DAC960 is not set813 # CONFIG_BLK_DEV_UMEM is not set814 # CONFIG_BLK_DEV_COW_COMMON is not set815 # CONFIG_BLK_DEV_LOOP is not set816 817 #818 # DRBD disabled because PROC_FS, INET or CONNECTOR not selected819 #820 # CONFIG_BLK_DEV_NBD is not set821 # CONFIG_BLK_DEV_SX8 is not set822 # CONFIG_BLK_DEV_UB is not set823 # CONFIG_BLK_DEV_RAM is not set824 # CONFIG_CDROM_PKTCDVD is not set825 # CONFIG_ATA_OVER_ETH is not set826 # CONFIG_BLK_DEV_HD is not set827 # CONFIG_BLK_DEV_RBD is not set828 810 # CONFIG_MISC_DEVICES is not set 829 811 CONFIG_HAVE_IDE=y … … 893 875 # CONFIG_NETPOLL is not set 894 876 # CONFIG_NET_POLL_CONTROLLER is not set 895 CONFIG_NETFILTER_XT_TARGET_IMQ=y896 877 CONFIG_IMQ=y 897 878 # CONFIG_IMQ_BEHAVIOR_AA is not set … … 937 918 CONFIG_AG7240_GE1_IS_CONNECTED=y 938 919 CONFIG_AG7240_GE1_MII=y 920 # CONFIG_AG7240_GE1_GMII is not set 921 # CONFIG_AG7240_GE1_RGMII is not set 922 CONFIG_GE1_EXTERNAL_PHY=y 939 923 CONFIG_AR7240_S26_PHY=y 940 924 # CONFIG_S26_SWITCH_ONLY_MODE is not set … … 945 929 CONFIG_AG7240_MAC_LOCATION=0xbfff0000 946 930 # CONFIG_AG7240_USE_TRC is not set 947 CONFIG_AG7100_LEN_PER_TX_DS=1536948 931 # CONFIG_AG71XX is not set 949 932 # CONFIG_NET_VENDOR_MARVELL is not set … … 1236 1219 # CONFIG_USB_WHCI_HCD is not set 1237 1220 # CONFIG_USB_HWA_HCD is not set 1238 # CONFIG_USB_DWC_OTG is not set1239 1221 1240 1222 # -
src/linux/universal/linux-3.2/.config_ar7240_nousb
r18313 r18337 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 # CONFIG_AR7100_USB_GPIO_LED is not set 61 62 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set -
src/linux/universal/linux-3.2/.config_ar7242
r18313 r18337 56 56 # CONFIG_WR741 is not set 57 57 # CONFIG_AR7240_EMULATION is not set 58 # CONFIG_WASP_SUPPORT is not set 58 59 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set 59 60 CONFIG_LOONGSON_UART_BASE=y … … 917 918 # CONFIG_AR7242_RGMII_PHY is not set 918 919 CONFIG_AR7242_S16_PHY=y 920 # CONFIG_ATHRS27_PHY is not set 919 921 # CONFIG_AR7242_VIR_PHY is not set 920 922 # CONFIG_AR7242_RTL8309G_PHY is not set … … 922 924 CONFIG_AG7240_GE1_IS_CONNECTED=y 923 925 CONFIG_AG7240_GE1_MII=y 926 # CONFIG_AG7240_GE1_GMII is not set 927 # CONFIG_AG7240_GE1_RGMII is not set 928 CONFIG_GE1_EXTERNAL_PHY=y 924 929 CONFIG_AR7240_S26_PHY=y 925 930 CONFIG_S26_SWITCH_ONLY_MODE=y -
src/linux/universal/linux-3.2/.config_dir615e
r18313 r18337 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 # CONFIG_AR7100_USB_GPIO_LED is not set 61 62 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set … … 868 869 CONFIG_AG7240_GE1_IS_CONNECTED=y 869 870 CONFIG_AG7240_GE1_MII=y 871 # CONFIG_AG7240_GE1_GMII is not set 872 # CONFIG_AG7240_GE1_RGMII is not set 873 CONFIG_GE1_EXTERNAL_PHY=y 870 874 CONFIG_AR7240_S26_PHY=y 871 875 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_dir632
r18313 r18337 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 CONFIG_AR7100_USB_GPIO_LED=y 61 62 CONFIG_AP_USB_LED_GPIO=17 … … 942 943 # CONFIG_AR7242_RGMII_PHY is not set 943 944 # CONFIG_AR7242_S16_PHY is not set 945 # CONFIG_ATHRS27_PHY is not set 944 946 # CONFIG_AR7242_VIR_PHY is not set 945 947 CONFIG_AR7242_RTL8309G_PHY=y … … 947 949 CONFIG_AG7240_GE1_IS_CONNECTED=y 948 950 CONFIG_AG7240_GE1_MII=y 951 # CONFIG_AG7240_GE1_GMII is not set 952 # CONFIG_AG7240_GE1_RGMII is not set 953 CONFIG_GE1_EXTERNAL_PHY=y 949 954 CONFIG_AR7240_S26_PHY=y 950 955 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_g450
r18313 r18337 55 55 # CONFIG_DIR615E is not set 56 56 # CONFIG_AR7240_EMULATION is not set 57 # CONFIG_WASP_SUPPORT is not set 57 58 CONFIG_AR7100_USB_GPIO_LED=y 58 59 CONFIG_AP_USB_LED_GPIO=17 -
src/linux/universal/linux-3.2/.config_hornet
r18313 r18337 874 874 CONFIG_AG7240_GE1_IS_CONNECTED=y 875 875 CONFIG_AG7240_GE1_MII=y 876 # CONFIG_AG7240_GE1_GMII is not set 877 # CONFIG_AG7240_GE1_RGMII is not set 878 CONFIG_GE1_EXTERNAL_PHY=y 876 879 CONFIG_AR7240_S26_PHY=y 877 880 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_ubntm
r18313 r18337 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 # CONFIG_AR7100_USB_GPIO_LED is not set 61 62 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set … … 893 894 CONFIG_AG7240_GE1_IS_CONNECTED=y 894 895 CONFIG_AG7240_GE1_MII=y 896 # CONFIG_AG7240_GE1_GMII is not set 897 # CONFIG_AG7240_GE1_RGMII is not set 898 CONFIG_GE1_EXTERNAL_PHY=y 895 899 CONFIG_AR7240_S26_PHY=y 896 900 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_wlae
r18313 r18337 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 # CONFIG_AR7100_USB_GPIO_LED is not set 61 62 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set … … 850 851 CONFIG_AG7240_GE1_IS_CONNECTED=y 851 852 CONFIG_AG7240_GE1_MII=y 853 # CONFIG_AG7240_GE1_GMII is not set 854 # CONFIG_AG7240_GE1_RGMII is not set 855 CONFIG_GE1_EXTERNAL_PHY=y 852 856 CONFIG_AR7240_S26_PHY=y 853 857 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_wr741
r18313 r18337 58 58 CONFIG_WR741=y 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 # CONFIG_AR7100_USB_GPIO_LED is not set 61 62 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set … … 864 865 CONFIG_AG7240_GE1_IS_CONNECTED=y 865 866 CONFIG_AG7240_GE1_MII=y 867 # CONFIG_AG7240_GE1_GMII is not set 868 # CONFIG_AG7240_GE1_RGMII is not set 869 CONFIG_GE1_EXTERNAL_PHY=y 866 870 CONFIG_AR7240_S26_PHY=y 867 871 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_wzrg300nh2
r18313 r18337 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 CONFIG_AR7100_USB_GPIO_LED=y 61 62 CONFIG_AP_USB_LED_GPIO=17 … … 942 943 CONFIG_AR7242_S16_PHY=y 943 944 CONFIG_WZRG450=y 945 # CONFIG_ATHRS27_PHY is not set 944 946 # CONFIG_AR7242_VIR_PHY is not set 945 947 # CONFIG_AR7242_RTL8309G_PHY is not set … … 947 949 CONFIG_AG7240_GE1_IS_CONNECTED=y 948 950 CONFIG_AG7240_GE1_MII=y 951 # CONFIG_AG7240_GE1_GMII is not set 952 # CONFIG_AG7240_GE1_RGMII is not set 953 CONFIG_GE1_EXTERNAL_PHY=y 949 954 CONFIG_AR7240_S26_PHY=y 950 955 # CONFIG_S26_SWITCH_ONLY_MODE is not set -
src/linux/universal/linux-3.2/.config_wzrg450
r18313 r18337 1 1 # 2 2 # Automatically generated file; DO NOT EDIT. 3 # Linux/mips 3.2. 0Kernel Configuration3 # Linux/mips 3.2.2 Kernel Configuration 4 4 # 5 5 CONFIG_MIPS=y … … 58 58 # CONFIG_WR741 is not set 59 59 # CONFIG_AR7240_EMULATION is not set 60 # CONFIG_WASP_SUPPORT is not set 60 61 CONFIG_AR7100_USB_GPIO_LED=y 61 62 CONFIG_AP_USB_LED_GPIO=17 … … 477 478 # CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set 478 479 # CONFIG_NETFILTER_XT_TARGET_LED is not set 480 CONFIG_NETFILTER_XT_TARGET_IMQ=y 479 481 CONFIG_NETFILTER_XT_TARGET_MARK=y 480 482 CONFIG_NETFILTER_XT_TARGET_NFLOG=y … … 611 613 CONFIG_L2TP_IP=y 612 614 CONFIG_L2TP_ETH=y 613 CONFIG_STP= m615 CONFIG_STP=y 614 616 CONFIG_BRIDGE=y 615 617 # CONFIG_BRIDGE_IGMP_SNOOPING is not set … … 618 620 # CONFIG_VLAN_8021Q_GVRP is not set 619 621 # CONFIG_DECNET is not set 620 CONFIG_LLC= m622 CONFIG_LLC=y 621 623 # CONFIG_LLC2 is not set 622 624 # CONFIG_IPX is not set … … 798 800 # CONFIG_MTD_DOC2001PLUS is not set 799 801 # CONFIG_MTD_DOCG3 is not set 800 # CONFIG_MTD_AR7100_SPI_FLASH is not set801 # CONFIG_MTD_AR9100_PARALLEL_FLASH is not set802 802 CONFIG_WZRG450NH=y 803 803 # CONFIG_WZRG300NH2 is not set … … 813 813 # CONFIG_PARPORT is not set 814 814 # CONFIG_BLK_DEV is not set 815 # CONFIG_BLK_CPQ_DA is not set816 # CONFIG_BLK_CPQ_CISS_DA is not set817 # CONFIG_BLK_DEV_DAC960 is not set818 # CONFIG_BLK_DEV_UMEM is not set819 # CONFIG_BLK_DEV_COW_COMMON is not set820 # CONFIG_BLK_DEV_LOOP is not set821 822 #823 # DRBD disabled because PROC_FS, INET or CONNECTOR not selected824 #825 # CONFIG_BLK_DEV_NBD is not set826 # CONFIG_BLK_DEV_SX8 is not set827 # CONFIG_BLK_DEV_UB is not set828 # CONFIG_BLK_DEV_RAM is not set829 # CONFIG_CDROM_PKTCDVD is not set830 # CONFIG_ATA_OVER_ETH is not set831 # CONFIG_BLK_DEV_HD is not set832 # CONFIG_BLK_DEV_RBD is not set833 815 # CONFIG_MISC_DEVICES is not set 834 816 CONFIG_HAVE_IDE=y … … 898 880 # CONFIG_NETPOLL is not set 899 881 # CONFIG_NET_POLL_CONTROLLER is not set 900 CONFIG_NETFILTER_XT_TARGET_IMQ=y901 882 CONFIG_IMQ=y 902 883 # CONFIG_IMQ_BEHAVIOR_AA is not set … … 942 923 CONFIG_AR7242_S16_PHY=y 943 924 CONFIG_WZRG450=y 925 # CONFIG_ATHRS27_PHY is not set 944 926 # CONFIG_AR7242_VIR_PHY is not set 945 927 # CONFIG_AR7242_RTL8309G_PHY is not set … … 947 929 CONFIG_AG7240_GE1_IS_CONNECTED=y 948 930 CONFIG_AG7240_GE1_MII=y 931 # CONFIG_AG7240_GE1_GMII is not set 932 # CONFIG_AG7240_GE1_RGMII is not set 933 CONFIG_GE1_EXTERNAL_PHY=y 949 934 CONFIG_AR7240_S26_PHY=y 950 935 # CONFIG_S26_SWITCH_ONLY_MODE is not set … … 955 940 CONFIG_AG7240_MAC_LOCATION=0xbfff0000 956 941 # CONFIG_AG7240_USE_TRC is not set 957 CONFIG_AG7100_LEN_PER_TX_DS=1536958 942 # CONFIG_AG71XX is not set 959 943 # CONFIG_NET_VENDOR_MARVELL is not set … … 1250 1234 # CONFIG_USB_WHCI_HCD is not set 1251 1235 # CONFIG_USB_HWA_HCD is not set 1252 # CONFIG_USB_DWC_OTG is not set1253 1236 1254 1237 # … … 1281 1264 # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set 1282 1265 # CONFIG_USB_STORAGE_ENE_UB6250 is not set 1283 CONFIG_USB_UAS= y1266 CONFIG_USB_UAS=m 1284 1267 # CONFIG_USB_LIBUSUAL is not set 1285 1268 -
src/linux/universal/linux-3.2/arch/mips/Kconfig
r18294 r18337 874 874 depends on MACH_AR7240 875 875 876 config WASP_SUPPORT 877 bool "build system for WASP based board" 878 depends on MACH_AR7240 876 879 877 880 config AR7100_USB_GPIO_LED -
src/linux/universal/linux-3.2/arch/mips/ar7240/gpio_driver.c
r18312 r18337 74 74 spin_lock_irqsave(&ar71xx_gpio_lock, flags); 75 75 76 #ifdef CONFIG_WASP_SUPPORT 77 __raw_writel(__raw_readl(base + GPIO_REG_OE) | (1 << offset), 78 base + GPIO_REG_OE); 79 80 #else 76 81 __raw_writel(__raw_readl(base + GPIO_REG_OE) & ~(1 << offset), 77 82 base + GPIO_REG_OE); 78 83 #endif 79 84 spin_unlock_irqrestore(&ar71xx_gpio_lock, flags); 80 85 … … 99 104 else 100 105 __raw_writel(1 << offset, base + GPIO_REG_CLEAR); 101 106 #ifdef CONFIG_WASP_SUPPORT 107 __raw_writel(__raw_readl(base + GPIO_REG_OE) & ~(1 << offset), 108 base + GPIO_REG_OE); 109 110 #else 102 111 __raw_writel(__raw_readl(base + GPIO_REG_OE) | (1 << offset), 103 112 base + GPIO_REG_OE); 104 113 114 115 #endif 105 116 spin_unlock_irqrestore(&ar71xx_gpio_lock, flags); 106 117 -
src/linux/universal/linux-3.2/arch/mips/ar7240/platform.c
r18294 r18337 243 243 /* need to set clock appropriately */ 244 244 #ifdef CONFIG_MACH_HORNET 245 // ath_uart_data[0].uartclk = ar7240_ahb_freq;246 // ar933x_uart_data.uartclk = ar7240_ahb_freq;247 245 248 246 ath_uart_data[0].uartclk = ar71xx_ref_freq; -
src/linux/universal/linux-3.2/arch/mips/ar7240/setup.c
r18309 r18337 177 177 chip = "9341"; 178 178 rev = 0; 179 break; 180 case AR9344_REV_1_1: 181 chip = "9344"; 182 rev = 1; 183 break; 184 case AR9342_REV_1_1: 185 chip = "9342"; 186 rev = 1; 187 break; 188 case AR9341_REV_1_1: 189 chip = "9341"; 190 rev = 1; 179 191 break; 180 192 default: -
src/linux/universal/linux-3.2/arch/mips/include/asm/mach-ar7240/ar7240.h
r18312 r18337 528 528 #define AR7240_RESET AR7240_RESET_BASE+0x1c 529 529 #define AR7240_OBSERVATION_ENABLE AR7240_RESET_BASE+0x28 530 531 #define ATH_BOOTSTRAP_REG (AR7240_RESET_BASE + 0xb0) 532 #define ATH_REF_CLK_40 (1 << 4) /* 0 - 25MHz 1 - 40 MHz */ 533 #define ATH_DDR_WIDTH_32 (1 << 3) 534 535 #define AR7240_PCIE_WMAC_INT_STATUS AR7240_RESET_BASE+0xac 536 # define WMAC_MISC_INT (1 << 0) /* Indicates there is a WMAC Intr */ 537 # define WMAC_TX_INT (1 << 1) /* Reason of interrupt */ 538 # define WMAC_RXLP_INT (1 << 2) 539 # define WMAC_RXHP_INT (1 << 3) 540 # define PCIE_RC_INT (1 << 4) 541 # define PCIE_RC_INT0 (1 << 5) 542 # define PCIE_RC_INT1 (1 << 6) 543 # define PCIE_RC_INT2 (1 << 7) 544 # define PCIE_RC_INT3 (1 << 8) 545 546 # define PCI_WMAC_INTR (PCIE_RC_INT | PCIE_RC_INT0 | PCIE_RC_INT1 | \ 547 PCIE_RC_INT2 | PCIE_RC_INT3) 530 548 531 549 -
src/linux/universal/linux-3.2/arch/mips/pci/pci-ar71xx.c
r18171 r18337 384 384 void __iomem *ddr_base = ar71xx_ddr_base; 385 385 386 386 387 ar71xx_device_stop(RESET_MODULE_PCI_BUS | RESET_MODULE_PCI_CORE); 387 388 ar71xx_pci_delay(); -
src/linux/universal/linux-3.2/arch/mips/pci/pci-ar724x.c
r18171 r18337 21 21 #include <asm/mach-ar71xx/ar71xx.h> 22 22 #include <asm/mach-ar71xx/pci.h> 23 24 #include "ar7240.h" 23 25 24 26 #undef DEBUG … … 356 358 int ret = -ENOMEM; 357 359 360 #ifdef CONFIG_WASP_SUPPORT 361 if (is_ar9341()) { 362 return 0; 363 } 364 #endif 365 358 366 ar724x_pci_localcfg_base = ioremap_nocache(AR724X_PCI_CRP_BASE, 359 367 AR724X_PCI_CRP_SIZE); -
src/linux/universal/linux-3.2/drivers/net/ethernet/Kconfig
r18190 r18337 279 279 depends on AR7242_S16_PHY 280 280 281 config ATHRS27_PHY 282 bool "Atheros S27 Phy" 283 281 284 config AR7242_VIR_PHY 282 285 bool "AR7242 Vitual Switch" … … 302 305 bool "MII mode" 303 306 304 endchoice 307 config AG7240_GE1_GMII 308 bool "GMII mode" 309 310 config AG7240_GE1_RGMII 311 bool "RGMII mode" 312 313 endchoice 314 315 config GE1_EXTERNAL_PHY 316 bool "GE1 is connected to different PHY" 317 depends on AG7240_GE1_IS_CONNECTED 305 318 306 319 choice 307 320 prompt "PHY or switch used" 308 depends on AG7240321 depends on GE1_EXTERNAL_PHY 309 322 310 323 config AR7240_S26_PHY 311 324 bool "Atheros S26 Phy" 325 depends on GE1_EXTERNAL_PHY 312 326 313 327 config S26_SWITCH_ONLY_MODE -
src/linux/universal/linux-3.2/drivers/net/ethernet/ag7240/Makefile
r18171 r18337 5 5 6 6 obj-phy-$(CONFIG_AR7240_S26_PHY) += ar7240_s26_phy.o 7 obj-phy-$(CONFIG_AR7240_S26_VLAN_IGMP) += python_vlan_igmp.o7 obj-phy-$(CONFIG_AR7240_S26_VLAN_IGMP) += python_vlan_igmp.o 8 8 obj-phy-$(CONFIG_AR7242_RGMII_PHY) += athrf1_phy.o 9 9 obj-phy-$(CONFIG_AR7242_S16_PHY) += athrs16_phy.o 10 obj-phy-$(CONFIG_AR7242_RTL8309G_PHY) += rtl8309g_phy.o 10 obj-phy-$(CONFIG_ATHRS27_PHY) += athrs27_phy.o 11 obj-phy-$(CONFIG_AR7242_RTL8309G_PHY) += rtl8309g_phy.o 11 12 obj-phy-$(CONFIG_AR7242_VIR_PHY) += athr_vir_phy.o 12 13 -
src/linux/universal/linux-3.2/drivers/net/ethernet/ag7240/ag7240.c
r18295 r18337 70 70 #endif 71 71 void ar7240_s26_intr(void); 72 void ar7240_s27_intr(void); 72 73 void ag7240_dma_reset(ag7240_mac_t *mac); 73 74 … … 85 86 extern void athrs26_reg_dev(ag7240_mac_t **mac); 86 87 extern void athrs26_enable_linkIntrs(int ethUnit); 88 extern void athrs27_enable_linkintrs(int ethUnit); 87 89 extern void athrs26_disable_linkIntrs(int ethUnit); 90 extern void athrs27_disable_linkintrs(int ethUnit); 91 #ifdef CONFIG_ATHRS27_PHY 92 extern int athrs27_phy_is_link_alive(int phyUnit); 93 extern void athrs27_phy_stab_wr(int phy_id, int phy_up, int phy_speed); 94 extern uint32_t athrs27_reg_read(unsigned int s26_addr); 95 extern void athrs27_reg_write(unsigned int s26_addr, unsigned int s26_write_data); 96 void s27_wr_phy(unsigned int phy_addr, unsigned int reg_addr, unsigned int write_data); 97 #define athrs26_phy_is_link_alive athrs27_phy_is_link_alive 98 #define athrs26_phy_stab_wr athrs27_phy_stab_wr 99 #define s26_wr_phy s27_wr_phy 100 #define s26_rd_phy s27_rd_phy 101 #define athrs26_reg_write athrs27_reg_write 102 #define athrs26_reg_read athrs27_reg_read 103 #else 88 104 extern int athrs26_phy_is_link_alive(int phyUnit); 89 105 extern void athrs26_phy_stab_wr(int phy_id, int phy_up, int phy_speed); … … 91 107 extern void athrs26_reg_write(unsigned int s26_addr, unsigned int s26_write_data); 92 108 extern void s26_wr_phy(unsigned int phy_addr, unsigned int reg_addr, unsigned int write_data); 93 109 #endif 94 110 char *mii_str[2][4] = { 95 111 {"GMii", "Mii", "RGMii", "RMii"}, … … 310 326 #endif 311 327 312 if (is_ar7240() || is_ar7241() || is_ar933x() || (is_ar7242() && mac->mac_unit == 1)) 328 if (is_ar7240() || is_ar7241() || is_ar933x() || is_ar934x() || (is_ar7242() && mac->mac_unit == 1)) 329 #ifdef CONFIG_ATHRS27_PHY 330 athrs27_enable_linkintrs(mac->mac_unit); 331 #else 313 332 athrs26_enable_linkIntrs(mac->mac_unit); 314 333 #endif 315 334 ag7240_rx_start(mac); 316 335 netif_start_queue(dev); … … 466 485 if (mac_has_flag(mac,ATHR_S26_HEADER) || mac_has_flag(mac,ATHR_S16_HEADER)) 467 486 ag7240_reg_rmw_clear(mac, AG7240_MAC_CFG2, AG7240_MAC_CFG2_LEN_CHECK) 487 488 if (is_ar934x() && is_s27()) { 489 if (!is_emu()) { 490 printk("WASP ----> S27 PHY MDIO\n"); 491 mgmt_cfg_val = 7; 492 //athr_swap_phy(); 493 ar7240_reg_wr(ATHR_SWITCH_CLK_SPARE,(ar7240_reg_rd(ATHR_SWITCH_CLK_SPARE)|0x40)); 494 ag7240_reg_wr(ag7240_macs[1], AG7240_MAC_MII_MGMT_CFG, mgmt_cfg_val | (1 << 31)); 495 ag7240_reg_wr(ag7240_macs[1], AG7240_MAC_MII_MGMT_CFG, mgmt_cfg_val); 496 497 if (mac_has_flag(mac,ETH_SWONLY_MODE)) { 498 ar7240_reg_rmw_set(AG7240_ETH_CFG, AG7240_ETH_CFG_SW_ONLY_MODE); 499 ag7240_reg_rmw_set(ag7240_macs[0], AG7240_MAC_CFG1, AG7240_MAC_CFG1_SOFT_RST);; 500 } 501 //athr_reg_rmw_set(ATHR_GMAC_ETH_CFG, ATHR_GMAC_ETH_CFG_SW_APB_ACCESS); 502 } 503 else { 504 printk("WASP EMULATION ----> S27 PHY\n"); 505 mgmt_cfg_val = 7; 506 ag7240_reg_wr(ag7240_macs[1], AG7240_MAC_MII_MGMT_CFG, mgmt_cfg_val | (1 << 31)); 507 ag7240_reg_wr(ag7240_macs[1], AG7240_MAC_MII_MGMT_CFG, mgmt_cfg_val); 508 } 509 return; 510 511 } 512 513 468 514 /* 469 515 * set the mii if type - NB reg not in the gigE space … … 554 600 ag7240_reg_wr(mac, AG7240_MAC_MII_MGMT_CFG, mgmt_cfg_val | (1 << 31)); 555 601 ag7240_reg_wr(mac, AG7240_MAC_MII_MGMT_CFG, mgmt_cfg_val); 556 if(athrs26_mdc_check() == 0)557 break;602 // if(athrs26_mdc_check() == 0) 603 // break; 558 604 } 559 605 if(check_cnt == 11) … … 645 691 ag7240_tx_stop(mac); 646 692 ag7240_int_disable(mac); 693 #ifdef CONFIG_ATHRS27_PHY 694 athrs27_disable_linkintrs(mac->mac_unit); 695 #else 647 696 athrs26_disable_linkIntrs(mac->mac_unit); 697 698 #endif 648 699 /* 649 700 * put everything into reset. … … 1573 1624 ag7240_link_intr(int cpl, void *dev_id) { 1574 1625 1626 #ifdef CONFIG_ATHRS27_PHY 1627 ar7240_s27_intr(); 1628 #else 1575 1629 ar7240_s26_intr(); 1630 #endif 1576 1631 return IRQ_HANDLED; 1577 1632 } -
src/linux/universal/linux-3.2/drivers/net/ethernet/ag7240/ag7240.h
r18171 r18337 152 152 struct napi_struct mac_napi; 153 153 #endif 154 uint 16_t mac_flags;154 uint32_t mac_flags; 155 155 }ag7240_mac_t; 156 156 … … 424 424 #define AG7240_ETH_CFG_SW_PHY_ADDR_SWAP (1<<8) 425 425 426 #define ATHR_SWITCH_CLK_SPARE 0x18050024 427 426 428 /* 427 429 * Everything but TX … … 644 646 #define ATHR_S16_HEADER 0x0020 645 647 #define ETH_PKT_INSPECT 0x0040 648 #define ATHR_S27_HEADER 0x00010000 649 #define ATHR_DUAL_PHY 0x00040000 646 650 647 651 static inline int -
src/linux/universal/linux-3.2/drivers/net/ethernet/ag7240/ag7240_phy.h
r18294 r18337 24 24 25 25 #include "ar7240_s26_phy.h" 26 #endif 26 27 #ifdef CONFIG_AR7242_RGMII_PHY 27 28 #include "athrf1_phy.h" … … 29 30 #ifdef CONFIG_AR7242_S16_PHY 30 31 #include "athrs16_phy.h" 32 #endif 33 #define is_emu() (0) 34 35 #ifdef CONFIG_ATHRS27_PHY 36 #include "athrs27_phy.h" 37 #undef is_s27 38 #ifdef CONFIG_ATHR_SUPPORT_DUAL_PHY 39 #define is_s27()(mac->mac_unit == 1) 40 #else 41 #define is_s27()(1) 42 #endif 43 #else 44 #define is_s27() (0) 31 45 #endif 32 46 … … 45 59 static inline void athrs_reg_dev(ag7240_mac_t **ag7240_macs) 46 60 { 61 #ifdef CONFIG_ATHRS27_PHY 62 athrs27_reg_dev(ag7240_macs); 63 64 #else 47 65 #if defined(CONFIG_AR7242_S16_PHY) 48 66 if (is_ar7242()) … … 50 68 #endif 51 69 athrs26_reg_dev(ag7240_macs); 52 70 #endif 53 71 return ; 54 72 … … 59 77 ag7240_mac_t *mac = (ag7240_mac_t *)netdev_priv(dev); 60 78 int ret = -1; 61 79 #ifdef CONFIG_ATHRS27_PHY 80 ret = 0;//athrs27_ioctl(dev,ifr, cmd); 81 #else 62 82 if (is_ar7240() || mac->mac_unit == 1) 63 83 ret = athrs26_ioctl(dev,ifr, cmd); 84 #endif 64 85 #ifdef CONFIG_AR7242_S16_PHY 65 86 else if(is_ar7242()) … … 80 101 else 81 102 #else 103 #ifdef CONFIG_ATHRS27_PHY 104 if (unit == 0) 105 athrs27_reg_init(unit); 106 #else 82 107 #ifndef CONFIG_AR7242_S16_PHY 83 108 if (unit == 0) … … 87 112 athrs16_reg_init(unit); 88 113 #endif 114 #endif 89 115 else 90 116 #endif 117 #ifdef CONFIG_ATHRS27_PHY 118 athrs27_reg_init_lan(unit); 119 #else 91 120 athrs26_reg_init_lan(unit); 121 #endif 92 122 } 93 123 … … 100 130 } else 101 131 #endif 132 #ifdef CONFIG_ATHRS27_PHY 133 athrs27_phy_setup (unit); 134 #else 102 135 if (is_ar7241() || is_ar7240() || is_ar933x()) 103 136 athrs26_phy_setup (unit); 104 137 else if (is_ar7242() && unit == 1) 105 138 athrs26_phy_setup (unit); 139 #endif 106 140 #ifdef CONFIG_AR7242_RGMII_PHY 107 141 else if (is_ar7242() && unit == 0) … … 126 160 else 127 161 #endif 128 162 #ifdef CONFIG_ATHRS27_PHY 163 *link=athrs27_phy_is_up(unit); 164 *fdx=athrs27_phy_is_fdx(unit, phyUnit); 165 *speed=athrs27_phy_speed(unit, phyUnit); 166 #else 129 167 if (is_ar7240() || is_ar7241() || (is_ar7242() && unit == 1) || is_ar933x()) { 130 168 *link=ag7240_phy_is_up(unit); … … 132 170 *speed=ag7240_phy_speed(unit, phyUnit); 133 171 } 172 #endif 134 173 #ifdef CONFIG_AR7242_RGMII_PHY 135 174 else if(is_ar7242() && unit == 0){ … … 162 201 return -1; 163 202 } 164 #else 165 #error unknown PHY type PHY not configured in config.h 166 #endif 167 168 #endif 169 203 204 #endif 205 -
src/linux/universal/linux-3.2/init/main.c
r18294 r18337 574 574 * this. But we do want output early, in case something goes wrong. 575 575 */ 576 printk(KERN_EMERG "console initcall\n");577 576 console_init(); 578 printk(KERN_EMERG "console initcall done\n");579 577 if (panic_later) 580 578 panic(panic_later, panic_param);
Note: See TracChangeset
for help on using the changeset viewer.
