aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
...
* ramips: Fix support for PBR-M1 boardJohn Crispin2015-12-113-22/+61
| | | | | | | | | | The PBR-M1 support in current OpenWrt is for the early demo board and it doesn't work on the final board.This patch fixes the support for it. The LED called pbr-m1:buzzer is a beeper connected to GPIO26 so I used gpio-beeper instead of gpio-leds. Signed-off-by: 郭传鈜 <gch981213@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47844 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use gic timer as clocksource for mt7621John Crispin2015-12-113-0/+101
| | | | | | | | | | * Switches clocksource to gic timer. * Moves frequency definitions to dtsi since frequency was hardcoded anyway Will work on proper frequency detection later. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47843 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable CPS for mt7621John Crispin2015-12-113-123/+21
| | | | | | | | | | | | | Enables CPS multiprocessing instead ob obsoleted CMP for mt7621. This patch fixes a few issues currently existing on 4.3 kernel with at least ubnt-erx: * iperf shows only 50Mbits on direct gigabit connection to desktop, * ping times jump to 5-6ms to dorectly connected desktop * /proc/interrupts shows spurious interrups (ERR) Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47842 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: irq handlers do not get irq in 4.3 kernel, update patchesJohn Crispin2015-12-112-29/+4
| | | | | | | | | | | This resolves compilation warnings like this: drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_probe': drivers/gpio/gpio-mt7621.c:328:46: warning: passing argument 2 of 'irq_set_chained_handler' from incompatible pointer type [-Wincompatible-pointer-types] irq_set_chained_handler(mediatek_gpio_irq, mediatek_gpio_irq_handler); Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47841 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix CM_GCR_CPC_BASE_CPCBASE_{MSK, SHF} valuesJohn Crispin2015-12-111-0/+13
| | | | | | | | Update CM_GCR_CPC_BASE_CPCBASE_{MSK,SHF} to match datasheet Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47840 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fold gic patch into mt7621 support patchJohn Crispin2015-12-112-571/+23
| | | | | | | | All gic patch was doing is removing code added by mt7621 support patch. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47839 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: backport series of patches that ensure GCRs of other CPUs are ↵John Crispin2015-12-113-0/+269
| | | | | | | | accessed properly Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47838 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: backport batch fixing illegal instruction when booting secodnary ↵John Crispin2015-12-111-0/+53
| | | | | | | | CPUs in CPS mode Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: use symbolic names of gic interrupt settingsJohn Crispin2015-12-1111-18/+30
| | | | | | | | This also adds dts nodes for cpc and mc for documentation purposes Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47836 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: bump to the target to v4.3John Crispin2015-12-10104-5437/+3943
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47831 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: fix arch used during dts compilationFelix Fietkau2015-12-101-1/+1
| | | | | | | | | Use kernel arch for dts compilation. Also use Image/BuildDTB to build dts for ramips. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* all: remove dummy ucidef_set_interface_loopback() from board.dJo-Philipp Wich2015-12-031-2/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47744 3c298f89-4303-0410-b956-a3cf2f4a3e73
* board.d: remove redundant ucidef_set_interfaces_lan_wan() callsJo-Philipp Wich2015-12-031-19/+0
| | | | | | | | | | This removes calls to ucidef_set_interfaces_lan_wan() and ucidef_set_interfaces_lan() on boards where all relevant info can be inferred from the switch definition. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47722 3c298f89-4303-0410-b956-a3cf2f4a3e73
* board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()Jo-Philipp Wich2015-12-031-40/+20
| | | | | | | | | | | | This changes uci-defaults-new.sh, config_generate and all relevant board.d files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into a single function. Also removes now superfluous enable and reset arguments. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47721 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()Jo-Philipp Wich2015-12-031-2/+4
| | | | | | | | | | | | | | | Out of 69 switch definitions, only 3 pass something different than "1" as values for reset and enable, with one of those three being invalid. This change ... * removes the reset and enable arguments from ucidef_add_switch() * unconditionally writes reset:1 and enable:1 to JSON * converts the three users of nonstandard values to ucidef_add_switch_attr() Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: switch ucidef_add_switch_vlan() to ucidef_add_switch_ports()Jo-Philipp Wich2015-12-031-38/+41
| | | | | | | | | | This migrates the final board.d user of ucidef_add_switch_vlan() to the new ucidef_add_switch_ports() approach, fixing some logic errors for a few boards along the way. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47717 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove duplicate patchJohn Crispin2015-11-281-30/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47670 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: adapt VoCore to new second spi device codeJohn Crispin2015-11-283-70/+66
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47667 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add second SPI clocksJohn Crispin2015-11-281-0/+30
| | | | | | | | These clocks were missing in the changes introduced in r47573-47580 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47666 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()Jo-Philipp Wich2015-11-261-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47657 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: renable nand supportJohn Crispin2015-11-241-0/+1
| | | | | | | | CONFIG_MTK_MTD_NAND was incorrectly disabled by r47619. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47640 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix typo in image makefile (#18712)Felix Fietkau2015-11-241-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47627 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for netis WF-2881John Crispin2015-11-2410-4/+198
| | | | | | | | | | | | | | | | | | | | | | | | | netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN. It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0. The following patch adds support for this device. this device only works on top of UBI. Tested and working: * ethernet * both WiFi radios * USB 3.0 * buttons (reset button) * ethernet switch and USB diag LEDs * UART * GPIOs * sysupgrade Tested and not working * failsafe Signed-off-by: YounJae Rho <luxflow@live.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47619 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Youku YK1John Crispin2015-11-246-2/+141
| | | | | | | | | Changes since V1: I resend this patch for current trunk.The former V1 patch is for CC branch. Signed-off-by: Shonn Lu <countrysideboy@qq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47617 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add second spi master sysclkJohn Crispin2015-11-241-0/+30
| | | | | | | | for mt7620, rt3883 and rt5350 Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47616 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: update dtsi files to support second spi deviceJohn Crispin2015-11-227-380/+143
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47580 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use transfer_one instead of transfer_one_message on rt2880 spiJohn Crispin2015-11-221-65/+62
| | | | | | | | | | | | * use kernel buildin transfer_one_message. we only need to implement transfer_one and set_cs function * should support use gpio as cs pin * deselected the spi device when setup and add debug info * only reset device when first driver probe Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47579 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: move rt2880 spi clock and reset init code to spi_prepare_messageJohn Crispin2015-11-221-68/+62
| | | | | | | | | | before spi transfer. use spi_prepare_message to setup spi hardware. it will setup MSB, spi mode and speed remove sys_freq member and speed check code Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47578 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: improve rt2880 spi setupJohn Crispin2015-11-221-11/+62
| | | | | | | | | | * check clock rate, SPI mode, and word sizes * setup spi polarity * enable spi1 hw if need Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47577 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: clean up rt2880 spi probe/removeJohn Crispin2015-11-221-25/+34
| | | | | | | | | | * fill struct according to the member order * add error clean up * set min/max spi speed. so we don't need to check again Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47576 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: improve rt2880 spi wait ready functionJohn Crispin2015-11-221-16/+15
| | | | | | | | | | | use loops_per_jiffy, spi clock speed and write bytes to get the spi loop count. if loop to 0 than spi operation timeout. remove usleep. we only write 1 byte to spi device. use busy loop would be better. Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47575 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove rt2880 spi lock and clean bit operationJohn Crispin2015-11-221-18/+5
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47574 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add rt2880/mt7620 spi register definesJohn Crispin2015-11-221-2/+63
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47573 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add missing nand layer hackJohn Crispin2015-11-211-0/+179
| | | | | | | | | | | | | | | | | It turned out that mtk_nand driver uses some sophisticated accounting and a general nand code must be patched. This patch adds required read and erase calls to a general nand code. I used a code for re6500 released by Linksys as a reference. All required operations (erase, write and read) are usable. However I found that jffs2 filesystem can be created only on top of a ubi volume. I tried to create jffs2 directly on mtd device but pages with clean markers are became uncorrectable. Signed-off-by: Kirill Berezin <fyiwdt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47565 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: init usb power for Lenovo Y1SJohn Crispin2015-11-211-0/+21
| | | | | | Signed-off-by: Shonn Lu <countrysideboy@qq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47557 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: minor fixes for mt7621 profilesFelix Fietkau2015-11-072-4/+2
| | | | | | | | | * remove references to non-existing kmod-usb3-mt7621 * ZTB WG2626 doesn't have an RTC (thanks to Piotr Dymacz!) Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47407 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix previous commitJohn Crispin2015-11-052-22/+66
| | | | | | | | r47388 accidentially changed 2 files too many Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47389 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: minor tweak to the lks7688 baord nameJohn Crispin2015-11-054-68/+24
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47388 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add feature to blink led on sysupgradeJohn Crispin2015-11-032-1/+11
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47373 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for ZBT WG2626John Crispin2015-11-027-3/+161
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47351 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add eeprom mtd partition to the Asus RP-N53 dtsJohn Crispin2015-11-021-0/+4
| | | | | | | | This patch adds the eeprom property to the dts for the Asus RP-N53. It is necessary to get the wifi in the soc working. Signed-off-by: Alberto Mattea <alberto@mattea.info> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47350 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: preinit: use iproute2 instead of vconfigJohn Crispin2015-11-021-2/+2
| | | | | | | | | | | | | | | Replace use of vconfig with the corresponding iproute2 syntax in /lib/preinit/07_set_preinit_iface_ramips The switch reset work-around needed on some ramips targets used the deprecated vconfig tool to bring up the pre-init/failsafe interface. This doesn't work on recent builds where vconfig is no longer being deployed, resulting in the device being unreachable when triggered into failsafe mode. Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47349 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Dovado tiny ACJohn Crispin2015-11-028-0/+202
| | | | | | | | | | | | | | | | Add support for Dovado tiny AC wifi router. Soc: mt7620a ram: 64MB flash: 8MB 1x usb 2.0 two gigabit lan ports 5ghz wlan is not supported on this board since there is no gpl driverfor mt7610e wifi chip. Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47348 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add function to change rt2x00 wifi eeprom macJohn Crispin2015-11-021-0/+12
| | | | | | | | | Some boards like dovado tiny ac have generic ralink mac in onflash wifi eeprom. Add eeprom_set_macaddr function to rt2x00 eeprom extract script which changes mac addr insde eeprom dump. Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47347 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7620 add icplus phy driver kernel config symbolJohn Crispin2015-11-021-0/+1
| | | | | | | | | Add missing icplus phy driver kernel config symbol to mt7620 subtarget. This is needed since some mt7620 devices have icplus ip1001 ethernet transceiver Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47346 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for the Asus RP-N53 in the "02_network" boot scriptJohn Crispin2015-11-021-1/+2
| | | | | | | | This patch adds a case for the Asus RP-N53 in the "02_network" boot script. Without this, the lan interface does not get configured on startup, effectively bricking the device. Signed-off-by: Alberto Mattea <alberto@mattea.info> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47345 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: rt305x: enable seama mtdsplit parserJohn Crispin2015-11-021-0/+1
| | | | | | | | | D-Link DIR-610 A1 needs seama mtdsplit parser. This patch should fix #18046. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47341 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: rt305x: update kernel config symbolsJohn Crispin2015-11-021-3/+4
| | | | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47340 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update kernel 3.18 to version 3.18.23Hauke Mehrtens2015-11-0114-101/+101
| | | | | | | | | | | Changelog: * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.22 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.23 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47334 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix for kernel 4.0 napi repoll need return budgets numberFelix Fietkau2015-10-301-1/+4
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47306 3c298f89-4303-0410-b956-a3cf2f4a3e73