summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
...
* ramips: Rename POC registersGabor Juhos2012-08-291-31/+31
| | | | | | | | | | | | | | | | | | Rename POC registers. The current code uses POC1-POC3. The datasheet uses: POC1: Port Control 0 POC1: Port Control 1 POC2: Port Control 2 So the first POC1 is a typo that should have been POC0, rename the registers to POC0-POC2 accordingly. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33302
* ramips: Minor ramips_esw.c cleanupGabor Juhos2012-08-294-62/+18
| | | | | | | | | | | | Stop handling VLAN setup in the kernel. Removes the obsolete RT305X_ESW_VLAN_CONFIG_BYPASS option I added for WL-351 and add some extra comments. Also removes the en_vlan per-port flag that isn't very useful really, it now is only controlled by the global enable_vlan flag. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33301
* ramips: Add switch setup to uci network defaultsGabor Juhos2012-08-291-1/+26
| | | | | | | | | | | | | | Add switch setup to uci network defaults. The 'lan' attribute is used to decide into which vlan to put the port. Currently 'disable' is never set, but the intention is to use this for devices like the 8devices Carambola, which only has two ports hooked up to the SoC. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33300
* ramips: Add swconfig support to ramips_esw.cGabor Juhos2012-08-292-35/+755
| | | | | | | | | | | | | | | | | | | Add swconfig support to ramips_esw.c This patch adds swconfig support for ramips_esw: Tested on both D-LINK DIR-300 B1 and Sitecom WL-351 (external rtl8366rb on internal port 5). I've made sure that in the enable_vlan=0 case it behaves like a dumb switch, so external switches should work fine with vlans and verified this on the WL-351. The current state shown by swconfig is always read directly from HW registers, new settings only show after 'swconfig dev rt305x set apply'. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33299
* ramips: ramips_esw.c indentation cleanupGabor Juhos2012-08-291-11/+11
| | | | | | | | | | Minor indentation cleanup. Prepare for the main swconfig patch by cleaning up indentation a bit. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33298
* ramips: fix board parameter for the NBG-419N (#12061)Gabor Juhos2012-08-221-1/+1
| | | | SVN-Revision: 33229
* ramips: add profile for Allnet devicesGabor Juhos2012-08-221-0/+41
| | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 33225
* ramips: add RSSI leds for uci-defaults for ALL0256NGabor Juhos2012-08-221-0/+4
| | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 33220
* ramips: add board alias for the ALL0239-3GGabor Juhos2012-08-1710-2/+36
| | | | | | | | | | | | | | Generate image for the ALL0239-3G which can be flashed through the chipset-vendor SDK based firmware's web-interface and bootloader. The bootloader seems to ignore uImage checksum errors, but does complain about them once the 0xDEADC0DE was replaced by an actual JFFS2 page. I'm working on implementing fixtrx for uImage in the mtd package to solve this. Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 33206
* ramips: add support for D-Link DIR-615 H1Gabor Juhos2012-08-1713-4/+152
| | | | | | | | | | | | rt2x00 still needs some patching as the radio doesn't come to life. Installation via webflash. [juhosg: fix whitespace issues, remove rt305x_register_usb from machine setup because the board has no USB port] Signed-off-by: Mikko Hissa <mikko.hissa@uta.fi> SVN-Revision: 33205
* ramips: rename rt3352 usb platform devicesGabor Juhos2012-08-121-2/+2
| | | | | | | | | In order to get OHCI/EHCI working on the Rt3352, the platform device must be named so rt3883-?hci will recognize it. Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 33145
* ramips: watchdog: use maximum possible timeout by defaultGabor Juhos2012-08-121-6/+6
| | | | | | | | | | | | | As the userspace has no means to determine the maximum possible timeout, use that as the default and let the userspace lower it when necessary. As the result the usual OpenWrt install (with busybox's watchdog trying to set the timeout to 60s on start) is using a 33s timeout on an RT3052 clocked at 384MHz instead of the current 20s default. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 33144
* ramips: provide means to specify custom "image name" for uImages, use for ↵Gabor Juhos2012-08-121-4/+5
| | | | | | | | | | | DIR-620 D-Link's DIR-620 allows to flash a uImage directly from its web-interface but for that the image name should be set to DIR_620. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 33143
* ramips: add D-Link DIR-620 A1 supportGabor Juhos2012-08-1210-6/+81
| | | | | | | | | | | | Full functionality runtime tested, installation via OEM web-interface requires a follow-up patch. Thanks go to Sergey Vasilyugin for his patch that pointed me at the missing bits (including the antiparallel wps led). Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 33142
* move rt305x-dwc driver to target specific modules.mkFlorian Fainelli2012-07-251-0/+26
| | | | SVN-Revision: 32864
* DWC otg usb: compilation fixes and trivial bugfix in slave modeJohn Crispin2012-07-245-5/+45
| | | | | | Signed-of-by: Nikolai Zhubr <n-a-zhubr@yandex.ru> SVN-Revision: 32823
* D-Link DAP-1350 initial supportJohn Crispin2012-07-2411-0/+136
| | | | | | | | | The initial support for the D-Link DAP-1350. USB related functionality is not tested. Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp> SVN-Revision: 32821
* initial LED configuration for Fonera 2.0nJohn Crispin2012-07-241-1/+2
| | | | | | | | Setup initial configuration for Wifi and USB LEDS of a Fonera 2.0n (ramips) Signed-off-by: Malte Forkel <malte.forkel@berlin.de> SVN-Revision: 32819
* add ALL5002 userspace supportJohn Crispin2012-07-245-1/+9
| | | | | | | | detect EEPROM, MAC addresses and support sysupgrade for the ALL5002 Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 32816
* enable OHCI/EHCI glue on Rt305x, so it is available for Rt3352F.John Crispin2012-07-243-2/+4
| | | | | | | | Hope that this works, didn't have a chance to actually test it... Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 32815
* add image build for ALL5002John Crispin2012-07-241-0/+14
| | | | | | | | add image build for ALL5002 Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 32814
* add support for Allnet ALL5002 to kernelJohn Crispin2012-07-245-0/+71
| | | | | | | | support ALL5002 in ramips/rt305x branch of the kernel. Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 32813
* uart_clk on Rt3352F is always 40MHzJohn Crispin2012-07-241-1/+1
| | | | | | | | | Currently, sys_clk/10 is used which is just wrong. cpu_clk/10 would work for systems with 400MHz CPU clock. Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 32812
* ramips: rt305x: add support for Edimax 3G-6200NGabor Juhos2012-07-1213-1/+122
| | | | | | | | Support for Edimax 3G-6200N router with USB. Signed-off-by: Lukasz Golebiowski <lgolebio@gmail.com> SVN-Revision: 32682
* ramips: mac address detection for Fonera 2.0nVasilis Tsiligiannis2012-06-232-0/+6
| | | | | | | | | Detect and apply MAC address of a Fonera 2.0n (ramips) Signed-off-by: Malte Forkel <malte.forkel@berlin.de> Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> SVN-Revision: 32490
* ramips: rt305x: add support for the Petatel PSR-680W Wireless CDMA RouterGabor Juhos2012-06-1912-0/+97
| | | | | | | | | | This patch adds support for the Korean made Petatel PSR-680W Wireless CDMA Router. The platform is based on Ralink RT3052. http://wiki.openwrt.org/toh/petatel/psr-680w Signed-off-by: Dmitry Shmygov <shmygov at rambler.ru> SVN-Revision: 32450
* bump to 3.3.8John Crispin2012-06-051-1/+1
| | | | SVN-Revision: 32055
* ramips: use the generic uci-default functions for initial LED setupGabor Juhos2012-05-291-41/+8
| | | | SVN-Revision: 31993
* ramips: WAN LED for D-Link DIR-300-B1Gabor Juhos2012-05-292-0/+38
| | | | | | | | | | | | | | | | | | Add led devices for D-Link DIR-300-B1 WAN LED. Note that the GPIO state is also ANDed with the esw switch port 4 LED state, which is why I've set the amber LED to default-on. Closes: https://dev.openwrt.org/ticket/11326 Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> [ juhosg: - fix comment style in mach-dir-300-revb.c, - remove the PPP specific LED setup, not everyone uses a PPP connection on the WAN interface] SVN-Revision: 31989
* ramips: rt3883: add device registration code for the SPI controllerGabor Juhos2012-05-272-0/+26
| | | | SVN-Revision: 31922
* ramips: allow to use the SPI driver on RT3662/RT3883Gabor Juhos2012-05-271-2/+2
| | | | SVN-Revision: 31921
* ramips: rt3883: fix GPIO reservation for the SPI pinsGabor Juhos2012-05-271-1/+1
| | | | SVN-Revision: 31920
* ramips: rt305x: remove superfluous controller_data assignmentGabor Juhos2012-05-271-1/+0
| | | | SVN-Revision: 31919
* ramips: make rt2x00 firmware extraction quietGabor Juhos2012-05-271-1/+1
| | | | SVN-Revision: 31918
* kernel: update linux 3.3 to 3.3.7Gabor Juhos2012-05-231-1/+1
| | | | SVN-Revision: 31848
* ramips: Add byte queue limits support to net/ethernet/ramips_main.cGabor Juhos2012-05-231-0/+8
| | | | | | | | | | | | | | Add byte queue limits support to net/ethernet/ramips_main.c "Byte queue limits are a mechanism to limit the size of the transmit hardware queue on a NIC by number of bytes. The goal of these byte limits is too reduce latency (HOL blocking) caused by excessive queuing in hardware (aka buffer bloat) without sacrificing throughput." Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 31844
* ramips: Enable sysupgrade for Sitecom WL-351Gabor Juhos2012-05-231-0/+1
| | | | | | | | | Sysupgrade works just fine on my Sitecom WL-351 after adding this oneliner. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 31843
* linux: move certain disabled symbols to the generic configsGabor Juhos2012-05-153-31/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CONFIG_ARCH_DMA_ADDR_T_64BIT * CONFIG_ARCH_HAS_ILOG2_U32 * CONFIG_ARCH_HAS_ILOG2_U64 * CONFIG_ARCH_PHYS_ADDR_T_64BIT * CONFIG_ARCH_SUPPORTS_MSI * CONFIG_GENERIC_CPU_DEVICES * CONFIG_HWMON_DEBUG_CHIP * CONFIG_I2C_PXA_PCI * CONFIG_LEDS_GPIO * CONFIG_MINIX_FS_NATIVE_ENDIAN * CONFIG_MLX4_CORE * CONFIG_POWER_SUPPLY * CONFIG_POWER_SUPPLY_DEBUG * CONFIG_QUOTACTL * CONFIG_SDIO_UART * CONFIG_SENSORS_K10TEMP * CONFIG_SENSORS_SCH56XX_COMMON * CONFIG_SENSORS_VIA_CPUTEMP * CONFIG_SERIO_AMBAKMI * CONFIG_SERIO_I8042 * CONFIG_SERIO_LIBPS2 * CONFIG_SERIO_PCIPS2 * CONFIG_SERIO_RAW * CONFIG_SERIO_SERPORT * CONFIG_SPI_BITBANG * CONFIG_SPI_GPIO SVN-Revision: 31737
* kernel: update linux 3.3 to 3.3.6Gabor Juhos2012-05-141-1/+1
| | | | SVN-Revision: 31709
* kernel: update linux 3.3 to 3.3.5Gabor Juhos2012-05-071-1/+1
| | | | SVN-Revision: 31645
* ramips: W306R V2.0 - GPIO and Network fixesGabor Juhos2012-05-024-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixed: GPIO typos and confirmed GPIO_BUTTON_RESET Fixed: Lan & Wan reversed: swaped "eth0.2" with "eth0.1" by removing a line(default is correct), and reversed the Lan/wan layout LLLLW to WLLLL. Added: image/Makefile now builds -factory.bin files. I am unsure of the accepted way to change the makefile but the name of the image needs to be 'linkn Kernel Image' in order to be accepted by the OEM firmware. Known issue: eth0 (internal switch i think has mac address: 00:11:22:33:44:55 but i think it should be same as the lan). Known issue: Pressing the reset button has no noticable effect, i would expect the router to boot failsafe if being pressed on boot, reboot if short press and reset all to default if long press. [juhosg: remove mtdlayout_W306R and use mtdlayout_4M instead] Signed-off-by: David Pearce <david_18051985@hotmail.com> SVN-Revision: 31557
* ramips: Make serial console for DIR-300-B1 work againGabor Juhos2012-05-021-2/+2
| | | | | | | | | | | | | | | | | Make serial console for DIR-300-B1 work again. With some recent change, "console=ttyS1,57600" was removed from the default kernel command line, this adds the necessary mkcmdline incantation to image/Makefile to add it there for this target. This is quite likely broken for other targets as well. Without this the console switches to ttyS0 instead of ttyS1 and kernel output is missing, and the userspace comes up with 9600 baud instead of 57600. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 31556
* kernel: update linux 3.3 to 3.3.4Gabor Juhos2012-04-302-2/+2
| | | | SVN-Revision: 31541
* ramips: rt305x: extract wifi eeprom and use the 8M template for the UR-336UNGabor Juhos2012-04-292-1/+2
| | | | | | Patch-by: Lebedev Dmitry <lebedev@trendnet.ru> SVN-Revision: 31507
* kernel: update linux 3.3 to 3.3.3Jonas Gorski2012-04-241-1/+1
| | | | SVN-Revision: 31460
* ramips: rt305x: add support for the UR-336UN boardGabor Juhos2012-04-2311-0/+139
| | | | | | Patch-by: Lebedev Dmitry <lebedev@trendnet.ru> SVN-Revision: 31451
* ramips: rt305x: add support for the Asus WL-330N3G boardGabor Juhos2012-04-2310-1/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for the ASUS WL-330N3G Comparing to the WL-330N, It have 32MB ram, usb support and a bicolor led. The bi-color led is driven by 2 gpio. I don't know how to handle this, so I simply made 2 leds : one red, one blue. But the red light takes precedence over the blue one according to the chart below. r = led is red b = led is blue 0 = led is off xy= x->r for red, b for blue led, y->value of brightness in /sys/class/leds/x/brughtness initial state action led gpio state r0 b0 r0->r1 r r0 b0 r0 b0 b0->b1 b r0 b1 r1 b0 r1->r0 0 r0 b0 r1 b0 b0->b1 r r1 *b1* r1 b1 r1->r0 b r0 b1 r1 b1 b1->b0 r r1 b0 r0 b1 r0->r1 r r1 *b1* r0 b1 b1->b0 0 r0 r0 Signed-off-by: Frédéric Leroy <fredo@starox.org> SVN-Revision: 31450
* ramips: nuke 3.2 suportGabor Juhos2012-04-2116-800/+0
| | | | SVN-Revision: 31405
* ramips: switch to 3.3.2Gabor Juhos2012-04-211-1/+1
| | | | SVN-Revision: 31404
* ramips: add support for 3.3Gabor Juhos2012-04-2116-0/+813
| | | | SVN-Revision: 31403