Commit Graph

8841 Commits (40a5f5c16e16def178de20e9ec9027f3a6a26f53)

Author SHA1 Message Date
Gabor Juhos 40a5f5c16e ar71xx: define NAND controller base address and register size for AR934X/QCA955x
SVN-Revision: 33382
12 years ago
Gabor Juhos 0a42b02126 ramips/rt305x: add initial support for Rt5350 SoC
Somehow detecting the RAM size in common/setup.c doesn't
work here, it always detects 64M and then crashes on devices
with less RAM.
Probably using MEMC_REG_SDRAM_CFG1 to know the RAM size is how
it could be, for now I use the mem=32M kernel parameter to get
stuff working.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33381
12 years ago
Hauke Mehrtens 95c141aaac add gpio sysfs entries
This fixes #10256

SVN-Revision: 33369
12 years ago
Gabor Juhos 4ee5b528de ar71xx: use correct fractional dividers for {CPU,DDR}_PLL on QCA955x
SVN-Revision: 33362
12 years ago
Gabor Juhos 2e0e38ad69 ar71xx: fix QCA955X_EHCI_SIZE
SVN-Revision: 33360
12 years ago
Florian Fainelli a36bdb2417 fix ixp4xx_hss build failure (#12162)
SVN-Revision: 33356
12 years ago
Jo-Philipp Wich caa66bd150 fix description of nand/Ath5k profile (#12149)
SVN-Revision: 33352
12 years ago
Gabor Juhos aa2f4d4c8d ar71xx: add initial support for RB2011UAS-2HnD
SVN-Revision: 33349
12 years ago
Gabor Juhos 3686e18727 ar71xx: use routerboot_find_tag to find wlan data offset on RB751
SVN-Revision: 33348
12 years ago
Gabor Juhos ccabe4a1b4 ar71xx: add RouterBoot related helper routines
SVN-Revision: 33347
12 years ago
Gabor Juhos 2323120d5e generic add WLAN calibration data ID to routerboot.h
SVN-Revision: 33346
12 years ago
Gabor Juhos 44bf7c7cc1 ar71xx: define MTD partitions for RB2011
SVN-Revision: 33345
12 years ago
Gabor Juhos 6ae5ec16e0 ar71xx: add preliminary support for Mikrotik RB2011L
This patch adds preliminary support for the Mikrotik RB2011L.
The NAND flash is not yet supported, so only the initramfs
kernel can be used for now.

[juhosg: remove unnecessary PCI/USB related stuff, the board
does not use that, update commit message]

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 33344
12 years ago
Gabor Juhos 94bac7366c ar71xx: use dynamic clock dividers on the 2nd MDIO of AR934x
SVN-Revision: 33343
12 years ago
Gabor Juhos 7592057774 ar71xx: add dynamic MDIO clock calculation
SVN-Revision: 33342
12 years ago
Gabor Juhos f3ecbea052 adm5120: move common routerboot definitions into a separate header file
Those will be used on the ar71xx platform as well.

SVN-Revision: 33341
12 years ago
Jonas Gorski 7708138183 bcm63xx: fix WPS button polarity for Alice Gate VoIP 2 + Wifi
Fixes booting the device with button hotplug enabled (#10785).

SVN-Revision: 33340
12 years ago
Gabor Juhos 88a5478781 ar71xx: use the RLE library for RB751
SVN-Revision: 33338
12 years ago
Gabor Juhos 73df240bb3 ar71xx: add library code for RLE decoding
It will be used for the MikroTik boards.

SVN-Revision: 33337
12 years ago
Gabor Juhos f4be8a76de ar71xx: fix CPU/DDR frequency calculation for SRIF PLLs on AR934x
SVN-Revision: 33335
12 years ago
Gabor Juhos 70d00ac64e ar71xx: refresh kernel patches
SVN-Revision: 33334
12 years ago
Florian Fainelli 6771d63284 use the recommended ARM I/O accessors
use {read,write}l_relaxed instead of the plain __raw_{read,write}l variants.

SVN-Revision: 33330
12 years ago
Daniel Dickinson c3b7139ab2 dir825b1: Add image for DIR-825-B1 that uses the whole flash (must first be flashed with the 'standard' image) and an image to revert the change to allow reversion to stock firmware.
SVN-Revision: 33326
12 years ago
Luka Perkov 4c76b3635b lantiq: fix sx76x default uci network configuration
SVN-Revision: 33324
12 years ago
Florian Fainelli 3730e6c794 add some ohci workarounds to make ohci work
SVN-Revision: 33323
12 years ago
Gabor Juhos d8b2fef763 ramips: Add missing andmask to ramips_esw register read for recv_good value.
Add missing andmask to ramips_esw register read for recv_good value.

Without the mask, recv_bad leaks into the recv_good packet count.
Didn't notice the bug before since you don't usually get bad
packets, so I only saw it when I was playing with overlength packets
earlier...

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33322
12 years ago
Gabor Juhos 04c6143ca9 ramips: Use doubletagging to disable ramips_esw vlan by default, it seems more reliable.
Use doubletagging to disable ramips_esw vlan by default, it seems
more reliable.

Daniel Golle found an issue where sometimes (possibly only for
RT3352) the default vlan disable method (clearing en_vlan, untag,
doubletag and putting all ports into vlan 0) doesn't work and the
packets get sent out vlan-tagged with vlan 0.

Instead switch to using the doubletagging method (allow doubletagged
packets, put all ports into vlan 0 with untag enabled) by default.

Unless someone figures out a way to really globally disable vlan for
this switch, this seems like the best (most reliable) option.

I did some tests regarding maximum packet size and did not see any

difference between the two methods, both allow for slightly bigger packets
than the ramips_main.c ethernet driver (ping stops going through
above "ping -s 1472" (1514 bytes), on the switch packets are recv_good until
"ping -s 1490", or about 1532 bytes).

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33321
12 years ago
John Crispin f186bff0ef add missing kvm_guest kernel options
SVN-Revision: 33319
12 years ago
Gabor Juhos 069f544d2b ar71xx: use correct fractional dividers for {CPU,DDR}_PLL on AR934x
SVN-Revision: 33318
12 years ago
Gabor Juhos 81bb246a8d ar71xx: add rssileds to package set in profile for devices which got them.
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33317
12 years ago
Gabor Juhos 6c7b776ae0 ramips: add rssileds to package set in profile for devices which got them.
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33316
12 years ago
Florian Fainelli 94a45be66b enable CFI command set 0002 FORCE_WORD_WRITE
SVN-Revision: 33315
12 years ago
Florian Fainelli 19cbe80501 pad squashfs image
SVN-Revision: 33314
12 years ago
Florian Fainelli 1964753c22 add Generic and dLAN USB Extender profiles
SVN-Revision: 33313
12 years ago
Florian Fainelli e88e20d975 nuport-mac: disable MAC RX and TX during interface close
Fixes sporadic crashes while reconfiguring the network interface.

SVN-Revision: 33312
12 years ago
Gabor Juhos 11c3392b7f Revert "ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240"
That was based on assumptions.

SVN-Revision: 33310
12 years ago
Gabor Juhos eb9a97a360 ar71xx: all0315n: fix ethernet according to vendor info
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33309
12 years ago
Gabor Juhos 02cb5f9dcd ar71xx: add RSSI LEDs of ALL0315N to uci-defaults/leds
SVN-Revision: 33308
12 years ago
Gabor Juhos b0da5b73b8 ramips: add kmod-usb-ohci to defaults packages in profile of ALL5002
SVN-Revision: 33307
12 years ago
Gabor Juhos 54d8a55eed ramips: make built-in switch transparent for ALL0256N and ALL5002
This allows them to transparently communicate with an external VLAN switch.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33305
12 years ago
Gabor Juhos bc4763a399 ramips: Power down phy on disabled switch ports
Power down phy on disabled switch ports.

Haven't measured this myself yet, but according to this
http://www.8devices.com/community/viewtopic.php?f=6&t=156
it can save about 300mW of power.

[juhosg: fix checkpatch warning]

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33304
12 years ago
Gabor Juhos 1617f226a9 ramips: Add support for 8devices Carambola dev board.
Add support for 8devices Carambola dev board.

The Carambola is a small RT3050-based development board with two
ethernet ports, on-board chip antenna, usb and plenty of accessible
gpio ports, sold by 8devices.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33303
12 years ago
Gabor Juhos bb0785880a ramips: Rename POC registers
Rename POC registers.

The current code uses POC1-POC3.

The datasheet uses:
POC1: Port Control 0
POC1: Port Control 1
POC2: Port Control 2

So the first POC1 is a typo that should have been POC0, rename the
registers to POC0-POC2 accordingly.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33302
12 years ago
Gabor Juhos f1b9d77912 ramips: Minor ramips_esw.c cleanup
Stop handling VLAN setup in the kernel.
Removes the obsolete RT305X_ESW_VLAN_CONFIG_BYPASS option I added for
WL-351 and add some extra comments.
Also removes the en_vlan per-port flag that isn't very useful really, it now
is only controlled by the global enable_vlan flag.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33301
12 years ago
Gabor Juhos 1f3400d3b4 ramips: Add switch setup to uci network defaults
Add switch setup to uci network defaults.

The 'lan' attribute is used to decide into which vlan to put the
port.
Currently 'disable' is never set, but the intention is to use this
for devices like the 8devices Carambola, which only has two ports
hooked up to the SoC.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33300
12 years ago
Gabor Juhos 3b17f1deb8 ramips: Add swconfig support to ramips_esw.c
Add swconfig support to ramips_esw.c

This patch adds swconfig support for ramips_esw:

Tested on both D-LINK DIR-300 B1 and Sitecom WL-351 (external
rtl8366rb on internal port 5).
I've made sure that in the enable_vlan=0 case it behaves like a dumb
switch, so external switches should work fine with vlans and
verified this on the WL-351.

The current state shown by swconfig is always read directly from HW
registers, new settings only show after 'swconfig dev rt305x set apply'.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33299
12 years ago
Gabor Juhos 358c7e47f2 ramips: ramips_esw.c indentation cleanup
Minor indentation cleanup.

Prepare for the main swconfig patch by cleaning up indentation a bit.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33298
12 years ago
Gabor Juhos 0c5688cc38 ar71xx: image: fix Profile name for TL-WA701 (closes #12094)
SVN-Revision: 33295
12 years ago
Gabor Juhos 5fdbb33db4 ar71xx: Buffalo WZR-HP-AG300H LED support
An improved LED support for Buffalo WZR-HP-AG300H.

There will be two new packages to go with this patch
(ar922x-led-fix-hotplug and ar922x-led-fix-init).
These packages essentially perform the same task of
disabling "JTAG over GPIO pins" function which is
currently required for LEDs on AR922x emac GPIO to work,
and are both considered a temporary fix that circumvent
this problem.

[juhosg: add the hotplug script from the proposed
ar922x-led-fix-hotplug package to ar71xx/base-files]

Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>

SVN-Revision: 33294
12 years ago
Gabor Juhos 4405faae26 gemini: fix bus ids for PHY devices (closes: #12082)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33288
12 years ago