Gabor Juhos
00667c3846
ar71xx: ag71xx: allow to connect PHY4 to the CPU on AR934X
...
SVN-Revision: 29553
2011-12-15 22:25:30 +00:00
Gabor Juhos
0540970345
ar71xx: ag71xx: setup switch interface mode on AR934X
...
SVN-Revision: 29552
2011-12-15 22:25:29 +00:00
Gabor Juhos
44014110b8
ar71xx: ag71xx: detect the built-in switch of the AR934X SoCs
...
SVN-Revision: 29551
2011-12-15 22:25:28 +00:00
Gabor Juhos
e2a546d475
ar71xx: allow to attach the internal switch for AR934x
...
SVN-Revision: 29550
2011-12-15 22:25:22 +00:00
Gabor Juhos
9ae65588d8
ar71xx: introduce ar71xx_switch_data
...
SVN-Revision: 29549
2011-12-15 22:25:11 +00:00
Gabor Juhos
bfe747b7d9
ar71xx: build images for TL-WR741N/ND v2
...
SVN-Revision: 29548
2011-12-15 22:03:48 +00:00
Gabor Juhos
aefff26624
ar71x: use raw squashfs images for TP-Link boards
...
SVN-Revision: 29547
2011-12-15 22:03:46 +00:00
Gabor Juhos
d5bd28ffae
ar71xx: create a template for using unpadded squashfs images
...
SVN-Revision: 29546
2011-12-15 22:03:45 +00:00
Gabor Juhos
dbc4fa4b5b
ar71xx: put squash image right after the kernel on TP-Link boards
...
SVN-Revision: 29545
2011-12-15 22:03:44 +00:00
Gabor Juhos
850be54b72
ar71xx: tplinkpart: allow to detect JFFS2 as well
...
SVN-Revision: 29543
2011-12-15 22:03:40 +00:00
Gabor Juhos
b7d7481b07
ar71xx: ag71xx: check PHY IDs before accessing the switch registers
...
SVN-Revision: 29541
2011-12-15 13:25:23 +00:00
Gabor Juhos
0655552860
ar71xx: ag71xx: don't use port 4 of the switch, it is not connected on ar724x
...
SVN-Revision: 29540
2011-12-15 13:25:21 +00:00
Gabor Juhos
204fc6bed5
ar71xx: ag71xx: nuke ar7240sw_init
...
SVN-Revision: 29539
2011-12-15 13:25:20 +00:00
Gabor Juhos
d1f7783612
ar71xx: fix mac addresses on jjPlus devices
...
SVN-Revision: 29538
2011-12-15 13:25:18 +00:00
Gabor Juhos
d3058b8f8c
ar71xx: build image for the Hornet-UB board
...
SVN-Revision: 29536
2011-12-14 20:54:11 +00:00
Gabor Juhos
b9c5cb5c9a
ar71xx: add support for ALFA Network's Hornet-UB board
...
SVN-Revision: 29535
2011-12-14 20:54:10 +00:00
Gabor Juhos
66c8cc0f6d
ar71xx: add GPIO function bit defines for AR933X
...
SVN-Revision: 29534
2011-12-14 20:54:07 +00:00
Felix Fietkau
7076d74b21
ar71xx: fix gpio count for ar7241/ar7242
...
SVN-Revision: 29532
2011-12-14 20:47:24 +00:00
Felix Fietkau
b878f4a927
ar71xx: register extra leds behind the wireless mac on wzr-hp-g450h
...
SVN-Revision: 29531
2011-12-14 20:21:42 +00:00
Gabor Juhos
d2717d3d47
ar71xx: get rid of squashfs-4k images
...
SVN-Revision: 29522
2011-12-13 20:41:24 +00:00
Felix Fietkau
4a441570ca
kernel: move linux/ath9k_platform.h to generic files so that it can be reused from other targets
...
SVN-Revision: 29516
2011-12-13 15:14:59 +00:00
Felix Fietkau
3806671fe5
ar71xx: fix wireless led on wzr-hp-g450h
...
SVN-Revision: 29515
2011-12-13 15:00:43 +00:00
Gabor Juhos
2dd7dfb1c9
ar71xx: enable AR9341 support at setup.c
...
Patch-by: dyq <729650915@qq.com>
SVN-Revision: 29514
2011-12-13 14:59:43 +00:00
Gabor Juhos
058998acdb
ar71xx: Build images for Netgear WNDRMAC and WNDRMACv2
...
The WNDRMAC is a WNDR3700v2 (64MB RAM, 16MB flash) in a white case. The
WNDRMACv2 is a WNDR3800 (128MB RAM, 16MB flash) in a WNDRMAC case.
The WNDRMAC case doesn't have "holes" or labels for the 2.4GHz LED or
switch ports 2-4. The stock firmware uses a single LED (in the 5GHz
position) to indicate the status of both radios, and a single LED (in the
switch port 1 position) to indicate the status of all LAN ports. The
"missing" LEDs are present on the board, and easily shine through the
case. Unlike the stock firmware, OpenWrt will use these "hidden" LEDs.
I've tested the WNDRMACv2 image. I don't have a v1 WNDRMAC, but assume
that this is sufficient to build a fully-functional image.
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 29513
2011-12-13 14:59:40 +00:00
Felix Fietkau
48f9717371
ar71xx: add gpios and usb for wzr-hp-g450h
...
SVN-Revision: 29509
2011-12-13 13:33:44 +00:00
Gabor Juhos
4ca2d86493
ar71xx: use RedBoot parser on PB44
...
SVN-Revision: 29501
2011-12-11 15:52:47 +00:00
Gabor Juhos
6e69765559
ar71xx: fix WNDR3x00 factory image generation
...
Factory images for WNDR3700v2 and WNDR3800 should contain these model IDs
for the device: field in their DNI tags, not WNDR3700.
This regressed in r29434, which redid WNDR3x00 model detection. The sixth
parameter to Image/Build/Netgear is only used as the -B argument to
mkdniimg, which is used to set the device: field. In r29434, this was
erroneously changed to be WNDR3700 for all models. The tools to flash
factory images (U-Boot's TFTP server and the factory software's upgrade
utility) may refuse to honor images with incorrect device: fields in their
DNI tags.
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 29473
2011-12-07 06:55:50 +00:00
Gabor Juhos
8eb8a6e1e7
ar71xx: fix WNDR3x00 model detection
...
Detect the model name for /tmp/sysinfo/model based on 10 bytes at offset
56 in the art (caldata) mtd partition.
r29434 redid WNDR3x00 model detection, attempting to distinguish between
WNDR3700v2 and WNDR3800 by checking MemTotal in /proc/meminfo. However, it
contained a bug: it put the awk inside a $(...), with the result that all
WNDR3700v2 and WNDR3800 models would be reported as WNDR3800. This patch
checks the model name stored in the art partition, as is done by U-Boot
shipping on the WNDR3800. It has the likely advantage of working with
future models based on the WNDR3700 board. It also will not mis-detect
units on which people install more memory.
I have tested this patch on WNDR3700 (v1), WNDR3700v2, and WNDR3800.
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 29472
2011-12-07 06:55:39 +00:00
Gabor Juhos
c6b2b98812
ar71xx: create firmware image for the TL-WR740N/ND v4 boards
...
Based on a patch by Cristian Deluxe <djcristiandeluxe@gmail.com>
SVN-Revision: 29468
2011-12-06 16:26:44 +00:00
Gabor Juhos
fbfad4e9b4
ar71xx: use hw_id, hw_rev and flash_layout with mktplinkfw
...
SVN-Revision: 29467
2011-12-06 16:26:43 +00:00
Gabor Juhos
d753e08c79
ar71xx: fix TL-MR3x20 profile names in image/Makefile
...
SVN-Revision: 29463
2011-12-06 13:53:21 +00:00
Gabor Juhos
62d8009cdd
ar71xx: cleanup TP-Link profiles
...
SVN-Revision: 29461
2011-12-06 10:29:25 +00:00
Gabor Juhos
f7a482d382
ar71xx: add TP-Link board detection
...
SVN-Revision: 29459
2011-12-05 21:11:01 +00:00
Gabor Juhos
bdc2eca7de
ar71xx: use correct mac on the lan interface on several TP-LINK devices
...
SVN-Revision: 29458
2011-12-05 21:10:58 +00:00
Gabor Juhos
0103069372
ar71xx: allow to pass negative offset values for ar71xx_init_mac
...
SVN-Revision: 29457
2011-12-05 21:10:55 +00:00
Gabor Juhos
ada92aee62
ar71xx: don't register PCI controller on AR934x if PCIE_RC bit is not set
...
SVN-Revision: 29456
2011-12-05 18:21:15 +00:00
Gabor Juhos
c6bcf8d1d8
ar71xx: verify hardware id of firmware images on TP-Link boards
...
SVN-Revision: 29455
2011-12-05 18:11:51 +00:00
Gabor Juhos
4dc9092f4b
ar71xx: reclaim some unused space on TP-Link boards
...
With the default OpenWrt configuration, this increases the size
of the rootfs_data partition by 384KB/128KB on the older/newer
TP-Link models.
SVN-Revision: 29447
2011-12-05 14:52:36 +00:00
Gabor Juhos
3e7a6d182a
ar71xx: check squashfs signature in TP-Link mtd parser
...
SVN-Revision: 29446
2011-12-05 14:52:33 +00:00
Gabor Juhos
feebf484ba
ar71xx: use the lzma-loader on TP-Link boards w/o lzma support
...
SVN-Revision: 29444
2011-12-05 14:52:28 +00:00
Gabor Juhos
d42968351f
ar71xx: add lzma loader
...
SVN-Revision: 29443
2011-12-05 14:52:25 +00:00
Felix Fietkau
1f809532de
ar71xx: add preliminary support for wzr-hp-g450h
...
SVN-Revision: 29441
2011-12-05 14:20:51 +00:00
Felix Fietkau
d1f63f8538
ar71xx: move multi-m25p80 concat code from wzr-hp-ag300h mach code to dev-m25p80.c, other buffalo routers use it as well
...
SVN-Revision: 29440
2011-12-05 14:20:44 +00:00
Gabor Juhos
4cc2b9bb06
ar71xx: rewrite WNDR3700/3800 handling
...
SVN-Revision: 29434
2011-12-05 13:03:54 +00:00
Jo-Philipp Wich
78699c2e51
add some missing wndr3800 base-files definitions
...
SVN-Revision: 29433
2011-12-05 12:56:21 +00:00
Gabor Juhos
5177814ade
ar71xx: change user-space board detection
...
SVN-Revision: 29432
2011-12-05 12:56:20 +00:00
Gabor Juhos
8a3a60fc64
ar71xx: allow WNDR3700 image creation to fail if kernel/rootfs too big
...
SVN-Revision: 29431
2011-12-05 12:47:53 +00:00
Gabor Juhos
7cfa39f032
ar71xx: use the tp-link parser on the tp-link boards
...
Also remove static partition maps.
SVN-Revision: 29416
2011-12-03 18:13:31 +00:00
Gabor Juhos
514b1167c9
ar71xx: add mtd partition parser for the TP-Link boards
...
SVN-Revision: 29415
2011-12-03 18:13:27 +00:00
Gabor Juhos
fc7fb29bae
ar71xx: run the RedBoot parser only on the RedBoot based boards
...
SVN-Revision: 29414
2011-12-03 18:13:25 +00:00
Gabor Juhos
9cc28d5aa0
ar71xx: run the MyLoader parser only on the WP543 board
...
SVN-Revision: 29413
2011-12-03 18:13:23 +00:00
Gabor Juhos
67a0b9aada
ar71xx: run the wrt160nl parser only on the WRT160NL board
...
Also remove static mtd partition definitions.
SVN-Revision: 29412
2011-12-03 18:13:20 +00:00
Gabor Juhos
c8acd6e013
ar71xx: allow to pass part_probe types to the m25p80 driver
...
SVN-Revision: 29411
2011-12-03 18:13:18 +00:00
Gabor Juhos
20483faed0
ar71xx: create initramfs images for the newer TP-Link boards
...
SVN-Revision: 29410
2011-12-03 16:57:23 +00:00
Gabor Juhos
9a2005e5e6
ar71xx: remove swconfig and wpad-mini from custom profiles
...
SVN-Revision: 29408
2011-12-03 16:33:41 +00:00
Gabor Juhos
bc1d818610
ar71xx: add uboot-envtools to the default package list
...
SVN-Revision: 29407
2011-12-03 16:33:40 +00:00
Gabor Juhos
a02a9c3f8b
ar71xx: reclaim unused space in WNDR3700/3800 images
...
Patch by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 29406
2011-12-03 16:33:38 +00:00
Gabor Juhos
ac82296c53
ar71xx: add a profile and build image for the OM2P board
...
[juhosg: the name of the final image has been changed to
'openwrt-ar71xx-generic-om2p-squashfs-factory.bin']
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
SVN-Revision: 29397
2011-12-01 22:49:05 +00:00
Gabor Juhos
f188f1bad5
ar71xx: add support for Ubiquiti AirRouter
...
Signed-off-by: Gergely Barta <gergely.barta@printerfairkft.hu>
SVN-Revision: 29395
2011-12-01 22:49:02 +00:00
Gabor Juhos
0612667c34
ar71xx: configure default led behavior for the OM2P
...
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
SVN-Revision: 29394
2011-12-01 22:48:59 +00:00
Gabor Juhos
39348e387f
ar71xx: use /lib/functions/uci-defaults.sh
...
SVN-Revision: 29385
2011-12-01 22:48:47 +00:00
Gabor Juhos
f20797306a
ar71xx: modify phy mask of the WP543 board
...
This fixes ethernet on newer boards. Based on a patch from #9702 .
SVN-Revision: 29328
2011-11-24 20:09:43 +00:00
Gabor Juhos
c20d7378e5
ar71xx: fix wndr3800 machine name
...
This fixes the machine name in /proc/cpuinfo and luci status page machine name.
Signed-off-by: Petri Rosenström <petri.rosenstrom@gmail.com>
SVN-Revision: 29326
2011-11-24 20:09:38 +00:00
Gabor Juhos
600b6efc41
ar71xx: copy atheros initramfs images to the image directory
...
SVN-Revision: 29325
2011-11-24 20:09:35 +00:00
Gabor Juhos
d97cf76790
ar71xx: specify mtd layout in command line for the DB120 board
...
SVN-Revision: 29324
2011-11-24 20:09:32 +00:00
Gabor Juhos
9990523a0f
ar71xx: set GE0 phy_mask for AR933x
...
SVN-Revision: 29274
2011-11-20 11:30:10 +00:00
Gabor Juhos
f27548448b
ar71xx: fix USB LED on the DB120 board
...
SVN-Revision: 29126
2011-11-14 17:43:15 +00:00
Gabor Juhos
6ebbb1329d
ar71xx: add a function for selecting output signal on a given GPIO pin
...
SVN-Revision: 29125
2011-11-14 17:43:14 +00:00
Gabor Juhos
0c1d3617d7
ar71xx: fix GPIO function handling on AR934x
...
SVN-Revision: 29124
2011-11-14 17:43:13 +00:00
Gabor Juhos
aa0c8c4885
ar71xx: add AR71XX_ prefix to GPIO_REG_* defines
...
SVN-Revision: 29123
2011-11-14 17:43:11 +00:00
Gabor Juhos
62a7795afd
ar71xx: merge nand scan patch
...
SVN-Revision: 29122
2011-11-14 17:43:10 +00:00
Gabor Juhos
12dae96097
ar71xx: fix a compiler warning
...
SVN-Revision: 29110
2011-11-14 13:07:47 +00:00
Gabor Juhos
5ae0fd802c
ar71xx: fix GPIO count for AR934x
...
SVN-Revision: 29109
2011-11-14 13:07:45 +00:00
Gabor Juhos
e52269364a
ar71xx: flush DDR writeback buffers for WMAC and PCIe on AR934X
...
SVN-Revision: 29108
2011-11-14 11:49:53 +00:00
Gabor Juhos
3104d70552
ar71xx: use a dummy irq chip for WMAC and PCIe irq hadling
...
SVN-Revision: 29107
2011-11-14 11:49:51 +00:00
Gabor Juhos
42e8ae09b5
ar71xx: add AR934X_RESET_REG_PCIE_WMAC_INT_STATUS defines
...
SVN-Revision: 29106
2011-11-14 11:49:49 +00:00
Gabor Juhos
c15caea360
ar71xx: add an irq parameter for ar724x_pcibios_init
...
SVN-Revision: 29105
2011-11-14 11:49:47 +00:00
Gabor Juhos
cf90b24bb9
ar71xx: remove hardwired interface parameters from mach-* files
...
SVN-Revision: 29103
2011-11-14 07:38:09 +00:00
Gabor Juhos
defc79cb40
ar71xx: force hardwired interface parameters in ar71xx_add_device_eth
...
SVN-Revision: 29102
2011-11-14 07:38:07 +00:00
Gabor Juhos
6f4bc1ce37
ar71xx: use if-else instead of conditional operators in ar71xx_add_device_eth
...
SVN-Revision: 29101
2011-11-14 07:38:05 +00:00
Gabor Juhos
368bbc510b
ar71xx: enable has_gbit flag on AR724{0,1}
...
SVN-Revision: 29026
2011-11-13 17:36:36 +00:00
Gabor Juhos
15d7016c9f
ar71xx: fixup onboard PCIe chip registration on the DB120 board
...
SVN-Revision: 29022
2011-11-13 12:48:03 +00:00
Gabor Juhos
f623066e60
ar71xx: drop DB120_WMAC_MAC_OFFSET, it is not needed
...
SVN-Revision: 29021
2011-11-13 12:48:01 +00:00
Gabor Juhos
d2316b2a45
ar71xx: ag71xx: add support for getting switch port link status
...
SVN-Revision: 29017
2011-11-13 11:27:04 +00:00
Gabor Juhos
d0db89133c
ar71xx: remove mii_ctrl resources of the ethernet devices
...
SVN-Revision: 29016
2011-11-13 11:27:03 +00:00
Gabor Juhos
34015ed6e8
ar71xx: ag71xx: remove unused mii_ctrl field from struct ag71xx
...
SVN-Revision: 29015
2011-11-13 11:27:01 +00:00
Gabor Juhos
2d882cff23
ar71xx: ag71xx: remove unused mii_cfg related functions and defines
...
SVN-Revision: 29014
2011-11-13 11:27:00 +00:00
Gabor Juhos
538a9493b9
ar71xx: set MII interface speed from the set_speed callbacks
...
SVN-Revision: 29013
2011-11-13 11:26:59 +00:00
Gabor Juhos
93cd46be13
ar71xx: rename set_pll callback to set_speed in ag71xx_platform_data
...
Also rename the corresponding callback functions.
SVN-Revision: 29012
2011-11-13 11:26:57 +00:00
Gabor Juhos
9579bb4267
ar71xx: ag71xx: remove MII interface setup code
...
SVN-Revision: 29011
2011-11-13 11:26:56 +00:00
Gabor Juhos
da64ce8603
ar71xx: configure MII interface type from ar71xx_setup_phy_if_mode
...
SVN-Revision: 29010
2011-11-13 11:26:54 +00:00
Gabor Juhos
0112153a0e
ar71xx: fix occasional kernel hangs during boot on AR934x
...
The patch taken from the linux-mips mailing list.
The Kernel hangs occasionally during boot after
"Calibrating delay loop..". This is caused by the
c0_compare_int_usable() routine in cevt-r4k.c
returning false which causes the system to disable
the timer and hang later. The false return happens
because the routine is using a series of four calls
to irq_disable_hazard() as a delay while it waits
for the timer changes to propagate to the cp0 cause
register. On newer MIPS cores, like the 74K, the
series of irq_disable_hazard() calls turn into ehb
instructions and can take as little as a few clock
ticks for all 4 instructions. This is not enough of
a delay, so the routine thinks the timer is not
working.
This fix uses up to a max number of cycle counter
ticks for the delay and uses back_to_back_c0_hazard()
instead of irq_disable_hazard() to handle the hazard
condition between cp0 writes and cp0 reads.
SVN-Revision: 29009
2011-11-13 11:26:52 +00:00
Gabor Juhos
1afc76ea13
ar71xx: refresh kernel patches
...
SVN-Revision: 29008
2011-11-13 11:26:51 +00:00
Gabor Juhos
5ad763075e
ar71xx: use the button for WPS control on the DB120
...
SVN-Revision: 28990
2011-11-12 12:50:20 +00:00
Gabor Juhos
4555be2bec
ar71xx: register the second ethernet interface on the DB120 board
...
SVN-Revision: 28989
2011-11-12 12:50:19 +00:00
Gabor Juhos
368c6605a0
ar71xx: implement SoC specific phy interface setup
...
SVN-Revision: 28988
2011-11-12 12:50:18 +00:00
Gabor Juhos
21d317b9cc
ar71xx: move phy interface setup into a separate function
...
SVN-Revision: 28987
2011-11-12 12:50:16 +00:00
Gabor Juhos
aff0c84ffa
ar71xx: register both MDIO bus on the DB120 board
...
SVN-Revision: 28986
2011-11-12 12:09:59 +00:00
Gabor Juhos
b144249108
ar71xx: add AR934X specific MDIO registration code
...
SVN-Revision: 28985
2011-11-12 12:09:56 +00:00
Gabor Juhos
f835106c8c
ar71xx: add a secondary mdio bus
...
SVN-Revision: 28984
2011-11-12 12:09:54 +00:00