Commit graph

528 commits

Author SHA1 Message Date
Jonas Gorski
bed330204a image.mk: move KDIR_TMP definition to a central location
Instead of each target defining it the same, move the KDIR_TMP
definition to include/image.mk. In addition Image/Build/SysupgradeNAND
already requires KDIR_TMP to be set, so it makes sense to have it
globally defined.

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

SVN-Revision: 46592
2015-08-14 10:20:53 +00:00
Jonas Gorski
dbe4173b20 image: fix jffs2(_nand) image generation
Variables dependend on JFFS2_BLOCKSIZE and NANDBLOCK_SIZE are used
for template generation, so need to be present before inclusion of
image.mk in target image Makefiles.
So move all declarations to before any includes.

Fixes: r42878 ("image.mk: clean up and parallelize mkfs calls")
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46564
2015-08-05 13:55:52 +00:00
Jonas Gorski
caa73eb95c kernel: update 4.1 to 4.1.4
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.4

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[jogo: fix brcm2708 patches, refresh target patches]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46560
2015-08-05 13:55:14 +00:00
John Crispin
9c0ed4ce5c lantiq: Silence the PCIe error interrupt printk also in 4.1
This ports 9e2a7b779e6f0914395da3657b00f0ac00209bfd to the 4.1 patches.
I forgot this when preparing the initial 4.1 patch.

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

SVN-Revision: 46453
2015-07-24 09:09:07 +00:00
Jonas Gorski
cc42b1049b kernel: refresh patches for 4.1
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46441
2015-07-22 12:51:11 +00:00
Hauke Mehrtens
29039f51b3 kernel: refresh patches on linux 3.18
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46308
2015-07-12 13:47:16 +00:00
John Crispin
b9963bbe80 lantiq: Add support for Arcadyan ARV8539PW22 (Speedport W 504V)
lantiq: Add support for Arcadyan ARV8539PW22 (Speedport W 504V)

Signed-off-by: Jannis Pinter <jannis@pinterjann.is>

SVN-Revision: 46224
2015-07-07 13:44:58 +00:00
John Crispin
6bdd209f15 lantiq: Add support for the BT Home Hub 5A
u-boot support depends on the next "upstream" version ([0]) from
Daniel Schwierzeck.
Since the installation process is quite complicated a "how to" was
added to the wiki: [1]

[0] https://github.com/danielschwierzeck/u-boot-lantiq/tree/openwrt/v2014.01-next
[1] http://wiki.openwrt.org/toh/bt/homehub_v5a

V2: Use the correct PCI interrupt (fixes 2.4GHz wifi)
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46223
2015-07-07 13:44:53 +00:00
John Crispin
2748df1c98 lantiq: Silence the printk when a PCIe error interrupt arrives
Basically the only error I am seeing is "Correctable Error". Also newer
lantiq PCIe drivers have this message wrapped in a "if debug enabled"
block. So it should be safe to disable this warning.

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

SVN-Revision: 46222
2015-07-07 13:44:37 +00:00
John Crispin
415fe71d00 lantiq: Make the MEI address available for kernel drivers
Newer DSL driver versions depend on the address information.

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

SVN-Revision: 46221
2015-07-07 13:44:32 +00:00
John Crispin
fa9e259729 lantiq: Change the data-type of mac address in ETOP driver
Make it consistent with the net_device struct and the xrx200 driver

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

SVN-Revision: 46219
2015-07-07 13:44:12 +00:00
John Crispin
ff08b09570 lantiq: Add support for linux 4.1
All (still relevant) patches were refresh.
The following patches were dropped because they are applied upstream:
- 0003-MIPS-lantiq-handle-vmmc-memory-reservation.patch
- 0005-MIPS-lantiq-add-reset-controller-api-support.patch
- 0006-MIPS-lantiq-reboot-gphy-on-restart.patch
- 0009-MIPS-lantiq-command-line-work-around.patch
- 0010-MIPS-lantiq-export-soc-type.patch
- 0011-lantiq-add-support-for-xrx200-firmware-depending-on-.patch
- 0037-MIPS-lantiq-move-eiu-init-after-irq_domain-register.patch

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

SVN-Revision: 46216
2015-07-07 13:43:47 +00:00
Jonas Gorski
901a7fa067 kernel: update 3.18 to 3.18.17
Changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.17

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

SVN-Revision: 46150
2015-06-30 23:26:09 +00:00
Jonas Gorski
9a59b350b7 kernel: update 3.18 to 3.18.16
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16

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

SVN-Revision: 46011
2015-06-17 09:54:55 +00:00
John Crispin
262f6869a2 lantiq: Backport gpio-stp-xway to fix the highest bits of the PHY LEDs
This fixes the LAN2 LED on Arcadyan VGV7510KW22.

SVN-Revision: 45899
2015-06-05 14:11:51 +00:00
John Crispin
ca1db6b5ce lantiq: Add support for Arcadyan VGV7510KW22 (known as o2 Box 6431)
SVN-Revision: 45897
2015-06-05 14:11:36 +00:00
John Crispin
2575637497 lantiq: Make the CRC32 poly value configurable per device
This also adds the old hardcoded value to the VGV7519BRN profile to make
sure that images are still generated correctly.

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

SVN-Revision: 45882
2015-06-03 13:58:57 +00:00
Jonas Gorski
43c0a725af lantiq: fix VG3503J rootfs offset
In r44391 the kernel partion size was increased to allow larger kernels,
but the rootfs partition offset was missed. Fix this by setting the
rootfs offset to the expected value.

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

SVN-Revision: 45868
2015-06-01 12:37:24 +00:00
John Crispin
b34988d5d0 lantiq: fix imagebuilder
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45851
2015-05-30 20:28:57 +00:00
John Crispin
230efe318f lantiq: Fix initialization of the PCI IRQs when PCIe is also enabled
There are already ifx_pcie_bios_{map_irq,plat_dev_init} hooks defined in
ifxmips_pcie.c. Instead of defining a new hook we simply re-use the
existing ones (this is basically what the lantiq BSP code does).

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

SVN-Revision: 45718
2015-05-23 15:25:59 +00:00
John Crispin
390924e662 lantiq: Fix PCIe bus when PCI is also enabled.
The PCIe bus seems to require a hack/workaround when PCI is enabled as
well. Unfortunately this is guarded by an CONFIG_IFX_PCI ifdef, which is
only defined in lantiq's BSP code. The config symbol for the upstream
lantiq PCI driver is CONFIG_PCI_LANTIQ.

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

SVN-Revision: 45717
2015-05-23 15:25:51 +00:00
Jonas Gorski
76d079204d kernel: update 3.18 to 3.18.14
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14

Build tested on brcm63xx and ipq806x, runtested on brcm63xx.

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

SVN-Revision: 45711
2015-05-21 19:32:46 +00:00
Imre Kaloz
f86c07d8d4 The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45596
2015-05-03 17:56:32 +00:00
John Crispin
85bf288428 lantiq: remove arphaned folder
the new buildbot was picking this up as a valid target.

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

SVN-Revision: 45068
2015-03-27 19:47:22 +00:00
John Crispin
29cf72ac07 lantiq/xrx200: cleanup default packages
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44867
2015-03-17 09:44:06 +00:00
John Crispin
986af9e64e lantiq: make xrx200 targets use the upstream dwc2 driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44857
2015-03-17 09:42:56 +00:00
John Crispin
257671615b lantiq: drop 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44812
2015-03-16 07:39:52 +00:00
Felix Fietkau
d8d9282372 lantiq: add a better fix to strip FCS from ethernet packets on XRX200
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44771
2015-03-15 09:47:34 +00:00
Felix Fietkau
55cdb4dbb3 lantiq: enable atm-esi by default for xrx200
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44769
2015-03-15 07:57:51 +00:00
John Crispin
da3fd5dbf9 kenrel: refresh patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44678
2015-03-11 17:08:46 +00:00
John Crispin
d5c250b91a lantiq: make the new dwc2 support only work for vr9
danube needs to be added

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

SVN-Revision: 44677
2015-03-11 17:08:40 +00:00
John Crispin
2a390925df lantiq: Convert Zyxel P-2812HNU-FX and TP-Link TD-W8970 to support dwc2
Here the device tree entry for ifxhcd is listed as compatible with one
supported in dwc2 (after patching the dwc driver appropriately).

A second entry is added to support the second core of the hcd. This
entry is listed to be compatible with only dwc2. Done this way there
should be backwards support for both hcd drivers (ltq-hcd and dwc2)

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>

SVN-Revision: 44676
2015-03-11 17:08:32 +00:00
John Crispin
72822d0192 lantiq: Use platform endianness when accessing dwc2 registers
This patch switches calls to readl/writel to their
dwc2_readl/dwc2_writel equivalents which preserve platform endianness.

This patch is necessary to access dwc2 registers correctly on big
endian systems such as the mips based SoCs made by Lantiq. Then dwc2
can be used to replace ifx-hcd driver for Lantiq platforms found e.g.
in OpenWrt.

The patch was autogenerated with the following commands:
$EDITOR core.h
sed -i "s/\<readl\>/dwc2_readl/g" *.c hcd.h hw.h
sed -i "s/\<writel\>/dwc2_writel/g" *.c hcd.h hw.h

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>

SVN-Revision: 44675
2015-03-11 17:08:26 +00:00
John Crispin
d77c857509 lantiq: Add sensible hw-defaults for dwc2
Lantiq driver does not work with autodetected fifo sizes so use ones
from original ltq-hcd driver in dwc2. Other values can be
autodetected.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>

SVN-Revision: 44674
2015-03-11 17:08:15 +00:00
John Crispin
2ddcf4c46e lantiq: Configure gpio power output pin when initializing dwc2 usb
Port gpio code from original ltq-hcd driver to dwc2.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>

SVN-Revision: 44673
2015-03-11 17:08:08 +00:00
John Crispin
a23da431dc lantiq: Add usb initialization bits from ltq-hcd to platform init
Add VR9 specific usb initialization bits from ltq-hcd to platform
initialization.

This patch is more of a proof-of-concept than production quality
since the initialization registers are different on other lantiq
platforms.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>

SVN-Revision: 44672
2015-03-11 17:08:02 +00:00
John Crispin
d15ac306fa kernel: move KERNFS to generic config
KERNFS symbol is selected by SYSFS, so place it in generic config.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44615
2015-03-06 07:56:47 +00:00
John Crispin
f04a268a04 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED
Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since
only one platfrom (omap) needs them.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44614
2015-03-06 07:56:34 +00:00
John Crispin
6617845711 kernel: move MTD_SPLIT_SUPPORT to generic config
CONFIG_MTD_SPLIT_SUPPORT symbol default value is 'y' and many platform
specific configs explicitly enables it, while no one platform disables
this symbol. So place it in generic config and remove from platform
specific configs.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44612
2015-03-06 07:56:08 +00:00
John Crispin
7886cced18 kernel: remove GENERIC_NET_UTILS from platform configs
CONFIG_GENERIC_NET_UTILS is selected by CONFIG_NET and already enabled
in generic config, so we don't need this symbol in platform specific
configurations.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44611
2015-03-06 07:55:57 +00:00
Jonas Gorski
3139140339 kernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs
Most MIPS targets have it disabled, so move the symbol to the generic
configs to keep target configs small.

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

SVN-Revision: 44583
2015-03-01 11:37:15 +00:00
John Crispin
e07c4f2150 lantiq: disable buffered writes on Intel command set flash
Some Lantiq SoCs are not able to use buffered writes properly with
Intel command set flash due to the way NOR addresses on EBU are
manipulated. This patch disables buffered writes on those devices.
The only device affected at the moment is ARV4510PW, others use
AMD/Fujitsu command set.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 44451
2015-02-14 20:48:32 +00:00
John Crispin
a15dd8ec78 lantiq: Fix flash for targets with NO_XIP
For targets with NO_XIP ltq_mtd->map[i].phys equals -1 and devm_ioremap fails.
Fix this by using pdev->resource[i].start instead.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 44450
2015-02-14 20:48:26 +00:00
John Crispin
440d9ddf7f lantiq: fix DGN3500 root device
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>

SVN-Revision: 44428
2015-02-13 07:29:17 +00:00
John Crispin
dbfb21ee90 lantiq: make m25p80 work again
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44421
2015-02-12 11:15:56 +00:00
John Crispin
1eb616764e lantiq: fix mac addr assignment inside lantiq_etop
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44420
2015-02-12 09:17:04 +00:00
John Crispin
c5b7e1aaf4 lantiq: PCI should be enabled on vrx200
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44419
2015-02-12 08:23:45 +00:00
John Crispin
f90d9d486a lantiq: fix VG3503J partition table for newer kernels
the kernel has increased and does not fit into the 1,5MB anymore.

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

SVN-Revision: 44391
2015-02-11 10:17:38 +00:00
John Crispin
1c0c1ebc6b lantiq: td-w8970: fix failsafe mode
Fix failsafe mode for TD-W8970, register interface for preinit.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 44353
2015-02-09 12:14:48 +00:00
John Crispin
1c9dc26ce9 lantiq: td-w8970: fix reset button
For TP-LINK TD-W8970 button should work as "reset", not "BTN_1".

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 44352
2015-02-09 12:14:32 +00:00