Commit Graph

1488 Commits (9ef282cd9695f13f88a2a563fcfd6164b4d7ca18)

Author SHA1 Message Date
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
9 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
9 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
9 years ago
Felix Fietkau 3c3fb1dfc0 ramips: delete the broken sound driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48318
9 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
9 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
9 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
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
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
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
Felix Fietkau c69ffda546 ramips: clean up and refresh kernel patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48070
9 years ago
Felix Fietkau 140be9f1a5 ramips: fix performance counters on mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48069
9 years ago
John Crispin fb2d204ce4 ralink: more esw_rt3050 fixes
the IRQ was not setup properly causing an oops

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

SVN-Revision: 48064
9 years ago
John Crispin 6ca6a98622 ramips: Remove LED GPIO definitions in MQmaker WiTi device tree
LED's were defined wrong in the device tree file, they are hardware driven because they are connected directly to the switch chip and wireless chips respectively, thus no GPIO addresses are assigned to them. It is safe to remove them from the device tree file to stop confusion.

Signed-off-by: Sebastian Careba <nitroshift@yahoo.com>

SVN-Revision: 48055
9 years ago
John Crispin de7dce21a3 ralink: add WRTnode2 platform and led support
Signed-off-by: xzmu <xzmu@wrtnode.com>

SVN-Revision: 48049
9 years ago
John Crispin 6b95386fd3 ralink: fix rt3050/5350 ethernet switch support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48030
9 years ago
Felix Fietkau c55d8d4253 ramips: set the wifi mac address to the same as LAN on witi
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48029
9 years ago
Felix Fietkau eaf8889cf8 ramips: add a script to fix up the broken mac address on the witi board
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48027
9 years ago
Felix Fietkau 46519964ff kernel: fold of_get_mac_address_mtd into of_get_mac_address
This makes it easier to keep drivers in sync with upstream

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

SVN-Revision: 48026
9 years ago
Felix Fietkau 22693a9086 ramips: fix kernel configuration for mt7628
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48025
9 years ago
Felix Fietkau f3bbb73a20 ramips: add missing clk_round_rate function to fix buildbot errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48024
9 years ago
Felix Fietkau 28ec4e0e71 ramips: fix inverted LEDs for RE6500
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>

SVN-Revision: 48022
9 years ago
Felix Fietkau 2c4faaed74 ramips: add mac address assignment for eth0 on RE6500
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48021
9 years ago
Felix Fietkau d65eda48b7 ramips: fix firmware partition size
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>

SVN-Revision: 48020
9 years ago
Felix Fietkau 11c697015f ramips: fix memory size for RE6500
Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>

SVN-Revision: 48019
9 years ago
Felix Fietkau 3e807886d0 ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
Enable it from .dts files that need it, also remove redundant properties

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

SVN-Revision: 47936
9 years ago
Felix Fietkau 32877b31dc ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to fix probe issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47935
9 years ago
John Crispin 4afe0fc2b2 ralink: update the mt7621 ethernet support patch
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47929
9 years ago
John Crispin 7de7bd0201 ramips: mt7621: fix error message when initramfs is too large
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47908
9 years ago
John Crispin 1c5136c4c3 ramips: remove unwanted change from patch
Remove unwanted change to irq-mips-gic.c from mt7621 support patch

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47907
9 years ago
John Crispin 43422a634b ramips: change CM_GCR_BASE_CMDEFTGT_MEM value to match datasheet
Zero config value for default memory region means 'memory', not
not 'disabled' according to 'Control Registers Of The Coherency
Manager' manual.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47906
9 years ago
John Crispin acbed0eff3 ramips: mt7621: undo mips-cm probe hack to not wipe out memory regions
Since now we hopefully setup memory regions properly we no longer need this hack.

Tested and works on ubnt-erx.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47905
9 years ago
John Crispin 622e268710 ramips: mt7621: setup memory region for pcie controller memory
Only compile tested since I do not have any hardware with
devices on pcie bus.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47904
9 years ago
John Crispin e8890c6be0 ramips: mt7621: add patch to setup CM memory region for palmbus
This is tested and works on ubnt-erx.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47903
9 years ago
John Crispin b4bb10b3a0 ralink: update config files to build the cleaned up ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47902
9 years ago
John Crispin 402db12f1a ralink: drop dummy profile from mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47901
9 years ago
John Crispin 651e620de5 ralink: fixup devicetree files to work with new ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47900
9 years ago
John Crispin fa854a02a1 ralink: drop old ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47899
9 years ago
John Crispin 31116661ff ralink: add reworked ethernet driver
update to the version of the driver that is on its way upstream

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

SVN-Revision: 47898
9 years ago
John Crispin 5d4f5689fd ramips: add missing kernel symbols
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47884
9 years ago
John Crispin 4e31b2e869 ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)
This router is based on MT7621 SoC, no wifi, no usb, nand.

Works:
* Boots.
* Ethernet.
* Switch.
* Button (reset).
* Flashing OpenWrt from stock firmware.
* Upgrading OpenWrt.

Doesn't work:
* No GPIO leds. All leds are controlled by switch,
  but stock firmware was able to control them.
* SoC has crypto engine but no open driver.
* SoC has nat acceleration, but no open driver.
* This router has 2MB spi flash soldered in but MT
  nand/spi drivers do not support pin sharing,
  so it is not accessable and disabled. Stock
  firmware could read it and it was empty.
* PoE out.

Router has serial pins populated. If looking at the top
of the router, then counting from Eth sockets pins go as:
'GND, RX, TX, GND'. 3.3v, 57600.

U-boot bootloader supports tftpboot, controlled from serial.
This router has two kernel partitions: 'live' and 'backup'.
They are swapped during flashing (on both stock and OpenWrt).
Active partition is controlled by a flag in a factory partition.
U-boot has custom command to switch active kernel partition.
Kernel partitions are 'bare flash' 3MB. Stock bootloader has
no UBI support. Stock rootfs is UBIFS.

Flashing procedure.
Stock firmware uses custom kernel patch to mount squashfs
from a file that is located on UBIFS volume. This makes wiping
out this volume from within stock firmware difficult.
Instead this patch builds image that is flashable by stock firmware
and contains initrams image (with minimal set of packages
to fit into kernel partition). Once this is flashed one can reboot
into initramfs OpenWrt and use sysupgrade to flash OpenWrt including
rootfs into nand.
Note: factory image is only built if initramfs image is enabled.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47881
9 years ago
John Crispin 1c6c9549d6 ramips: add support for Spansion S34ML0[24]G2 flash
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47880
9 years ago
John Crispin 9e5044926b ralink: remove stray "+" from ethernet driver
this is what you get if you manually apply patches with c&p

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

SVN-Revision: 47877
9 years ago
John Crispin 8470e30a76 ramips: move partition definitions out of mt7621.dtsi file
Partitions defined in parent dtsi cannot be undefined in children.
This moves partitions defined in mt7621.dtsi into board's device tree.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47876
9 years ago
John Crispin e610cdfc8a ramips: use gic timer as clocksource for mt7621
* Switches clocksource to gic timer.
* Moves frequency definitions to dtsi since frequency was hardcoded anyway
  Will work on proper frequency detection later.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47875
9 years ago
Felix Fietkau 77bedbe80d Revert "ramips: use gic timer as clocksource for mt7621"
This reverts commit 270a2afcc544ca14e79198346e7e186033472ae7.

SVN-Revision: 47872
9 years ago
Jo-Philipp Wich 67e1c87012 all: drop old uci-defaults.sh
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one
and update all users accordingly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47867
9 years ago
John Crispin 9f14006809 ramips: add additional support for MQmaker WiTi board
The board is based on mt7621AT cpu, and has 16mb nor flash, 256mb of ram,
2 sata ports, microsd card slot, 1 USB 3.0 port and at least one 2.4 and
one 5 ghz antenna.

This is the 6th submission that adds support for XHCI in the device tree
file, along with switching the location of the 2 radio's and addition of
the kmod-i2c-mt7621 in the default packages of the profile.

Signed-off-by: Sebastian Careba <nitroshift@yahoo.com>

SVN-Revision: 47845
9 years ago
John Crispin 6cbb1be464 ramips: Fix support for PBR-M1 board
The PBR-M1 support in current OpenWrt is for the early demo board and it doesn't work on the final board.This patch fixes the support for it.

The LED called pbr-m1:buzzer is a beeper connected to GPIO26 so I used gpio-beeper instead of gpio-leds.

Signed-off-by: 郭传鈜 <gch981213@gmail.com>

SVN-Revision: 47844
9 years ago
John Crispin abd11be13c ramips: use gic timer as clocksource for mt7621
* Switches clocksource to gic timer.
* Moves frequency definitions to dtsi since frequency was hardcoded anyway
  Will work on proper frequency detection later.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47843
9 years ago
John Crispin a87272ebfb ramips: enable CPS for mt7621
Enables CPS multiprocessing instead ob obsoleted CMP for mt7621.

This patch fixes a few issues currently existing on 4.3 kernel with at least ubnt-erx:
* iperf shows only 50Mbits on direct gigabit connection to desktop,
* ping times jump to 5-6ms to dorectly connected desktop
* /proc/interrupts shows spurious interrups (ERR)

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47842
9 years ago
John Crispin fbc1624d6a ramips: irq handlers do not get irq in 4.3 kernel, update patches
This resolves compilation warnings like this:
drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_probe':
drivers/gpio/gpio-mt7621.c:328:46: warning: passing argument 2 of 'irq_set_chained_handler' from incompatible pointer type [-Wincompatible-pointer-types]
   irq_set_chained_handler(mediatek_gpio_irq, mediatek_gpio_irq_handler);

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47841
9 years ago
John Crispin 4076d12f41 ramips: Fix CM_GCR_CPC_BASE_CPCBASE_{MSK, SHF} values
Update CM_GCR_CPC_BASE_CPCBASE_{MSK,SHF} to match datasheet

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47840
9 years ago
John Crispin e4ee2402cb ramips: fold gic patch into mt7621 support patch
All gic patch was doing is removing code added by mt7621 support patch.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47839
9 years ago
John Crispin ed8775d3c3 ramips: backport series of patches that ensure GCRs of other CPUs are accessed properly
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47838
9 years ago
John Crispin e0d77e68ce ramips: backport batch fixing illegal instruction when booting secodnary CPUs in CPS mode
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47837
9 years ago
John Crispin 81c999bbda ramips: mt7621: use symbolic names of gic interrupt settings
This also adds dts nodes for cpc and mc for documentation purposes

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47836
9 years ago
John Crispin 6df4426245 ralink: bump to the target to v4.3
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47831
9 years ago
Felix Fietkau 09335a0a2f build: fix arch used during dts compilation
Use kernel arch for dts compilation.
Also use Image/BuildDTB to build dts for ramips.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47823
9 years ago
Jo-Philipp Wich 527ec2af59 all: remove dummy ucidef_set_interface_loopback() from board.d
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47744
9 years ago
Jo-Philipp Wich 8f8b702f85 board.d: remove redundant ucidef_set_interfaces_lan_wan() calls
This removes calls to ucidef_set_interfaces_lan_wan() and
ucidef_set_interfaces_lan() on boards where all relevant info can be
inferred from the switch definition.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47722
9 years ago
Jo-Philipp Wich 9b02e73188 board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()
This changes uci-defaults-new.sh, config_generate and all relevant board.d
files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into
a single function.

Also removes now superfluous enable and reset arguments.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47721
9 years ago
Jo-Philipp Wich d17a64c7c0 base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()
Out of 69 switch definitions, only 3 pass something different than "1" as
values for reset and enable, with one of those three being invalid.

This change ...

 * removes the reset and enable arguments from ucidef_add_switch()
 * unconditionally writes reset:1 and enable:1 to JSON
 * converts the three users of nonstandard values to ucidef_add_switch_attr()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47720
9 years ago
Jo-Philipp Wich de51026515 ramips: switch ucidef_add_switch_vlan() to ucidef_add_switch_ports()
This migrates the final board.d user of ucidef_add_switch_vlan() to the new
ucidef_add_switch_ports() approach, fixing some logic errors for a few boards
along the way.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47717
9 years ago
John Crispin 06af966094 ramips: remove duplicate patch
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47670
9 years ago
John Crispin 82557aee85 ramips: adapt VoCore to new second spi device code
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47667
9 years ago
John Crispin af14fa011c ramips: add second SPI clocks
These clocks were missing in the changes introduced in r47573-47580

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

SVN-Revision: 47666
9 years ago
Jo-Philipp Wich ecf5b4fab7 ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47657
9 years ago
John Crispin 7b4acdeff6 ralink: renable nand support
CONFIG_MTK_MTD_NAND was incorrectly disabled by r47619.

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

SVN-Revision: 47640
9 years ago
Felix Fietkau d8a62fdbc2 ramips: fix typo in image makefile (#18712)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47627
9 years ago
John Crispin 8c1f5141ce ralink: add support for netis WF-2881
netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN.
It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0.
The following patch adds support for this device.

this device only works on top of UBI.

Tested and working:
* ethernet
* both WiFi radios
* USB 3.0
* buttons (reset button)
* ethernet switch and USB diag LEDs
* UART
* GPIOs
* sysupgrade

Tested and not working
* failsafe

Signed-off-by: YounJae Rho <luxflow@live.com>

SVN-Revision: 47619
9 years ago
John Crispin e9baf8265b ramips: add support for Youku YK1
Changes since V1:
I resend this patch for current trunk.The former V1 patch is for CC branch.

Signed-off-by: Shonn Lu <countrysideboy@qq.com>

SVN-Revision: 47617
9 years ago
John Crispin 12b6f4cf71 ramips: add second spi master sysclk
for mt7620, rt3883 and rt5350

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47616
9 years ago
John Crispin c550ad3d3a ramips: update dtsi files to support second spi device
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47580
9 years ago
John Crispin a941b34008 ramips: use transfer_one instead of transfer_one_message on rt2880 spi
* 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>

SVN-Revision: 47579
9 years ago
John Crispin 95aa28da81 ramips: move rt2880 spi clock and reset init code to spi_prepare_message
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>

SVN-Revision: 47578
9 years ago
John Crispin a58dec6275 ramips: improve rt2880 spi setup
* check clock rate, SPI mode, and word sizes
* setup spi polarity
* enable spi1 hw if need

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47577
9 years ago
John Crispin 2ce886f149 ramips: clean up rt2880 spi probe/remove
* 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>

SVN-Revision: 47576
9 years ago
John Crispin bf89d139e1 ramips: improve rt2880 spi wait ready function
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>

SVN-Revision: 47575
9 years ago
John Crispin 702c480dfe ramips: remove rt2880 spi lock and clean bit operation
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47574
9 years ago
John Crispin 13fbd6fea7 ramips: add rt2880/mt7620 spi register defines
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47573
9 years ago
John Crispin 55ee2e0ef7 ralink: add missing nand layer hack
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>

SVN-Revision: 47565
9 years ago
John Crispin 40ddc71cc9 ramips: init usb power for Lenovo Y1S
Signed-off-by: Shonn Lu <countrysideboy@qq.com>

SVN-Revision: 47557
9 years ago
Felix Fietkau b95aed986a ramips: minor fixes for mt7621 profiles
* remove references to non-existing kmod-usb3-mt7621
 * ZTB WG2626 doesn't have an RTC (thanks to Piotr Dymacz!)

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

SVN-Revision: 47407
9 years ago
John Crispin aebf73f045 ramips: fix previous commit
r47388 accidentially changed 2 files too many

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

SVN-Revision: 47389
9 years ago
John Crispin dc699dd547 ramips: minor tweak to the lks7688 baord name
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47388
9 years ago
John Crispin 2350c149b5 ramips: add feature to blink led on sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47373
9 years ago
John Crispin 165244a222 ramips: add support for ZBT WG2626
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 47351
9 years ago
John Crispin 0f4b153e3d ramips: add eeprom mtd partition to the Asus RP-N53 dts
This patch adds the eeprom property to the dts for the Asus RP-N53. It is necessary to get the wifi in the soc working.

Signed-off-by:  Alberto Mattea <alberto@mattea.info>

SVN-Revision: 47350
9 years ago
John Crispin 907c67fa87 ramips: preinit: use iproute2 instead of vconfig
Replace use of vconfig with the corresponding iproute2 syntax in
/lib/preinit/07_set_preinit_iface_ramips

The switch reset work-around needed on some ramips targets used the
deprecated vconfig tool to bring up the pre-init/failsafe interface.
This doesn't work on recent builds where vconfig is no longer being
deployed, resulting in the device being unreachable when triggered
into failsafe mode.

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

SVN-Revision: 47349
9 years ago
John Crispin 3760b95702 ramips: add support for Dovado tiny AC
Add support for Dovado tiny AC wifi router.

Soc: mt7620a
ram: 64MB
flash: 8MB
1x usb 2.0
two gigabit lan ports

5ghz wlan is not supported on this board since there is no gpl driverfor mt7610e wifi chip.

Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47348
9 years ago
John Crispin 83693c911a ramips: add function to change rt2x00 wifi eeprom mac
Some boards like dovado tiny ac have generic ralink mac in onflash wifi eeprom.
Add eeprom_set_macaddr function to rt2x00 eeprom extract script which changes mac addr insde eeprom dump.

Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47347
9 years ago
John Crispin a76de8e7b3 ramips: mt7620 add icplus phy driver kernel config symbol
Add missing icplus phy driver kernel config symbol to mt7620 subtarget.
This is needed since some mt7620 devices have icplus ip1001 ethernet transceiver

Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47346
9 years ago
John Crispin 8fa6927415 ramips: add support for the Asus RP-N53 in the "02_network" boot script
This patch adds a case for the Asus RP-N53 in the "02_network" boot script. Without this, the lan interface does not get configured on startup, effectively bricking the device.

Signed-off-by:  Alberto Mattea <alberto@mattea.info>

SVN-Revision: 47345
9 years ago
John Crispin ed30ca8e39 ramips: rt305x: enable seama mtdsplit parser
D-Link DIR-610 A1 needs seama mtdsplit parser.
This patch should fix #18046.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 47341
9 years ago