Commit graph

13366 commits

Author SHA1 Message Date
Jonas Gorski
6df9324642 brcm63xx: fix BCM63268 interrupt register locations for legacy probe
Legacy probe passed the IRQSTAT registers instead of the IRQMASK
registers causing all register accesses to be offset by 16 bytes.

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

SVN-Revision: 44575
2015-02-28 19:59:34 +00:00
Jonas Gorski
c2a89871c2 brcm63xx: fix gpio register usage
The driver expected data then dir, but both dts and legacy code passed
dir then data. Fix this by making the driver expect the registers in
ascending order, i.e. dir then data.

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

SVN-Revision: 44574
2015-02-28 19:59:26 +00:00
Rafał Miłecki
15fb17791a mpc83xx: start work on 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44573
2015-02-28 18:15:59 +00:00
Rafał Miłecki
151b6b3432 omap: complete 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44572
2015-02-28 14:56:53 +00:00
Rafał Miłecki
dccefe7b53 omap: start working on 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44571
2015-02-28 13:54:51 +00:00
Jonas Gorski
b694c45d33 brcm63xx: backport and enable DT spi-gpio no CS support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 44570
2015-02-27 23:48:48 +00:00
Jonas Gorski
b6ad4b7332 brcm63xx: fix image generation and broken patch
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 44569
2015-02-27 23:48:32 +00:00
Jonas Gorski
d75cd5be37 b53: fix mmap register read/writes > 32 bit
For bcm63xx integrated switches, broadcom changed the data endianess
to match the system endianess. But this only applies to within one word,
which causes 48/64 bit values to be still split into their "litte endian"
groups.

E.g. 48 bit values (with 5 being the most significant byte) aligned

0x00 ..01  or   0123
0x04 2345       45..

will become

0x00 ..10 resp. 3210
0x04 5432       54..

Likewise for 64 bit values.

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

SVN-Revision: 44568
2015-02-27 17:40:17 +00:00
Jonas Gorski
8ff23c60e2 brcm63xx: remove gpio base workaround
Now that all gpio users without named gpios use DT, we do not need
to fix the gpio controller bases anymore.

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

SVN-Revision: 44567
2015-02-27 17:40:09 +00:00
Jonas Gorski
b82cb155fc brcm63xx: move buttons and leds to dts files
Register buttons and leds through DT for all available dts,
and remove them from the board files.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: remove leds/buttons from board files
       fix wrong led polarities for dsl-274xb-c2, cpva642, p870hw
       comment out spi-gpio and associated leds]

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

SVN-Revision: 44566
2015-02-27 17:40:04 +00:00
Jonas Gorski
eea227c60d brcm63xx: probe gpio controllers through DT
Add a generic mmio gpio controller based driver and probe it
through device tree.

Use aliases for base calculation until we converted all users to
device tree or named gpios.

Convert bcm63xx_enet's ephy-reset gpio to use a named gpio.

While at it, remove the duplicate reset gpio defintion for livebox.

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

SVN-Revision: 44565
2015-02-27 17:39:49 +00:00
Jonas Gorski
1efb7398e1 brcm63xx: convert BTV2500V to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44564
2015-02-27 17:39:29 +00:00
Jonas Gorski
90c15beee6 brcm63xx: convert RTA1320 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44563
2015-02-27 17:39:21 +00:00
Jonas Gorski
5a9b7c28c3 brcm63xx: convert RTA1025 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44562
2015-02-27 17:39:13 +00:00
Jonas Gorski
9a65e1a570 brcm63xx: use dtb for cvg834g
Add a dtsi for bcm3368, add a dts and profile for cvg834g, and convert
it to use ImageDTB. Since HCS requires more arguments, enhance the max
arguments of the call.
The image name is intentionally left blank to prevent non-initramfs
images to be built, as they currently contain no rootfs and consequently
won't work.

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

SVN-Revision: 44561
2015-02-27 17:39:07 +00:00
Jonas Gorski
69b327247c brcm63xx: image: move image argument to front in *DTB calls
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44560
2015-02-27 17:38:51 +00:00
Jonas Gorski
f3c071b376 brcm63xx: add dts and profile for Livebox
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44559
2015-02-27 17:38:46 +00:00
Jonas Gorski
dd7625ef15 brcm63xx: allow lzma to use 32MB RAM
Most 16 MiB RAM devices don't even load elf kernels, so it's safe to
assume we have at least 32 MB RAM. This fixes tftp booting with the
default package set as this already produces an uncompressed
kernel > 8 MiB.

New limit is 8 MiB compressed / 24 MiB compressed.

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

SVN-Revision: 44558
2015-02-27 17:38:28 +00:00
Jonas Gorski
92eb27f56d package: mtd: move bcm963xx_tag definition into source code
Remove the need for the header file to be exported - we don't need most
of it anyway; all we care about are the offset of the rootfs length and
header crc fields.

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

SVN-Revision: 44557
2015-02-27 17:38:25 +00:00
Jonas Gorski
bb54859543 brcm63xx: do not align squashfs rootfs start
We do not need to align the start of read only rootfs's to erase blocks.
This allows us to write the squashfs rootfs directly behind the kernel,
potentially freeing up one erase block.

We still need to align for jffs2, so add a flag for imagetag to
optionally align the rootfs start.

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

SVN-Revision: 44556
2015-02-27 17:38:14 +00:00
Jonas Gorski
d4652e817a brcm63xx: drop call to prepare_generic_squashfs
We do not use the result, so no need to call it.

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

SVN-Revision: 44555
2015-02-27 17:38:09 +00:00
Felix Fietkau
b64ca483ef kernel: fix 3.18+ if_bridge.h header conflict with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44553
2015-02-27 07:35:26 +00:00
Imre Kaloz
f76a752c57 generic/4.0: refresh patches
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44532
2015-02-24 18:53:14 +00:00
Imre Kaloz
11e93be20d generic/4.0: drop patches applied upstream
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44531
2015-02-24 18:35:17 +00:00
Imre Kaloz
c407264643 generic/4.0: drop 3.18 specifix dwc2 backport
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44530
2015-02-24 18:30:16 +00:00
Imre Kaloz
efea65bb99 generic/4.0: the ubi patches has been fixed in the 3.19 patchset already
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44529
2015-02-24 18:27:49 +00:00
John Crispin
e67f5ed2e6 ar71xx: refresh patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44528
2015-02-24 12:01:08 +00:00
John Crispin
1c5a2826e3 ar71xx: Add QCA953X version2 SoC support
http://patchwork.ozlabs.org/patch/435234/

Signed-off-by: 郭传鈜 <gch981213@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44527
2015-02-24 12:01:00 +00:00
John Crispin
9358a8a798 ar71xx: TL-WA7210n v2 support
This patch adds support for TP-Link TL-WA7210n[0]

[0] http://www.tplink.com/en/products/details/?model=TL-WA7210N

Signed-off-by: Hendrik Frenzel <hfrenzel@scunc.net>

SVN-Revision: 44526
2015-02-24 12:00:50 +00:00
John Crispin
7c24d8627f ipq806x: add ahci to default packages
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44525
2015-02-24 12:00:22 +00:00
John Crispin
458c37fb14 ipq806x: add default package selection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44523
2015-02-24 12:00:09 +00:00
John Crispin
de7100d818 ipq806x: initialize the network on AP148
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44522
2015-02-24 12:00:04 +00:00
John Crispin
9b6adc2d3a ipq806x: enable GMAC support in DTS
This adds the GMAC entries in the ipq806x dtsi file as well as in the
ap148 specific dts file.

This also adds the MDIO change as well.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44520
2015-02-24 11:59:51 +00:00
John Crispin
8eda29f12c ipq806x: enable ar8xxx switch family support
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44519
2015-02-24 11:59:47 +00:00
John Crispin
a45a5f7cf0 ipq806x: fix spi read issues observed with SMP enabled
This change is fixing the issues observed when booting from NOR flash
with SMP enabled.

Error logs below:
building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of
xref (0 dead, 0 orphan) found.
m25p80 spi32766.0: SPI transfer failed: -110
spi_master spi32766: failed to transfer one message from queue
jffs2: Write of 873 bytes at 0x019001e8 failed. returned 0, retlen 792

Patch is cherry-picked from here:
https://www.codeaurora.org/cgit/quic/qsdk/oss/kernel/linux-msm/commit/drivers/spi/spi-qup.c?h=coconut_20140924&id=4faba89e3ffbb1c5f6232651375b9b3212b50f02

More details in the patch file.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44518
2015-02-24 11:59:41 +00:00
John Crispin
1175e83f50 mpc85xx: add 3.19 support
It took very little to make the TL-WDR4900 work under 3.19:
- config is the same as for 3.18
- only patch 210 had to be refreshed, the other patches are
  the same as for 3.18
- in /etc/config/wireless the path options need to be prefixed
  with "platform/" ('platform/ffe09000.pci/...')

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 44517
2015-02-24 11:59:35 +00:00
Rafał Miłecki
e8acbb11a4 generic: fix 050-backport_netfilter_rtcache.patch
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44514
2015-02-24 06:40:37 +00:00
Felix Fietkau
362bc849bc x86: remove spurious delete of /etc/config/network
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44513
2015-02-24 06:07:40 +00:00
Rafał Miłecki
1c063070cf generic: early (incomplete!) 4.0 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44511
2015-02-23 22:59:53 +00:00
Imre Kaloz
e02478a22a mvebu: set default WRT1900AC switch config
This sets 'enable_vlan' and thus uses 802.1q
VLANs, but without tagging on either interface.

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44509
2015-02-23 10:35:29 +00:00
Imre Kaloz
0de48a0dd8 mvebu: set WRT1900AC WAN interface MAC address
Toggles the LA bit on the WAN interface.

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44508
2015-02-23 10:33:19 +00:00
John Crispin
6aab00fa44 ipq806x: delete config-3.14 file
ipq806x target has been upgraded to 3.14. There is no need to maintain
this file anymore.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44505
2015-02-22 08:29:18 +00:00
John Crispin
565a6f2a27 ipq806x: fix "reboot" command
The watchdog driver already registers a restart notifier, we just have
to enable it in the config and in the DT to fix the "reboot" command.

This is done by integratin the following patch-set:
https://lkml.org/lkml/2015/2/20/610

I'm copy-pasting the description below:
qcom-wdt is currently assuming the presence of a dedicated node in DT
to gets its configuration. However, on msm architecture, the watchdog is
usually part of the timer block. So this patch-set is changing the driver
and slightly enhancing the timer DT bindings to provide the relevant clocks
and interrupts.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44504
2015-02-22 08:29:14 +00:00
John Crispin
5072954cd0 ipq806x: enable watchdog kernel option
Some bootloaders seem to trigger the watchdog during the boot process,
therefore the lack of watchdog driver trigger a reboot a few seconds
after boot. So we'll enable it here to avoid it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 44503
2015-02-22 08:29:07 +00:00
John Crispin
7938da42f5 kernel: Fix USB gadget modules for v3.18
Updated patch that fixes whitespace and supports kernel v3.3 too.

Signed-off-by: Owen Kirby <osk@exegin.com>

SVN-Revision: 44502
2015-02-22 08:29:01 +00:00
John Crispin
2f544d56d0 mpc85xx: add mpic timer clock frequency to avoid boot log warning
MPIC timers are enabled in the config, however a devicetree clock setting
is missing causing the following error:
/soc@ffe00000/timer@41100: cannot get timer frequency.
/soc@ffe00000/timer@42100: cannot get timer frequency.

This patch adds the missing clock and avoids the error.
It's a functional copy of this code
do_fixup_by_compat_u32(blob, "fsl,mpic",
        "clock-frequency", get_bus_freq(0), 1);
in arch/powerpc/cpu/mpc85xx/fdt.c in the u-boot code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 44501
2015-02-22 08:28:48 +00:00
John Crispin
850b3169ed ramips: rt288x: add missing symbol
Defaulting to disabled, based on the value of
the (old?) CONFIG_RALINK_USBPHY

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 44500
2015-02-22 08:28:42 +00:00
John Crispin
0ba8217008 ramips: nexx wt3020: fix status led
For Nexx WT3020 board_name is wt3020, not nexx-wt3020

root@OpenWrt:~# . /lib/ramips.sh; echo $(ramips_board_name)
wt3020

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

SVN-Revision: 44499
2015-02-22 08:28:35 +00:00
Rafał Miłecki
a416029d4d bcm53xx: add one more NVRAM possible size (0x180000)
Size 0x160000 was added to support Buffalo WZR-600DHP2, however Netgear
devices (R6250, R8000) require 0x180000.

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

SVN-Revision: 44497
2015-02-20 07:07:53 +00:00
John Crispin
e071f4fd1a mpc85xx: set v3.18 as default
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44496
2015-02-19 14:30:03 +00:00