aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* kernel: update 3.14 to 3.14.18Luka Perkov2014-09-101-1/+1
| | | | | | | | 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
* atheros: remove linux 3.10Felix Fietkau2014-09-0612-6369/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42426
* kernel: update 3.14 to 3.14.16Luka Perkov2014-08-081-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 42070
* atheros: switch kernel version to 3.14Felix Fietkau2014-08-041-1/+1
| | | | | | | | After several tests, 3.14 kernel seems run fine. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41997
* atheros: add 3.14 configurationFelix Fietkau2014-08-041-0/+137
| | | | | | | | | Created on basis of 3.10 config. Remove few obsolete symbols and add new upstream symbols. New symbols left in its default state. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41996
* atheros: copy 3.10 patches to 3.14 and refresh themFelix Fietkau2014-08-0411-0/+6242
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41995
* atheros: refresh config-3.10Felix Fietkau2014-08-041-1/+1
| | | | | | | | | Refresh 3.10 kernel configuration, particulary correct AR2315_WDT symbol position. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41994
* atheros: remove linux 3.8 supportFelix Fietkau2014-07-2913-6524/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41874
* kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org>John Crispin2014-07-201-1/+1
| | | | SVN-Revision: 41776
* atheros: update macroses namesFelix Fietkau2014-07-173-276/+276
| | | | | | | | | | | | | Use AR2315_ prefix for macroses specific to AR2315/AR2316/AR2317 chips, use AR5312_ prefix for macroses specific to AR5312/AR2312/AR2313 chips, and use AR231X_ prefix for common macroses. This patch should not cause any functional changes, only make clear which macros is common and which macros is specific. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41701
* atheros[uart]: pass only physical I/O mem address to 8250 driverFelix Fietkau2014-07-171-6/+5
| | | | | | | | | | Pass only physical address to 8250 serial port driver and set flag to remap I/O memory inside the driver. Also fix AR5312 UART base address definition, which seems specified already mapped. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41700
* atheros[uart]: use 32-bit aligned I/OFelix Fietkau2014-07-172-5/+5
| | | | | | | | Use 32-bit aligned I/O and update base UART address (remove +3 offset). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41699
* atheros[ar231x-eth]: pass PHY I/O memory via device resourcesFelix Fietkau2014-07-173-41/+72
| | | | | | | | | Pass PHY I/O memory region via platform resources and remap them unconditionally. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41698
* atheros[ar231x-eth]: pass phys address of I/O memory via platform resFelix Fietkau2014-07-173-24/+21
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41697
* atheros: simplify gpiolib realizationFelix Fietkau2014-07-171-177/+57
| | | | | | | | | | | | | | | Each SoCs generation has own independent gpiolib realization, so we have no reason to keep these realizations in semiuniversal form. Following modifications are made: * Remove valid_mask field * Remove ar231x_gpio_chip structure * Rename AR2315_GPIO_CR to AR2315_GPIO_DIR * Fix count of AR5312 GPIOs * Simplify gpio_chip methods realization Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41696
* atheros: use irq_set_chained_handler()Felix Fietkau2014-07-172-26/+14
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41695
* atheros: simplify AR2315 misc IRQ (un)maskingFelix Fietkau2014-07-172-74/+52
| | | | | | | | | | Currently AR5312 misc IRQ numbers are used for AR2315+ chips, what cause us to use switch-case to map IRQ number to ISR bit. Introduce AR2315 specific misc IRQs set and simplify interrupt (un)mask operation. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41694
* atheros: rename some interrupt control handlersFelix Fietkau2014-07-171-21/+24
| | | | | | | | | Rename interrupt control handlers to be consistent with operation names and add IRQ chips names. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41693
* atheros: move AR2315 misc IRQ dispatching to separate functionFelix Fietkau2014-07-172-28/+34
| | | | | | | | Align code with AR5312 realization. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41692
* atheros: pass UART IRQ number via function argumentFelix Fietkau2014-07-171-7/+9
| | | | | | | | | UART IRQ number could be different for different SoCs, so make them configurable. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41691
* atheros[ar231x-eth]: move driver to atheros subdirectoryFelix Fietkau2014-07-173-32/+33
| | | | | | | | | Move driver code to respective vendor subdirectory and fix config symbol name. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41690
* atheros[ar231x-eth]: update MAC and PHY reset methodFelix Fietkau2014-07-173-25/+54
| | | | | | | | | Pass reset_set and reset_clear callback functions pointers via platform_data instead of reset register address. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41689
* atheros[ar2315-wdt]: update I/O handlingFelix Fietkau2014-07-172-12/+50
| | | | | | | | | * Pass iomem and IRQ via platform device resources * Remap iomem and use iowrite32 accessor function Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41688
* atheros[ar2315-wdt]: update interrupt handlingFelix Fietkau2014-07-172-7/+5
| | | | | | | | | Acknowledge watchdog interrupt in arch irq dispatcher and remove odd watchdog enable call from probe function. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41687
* atheros: use correct address space and pointer type for register accessFelix Fietkau2014-07-171-2/+2
| | | | | | | | Make sparse happy :) Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41686
* atheros[ar2315-wdt]: rename config symbolFelix Fietkau2014-07-172-6/+7
| | | | | | | | | Rename config symbol to AR2315_WDT to avoid confusion with other Atheros SoCs. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41685
* atheros[ar2315-wdt]: update initializationFelix Fietkau2014-07-172-20/+11
| | | | | | | | | | * update driver id to be consistent with other ar231x drivers * remove odd module_{init,exit} * add module metadata (description, name, etc.) Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41684
* kernel: update 3.10.36->3.10.44John Crispin2014-06-261-1/+1
| | | | | | | | 205-fix-headers_install.patch is obseleted by upstream commit 3246a0352e3d58380b9386570f1db1faf7edf8a8 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41351
* atheros[ar2315-spiflash]: remove duplicated definitionsJohn Crispin2014-06-242-34/+6
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41325
* atheros[ar2315-spiflash]: update driver idJohn Crispin2014-06-242-2/+2
| | | | | | | | Make id more specific and consistent with others platform drivers. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41324
* atheros[ar2315-spiflash]: make local variables and functions staticJohn Crispin2014-06-241-5/+5
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41323