aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
Commit message (Collapse)AuthorAgeFilesLines
* atheros: v3.18: remap main SoC MMR memoryFelix Fietkau2015-03-134-203/+252
| | | | | | | | | | Honestly remap main SoC MMR mem and use accessor functions to interact with registers. Now registers defined relatively to base address (e.g. SDRAM controller base address). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44723 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: cleanup register headersFelix Fietkau2015-03-131-58/+6
| | | | | | | | | | AFAIK, no one AR2315+ chip (AR2315, AR2316, AR2317, AR2318) does not contain IR block, so remove IR registers definitions. Also remove few unused macroses. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44722 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: pass PCI IRQ and I/O mem via resourcesFelix Fietkau2015-03-131-15/+56
| | | | | | | | | | Pass PCI IRQ and I/O memory ranges via platform device resources, this change makes PCI controller driver independed from arch headers, so also remove few includes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44721 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: remap PCI controller MMR memoryFelix Fietkau2015-03-132-50/+88
| | | | | | | | | Honestly remap PCI controller MMR and use accessor functions to interact with registers. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: add context container for PCI driverFelix Fietkau2015-03-131-53/+70
| | | | | | | | | Add container and place all context specific variables and structure to it. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44719 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: move PCI enable code to archFelix Fietkau2015-03-131-21/+23
| | | | | | | | | Move PCI host interface enable code to arch, since it touches generic SoC registers outside the PCI MMR region. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44718 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rearrange PCI regs definitionsFelix Fietkau2015-03-132-93/+104
| | | | | | | | | Move PCI controller configuration registers from generic header to driver source. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44717 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: relocate PCI host DMA base definitionFelix Fietkau2015-03-131-10/+9
| | | | | | | | | | Put AR2315_PCI_HOST_SDRAM_BASEADDR macro to DMA header, since this is arbitrary value and not some hw specific constant. Also this relocation decouples dma from HW specific header. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44716 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rework early initializationFelix Fietkau2015-03-132-51/+40
| | | | | | | | | | Do not use prom_init() callback, do memory initialization in plat_mem_setup() callback and move serial port configuration to arch_initcall stage. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44715 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rearrange interrupt handling functionsFelix Fietkau2015-03-132-72/+72
| | | | | | | | No functional changes, just change functions order in source file. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44714 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: change calls logicFelix Fietkau2015-03-134-67/+41
| | | | | | | | | | | Check SoC family (AR5312+ or AR2315+) before call instead of checking it inside the called function. Also convert ar{5312,2315}_init_device() function to void, since they both return zero and nobody care about return value. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44713 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: update names and declarationsFelix Fietkau2015-03-136-233/+211
| | | | | | | | | | | Sync functions, variables and enums names with upstream. Mostly replace 'ar231x_' prefix by 'ath25_'. No functional changes, except few 'int' -> 'unsigned' changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44712 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: cleanup cpu-feature-overrides.hFelix Fietkau2015-03-131-21/+1
| | | | | | | | Remove mention of undefined features. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44711 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: remove eth platform device unused fieldFelix Fietkau2015-03-134-12/+8
| | | | | | | | | Ethernet controller driver don't use boarddata directly, so remove corresponding field from its platform device structure. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44710 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: remove odd header reset.hFelix Fietkau2015-03-131-9/+0
| | | | | | | | | This header provides prototype for function without realization and users. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44709 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rename platform headerFelix Fietkau2015-03-134-8/+8
| | | | | | | | Rename ar231x_platform.h to ath25_platform.h Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44708 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rename kernel platform to ath25Felix Fietkau2015-03-136-78/+78
| | | | | | | | | | Rename platform source directory and asm includes directory. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44707 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rename ATHEROS_AR231X symbol to ATH25Felix Fietkau2015-03-138-20/+20
| | | | | | | | | | This patch starts upsteam ath25 code backporting. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44706 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: add v3.18 supportFelix Fietkau2015-03-1314-0/+6590
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44705 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: disbale HAMRADIO in generic configJohn Crispin2015-03-061-1/+0
| | | | | | | | | | | | | | | HAMRADIO enabled in all generic configs, but no one platform directly use related drivers/protocols. This symbol is only used for kmod-ax25 package modules. Furthermore, half of platforms explicitly disables this symbol, what silently disables build of modules for kmod-ax25 package. So disable HAMRADIO by-default in generic config, add it to kmod-ax25 package and remove it from platform specific configs. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44613 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: remove GENERIC_NET_UTILS from platform configsJohn Crispin2015-03-061-1/+0
| | | | | | | | | | CONFIG_GENERIC_NET_UTILS is selected by CONFIG_NET and already enabled in generic config, so we don't need this symbol in platform specific configurations. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44611 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configsJonas Gorski2015-03-011-1/+0
| | | | | | | | | Most MIPS targets have it disabled, so move the symbol to the generic configs to keep target configs small. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44583 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: makefiles: make use of new var KERNEL_PATCHVERFelix Fietkau2014-10-241-1/+1
| | | | | | | | | | | replace all occurences of LINUX_VERSION with the cleaner approach. future kernel upgrades must mostly touch only one file. the only platform left is netlogic, because it uses a intermediate kernel 3.14.16 Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43047 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42513 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42512 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: convert AR5312 GPIO code to platform driverJohn Crispin2014-09-124-75/+198
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42511 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42510 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42509 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42508 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42507 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42506 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42505 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42504 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42503 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42502 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42501 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42500 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42499 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42498 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42497 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42496 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42495 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42494 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: remove useless includesJohn Crispin2014-09-123-22/+7
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42493 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42492 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42491 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42490 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42489 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: remove useless returnJohn Crispin2014-09-123-8/+3
| | | | | | | | Remove useless void function return. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42488 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42487 3c298f89-4303-0410-b956-a3cf2f4a3e73