Changeset 12963
- Timestamp:
- 09/23/09 16:26:05 (4 years ago)
- Location:
- src/linux/rt2880/linux-2.6.23
- Files:
-
- 6 edited
-
.config (modified) (23 diffs)
-
arch/mips/rt2880/reset.c (modified) (1 diff)
-
drivers/char/ralink_gpio.c (modified) (3 diffs)
-
drivers/net/raeth/raether.c (modified) (1 diff)
-
drivers/usb/core/hub.c (modified) (4 diffs)
-
drivers/usb/dwc_otg/dwc_otg_driver.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/rt2880/linux-2.6.23/.config
r12861 r12963 2 2 # Automatically generated make config: don't edit 3 3 # Linux kernel version: 2.6.23.17 4 # Mon Sep 7 18:30:1620094 # Wed Sep 23 15:36:54 2009 5 5 # 6 6 CONFIG_MIPS=y … … 9 9 # Machine selection 10 10 # 11 CONFIG_RALINK_RT 2880_MP=y12 CONFIG_RALINK_RT2880=y 11 CONFIG_RALINK_RT3052_MP2=y 12 # CONFIG_RALINK_RT2880 is not set 13 13 # CONFIG_RALINK_RT2883 is not set 14 # CONFIG_RALINK_RT3052 is not set 14 CONFIG_RALINK_RT3052=y 15 15 # CONFIG_MACH_ALCHEMY is not set 16 16 # CONFIG_BASLER_EXCITE is not set … … 48 48 # CONFIG_TOSHIBA_RBTX4938 is not set 49 49 # CONFIG_WR_PPMC is not set 50 CONFIG_RT2880_ASIC=y 51 # CONFIG_RT2860V2_2850 is not set 52 CONFIG_FLASH_REMAP_NEED=y 50 CONFIG_RT3052_ASIC=y 51 CONFIG_RALINK_RT3050_1T1R=y 52 # CONFIG_RALINK_RT3051_1T2R is not set 53 # CONFIG_RALINK_RT3052_2T2R is not set 53 54 # CONFIG_RT2880_DRAM_8M is not set 54 55 # CONFIG_RT2880_DRAM_16M is not set 55 56 CONFIG_RT2880_DRAM_32M=y 56 57 # CONFIG_RT2880_DRAM_64M is not set 57 # CONFIG_RT2880_FLASH_2M is not set 58 CONFIG_RT2880_FLASH_4M=y 59 # CONFIG_RT2880_FLASH_8M is not set 60 # CONFIG_RT2880_FLASH_16M is not set 58 # CONFIG_RT2880_FLASH_32M is not set 61 59 CONFIG_RALINK_RAM_SIZE=32 62 60 CONFIG_MTD_PHYSMAP_START=0xBF000000 63 CONFIG_MTD_PHYSMAP_LEN=0x 40000061 CONFIG_MTD_PHYSMAP_LEN=0x1000000 64 62 CONFIG_MTD_PHYSMAP_BUSWIDTH=2 65 63 # CONFIG_RT2880_ROOTFS_IN_RAM is not set … … 97 95 # 98 96 # CONFIG_CPU_LOONGSON2 is not set 99 CONFIG_CPU_MIPS32_R1=y 100 # CONFIG_CPU_MIPS32_R2 is not set 97 # CONFIG_CPU_MIPS32_R1 is not set 98 CONFIG_CPU_MIPS32_R2=y 101 99 # CONFIG_CPU_MIPS64_R1 is not set 102 100 # CONFIG_CPU_MIPS64_R2 is not set … … 117 115 # CONFIG_CPU_SB1 is not set 118 116 CONFIG_SYS_HAS_CPU_MIPS32_R1=y 117 CONFIG_SYS_HAS_CPU_MIPS32_R2=y 119 118 CONFIG_CPU_MIPS32=y 120 CONFIG_CPU_MIPSR 1=y119 CONFIG_CPU_MIPSR2=y 121 120 CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y 122 121 CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y … … 191 190 # CONFIG_RELAY is not set 192 191 # CONFIG_BLK_DEV_INITRD is not set 193 # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 192 CONFIG_CC_OPTIMIZE_FOR_SIZE=y 194 193 CONFIG_SYSCTL=y 195 194 CONFIG_EMBEDDED=y … … 197 196 # CONFIG_KALLSYMS is not set 198 197 CONFIG_HOTPLUG=y 199 CONFIG_PRINTK=y 198 # CONFIG_PRINTK is not set 200 199 # CONFIG_BUG is not set 201 200 CONFIG_ETHTOOL=y … … 242 241 # Bus options (PCI, PCMCIA, EISA, ISA, TC) 243 242 # 244 CONFIG_HW_HAS_PCI=y245 # CONFIG_PCI is not set246 243 # CONFIG_ARCH_SUPPORTS_MSI is not set 247 244 CONFIG_MMU=y … … 262 259 # Power management options 263 260 # 264 # CONFIG_PM is not set 261 CONFIG_PM=y 262 # CONFIG_PM_LEGACY is not set 263 # CONFIG_PM_DEBUG is not set 265 264 CONFIG_SUSPEND_UP_POSSIBLE=y 265 # CONFIG_SUSPEND is not set 266 266 267 267 # … … 556 556 # CONFIG_MAC80211 is not set 557 557 # CONFIG_IEEE80211 is not set 558 # CONFIG_RFKILL is not set 558 CONFIG_RFKILL=y 559 # CONFIG_RFKILL_INPUT is not set 559 560 # CONFIG_NET_9P is not set 560 561 … … 650 651 # 651 652 CONFIG_MTD_RALINK=y 652 # CONFIG_MTD_ESR6650 is not set 653 CONFIG_MTD_AR670W=y 653 CONFIG_MTD_ESR6650=y 654 # CONFIG_MTD_AR670W is not set 654 655 # CONFIG_MTD_COMPLEX_MAPPINGS is not set 655 656 # CONFIG_MTD_PHYSMAP is not set … … 684 685 # CONFIG_BLK_DEV_LOOP is not set 685 686 # CONFIG_BLK_DEV_NBD is not set 687 # CONFIG_BLK_DEV_UB is not set 686 688 # CONFIG_BLK_DEV_RAM is not set 687 689 # CONFIG_CDROM_PKTCDVD is not set … … 694 696 # 695 697 # CONFIG_RAID_ATTRS is not set 696 # CONFIG_SCSI is not set 697 # CONFIG_SCSI_DMA is not set 698 CONFIG_SCSI=y 699 CONFIG_SCSI_DMA=y 700 CONFIG_SCSI_TGT=y 698 701 # CONFIG_SCSI_NETLINK is not set 702 CONFIG_SCSI_PROC_FS=y 703 704 # 705 # SCSI support type (disk, tape, CD-ROM) 706 # 707 CONFIG_BLK_DEV_SD=y 708 # CONFIG_CHR_DEV_ST is not set 709 # CONFIG_CHR_DEV_OSST is not set 710 CONFIG_BLK_DEV_SR=y 711 # CONFIG_BLK_DEV_SR_VENDOR is not set 712 CONFIG_CHR_DEV_SG=y 713 # CONFIG_CHR_DEV_SCH is not set 714 715 # 716 # Some SCSI devices (e.g. CD jukebox) support multiple LUNs 717 # 718 # CONFIG_SCSI_MULTI_LUN is not set 719 # CONFIG_SCSI_CONSTANTS is not set 720 # CONFIG_SCSI_LOGGING is not set 721 # CONFIG_SCSI_SCAN_ASYNC is not set 722 CONFIG_SCSI_WAIT_SCAN=m 723 724 # 725 # SCSI Transports 726 # 727 # CONFIG_SCSI_SPI_ATTRS is not set 728 # CONFIG_SCSI_FC_ATTRS is not set 729 # CONFIG_SCSI_ISCSI_ATTRS is not set 730 # CONFIG_SCSI_SAS_LIBSAS is not set 731 # CONFIG_SCSI_LOWLEVEL is not set 699 732 # CONFIG_ATA is not set 700 733 # CONFIG_MD is not set … … 733 766 CONFIG_RAETH=y 734 767 CONFIG_RAETH_NAPI=y 735 # CONFIG_RAETH_JUMBOFRAME is not set 736 CONFIG_RAETH_ROUTER=y 737 # CONFIG_MAC_TO_MAC_MODE is not set 738 # CONFIG_GIGAPHY is not set 768 # CONFIG_RAETH_QOS is not set 769 CONFIG_RT_3052_ESW=y 739 770 CONFIG_LAN_WAN_SUPPORT=y 740 # CONFIG_WAN_AT_P4 is not set 741 CONFIG_WAN_AT_P0=y 771 CONFIG_WAN_AT_P4=y 772 # CONFIG_WAN_AT_P0 is not set 773 # CONFIG_ESW_DOUBLE_VLAN_TAG is not set 774 # CONFIG_RAETH_RT3052_P5 is not set 742 775 CONFIG_NET_ETHERNET=y 743 776 CONFIG_MII=y … … 753 786 CONFIG_WLAN_80211=y 754 787 # CONFIG_LIBERTAS is not set 788 # CONFIG_USB_ZD1201 is not set 755 789 # CONFIG_HOSTAP is not set 756 790 CONFIG_RT2860V2_AP=m … … 761 795 CONFIG_RT2860V2_AP_MBSS=y 762 796 CONFIG_RT2860V2_AP_APCLI=y 763 CONFIG_RT2860V2_AP_IGMP_SNOOP=y 797 # CONFIG_RT2860V2_AP_IGMP_SNOOP is not set 764 798 # CONFIG_RT2860V2_AP_NETIF_BLOCK is not set 765 799 # CONFIG_RT2860V2_AP_DFS is not set … … 777 811 # CONFIG_RT2860V2_STA_CARRIER is not set 778 812 CONFIG_RT2860V2_STA_DLS=y 813 814 # 815 # USB Network Adapters 816 # 817 # CONFIG_USB_CATC is not set 818 # CONFIG_USB_KAWETH is not set 819 # CONFIG_USB_PEGASUS is not set 820 # CONFIG_USB_RTL8150 is not set 821 # CONFIG_USB_USBNET_MII is not set 822 # CONFIG_USB_USBNET is not set 823 CONFIG_USB_HSO=m 779 824 # CONFIG_WAN is not set 780 825 CONFIG_PPP=y … … 839 884 # CONFIG_RALINK_PCM is not set 840 885 # CONFIG_RALINK_I2S is not set 841 # CONFIG_VT is not set 842 # CONFIG_SERIAL_NONSTANDARD is not set 886 CONFIG_VT=y 887 CONFIG_VT_CONSOLE=y 888 CONFIG_HW_CONSOLE=y 889 # CONFIG_VT_HW_CONSOLE_BINDING is not set 890 CONFIG_SERIAL_NONSTANDARD=y 843 891 # CONFIG_MOXA is not set 892 # CONFIG_MOXA_SMARTIO is not set 893 CONFIG_N_HDLC=m 894 # CONFIG_RISCOM8 is not set 895 # CONFIG_SPECIALIX is not set 896 # CONFIG_RIO is not set 897 # CONFIG_STALDRV is not set 844 898 845 899 # … … 872 926 # 873 927 # CONFIG_SOFT_WATCHDOG is not set 928 929 # 930 # USB-based Watchdog Cards 931 # 932 # CONFIG_USBPCWATCHDOG is not set 874 933 # CONFIG_HW_RANDOM is not set 875 934 # CONFIG_RTC is not set … … 914 973 915 974 # 975 # Console display driver support 976 # 977 CONFIG_VGA_CONSOLE=y 978 # CONFIG_VGACON_SOFT_SCROLLBACK is not set 979 CONFIG_DUMMY_CONSOLE=y 980 981 # 916 982 # Sound 917 983 # 918 984 # CONFIG_SOUND is not set 919 985 # CONFIG_HID_SUPPORT is not set 920 # CONFIG_USB_SUPPORT is not set 986 CONFIG_USB_SUPPORT=y 987 # CONFIG_USB_ARCH_HAS_OHCI is not set 988 # CONFIG_USB_ARCH_HAS_EHCI is not set 989 CONFIG_USB=y 990 # CONFIG_USB_DEBUG is not set 991 992 # 993 # Miscellaneous USB options 994 # 995 CONFIG_USB_DEVICEFS=y 996 CONFIG_USB_DEVICE_CLASS=y 997 CONFIG_USB_DYNAMIC_MINORS=y 998 CONFIG_USB_SUSPEND=y 999 # CONFIG_USB_PERSIST is not set 1000 # CONFIG_USB_OTG is not set 1001 1002 # 1003 # USB Host Controller Drivers 1004 # 1005 # CONFIG_USB_ISP116X_HCD is not set 1006 # CONFIG_USB_SL811_HCD is not set 1007 # CONFIG_USB_R8A66597_HCD is not set 1008 1009 # 1010 # USB Device Class drivers 1011 # 1012 # CONFIG_USB_ACM is not set 1013 CONFIG_USB_PRINTER=m 1014 1015 # 1016 # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' 1017 # 1018 1019 # 1020 # may also be needed; see USB_STORAGE Help for more information 1021 # 1022 CONFIG_USB_STORAGE=y 1023 # CONFIG_USB_STORAGE_DEBUG is not set 1024 # CONFIG_USB_STORAGE_DATAFAB is not set 1025 # CONFIG_USB_STORAGE_FREECOM is not set 1026 # CONFIG_USB_STORAGE_DPCM is not set 1027 # CONFIG_USB_STORAGE_USBAT is not set 1028 # CONFIG_USB_STORAGE_SDDR09 is not set 1029 # CONFIG_USB_STORAGE_SDDR55 is not set 1030 # CONFIG_USB_STORAGE_JUMPSHOT is not set 1031 # CONFIG_USB_STORAGE_ALAUDA is not set 1032 # CONFIG_USB_STORAGE_KARMA is not set 1033 CONFIG_USB_LIBUSUAL=y 1034 1035 # 1036 # USB Imaging devices 1037 # 1038 # CONFIG_USB_MDC800 is not set 1039 # CONFIG_USB_MICROTEK is not set 1040 # CONFIG_USB_MON is not set 1041 1042 # 1043 # USB port drivers 1044 # 1045 1046 # 1047 # USB Serial Converter support 1048 # 1049 CONFIG_USB_SERIAL=y 1050 # CONFIG_USB_SERIAL_CONSOLE is not set 1051 # CONFIG_USB_SERIAL_GENERIC is not set 1052 # CONFIG_USB_SERIAL_AIRCABLE is not set 1053 # CONFIG_USB_SERIAL_AIRPRIME is not set 1054 # CONFIG_USB_SERIAL_ARK3116 is not set 1055 # CONFIG_USB_SERIAL_BELKIN is not set 1056 # CONFIG_USB_SERIAL_WHITEHEAT is not set 1057 # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set 1058 # CONFIG_USB_SERIAL_CP2101 is not set 1059 # CONFIG_USB_SERIAL_CYPRESS_M8 is not set 1060 # CONFIG_USB_SERIAL_EMPEG is not set 1061 # CONFIG_USB_SERIAL_FTDI_SIO is not set 1062 # CONFIG_USB_SERIAL_FUNSOFT is not set 1063 # CONFIG_USB_SERIAL_VISOR is not set 1064 # CONFIG_USB_SERIAL_IPAQ is not set 1065 # CONFIG_USB_SERIAL_IR is not set 1066 # CONFIG_USB_SERIAL_EDGEPORT is not set 1067 # CONFIG_USB_SERIAL_EDGEPORT_TI is not set 1068 # CONFIG_USB_SERIAL_GARMIN is not set 1069 # CONFIG_USB_SERIAL_IPW is not set 1070 # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set 1071 # CONFIG_USB_SERIAL_KEYSPAN is not set 1072 # CONFIG_USB_SERIAL_KLSI is not set 1073 # CONFIG_USB_SERIAL_KOBIL_SCT is not set 1074 # CONFIG_USB_SERIAL_MCT_U232 is not set 1075 # CONFIG_USB_SERIAL_MOS7720 is not set 1076 # CONFIG_USB_SERIAL_MOS7840 is not set 1077 # CONFIG_USB_SERIAL_NAVMAN is not set 1078 # CONFIG_USB_SERIAL_PL2303 is not set 1079 # CONFIG_USB_SERIAL_OTI6858 is not set 1080 # CONFIG_USB_SERIAL_HP4X is not set 1081 # CONFIG_USB_SERIAL_SAFE is not set 1082 CONFIG_USB_SERIAL_SIERRAWIRELESS=m 1083 # CONFIG_USB_SERIAL_TI is not set 1084 # CONFIG_USB_SERIAL_CYBERJACK is not set 1085 # CONFIG_USB_SERIAL_XIRCOM is not set 1086 CONFIG_USB_SERIAL_OPTION=m 1087 # CONFIG_USB_SERIAL_OMNINET is not set 1088 # CONFIG_USB_SERIAL_DEBUG is not set 1089 1090 # 1091 # USB Miscellaneous drivers 1092 # 1093 # CONFIG_USB_EMI62 is not set 1094 # CONFIG_USB_EMI26 is not set 1095 # CONFIG_USB_ADUTUX is not set 1096 # CONFIG_USB_AUERSWALD is not set 1097 # CONFIG_USB_RIO500 is not set 1098 # CONFIG_USB_LEGOTOWER is not set 1099 # CONFIG_USB_LCD is not set 1100 # CONFIG_USB_BERRY_CHARGE is not set 1101 # CONFIG_USB_LED is not set 1102 # CONFIG_USB_CYPRESS_CY7C63 is not set 1103 # CONFIG_USB_CYTHERM is not set 1104 # CONFIG_USB_PHIDGET is not set 1105 # CONFIG_USB_IDMOUSE is not set 1106 # CONFIG_USB_FTDI_ELAN is not set 1107 # CONFIG_USB_APPLEDISPLAY is not set 1108 # CONFIG_USB_LD is not set 1109 # CONFIG_USB_TRANCEVIBRATOR is not set 1110 # CONFIG_USB_IOWARRIOR is not set 1111 # CONFIG_USB_TEST is not set 1112 1113 # 1114 # USB DSL modem support 1115 # 1116 1117 # 1118 # USB Gadget Support 1119 # 1120 # CONFIG_USB_GADGET is not set 1121 CONFIG_DWC_OTG=y 1122 CONFIG_DWC_OTG_HOST_ONLY=y 1123 # CONFIG_DWC_OTG_DEVICE_ONLY is not set 1124 # CONFIG_DWC_OTG_DEBUG is not set 1125 1126 # 1127 # USB Network Adapters 1128 # 921 1129 # CONFIG_MMC is not set 922 1130 # CONFIG_NEW_LEDS is not set … … 1019 1227 # CONFIG_NFSD is not set 1020 1228 # CONFIG_SMB_FS is not set 1021 # CONFIG_CIFS is not set 1229 CONFIG_CIFS=m 1230 # CONFIG_CIFS_STATS is not set 1231 CONFIG_CIFS_WEAK_PW_HASH=y 1232 # CONFIG_CIFS_XATTR is not set 1233 # CONFIG_CIFS_DEBUG2 is not set 1234 # CONFIG_CIFS_EXPERIMENTAL is not set 1022 1235 # CONFIG_NCP_FS is not set 1023 1236 # CONFIG_CODA_FS is not set … … 1033 1246 # Native Language Support 1034 1247 # 1035 # CONFIG_NLS is not set 1248 CONFIG_NLS=m 1249 CONFIG_NLS_DEFAULT="iso8859-1" 1250 # CONFIG_NLS_CODEPAGE_437 is not set 1251 # CONFIG_NLS_CODEPAGE_737 is not set 1252 # CONFIG_NLS_CODEPAGE_775 is not set 1253 # CONFIG_NLS_CODEPAGE_850 is not set 1254 # CONFIG_NLS_CODEPAGE_852 is not set 1255 # CONFIG_NLS_CODEPAGE_855 is not set 1256 # CONFIG_NLS_CODEPAGE_857 is not set 1257 # CONFIG_NLS_CODEPAGE_860 is not set 1258 # CONFIG_NLS_CODEPAGE_861 is not set 1259 # CONFIG_NLS_CODEPAGE_862 is not set 1260 # CONFIG_NLS_CODEPAGE_863 is not set 1261 # CONFIG_NLS_CODEPAGE_864 is not set 1262 # CONFIG_NLS_CODEPAGE_865 is not set 1263 # CONFIG_NLS_CODEPAGE_866 is not set 1264 # CONFIG_NLS_CODEPAGE_869 is not set 1265 # CONFIG_NLS_CODEPAGE_936 is not set 1266 # CONFIG_NLS_CODEPAGE_950 is not set 1267 # CONFIG_NLS_CODEPAGE_932 is not set 1268 # CONFIG_NLS_CODEPAGE_949 is not set 1269 # CONFIG_NLS_CODEPAGE_874 is not set 1270 # CONFIG_NLS_ISO8859_8 is not set 1271 # CONFIG_NLS_CODEPAGE_1250 is not set 1272 # CONFIG_NLS_CODEPAGE_1251 is not set 1273 # CONFIG_NLS_ASCII is not set 1274 # CONFIG_NLS_ISO8859_1 is not set 1275 # CONFIG_NLS_ISO8859_2 is not set 1276 # CONFIG_NLS_ISO8859_3 is not set 1277 # CONFIG_NLS_ISO8859_4 is not set 1278 # CONFIG_NLS_ISO8859_5 is not set 1279 # CONFIG_NLS_ISO8859_6 is not set 1280 # CONFIG_NLS_ISO8859_7 is not set 1281 # CONFIG_NLS_ISO8859_9 is not set 1282 # CONFIG_NLS_ISO8859_13 is not set 1283 # CONFIG_NLS_ISO8859_14 is not set 1284 # CONFIG_NLS_ISO8859_15 is not set 1285 # CONFIG_NLS_KOI8_R is not set 1286 # CONFIG_NLS_KOI8_U is not set 1287 # CONFIG_NLS_UTF8 is not set 1036 1288 1037 1289 # … … 1049 1301 # 1050 1302 CONFIG_TRACE_IRQFLAGS_SUPPORT=y 1051 # CONFIG_PRINTK_TIME is not set1052 1303 # CONFIG_ENABLE_MUST_CHECK is not set 1053 1304 # CONFIG_MAGIC_SYSRQ is not set -
src/linux/rt2880/linux-2.6.23/arch/mips/rt2880/reset.c
r10741 r12963 46 46 static void mips_machine_halt(void); 47 47 static void mips_machine_power_off(void); 48 extern void ralink_reset(int reset_pin); 48 49 49 50 static void mips_machine_restart(char *command) 50 51 { 52 #ifdef CONFIG_MTD_ESR6650 53 ralink_reset(7); 54 #else 51 55 *(volatile unsigned int*)(SOFTRES_REG) = GORESET; 56 #endif 52 57 } 53 58 -
src/linux/rt2880/linux-2.6.23/drivers/char/ralink_gpio.c
r10746 r12963 24 24 #include <linux/kernel.h> 25 25 #include <linux/interrupt.h> 26 #include <linux/delay.h> 26 27 #include <linux/fs.h> 27 28 #ifdef CONFIG_RALINK_GPIO_LED … … 68 69 ralink_gpio_reg_info info; 69 70 71 void ralink_reset(int reset_pin) 72 { 73 unsigned long piodir,piodata; 74 75 piodir = le32_to_cpu(*(volatile u32 *)(RALINK_REG_PIODIR)); 76 piodir |= (1L << reset_pin); 77 *(volatile u32 *)(RALINK_REG_PIODIR) = cpu_to_le32(piodir); 78 79 piodata = le32_to_cpu(*(volatile u32 *)(RALINK_REG_PIODATA)); 80 udelay(10); 81 piodata &= ~(1L << reset_pin); 82 *(volatile u32 *)(RALINK_REG_PIODATA) = cpu_to_le32(piodata); 83 mdelay(100); /* G693L : output low 140ms after power on */ 84 piodata |= (1L << reset_pin); 85 *(volatile u32 *)(RALINK_REG_PIODATA) = cpu_to_le32(piodata); 86 } 87 88 void ralink_gpio_control(int gpio,int level) 89 { 90 unsigned long piodir,piodata; 91 92 piodir = le32_to_cpu(*(volatile u32 *)(RALINK_REG_PIODIR)); 93 piodir |= (1L << gpio); 94 *(volatile u32 *)(RALINK_REG_PIODIR) = cpu_to_le32(piodir); 95 piodata = le32_to_cpu(*(volatile u32 *)(RALINK_REG_PIODATA)); 96 97 if(level) 98 piodata |= (1L << gpio); 99 else 100 piodata &= ~(1L << gpio); 101 102 *(volatile u32 *)(RALINK_REG_PIODATA) = cpu_to_le32(piodata); 103 } 70 104 71 105 int ralink_gpio_ioctl(struct inode *inode, struct file *file, unsigned int req, … … 456 490 ralink_gpio_led_init_timer(); 457 491 #endif 492 #ifdef CONFIG_MTD_ESR6650 493 ralink_gpio_control(3,1); /* RX_SW pill high */ 494 ralink_gpio_control(5,0); 495 #endif 496 458 497 printk("Ralink gpio driver initialized\n"); 459 498 return 0; -
src/linux/rt2880/linux-2.6.23/drivers/net/raeth/raether.c
r12523 r12963 1676 1676 mii_mgr_write(0, 31, 0x8000); //---> select local register 1677 1677 for(i=0;i<5;i++){ 1678 mii_mgr_write(i, 26, 0x160 1); //TX10 waveform coefficient1678 mii_mgr_write(i, 26, 0x1600); //TX10 waveform coefficient 1679 1679 mii_mgr_write(i, 29, 0x7058); //TX100/TX10 AD/DA current bias 1680 1680 mii_mgr_write(i, 30, 0x0018); //TX100 slew rate control 1681 1681 } 1682 1682 /* PHY IOT */ 1683 mii_mgr_write(0, 31, 0x0); //select global register 1684 mii_mgr_write(0, 22, 0x052f); //tune TP_IDL tail and head waveform 1685 mii_mgr_write(0, 17, 0x0fe0); //set TX10 signal amplitude threshold to minimum 1686 mii_mgr_write(0, 18, 0x40ba); //set squelch amplitude to higher threshold 1687 mii_mgr_write(0, 14, 0x65); //longer TP_IDL tail length 1688 mii_mgr_write(0, 31, 0x8000); //select local register 1689 1683 //mii_mgr_write(0, 31, 0x0); //select global register 1684 //mii_mgr_write(0, 22, 0x052f); //tune TP_IDL tail and head waveform 1685 //mii_mgr_write(0, 17, 0x0fe0); //set TX10 signal amplitude threshold to minimum 1686 //mii_mgr_write(0, 18, 0x40ba); //set squelch amplitude to higher threshold 1687 //mii_mgr_write(0, 14, 0x65); //longer TP_IDL tail length 1688 //mii_mgr_write(0, 31, 0x8000); //select local register 1689 1690 mii_mgr_write(0, 31, 0x0); //select global register 1691 mii_mgr_write(0, 1, 0x4a40); //enlarge agcsel threshold 3 and threshold 2 1692 mii_mgr_write(0, 2, 0x6254); //enlarge agcsel threshold 5 and threshold 4 1693 mii_mgr_write(0, 3, 0xa17f); //enlarge agcsel threshold 6 1694 mii_mgr_write(0, 12, 0x7eaa); //100% link down power saving & tx10 link up 50% 1695 mii_mgr_write(0, 14, 0x65); //longer TP_IDL tail length 1696 mii_mgr_write(0, 16, 0x0684); //increased squelch pulse count threshold. 1697 mii_mgr_write(0, 17, 0x0fe0); //set TX10 signal amplitude threshold to minimum 1698 mii_mgr_write(0, 18, 0x40ba); //set squelch amplitude to higher threshold 1699 mii_mgr_write(0, 22, 0x252f); //tune TP_IDL tail and head waveform, enable power down slew rate control 1700 mii_mgr_write(0, 27, 0x2fc3); //set PLL/Receive bias current are calibrated(RT3350) 1701 mii_mgr_write(0, 28, 0xc410); //change PLL/Receive bias current to internal(RT3350) 1702 mii_mgr_write(0, 29, 0x598b); //change PLL bias current to internal(RT3052_MP3) 1703 mii_mgr_write(0, 31, 0x8000); //select local register 1704 for(i=0;i<5;i++){ 1705 //LSB=1 enable PHY 1706 mii_mgr_read(i, 26, &my_val); 1707 my_val |= 0x0001; 1708 mii_mgr_write(i, 26, my_val); 1709 } 1690 1710 #if defined (CONFIG_P5_RGMII_TO_MAC_MODE) 1691 1711 *(unsigned long *)(0xb0000060) &= ~(1 << 9); //set RGMII to Normal mode -
src/linux/rt2880/linux-2.6.23/drivers/usb/core/hub.c
r12433 r12963 1172 1172 return; 1173 1173 } 1174 #ifdef ENABLE_HOT_PLUG_RESET 1175 if(usb_hotplug_flag&USB_UNPLUG_RESET) 1176 ralink_reset(7); 1177 #endif 1174 1178 1175 1179 /* mark the device as inactive, so any further urb submissions for … … 2058 2062 * pointers, it's not necessary to lock the device. 2059 2063 */ 2064 2065 extern void ralink_gpio_control(int gpio,int level); 2066 2060 2067 static int 2061 2068 hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, … … 2069 2076 enum usb_device_speed oldspeed = udev->speed; 2070 2077 char *speed, *type; 2071 2078 #ifdef ENABLE_HOT_PLUG_RESET 2079 if(usb_hotplug_flag&USB_PLUG_RESET) 2080 ralink_reset(7); 2081 #endif 2082 #ifdef CONFIG_MTD_ESR3650 2083 ralink_gpio_control(9,0); 2084 #endif 2072 2085 /* root hub ports have a slightly longer reset period 2073 2086 * (from USB 2.0 spec, section 7.1.7.5) … … 2393 2406 #endif 2394 2407 2408 #ifdef CONFIG_MTD_ESR3650 2409 ralink_gpio_control(9,1); 2410 #endif 2411 2395 2412 if (portchange & USB_PORT_STAT_C_CONNECTION) { 2396 2413 status = hub_port_debounce(hub, port1); -
src/linux/rt2880/linux-2.6.23/drivers/usb/dwc_otg/dwc_otg_driver.c
r12859 r12963 840 840 .remove = dwc_otg_driver_remove, 841 841 }; 842 #define RALINK_PIO_BASE 0xA0300600 843 844 #define RALINK_PRGIO_ADDR RALINK_PIO_BASE // Programmable I/O 845 846 #define RALINK_REG_PIOINT (RALINK_PRGIO_ADDR + 0) 847 #define RALINK_REG_PIOEDGE (RALINK_PRGIO_ADDR + 0x04) 848 #define RALINK_REG_PIORENA (RALINK_PRGIO_ADDR + 0x08) 849 #define RALINK_REG_PIOFENA (RALINK_PRGIO_ADDR + 0x0C) 850 #define RALINK_REG_PIODATA (RALINK_PRGIO_ADDR + 0x20) 851 #define RALINK_REG_PIODIR (RALINK_PRGIO_ADDR + 0x24) 852 #define RALINK_REG_PIOSET (RALINK_PRGIO_ADDR + 0x2C) 853 #define RALINK_REG_PIORESET (RALINK_PRGIO_ADDR + 0x30) 854 855 void ralink_gpio_control(int gpio,int level) 856 { 857 unsigned long piodir,piodata; 858 859 piodir = le32_to_cpu(*(volatile u32 *)(RALINK_REG_PIODIR)); 860 piodir |= (1L << gpio); 861 *(volatile u32 *)(RALINK_REG_PIODIR) = cpu_to_le32(piodir); 862 piodata = le32_to_cpu(*(volatile u32 *)(RALINK_REG_PIODATA)); 863 864 if(level) 865 piodata |= (1L << gpio); 866 else 867 piodata &= ~(1L << gpio); 868 869 *(volatile u32 *)(RALINK_REG_PIODATA) = cpu_to_le32(piodata); 870 } 842 extern void ralink_gpio_control(int gpio,int level); 871 843 872 844 /** … … 887 859 888 860 *(unsigned long *)(KSEG1ADDR(RALINK_USB_OTG_BASE+0xE00)) = 0x0; //Enable USB Port 889 // ralink_gpio_control(6,1); // turn on 5V 861 #ifdef CONFIG_MTD_ESR6650 862 ralink_gpio_control(6,1); // turn on 5V 863 #endif 890 864 lmdev = kzalloc(sizeof(struct lm_device), GFP_KERNEL); 891 865 if (!lmdev) … … 929 903 930 904 lm_driver_unregister(&dwc_otg_driver); 931 // ralink_gpio_control(6,0); // turn off 5V 905 #ifdef CONFIG_MTD_ESR6650 906 ralink_gpio_control(6,0); // turn off 5V 907 #endif 932 908 *(unsigned long *)(KSEG1ADDR(RALINK_USB_OTG_BASE+0xE00)) = 0xF; //Disable USB Port 933 909 printk(KERN_INFO "%s module removed\n", dwc_driver_name);
Note: See TracChangeset
for help on using the changeset viewer.
