Commit Graph

15331 Commits (73015c4cb3787cccadc72b53fdb84b2d45c90136)

Author SHA1 Message Date
Felix Fietkau e8e4b6eed8 kernel: fix a small bug in the MIPS highmem fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48482
8 years ago
Felix Fietkau 68fef14e46 kernel: disable CONFIG_USERFAULTFD, it is unused
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48481
8 years ago
Rafał Miłecki 02abeb3b0a kernel: mtdsplit: document Seama splitter a bit
Rename kernel_size variable as it includes whole entity size, not just a
kernel size. Also update comments to match it and describe better what
are we checking/looking for.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48480
8 years ago
Hauke Mehrtens 1c7c997019 kernel: add some missing kernel config options
The built bots found these missing kernel configuration options.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48477
8 years ago
Jo-Philipp Wich 1865710fc8 x86/64: add missing kernel symbol
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48476
8 years ago
Jonas Gorski 96afb90f3f generic: fix relocate build with binutils 2.25.1
The new .abiflags section was kept, pushing the appended arguments to
the wrong offset and causing it to read the section instead, making
it fail on boot.

Fix this by dropping this section as well as the other sections.

Closes #21679.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48474
8 years ago
Jonas Gorski 065a240345 brcm63xx: fix build of lzma-loader with binutils 2.25.1
Apply the same fix as ar71xx needed in r46893.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48473
8 years ago
Jonas Gorski a9b4952be1 swconfig: simplify init code
Directly return the return value of genl_register_family_with_ops()
instead of storing it in a temporary variable, then returning it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48472
8 years ago
Jonas Gorski 38719ecca4 swconfig: drop linux < 3.13 code paths
The oldest kernel we support is 3.18, no need to keep code paths
for older kernels.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48471
8 years ago
Felix Fietkau 6f8d647778 ramips: re-enable highmem support for MT7621 now that it's fixed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48469
8 years ago
Felix Fietkau e756c2bb07 kernel: fix MIPS highmem breakage
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48468
8 years ago
Felix Fietkau 4b7e52125f kernel: add a fix for deadlocks on dump_stack
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48461
8 years ago
Felix Fietkau 84a7bc3d57 Revert "kernel: work around CONFIG_CPU_SW_DOMAIN_PAN breakage on ARM11 MPCore"
This reverts commit r48335

The workaround is incomplete and cannot cover all possible cases. The
only real solution to this problem is to disable this feature on
ARM11MPcore entirely.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48460
8 years ago
Felix Fietkau 6dc60d54fc Revert "ar71xx: Use full 128MB flash on Netgear WNDR4300 and WNDR3700v4"
This reverts commit r48276.
This can overwrite the caldata_backup partition, so the layout needs to
be changed in a different way.

Thanks to Arjen de Korte for spotting the issue.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48456
8 years ago
Felix Fietkau c28fb1f4fc x86_64: Add missing symbols
Update to kernel 4.4 missed some symbols, fix that.

SVN-Revision: 48453
8 years ago
Rafał Miłecki 529d527e2c kernel: backport bcma stuff sent for 4.6
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48449
8 years ago
Felix Fietkau 57690041fa kernel: clean up redundant SLUB/SLAB related defines for 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48443
8 years ago
Felix Fietkau c18d6739bc kernel: switch to SLUB by default in 4.4 (for improved performance)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48442
8 years ago
Felix Fietkau c26dec971e x86: fix kernel crash on geode devices (#21667)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48428
8 years ago
Rafał Miłecki a6ec12bb09 bcm53xx: fix iProc regression with sent patch instead of a revert
This properly fixes #21393.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48423
8 years ago
Felix Fietkau f85594f56f kernel: fix module load issue in the dma-buf debloat patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48409
8 years ago
Felix Fietkau 35a17334eb oxnas: finally make board names consistent
r48337 unfortunately incorrectly changed the boardname of the stg212
into stg-212 which is not the name of the image of DTS file or
boardname using sysupgrade, which is 'stg212' and imho should stay
that way.
The changes r48337 made for pogoplug-pro and pogoplug-v3 were correct,
thus this commit only partially reverts r48337.
Also properly set default for USB LED while already at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48398
8 years ago
Felix Fietkau d4ca4ae070 lantiq: Fix enabling CONFIG_MTD_UIMAGE_SPLIT
r48381 added CONFIG_MTD_SPLIT_UIMAGE_FW=Y to the lantiq kernel
configuration. That unfortunately contains a typo since the "y" has to
be lower-case. This leads to the kernel asking whether the config
symbol should be enabled and thus breaking the build.

FIXES: r48381/feab990887b4: lantiq: Enable the uImage mtd splitter
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48389
8 years ago
Rafał Miłecki 7c2356e2a0 bcm53xx: revert iProc patch adding PAXC support
It broke detecting some PCIe devices. This fixes (workarounds) #21393.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48382
8 years ago
Felix Fietkau e3b3b7fb0a lantiq: Enable the uImage mtd splitter
Until linux 4.1 the lantiq target used CONFIG_MTD_UIMAGE_SPLIT=y. That
option however is only available until linux 4.3 - thus it was not added
to lantiq's 4.4 kernel config (in r48307). This results in broken images
for devices which are using uImages. This fixes #21652

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48381
8 years ago
Zoltan Herpai 06bcc64f1f mxs: initial 4.4 support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48377
8 years ago
Zoltan Herpai 4e3813c79d kernel: add missing symbols for 4.4
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48376
8 years ago
Rafał Miłecki b9fb3d4524 bcm53xx: update iProc patches (V5 accepted in helgaas/pci.git next)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48375
8 years ago
Felix Fietkau e62802752e kernel: fix keyring reference leak (CVE-2016-0728)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48372
8 years ago
Felix Fietkau 20ba5a01cf kernel: modularize dma shared buffer code to eliminate kernel bloat
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48371
8 years ago
Rafał Miłecki 000295f8ba bcm53xx: move iProc patches that went mainline
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48370
8 years ago
Rafał Miłecki bba8f059d7 bcm53xx: backport iProc Kconfig fixes
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48369
8 years ago
Rafał Miłecki 1dfa369c98 bcm53xx: group iProc patches into patchsets they were sent in
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48368
8 years ago
Felix Fietkau 82939c3f52 Revert "cns3xxx: re-enable CONFIG_CPU_SW_DOMAIN_PAN"
There seem to be some remaining SMP issues with it

This reverts commit r48336

SVN-Revision: 48367
8 years ago
John Crispin 78a6a9aec3 ipq806x: Add support for Netgear D7800
Signed-off-by: Tathagata Das <tathagata@alumnux.com>

SVN-Revision: 48360
8 years ago
John Crispin f51f92d7e9 ramips: fix serial baudrate for final version of ZBT-WG2626 board
The bootloader was updated and now uses 115200 instead of 57600 baud
for the serial console. Change this also in OpenWrt's DTS, so the rate
is consistent for bootloader and linux kernel output.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48359
8 years ago
John Crispin 9df952742d ar71xx: board.d: fix switch defaults on dLAN pro 1200+ WiFi ac
transparent for vlans as originally committed

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 48358
8 years ago
John Crispin 9d4e076966 ar71xx: fix AR8337 switch initialization on dLAN pro 1200+ WiFi ac
unswap ports 0/6 (broken by 17b8dcd63100a6b9e35199882f38bdc2be640777)

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 48357
8 years ago
John Crispin ed72c5f846 ar71xx: add support for Netgear WPN824N
Add support for Netgear WPN824N.
Hardware specs:
  * AR7240, 4 LAN ports, 1 WAN port
  * AR9285 WLAN
  * 32 MB RAM
  * 4 MB Flash
  * 16 LEDs (LAN, WAN and Power/Status contain two LEDs for dual color
    effect)
  * 3 Buttons (not supported)

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>

SVN-Revision: 48356
8 years ago
John Crispin 9f7bbc649c ramips: HiLink HLK-RM04 image name typo (RM02 -> RM04)
The image name for the HiLink HLK-RM04 module has a typo and should read "RM04" rather than "RM02"

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48355
8 years ago
John Crispin e25a467072 at91: drop v3.18
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48354
8 years ago
John Crispin 83c246dffd at91: move to 4.4 kernel
Signed-off-by: Ben Whitten <ben.whitten@gmail.com>

SVN-Revision: 48353
8 years ago
John Crispin 0007d435ec at91: fix typo in usb kernel module makefile
Fix a typo with generating the package description

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>

SVN-Revision: 48352
8 years ago
John Crispin 7a3dacef98 at91: remove SAMA5D3 from Default image build.
As the Default profile option is a legacy subtarget, the dtb for the
sama5d3_xplained board DTS is not built and image generation fails.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>

SVN-Revision: 48351
8 years ago
John Crispin f5454fe429 at91: add package for high speed usb device
Add a package for a missing module for the at91 high speed device.
Without this the build process pauses asking to build as module.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>

SVN-Revision: 48350
8 years ago
John Crispin 373594fb4b at91: add 4.4 support
This puts the existing patches and config in a 3.18 folder and introduces
a 4.4 config and patches.
The USB clock fix patch is no longer necessary, and the patches applying
to non DT boards has been dropped as the platform has been converted.
4.4 config was generated by copying 3.18 and running make kernel_menuconfig,
scripts/kconfig.pl filled in the gaps.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>

SVN-Revision: 48349
8 years ago
Felix Fietkau 999d8c87b2 kernel: add patch to fix the ccp-crypto module
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 48348
8 years ago
Felix Fietkau 5abaa5e5a6 kernel: add missing symbol for 4.4
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 48346
8 years ago
Felix Fietkau 10557694bb kernel: add missing symbols for 4.1
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 48342
8 years ago
Felix Fietkau 2e7b00069a oxnas: switch to Linux 4.4
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48340
8 years ago
Felix Fietkau 89d37aaa5c oxnas: add patches and config for Linux 4.4
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48339
8 years ago
Felix Fietkau cee6c07cf3 oxnas: prepare platform and drivers for Linux 4.4
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48338
8 years ago
Felix Fietkau 354e5cdbe2 oxnas: fix the incorrect board names
Signed-off-by: Shonn Lu <countrysideboy@qq.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48337
8 years ago
Felix Fietkau 10220cd7e9 cns3xxx: re-enable CONFIG_CPU_SW_DOMAIN_PAN
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48336
8 years ago
Felix Fietkau 9c7d5fb570 kernel: work around CONFIG_CPU_SW_DOMAIN_PAN breakage on ARM11 MPCore
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48335
8 years ago
Felix Fietkau 87e4f9f009 cns3xxx: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48334
8 years ago
Felix Fietkau 91278df70e cns3xxx: fix a ethernet driver napi poll handling bug
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48333
8 years ago
Felix Fietkau 136747c564 cns3xxx: clean up SMP related code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48332
8 years ago
Felix Fietkau 8ecfa0e773 cns3xxx: fix adding twd local timers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48331
8 years ago
Felix Fietkau f366dc25d3 cns3xxx: remove obsolete file
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48330
8 years ago
Felix Fietkau 2ac8b1c1fe cns3xxx: remove unused define and use of a deprecated function
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48329
8 years ago
Hauke Mehrtens 13b8b8c2e7 lantiq: add support for TP-Link VR200v
This adds basic support for TP-Link VR200v.
Currently the following parts are not working: FXO, Voice, DECT, WIFI (both)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48328
8 years ago
Felix Fietkau fcfc7eb2ae kernel: fix uninitialized variable in bridge multicast-to-unicast patch on 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48327
8 years ago
Felix Fietkau e620f4d6f8 arc: clean-up and move CFLAGS to include/target.mk
Most of currently mentioned CFLAGS in arc770/Makefile
are not really required because:
 [1] "-Os -pipe" are set by default in include/target.mk
 [2] "-fno-caller-saves" gets enabled via menuconfig
     as an extra compiler flag for developers

So the only one that makes sense is "-matomic" and
that one is really essential. Without it many software
packges won't build complainin on unresolved atomic ops.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48326
8 years ago
Felix Fietkau 018e84f58d arc770/axs101: fix console output
While bumping kernel version kernel command line was
unintentionally modified in attempt to make it closer
to upstream version.

In case of AXS that has not only serial port but HDMI/USB
both capable of being debug console we have 2 entries in
kernel's command line:
------------------->8-----------------
console=tty0 console=ttyS3,115200n8
------------------->8-----------------

But as it turned out OpenWRT uses procd as init instead of
Busybox. And in its turn procd gets the first "console"
entry from kernel command line (/proc/cmdline) and uses it
if default inittab is used:
------------------->8-----------------
...
::askconsole:/bin/ash --login
------------------->8-----------------

So what we got is non-functional serial console.
That change removes "console=tty0" which brings serial
console back to life.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48325
8 years ago
Felix Fietkau 85ba5805e4 kernel: fix a build regression in the ld-version script fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48324
8 years ago
Felix Fietkau e7846156f2 lantiq: drop linux 4.1 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48323
8 years ago
Felix Fietkau 9b4b2b4e17 lantiq: switch to linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48322
8 years ago
Felix Fietkau 6cec31da3c lantiq: fix VDSL device detection with Linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48319
8 years ago
Felix Fietkau 3c3fb1dfc0 ramips: delete the broken sound driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48318
8 years ago
Felix Fietkau 63aa7023d8 ramips: mark kmod-sound-mtk as broken, it does not compile properly
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48317
8 years ago
Felix Fietkau fa61e3fbba ramips: fix kernel config handling for mt7620/mt7628 sound module
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48316
8 years ago
Felix Fietkau edb3c1780c brcm2708: fix RPi model B plus support
Not sure if B+ is used or not (mine has B Plus) so leave both

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 48311
8 years ago
Felix Fietkau a168e972fb kernel: fix MIPS linux-4.4 build on non-GNU systems
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48310
8 years ago
Felix Fietkau f577cb25c0 lantiq: Add support for linux 4.4
The following patches were dropped because they are already applied
upstream:
- 0038-MIPS-lantiq-fpi-on-ar9.patch
- 0039-MIPS-lantiq-initialize-usb-on-boot.patch
- 0042-USB-DWC2-big-endian-support.patch
- 0043-gpio-stp-xway-fix-phy-mask.patch

All other patches were simply refreshed, except the following:
- 0001-MIPS-lantiq-add-pcie-driver.patch
  Changes to arch/mips/lantiq/xway/sysctrl.c (these changes disabled
  some PMU gates for the vrx200 / VR9 SoCs) were removed since the
  upstream kernel disables unused PMU gates automatically (since
  95135bfa7ead1becc2879230f72583dde2b71a0c
  "MIPS: Lantiq: Deactivate most of the devices by default").
- 0025-NET-MIPS-lantiq-adds-xrx200-net.patch
  Since OpenWrt commit 55ba20afcc2fe785146316e5be2c2473cb329885 drivers
  should use of_get_mac_address(). of_get_mac_address_mtd is not
  available for drivers anymore since it's called automatically within
  of_get_mac_address().
- 0028-NET-lantiq-various-etop-fixes.patch
  Same changes as in 0025-NET-MIPS-lantiq-adds-xrx200-net.patch

While refreshing the kernel configuration SPI support had to be moved to
config-4.4 because otherwise M25P80 was disabled.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48307
8 years ago
Jonas Gorski a78bb9590f brcm63xx: add support for Huawei HG622
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48305
8 years ago
Jonas Gorski 25ce154605 ipq806x: fix sysupgrade for AP148
AP148 uses lowercase name as boardname, so we need to use this in
platform.sh as well.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48304
8 years ago
Jonas Gorski 74aca7d913 brcm63xx: fix platform gpio lookups for gpios < 32
Overwriting static strings is never a good idea, especially expecting
identical strings to be stored in different memory locations.

This caused the lookups to always return the second chip's name. Fix
this by just initializing the lookup with the right values, so we
don't need to modify the strings at all.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48303
8 years ago
Jonas Gorski 2b3b4c95f1 b53: update header register difinitions
BCM531x5 has two pontential cpu ports, and header mode can be enabled
independently on both.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48302
8 years ago
Luka Perkov cdfeab0931 imx6: drop 4.1 support
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 48300
8 years ago
Luka Perkov c4de2dfd2d imx6: drop 4.3 support
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 48299
8 years ago
Luka Perkov 85bdde7cf2 imx6: move to 4.4 kernel
Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 48298
8 years ago
Felix Fietkau 93a2b8a6c4 mpc85xx: update to linux 4.4, remove unnecessary patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48297
8 years ago
Felix Fietkau d64465556c lantiq: Remove incorrect PCIe compatible strings
Re-defining the compatible property is not required since the correct
value is inherited from vr9.dtsi.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48295
8 years ago
Felix Fietkau 720f599c9a lantiq: Remove the old SPI driver patch
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48294
8 years ago
Felix Fietkau 04ad02d132 lantiq: Switch to the new SPI driver
Compared to the "old" driver:
- Each device must assign a pinctrl setting to the SPI node to allow the
  new SPI driver to configure the SPI pins.
  While here we are also using separate input and output settings so we
  are independent of whether the bootloader configures the pins correctly.
- We use the new "compatible" strings to make the driver choose the
  correct number of chip-selects for each SoC.
- The new driver starts counting the chip-selects at 1 (instead of 0, like
  the old one did). Thus we have to adjust the devices accordingly.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48293
8 years ago
Felix Fietkau 5985c56ec6 lantiq: Add a rewritten version of the SPI driver
The new driver provides a few improvements over the old one:
- Separate compatible strings per SoC type (this allows removing some
  hardcoded of_device_is_compatible() checks)
- It does not rely upon spi-bitbang anymore
- chip-selects are numbered as in the datasheet (= starting at 1 instead
  of 0)

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48292
8 years ago
Felix Fietkau af857db692 lantiq: Disable CONFIG_SPI_GPIO
All devices are now using the HW SPI driver, so this is not necessary
anymore.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48291
8 years ago
Felix Fietkau d5c5928d6b lantiq: Enable the hardware SPI driver on the DGN3500/DGN3500B
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48290
8 years ago
Felix Fietkau d8b74320bd lantiq: Enable SPI for the EASY80920 board again
Also switch to the SPI definition provided by vr9.dtsi

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48289
8 years ago
Felix Fietkau be8f9ad6f4 lantiq: Switch FRITZ3370 from spi-gpio to the hardware SPI driver
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48288
8 years ago
Felix Fietkau 9d558fb48e lantiq: Re-use the SPI node from vr9.dtsi in TDW89X0.dtsi
This removes the duplicate SPI register definition.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48287
8 years ago
Felix Fietkau a5c177943b lantiq: Add the SPI node to ar9.dtsi and vr9.dtsi
This allows devices to use SPI without having to re-define (and thus
duplicating) the whole SPI node.
By default SPI is disabled (as before) because only few devices need it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48286
8 years ago
Felix Fietkau 3f8a426056 lantiq: Configure the PCIe reset GPIO using OF
After the latest pinctrl backports there are only 50 (instead of 56 as
before) GPIOs/pins exported (thus the first GPIO on VRX200 SoCs is now
462, before it was 456). This means that any hardcoded GPIOs have to be
adjusted.
This broke the PCIe driver (which seems to be the only driver which uses
hardcoded GPIO numbers), it only reports:
	ifx_pcie_wait_phy_link_up timeout
	ifx_pcie_wait_phy_link_up timeout
	ifx_pcie_wait_phy_link_up timeout
	ifx_pcie_wait_phy_link_up timeout
	ifx_pcie_wait_phy_link_up timeout
	pcie_rc_initialize link up failed!!!!!

To prevent more of these issues in the future we remove the hardcoded
PCIe reset GPIO definition and simply pass it via device-tree (like the
PCI driver does).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48285
8 years ago
Felix Fietkau 1204a1b1e5 lantiq: Use the new pinctrl compatible strings
These were introduced in upstream commit
be14811c03cf "pinctrl/lantiq: introduce new dedicated devicetree
bindings" and finally allow us to use the individual pins within our dts
(for example spi_clk, etc.).
Please note that this changes the number of GPIOs which are available for
some SoCs. VRX200 SoCs for example only have 50 pins, but previously 56
pins were exposed. This means that all places which are using hardcoded
GPIO numbers (which are not passed via device-tree) need to be adjusted
(because the first GPIO number is now 462, instead of 456).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48284
8 years ago
Felix Fietkau ee03fc430d lantiq: Backport upstream pinctrl-xway patches from 4.5
Upstream commit be14811c03cf2 "pinctrl/lantiq: introduce new dedicated
devicetree bindings" allows us to use each pin in the pinmux. This is
useful for example in the "spi" group which contains some pins which
are inputs, and some which are outputs.
These can only be used once the new compatible strings for the pinctrl
node are used.
Additionally 0150-lantiq-pinctrl-xway.patch and the "GPIO PORT3 fix"
(which was part of 0012-pinctrl-lantiq-fix-up-pinmux.patch) were
replaced with their upstream variants which are also in 4.5.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48283
8 years ago
Gabor Juhos 55b0e261a4 ar71xx/lzma-loader: fix O32 ABI conformance
According to the calling convention of the o32 ABI the caller
function must reserve stack space for $a0-$a3 registers in case
the callee needs to save its arguments.

The assembly code of the loader does not reserve stack space for
these registers thus when the 'loader_main' function needs to save
its arguments, those will be stored in the 'workspace' area instead
of the stack.

Because the workspace area is also used by other part of the code, the
saved register values gets overwritten and this often leads to failed
kernel boots.

Fix the code to reserve stack space for the registers to avoid this
error.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 48279
8 years ago
Felix Fietkau b7aab03486 ar71xx: Use full 128MB flash on Netgear WNDR4300 and WNDR3700v4
Change MTD on WNDR4300 and WNDR3700v4 to fully utilize the 128MB flash.

Credit to @Tuochenlyu on GitHub.

Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>

SVN-Revision: 48276
8 years ago
Felix Fietkau 271a348cda mpc85xx: Add PTP node for TL-WD4900 in device tree
PTP requires at least one timer to be 1PPS so describe it.
For testing, load kernel module gianfar_ptp and use ptp4l
from linuxptp.

Copied from FSL P1010RDB reference design.

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

SVN-Revision: 48275
8 years ago
Felix Fietkau deb4c31da4 lantiq: Fixed brnImage signature for the VGV7510KW22BRN images
The old signature only worked because brnboot ignores the leading "5" in
the signature. We can see the correct signature when flashing a brnImage
via recovery web-interface, in this case brnboot reports:
	[CGI-Signature Check] buf:[BRNDA6431], sigInFlash:[BRNDA6431]

Thanks to Mathias Kresin for reporting this.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48269
8 years ago
Felix Fietkau f8d2ec6e9d ar8327: add IGMP Snooping support
This add support for IGMP Snooping on atheros switches (disabled by default),
which avoids flooding the network with multicast data.

Tested on TL-WDR4300: disabling IGMP Snooping results in multicast flooding
on each specific port, enabling it back again prevents each port from
receiving all multicast packets.

Partially based on: http://patchwork.ozlabs.org/patch/418122/

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48268
8 years ago
Felix Fietkau 4224b52c3a brcm2708: add linux 4.4 support
- random-bcm2708 and spi-bcm2708 have been removed.
- sound-soc-bcm2708-i2s has been upstreamed as sound-soc-bcm2835-i2s.

Let's keep linux 4.1 for a while, since linux 4.4 appears to have some issues
with multicast traffic on RPi ethernet:
https://gist.github.com/Noltari/5b1cfdecce5ed4bc08fd

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48266
8 years ago
Felix Fietkau cad399c87b uml: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48265
8 years ago
Felix Fietkau 7c0260117f lantiq: Switch to the generic mtdsplit parser implementations
This removes the arch-specific mtdsplit parsers and enables the generic
implementations for brnImage, EVA and TP-Link instead.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48264
8 years ago
Felix Fietkau 7703e14bc4 kernel: mtdsplit_squashfs: Align with the erase-block size
On most image types the rootfs ends at an erase-block. However, at least
with brnImages this is not the case: while the partitions are aligned
with the erase-block size there is a 12 byte footer at the end of the
partition which must not be touched by any filesystem. This lead to a
rootfs_data partition which was not aligned properly (and thus ended up
being readonly):
	0x000000480000-0x00000085a800 : "rootfs_data" (128 KiB EB)

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48263
8 years ago
Felix Fietkau 651083bbd9 kernel: mtdsplit: add support for EVA images
This allows splitting EVA images (usually found in fritz devices). The
firmware will be split into a kernel and a separate rootfs partition.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48262
8 years ago
Felix Fietkau bdd2772f1d kernel: mtdsplit: add support for brnImages
This adds brnImage (used with the brnboot bootloader) firmware parsing
support. brnboot verifies the integrity of the firmware stored on the
"Code Image" partitions by looking at the 12 byte footer at the very end
of the partition. This footer contains the checksum of the original
brnImage (kernel + rootfs/squashfs) and must not be touched (by our JFFS2
rootfs_data - otherwise the image will not be bootable anymore).

Big thanks to Mathias Kresin for analyzing the brnImage structure and
finding out the information how to keep images valid even when adding a
nested rootfs_data partition.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48261
8 years ago
Felix Fietkau 3348279eca kernel: disable bogus DEVTMPFS config overrides
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48260
8 years ago
Felix Fietkau e0de7275f9 imx6: kernel: Add Micrel PHY used on Apalis SOM
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Cc: Luka Perkov <luka@openwrt.org>

SVN-Revision: 48249
8 years ago
Felix Fietkau 321823ba05 imx6: add 4.4 support
Build and boot tested on the following hardware:
 * GW54xx
 * GW53xx
 * GW52xx
 * GW51xx
 * GW552x
 * GW551x

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 48248
8 years ago
Felix Fietkau d475624f64 arc770: move arc patches to target/linux/generic
Given those patches are relevant to any ARC platform and even
ISA version it makes perfect sense for patches to exist
in one place instead of being duplicated for each new ARC-based ASIC.

Note this is a prerequisite for upstreaming of ARC HS38 support in
OpenWRT.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48241
8 years ago
Felix Fietkau 4514589182 arc770: bump linux kernel from 4.3 to 4.4
This switch involved:
 [1] Regeneration of config (few options went away)
 [2] Regeneration of patches so they apply cleanly (different offsets)
 [3] Update of .dts files because we now explicitly specify
     memory regions in use as opposed to previously used offset
     from 0x8000_0000

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48240
8 years ago
Felix Fietkau 7f11532c58 kernel: compile out SNMP MIB related counting if debloat-proc is active - improves network stack performance
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48239
8 years ago
Felix Fietkau 09ad818ffc kernel: backport perf build fixes to 4.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48231
8 years ago
Felix Fietkau 021f3834a7 kernel: remove obsolete config symbols from 4.4
Only remove old symbols for 4.4 since older Kernels might be
removed sooner/later and 4.4 is the next LTS

build tested against:
 omap 4.4 CONFIG_ALL_KMODS
 x86_64

List of enabled & orphaned symbols:

-CONFIG_ARPD=y
-CONFIG_BT_L2CAP=y
-CONFIG_BT_SCO=y
-CONFIG_CAVIUM_OCTEON_HELPER=y
-CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
-CONFIG_DISABLE_DEV_COREDUMP=y
-CONFIG_EXPERIMENTAL=y
-CONFIG_EXT4_FS_XATTR=y
-CONFIG_GENERIC_HARDIRQS=y
-CONFIG_GENERIC_TIME=y
-CONFIG_HOTPLUG=y
-CONFIG_INITRAMFS_COMPRESSION_NONE=y
-CONFIG_INLINE_SPIN_UNLOCK=y
-CONFIG_LEDS_GPIO_OF=y
-CONFIG_LEDS_GPIO_PLATFORM=y
-CONFIG_MFD_SUPPORT=y
-CONFIG_MISC_DEVICES=y
-CONFIG_MTD_CHAR=y
-CONFIG_NETDEV_1000=y
-CONFIG_NET_ETHERNET=y
-CONFIG_NET_PCI=y
-CONFIG_NET_VENDOR_SILICOM=y
-CONFIG_SCSI_MULTI_LUN=y
-CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
-CONFIG_USB_ARCH_HAS_EHCI=y
-CONFIG_USB_ARCH_HAS_OHCI=y
-CONFIG_USB_DEVICEFS=y
-CONFIG_USB_EZUSB=y

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 48230
8 years ago
Hauke Mehrtens cb6b7be43f lantiq: remove clk_round_rate() patch
This patch was merged into upstream Linux 4.1.
This fixes #21587 and was introduced in r48223.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48229
8 years ago
Felix Fietkau 5c5c60fec4 ar71xx: fix ethernet MAC reset on DMA hang
Fully reset the chip like on a full up/down, but without the PHY
statemachine restart.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48228
8 years ago
Felix Fietkau cf2cf43717 ar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chips
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48227
8 years ago
Hauke Mehrtens de18003b6e kernel/3.18: update to version 3.18.25
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48225
8 years ago
Hauke Mehrtens cdb83aaf5f kernel/4.3: update to version 4.3.3
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de

SVN-Revision: 48224
8 years ago
Hauke Mehrtens 93b50ade93 kernel/4.1: update to version 4.1.15
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48223
8 years ago
Hauke Mehrtens ba3a749f9b kernel: refresh patches for kernel 4.4
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48222
8 years ago
Felix Fietkau a68d8a660a pxa: moved to targets feed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48217
8 years ago
Felix Fietkau 2172d7dbbf x86: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48216
8 years ago
Felix Fietkau 9e7a66d195 kernel: add missing symbols for linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48215
8 years ago
Felix Fietkau f875e18fd2 kernel: Update kernel 4.4 to 4.4.0
This removes one patch which was applied upstream with commit
67b9bcd36906e12a15ffec19463afbbd6a41660e. All other patches were
refreshed.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48203
9 years ago
Felix Fietkau fed29fa36b x86: remove obsolete patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48190
9 years ago
Felix Fietkau b34a86691f x86: remove the rdc subtarget, it was broken for ages and nobody cared
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48189
9 years ago
Felix Fietkau 826cfa5773 ar71xx: fix ap152 support
- ethernet gigabit pll
- switch configuration
- sysupgrade

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 48187
9 years ago
Zoltan Herpai a6611a92d5 sunxi: initial 4.4 support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48161
9 years ago
Zoltan Herpai 24894e52bc sunxi: prep module support options for 4.4
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48160
9 years ago
Zoltan Herpai 26c04e09a2 kernel/4.4: add missing config options
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48159
9 years ago
Felix Fietkau 471a567a88 ramips: do not rely on $(BIN_DIR) installed files during image build (for ubnt-erx)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48147
9 years ago
Felix Fietkau 2499a57d92 targets: add kernel image dependencies on device tree files
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48146
9 years ago
Felix Fietkau 947eac1803 ramips: do not attempt to build ubnt-erx initramfs image if initramfs support is disabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48144
9 years ago
Rafał Miłecki 5f69279dd6 swconfig: add API for setting port link speed
Some switches can force link speed for a port. Let's add API that will
allow drivers to export this feature.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48142
9 years ago
Felix Fietkau 56608a777e ramips: fix duplicate /dts-v1/ line for WRTNODE2
Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com>

SVN-Revision: 48138
9 years ago
Felix Fietkau 48a57b1ead ramips: set mips16 support
Signed-off-by: Cristian Morales Vega <cristian@samknows.com>

SVN-Revision: 48131
9 years ago
Zoltan Herpai de4145c102 sunxi: fix Lamobo R1 board detection
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48130
9 years ago
John Crispin e85230ce2e ralink: add a few mt7688 fixes that got lost in the v4.3 bump
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48115
9 years ago
John Crispin eb9fccc440 ralink: update the usb phy driver to the version sent upstream
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48114
9 years ago
John Crispin 9b675a2a33 ralink: fix USB compatible strings
switch to the upstream compatible strings for ehci and ohci support.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48113
9 years ago
Rafał Miłecki e17c1e45ad bcm53xx: fix USB patch breaking 4.4 compilation
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48112
9 years ago
Rafał Miłecki ccb7d794ff kernel: update bcma by backporting 4.4 and 4.5 patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48111
9 years ago
Felix Fietkau e14d2aee0a kernel: add at803x fix for sgmii mode
Some (possibly broken) bootloaders incorreclty initialize at8033
phy. This patch enables sgmii autonegotiation mode.

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 48109
9 years ago
Felix Fietkau 54b4265873 kernel: move at803x phy patch to generic
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 48108
9 years ago
Felix Fietkau ef215468f1 ar71xx: ensure that LOADADDR is passed to lzma-loader
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48101
9 years ago
Felix Fietkau f49dadb0bd ar71xx: fix factory images for WNR2200 (#19807)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48085
9 years ago
Felix Fietkau 67877462a2 malta: fix generating network configuration
With the default network config provided by package base-files present,
board_detect won't create a new config from board.json.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 48076
9 years ago
Felix Fietkau 0da9da0d33 ar71xx: another fix to wndr3700_board_detect
My last bugfix (r47538) introduced a new bug in wndr3700_board_detect
(again...).

Assigning the result of ar71xx_get_mtd_offset_size_format to the model
variable before stripping of garbage using awk will cause all NUL bytes to
be removed before awk is applied, leading to model strings like
"NETGEAR WNDRMACv2NETGEAR", where a NUL byte after the v2 is supposed to
terminate the string.

Fix by calling ar71xx_get_mtd_offset_size_format twice, once piping to awk
directly.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 48075
9 years ago