aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
Commit message (Collapse)AuthorAgeFilesLines
...
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41694 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41693 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41692 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41691 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41690 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41689 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41688 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41687 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41686 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41685 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41684 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41351 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315-spiflash]: remove duplicated definitionsJohn Crispin2014-06-242-34/+6
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41325 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41324 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315-spiflash]: make local variables and functions staticJohn Crispin2014-06-241-5/+5
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41323 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315-spiflash]: I/O fixesJohn Crispin2014-06-241-9/+6
| | | | | | | | | Directly use ioread/iowrite functions to avoid odd dependency. And carefully annotate I/O memory pointers. Singed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315-spiflash]: make spiflash header localJohn Crispin2014-06-241-5/+4
| | | | | | | | | We do not need global access to it, so move it from arch include to the mtd subdir. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41321 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315-spiflash]: pass I/O mem regions via resourcesJohn Crispin2014-06-242-11/+24
| | | | | | | | | Pass I/O memory regions (flash read and MMR) via platform device resources array and use them inside spiflash driver. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41320 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar231x-pci]: do not touch iomem_resource rangesJohn Crispin2014-06-241-3/+1
| | | | | | | | | Moving the start of IO mem to 0x10000000 leads to allocation conflict with SPI flash memory region, which starts at 0x08000000. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41319 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315-spiflash]: print detected flash sizeJohn Crispin2014-06-241-1/+3
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41318 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar2315]: don't detect flash size during board initializationJohn Crispin2014-06-241-80/+7
| | | | | | | | | | | | | | | We should not detect actual flash size during board initialization to find board config at the end of the flash, just use large enough mapping size (currently 128 mbit). If mapping size is larger than the actual flash size, than flash will simply be mapped multiple times. This change simplifies code by removing duplication and saves about 200 bytes of uncompressed kernel :) Tested with Ubnt LS2 board equipped with STM 25p32v6p NOR flash (32 mbit). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41317 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros[ar231x-eth]: merge patchJohn Crispin2014-06-242-12/+1
| | | | | | | | | Merge 3_10-updates.patch into the ar2313_ethernet.patch since it contains only one ethernet driver fix. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41316 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: fix too short msleepFelix Fietkau2014-06-101-2/+2
| | | | | | | | | | | | Use msleep(20) instead of msleep(10) to make code closer to reality since msleep can sleep for up to 20ms even we request shorter delay. All updated calls are located in PCI initialization routine which is called only once upon device boot. So there should be no performance issues caused by more longer delay. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41096 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: shorten linesFelix Fietkau2014-06-1010-262/+318
| | | | | | | | Wrap lines over 80 chars or make them shorter by other ways. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41095 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: constify some static structuresFelix Fietkau2014-06-103-4/+6
| | | | | | | | Constify some static structures as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41094 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: avoid __FUNCTION__ usageFelix Fietkau2014-06-101-6/+6
| | | | | | | | | Use __func__ instead of gcc specific __FUNCTION__ as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41093 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: trailing statements fixesFelix Fietkau2014-06-104-9/+14
| | | | | | | | | Move trailing statements to next line with indentation as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41092 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: spaces fixesFelix Fietkau2014-06-109-63/+66
| | | | | | | | Add missed spaces and remove odd space as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41091 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: indent fixesFelix Fietkau2014-06-105-145/+146
| | | | | | | | | Various indent fixes suggested by checkpatch: use tabs, use same level of indentation for switch and case, correct indentation levels. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: fix includesFelix Fietkau2014-06-107-29/+20
| | | | | | | | | Remove some unnecessary includes and use <linux/foo.h> instead of <asm/foo.h> when it possible as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41089 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: various printk(...) fixesFelix Fietkau2014-06-103-30/+33
| | | | | | | | | Use more particular functions dev_<level> or pr_<level>(...) insead of direct printk(...) call. Add KERN_LEVEL to calls what missed it. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41088 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: various braces fixesFelix Fietkau2014-06-107-42/+32
| | | | | | | | | Fix braces location, remove unnecessary empty lines before or after code block, remove useless braces. All cases are detected by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41087 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: do not initialize statics to 0 or falseFelix Fietkau2014-06-103-4/+4
| | | | | | | | as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41086 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: remove trailing whitespaceFelix Fietkau2014-06-101-1/+1
| | | | | | | | as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41085 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: do not assignment in if conditionFelix Fietkau2014-06-105-10/+13
| | | | | | | | Remove assignments from if conditions as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41084 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: remove parentheses around return valuesFelix Fietkau2014-06-103-8/+8
| | | | | | | | | Remove parentheses around return values since return is no a function, as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41083 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: parenthesis around complex macroses valueFelix Fietkau2014-06-102-31/+31
| | | | | | | | | Use parenthesis around complex macroses value as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41082 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: various comments fixesFelix Fietkau2014-06-104-97/+74
| | | | | | | | | | Fix comment issues detected by checkpatch. Convert C99 // comments to ordinary /* ... */ comments. Correct block comments style or convert them to single line comments. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41081 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: avoid CamelCaseFelix Fietkau2014-06-103-62/+63
| | | | | | | | | | Change fooBar variables names to foo_bar as suggested by checkpatch, write few tables names in lower case and correctly place __initdata keyword. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41080 3c298f89-4303-0410-b956-a3cf2f4a3e73
* target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGCJohn Crispin2014-06-021-1/+1
| | | | | | | | | | | | | | | | | | | ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct var $# (=number of args) here. under normal conditions this had no impact, but we should at least correct it. the error was observable like this: root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh root@box:~ . /lib/upgrade/platform.sh root@box:~ . /lib/upgrade/common.sh root@box:~ platform_check_image /tmp/myfirmware.bin ash: bad number root@box:~ echo $? 0 Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40915 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: remove useless get_c0_compare_int fixFelix Fietkau2014-04-291-39/+0
| | | | | | | | | | | Remove get_c0_compare_int fix which is useless for latest kernels. Tested on Ubnt Bullet2, which could successfully boot without this workaround. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40593 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update 3.10 to 3.10.36Gabor Juhos2014-04-121-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40467 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update 3.10 to 3.10.34Gabor Juhos2014-03-271-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40291 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update 3.10 to 3.10.32Gabor Juhos2014-02-231-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39707 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: change LINUX_VERSON from 3.8.13 to 3.10.28Hauke Mehrtens2014-02-051-1/+1
| | | | | | | | | | The 3.10.x infrastructure has been present for some time, and seems to run fine here. Signed-off-by: Russell Senior <russell@personaltelco.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39483 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update 3.10 to 3.10.17Gabor Juhos2013-10-231-23/+0
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38506 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: fix kernel warning about usage of reset gpioGabor Juhos2013-09-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | During a reset the gpiolib warns about using the reset gpio without explicit requesting it before: [ 147.930000] ------------[ cut here ]------------ [ 147.930000] WARNING: at drivers/gpio/gpiolib.c:103 gpio_ensure_requested+0x68/0xcc() [ 147.930000] autorequest GPIO-5 [ 147.930000] Modules linked in: ath5k ath mac80211 ipv6 cfg80211 compat arc4 crypto_blkcipher aead gpio_button_hotplug [ 147.930000] Call Trace: [ 147.930000] [<8004e3bc>] dump_stack+0x8/0x34 [ 147.930000] [<80058430>] warn_slowpath_common+0x78/0xa4 [ 147.930000] [<800584e4>] warn_slowpath_fmt+0x2c/0x38 [ 147.930000] [<80166f18>] gpio_ensure_requested+0x68/0xcc [ 147.930000] [<80167264>] gpio_direction_output+0xdc/0x168 [ 147.930000] [<8004aba8>] ar2315_restart+0x28/0x54 [ 147.930000] [<80069778>] sys_reboot+0x178/0x1c0 [ 147.930000] [<80043670>] stack_done+0x20/0x40 [ 147.930000] [ 147.930000] ---[ end trace 2c7a53d8549562d6 ]--- This is fixed with this patch by using another gpiolib api call which includes the missing request. Signed-off-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38183 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel/3.10: refresh all target patchesGabor Juhos2013-09-251-2/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38182 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update 3.10 to 3.10.9Gabor Juhos2013-08-232-3/+3
| | | | | | | | Also refresh 3.10 patches. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37832 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update 3.10 to 3.10.3Gabor Juhos2013-07-266-9/+7
| | | | | | | | Also refresh 3.10 patches. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37546 3c298f89-4303-0410-b956-a3cf2f4a3e73