aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* brcm2708: add device detection and use it for network, leds and preinitJohn Crispin2015-11-229-18/+110
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47572 3c298f89-4303-0410-b956-a3cf2f4a3e73
* conntrack-tools: create /etc/conntrackd directoryJohn Crispin2015-11-211-0/+1
| | | | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47571 3c298f89-4303-0410-b956-a3cf2f4a3e73
* conntrack-tools: use INSTALL_DIR onceJohn Crispin2015-11-211-2/+3
| | | | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47570 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/scons: update to 2.4.1John Crispin2015-11-211-2/+2
| | | | | | | | Update scons to 2.4.1. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47569 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/cmake: update to 3.4.0John Crispin2015-11-213-6/+6
| | | | | | | | | Update cmake to 3.4.0. Refresh patches. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47568 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel/generic: 3.18, 4.y: Add support for Quectel EC20 Mini PCIe moduleJohn Crispin2015-11-216-0/+660
| | | | | | | | | | | | | * both patches (qcserial/qmi_wwan) were submitted upstream[1,2] * build tested on 3.18 and 4.1 * run tested on imx6 platform with 4.1 1. http://article.gmane.org/gmane.linux.usb.general/132998 2. http://article.gmane.org/gmane.linux.usb.general/133113 Signed-off-by: Petr Štetiar <ynezz@true.cz> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47567 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: add phy led config support over devicetree bindingsJohn Crispin2015-11-212-2/+534
| | | | | | | | | | | This patch adds the posibility to config the led behaviour of the lantiq phys over the devicetree bindings.It patches the 0023-NET-PHY-adds-driver-for-lantiq-PHY11G for 3.18 and 4.1. I have also added a register description overview for applicable values. This goes to the documentation folder in the linux kernel. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47566 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
* kernel: fix building RTC driversJohn Crispin2015-11-211-8/+16
| | | | | | | | | | | All RTC drivers require the kernel to be built with CONFIG_RTC_CLASS=y. Set it accordingly. Tested only with DS1307. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47564 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: tweak DWC2 default parametersJohn Crispin2015-11-212-10/+10
| | | | | | | | | | | | | | | | | | | | | This patch improves the default configuration of DWC2 on lantiq SoCs somewhat: * Set maximum packet count to largest allowed value by the DWC2 (511) * Use 16-bit DMA bursts * Divide fifo buffers more evenly Default fifo buffer sizes from original ltq-hcd driver seem really irrational. For example according to DWC2 data book rxfifo size of 240 will not fit even a single full length USB packet. On the other hand non-periodic tx fifo size of 240 is more than enough to fit one complete packet. Change the sizes around to improve the situation and to fix some issues especially with isochronous USB transfers. Signed-off-by: Antti Seppälä <a.seppala@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47563 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm2708: enable hard float ABIJohn Crispin2015-11-213-4/+4
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47562 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm2708: add support for multi-device imagesJohn Crispin2015-11-213-44/+16
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47561 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm2708: rename image device definitionJohn Crispin2015-11-211-5/+5
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47560 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm2708: revert sd image extension to .imgJohn Crispin2015-11-211-2/+2
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47559 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm2708: simplify gzip image generationJohn Crispin2015-11-211-11/+1
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47558 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
* mac80211: fix autoprobing of mt7601u driverJohn Crispin2015-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Strigng passed to autoprobing script should match module's name. Currently that string is missing trailing "u". With that change mt7601u driver really gets autoloaded on USB Wi-Fi dongle insertion: ------------------>8--------------- [ 0.930000] hub 2-0:1.0: USB hub found [ 0.940000] hub 2-0:1.0: 1 port detected [ 1.150000] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 1.720000] init: - preinit - Detected arc-sdp // Synopsys AXS101 Development Board [ 1.810000] random: mktemp urandom read with 3 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 4.940000] procd: - early - [ 5.540000] procd: - ubus - [ 6.550000] procd: - init - Please press Enter to activate this console. [ 7.160000] Loading modules backported from Linux version master-2015-10-26-0-g28c26cb [ 7.170000] Backport generated by backports.git backports-20150903-4-g12cf266 [ 7.200000] cfg80211: World regulatory domain updated: [ 7.230000] cfg80211: DFS Master region: unset [ 7.230000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 7.250000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 7.270000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 7.270000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 7.290000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A) [ 7.290000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) [ 7.310000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 7.310000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 7.330000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 7.470000] usb 1-1: reset high-speed USB device number 2 using ehci-platform [ 7.620000] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500 [ 7.630000] mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____ [ 8.040000] mt7601u 1-1:1.0: Warning: unsupported EEPROM version 0d [ 8.050000] mt7601u 1-1:1.0: EEPROM ver:0d fae:00 [ 8.050000] mt7601u 1-1:1.0: EEPROM country region 01 (channels 1-13) [ 8.320000] usbcore: registered new interface driver mt7601u ------------------>8--------------- Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Dirk Neukirchen <dirkneukirchen@web.de> Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47556 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix the SingleProfile kernel size limit for dLAN devicesJohn Crispin2015-11-211-2/+2
| | | | | | | | it ends up as $(2) of CatFiles and must be a plain decimal value. Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47555 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add support for the devolo dLAN HotspotJohn Crispin2015-11-2110-6/+162
| | | | | | Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47554 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix AR71XX_MODEL on TP-Link TL-WR703NJohn Crispin2015-11-211-1/+1
| | | | | | | | | The hwid check was wrong, causing the AR71XX_MODEL value to end with a space (as $hwver was unset). Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47553 3c298f89-4303-0410-b956-a3cf2f4a3e73
* oxnas: add missing platform bindings for stmmac glueJohn Crispin2015-11-211-0/+19
| | | | | | | | | | | r47218 was missing needed changes which were accidentally ommitted from the patch. This should fix #20878 Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47552 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: make kmod-usb-dwc2 depend on kmod-usb-gadget on omap targetHauke Mehrtens2015-11-211-1/+1
| | | | | | | | | | This dependency is missing for the omap target. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47551 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix build of kmod-dwc2Hauke Mehrtens2015-11-211-2/+4
| | | | | | | | | dwc2_platform.koi is included in dwc2.ko with kernel 4.3. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47550 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add missing config optionHauke Mehrtens2015-11-211-0/+1
| | | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47549 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ath10k: select kernel relayfs supportFelix Fietkau2015-11-211-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47548 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipq806x: fix PCIe reset gpio handling - the core already handles the ↵Felix Fietkau2015-11-212-16/+60
| | | | | | | | active-low flag Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47547 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipq806x: assert AHB PCIe reset during initFelix Fietkau2015-11-212-14/+36
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47546 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipq806x: reduce PCIe buffer size setting to fix potential data corruption issuesFelix Fietkau2015-11-212-4/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47545 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipq806x: fix pcie reset gpio definions and move them to the common .dtsi fileFelix Fietkau2015-11-2122-266/+170
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47544 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipq806x: fix pcie tx0-term-offset settingFelix Fietkau2015-11-2110-12/+16
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47543 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipq806x: fix device tree nodes for PCI to get rid of I/O and memory offsetsFelix Fietkau2015-11-212-12/+12
| | | | | | | | Fixes QCA99x0 detection issues Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47542 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mvebu: migrate led and network setup to board detection frameworkJo-Philipp Wich2015-11-202-9/+9
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47541 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mpc85xx: migrate network setup to board detection frameworkJo-Philipp Wich2015-11-201-7/+5
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47540 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uboot-omap: fix build with gcc-5Hauke Mehrtens2015-11-207-6/+280
| | | | | | | | | This fixes some problems with gcc-5. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47539 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)Jo-Philipp Wich2015-11-201-5/+6
| | | | | | | | | | | | | | When fixing the model string for WNDR3700v2 which contain a model string followed by 0xff in r46455, the match for other versions of the WNDR3700v2 which just contain lots of 0xff broke (as the 0xff $model is checked for is stripped off). Fix by stripping off non-printable characters only for the actual output string, but not for the internal matching. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47538 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uboot-kirkwood: fix build with gcc-5Hauke Mehrtens2015-11-202-1/+88
| | | | | | | | | This backports a patch from upstream u-boot to make it compile with gcc-5. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47537 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add missing config optionHauke Mehrtens2015-11-203-0/+3
| | | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47536 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uboot-oxnas: fix build with gcc-5Hauke Mehrtens2015-11-202-6/+88
| | | | | | | | | This backports a patch from upstream u-boot to make it compile with gcc-5. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47535 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: migrate led and network setup to board detection frameworkJo-Philipp Wich2015-11-202-10/+11
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47534 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uboot-mxs: fix build with gcc-5Hauke Mehrtens2015-11-202-29/+12
| | | | | | | | | | | gcc-5 handles inline without static differently and that makes uboot-mxs fail to build. Remove the inline so it gets exported and can be used in other functions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47533 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imx6: ventana: remove invalid video options from bootscriptLuka Perkov2015-11-201-75/+1
| | | | | | | | | Removed video related kernel params that are only appropriate for the Freescale downstream vendor kernel and not appriate for mainline linux. Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47532 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ubus: update to the latest version, adds support for monitoring system bus ↵Felix Fietkau2015-11-191-2/+2
| | | | | | | | traffic Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47531 3c298f89-4303-0410-b956-a3cf2f4a3e73