aboutsummaryrefslogtreecommitdiffstats
path: root/target
Commit message (Collapse)AuthorAgeFilesLines
* atheros: refresh configJohn Crispin2014-09-121-4/+0
| | | | | | | | Remove symbols that are now placed in the generic config. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42513
* atheros: convert AR2315 GPIO code to platform driverJohn Crispin2014-09-124-172/+327
| | | | | | | | | | | Convert gpiolib realization to platform driver and move to the appropriate subdirectory. Misc GPIO interrupt acknowledgement placed to the MISC IRQ handler since in fact we can detect only one GPIO state change. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42512
* atheros: convert AR5312 GPIO code to platform driverJohn Crispin2014-09-124-75/+198
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42511
* atheros: rework chained interrupts handlingJohn Crispin2014-09-122-47/+47
| | | | | | | | | | Call generic_handle_irq() instead of do_IRQ() for chained interrupts, remove XXX_NONE interrupts and call spurious_interrupt() when an interrupt is unexpected. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42510
* atheros: convert gpio.h to stubJohn Crispin2014-09-122-25/+13
| | | | | | | | | Implement to_irq() handler for AR2315 GPIO chip and convert custom gpio.h header to stub. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42509
* atheros: rename SoCs config symbolsJohn Crispin2014-09-125-15/+15
| | | | | | | | | Rename config symbols to be consistent with other SoCs config symbols supported by MIPS arch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42508
* atheros: add AR2316 and AR2318 SoCs detectionJohn Crispin2014-09-122-5/+13
| | | | | | | | | Tested with AR2315, AR2316 and AR2317 SoCs, not tested with AR2318 but changes seems correct: revision is one more than AR2317. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42507
* atheros: ar2315-pci: convert to platform driverJohn Crispin2014-09-121-33/+59
| | | | | | | | | Convert the PCI controller support code to platform driver and move it to appropriate subdirectory. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42506
* atheros: ar2315-pci: rename configuration symbolJohn Crispin2014-09-122-6/+7
| | | | | | | | Rename configuration symbol to be consistent with other MIPS machines. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42505
* atheros: ar2315-pci: update DMA offset macrosesJohn Crispin2014-09-122-16/+24
| | | | | | | | Remove duplicated macroses, which define DMA offset (SDRAM baseaddress). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42504
* atheros: ar2315-pci: update host bridge resourcesJohn Crispin2014-09-122-20/+8
| | | | | | | | | | It seems that the PCI controller does not support I/O ports, so remove the ports range. Also correct the beginning of the memory range and its size. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42503
* atheros: ar2315-pci: rework the configuration access codeJohn Crispin2014-09-121-34/+48
| | | | | | | | | | | | | | | Use __raw_{read,write}l accessors and use Abort interrupt to detect a configuration space read/write errors. The second change improves errors detection, what improves the device presence detection and helps us to avoid following (and similar) errors: pci 0000:00:00.2: ignoring class 0x7e0200 (doesn't match header type 02) pci 0000:00:00.2: bridge configuration invalid ([bus 03-90]), reconfiguring pci 0000:00:00.2: not setting up bridge for bus 0000:01 Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42502
* atheros: ar2315-pci: rework interrupt handlingJohn Crispin2014-09-122-66/+103
| | | | | | | | | | | | | Add PCI IRQ controller to facilitate interrupt handling, move interrupts initialization to the IRQ controller initialization from pcibios_plat_dev_init() callback. Also remove odd PCI dev configuration manipulation from pcibios_plat_dev_init() callback. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42501
* atheros: ar2315-pci: rework host controller initializationJohn Crispin2014-09-121-24/+50
| | | | | | | | | | | | Explicitly configure PCI host controller, and do not expose it to PCI subsystem. The PCI host controller acts as a usual PCI device connected to the bus, but its configuration as a usual PCI device is senseless, since the host controller provide access to _internal_ memory space for _external_ device. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42500
* atheros: ar2315-pci: cosmetic changesJohn Crispin2014-09-121-22/+47
| | | | | | | | | | | - add comment, which briefly describes PCI controller features and Fonera 2.0g schematics. - rename several functions and structures, to make it clear that this code only for AR2315 chips. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42499
* atheros: ar2315-pci: remove odd locking in PCI config space access functionJohn Crispin2014-09-121-5/+1
| | | | | | | | | Caller (generic PCI code) already do proper locking so no need to add another one here. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42498
* atheros: remove odd ATHEROS_AR2315 config symbol dependenciesJohn Crispin2014-09-122-11/+4
| | | | | | | | | Remove options which already selected by ATHEROS_AR231X on which ATHEROS_AR2315 depends. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42497
* atheros: various space related changesJohn Crispin2014-09-126-89/+52
| | | | | | | | | | | | - remove odd blank lines - remove odd spaces after casts - fix alignment No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42496
* atheros: rework and cleanup board initializationJohn Crispin2014-09-121-85/+52
| | | | | | | | | | | | | | - remove odd flags and branching - add __init mark - make shorter variables names - returns true or false from boolean functions - unwrap short function declarations - unwrap quoted string - rename macroses with names in CamelCase Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42495
* atheros: update ether addresses handlingJohn Crispin2014-09-121-14/+13
| | | | | | | | | - use ether_foo() routines to work with addresses - use ETH_ALEN inplace of magic '6' Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42494
* atheros: remove useless includesJohn Crispin2014-09-123-22/+7
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42493
* atheros: ar231x-eth: remove useless IOCTL handlersJohn Crispin2014-09-122-24/+5
| | | | | | | | These IOCTLs handled in the core now. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42492
* atheros: ar2315-spiflash: use mutex inplace of spinlockJohn Crispin2014-09-121-60/+14
| | | | | | | | | | Use mutex inplace of spinlock to make code simple, also call mutex_{lock,unlock} explicitly to avoid sparse warning about context imbalance. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42491
* atheros: ar2315-spiflash: update initializationJohn Crispin2014-09-121-23/+12
| | | | | | | | | - fill module metadata - remove odd module_{init,exit} Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42490
* atheros: ar2315-spiflash: use devm_* API to simplify the codeJohn Crispin2014-09-121-33/+15
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42489
* atheros: remove useless returnJohn Crispin2014-09-123-8/+3
| | | | | | | | Remove useless void function return. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42488
* atheros: remove FSF mailing addressJohn Crispin2014-09-122-6/+4
| | | | | | | | | Remove FSF mailing address as suggested by checkpach and place license URL. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42487
* atheros: add blank line after declarationsJohn Crispin2014-09-123-10/+20
| | | | | | | | as suggested by checkpach. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42486
* atheros: use static keywork for local codeJohn Crispin2014-09-121-3/+3
| | | | | | | | | Make PCI IRQ handler and several structures static as suggested by sparse. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42485
* atheros: use NULL instead of plain integerJohn Crispin2014-09-121-1/+1
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42484
* atheros: add missing includeJohn Crispin2014-09-121-2/+6
| | | | | | | | | Missing this headers cause several sparse "symbol 'foo' was not declared. Should it be static?" warnings. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42483
* atheros: avoid extern prototypesJohn Crispin2014-09-121-17/+16
| | | | | | | | Avoid using of extern prototypes as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42482
* ralink: drop 3.10 supportJohn Crispin2014-09-1287-66599/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42481
* lantiq: update 3.14 patchesJohn Crispin2014-09-1138-60/+1545
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42476
* kernel: update 3.14 to 3.14.18Luka Perkov2014-09-10375-5690/+1326
| | | | | | | | Targets were build tested and patches are refreshed. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 42463
* atheros: enable the low_mem flag to better deal with 16M RAM devicesFelix Fietkau2014-09-101-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42460
* ar71xx: ack completed tx descriptors only after the full frame has been ↵Felix Fietkau2014-09-101-10/+16
| | | | | | | | completed Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42457
* imx6: fix image build for Generic profile.Luka Perkov2014-09-091-5/+7
| | | | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 42455
* kernel: drop 3.9 supportHauke Mehrtens2014-09-08161-33345/+0
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42452
* gemini: drop kernel 3.9 supportHauke Mehrtens2014-09-0818-5269/+0
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42451
* gemini: switch to kernel 3.10Hauke Mehrtens2014-09-081-1/+1
| | | | | | | | | | | | | | This switches to kernel 3.10 that was prepared by Hauke in r41531 : gemini: add support for kernel 3.10 This is compile tested only, please run test and report back. I've simply checked if it still compiles, unfortunately we didn't get any feedback for this target. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42450
* omap: add kernel 3.14 supportHauke Mehrtens2014-09-086-0/+636
| | | | | | | | It has been compile-tested only so far. Please give it a try. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42449
* kernel: add bcma patches sent upstream but not pushed yetHauke Mehrtens2014-09-086-59/+524
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42448
* kernel: update bcma to the version from wireless-testing master-2014-09-04 tagHauke Mehrtens2014-09-083-56/+282
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42447
* ralink: dwc_otg->dwc2John Crispin2014-09-0815-19/+19
| | | | | | | | | | the old dwc_otg driver is starting to fall apart and fails on newer 3g modems and some storage devices. switch to the upstream dwc2 driver which is no longer in staging/. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42446
* ralink: add dwc2 device_reset() callJohn Crispin2014-09-081-0/+21
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42445
* lantiq: add ath9k led pin supportJohn Crispin2014-09-081-11/+16
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42437
* sunxi: re-add lradc driver in 3.14Zoltan Herpai2014-09-081-0/+2
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 42436
* ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331Felix Fietkau2014-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | While the AR9331 has a gigabit MAC towards the internal switch, the integrated PHYs however are only 100-base-tx capable. The existing code however advertieses gigabit capability in the link status word. If you attach such a PHY to a gigabit capable switch on the remote end, with some probability it attempts to negotiate gigabit and fails, falling baco to the AR9331 assuming a 10mbit half-duplex link. This has been observed quite frequently with the Carambola2 and gigabit capable switches. In ath79_register_eth(), "pdata->has_gbit = 1;" is set unconditionally for both AR9331 ethernet ports. This is most likely wrong. Despite the two MAC IP cores being gigabit MACs, the MAC for eth1 is connected to a 100base-T PHY via MII. The has_gbit attribute is used in the ethernet driver to determine the supported link modes. So either pdata->has_gbit is not set to 1 anymore, or the ethernet driver needs to be modified to determine the advertised link code word on another criteria than pdata->has_gbit. This patch implements the former solution. Signed-off-by: Harald Welte <laforge@gnumonks.org> SVN-Revision: 42432
* ar71xx: re-enable descriptor splitting on ar716x after the previous bugfixes ↵Felix Fietkau2014-09-061-2/+0
| | | | | | | | (#13072) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42429