summaryrefslogtreecommitdiff
path: root/target/linux/atheros/patches-3.10/100-board.patch
Commit message (Collapse)AuthorAgeFilesLines
* atheros: update macroses namesFelix Fietkau2014-07-171-264/+264
| | | | | | | | | | | | | 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-171-3/+3
| | | | | | | | 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-171-19/+38
| | | | | | | | | 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-171-10/+10
| | | | | | 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-171-23/+11
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41695
* atheros: simplify AR2315 misc IRQ (un)maskingFelix Fietkau2014-07-171-73/+51
| | | | | | | | | | 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-171-21/+26
| | | | | | | | 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]: update MAC and PHY reset methodFelix Fietkau2014-07-171-7/+42
| | | | | | | | | 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-171-1/+16
| | | | | | | | | * 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-171-3/+4
| | | | | | | | | 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]: update initializationFelix Fietkau2014-07-171-1/+1
| | | | | | | | | | * 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
* atheros[ar2315-spiflash]: remove duplicated definitionsJohn Crispin2014-06-241-19/+1
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41325
* atheros[ar2315-spiflash]: update driver idJohn Crispin2014-06-241-1/+1
| | | | | | | | 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]: pass I/O mem regions via resourcesJohn Crispin2014-06-241-8/+8
| | | | | | | | | 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> SVN-Revision: 41320
* 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> SVN-Revision: 41317
* atheros: shorten linesFelix Fietkau2014-06-101-167/+211
| | | | | | | | Wrap lines over 80 chars or make them shorter by other ways. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41095
* atheros: constify some static structuresFelix Fietkau2014-06-101-1/+1
| | | | | | | | Constify some static structures as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41094
* atheros: trailing statements fixesFelix Fietkau2014-06-101-2/+3
| | | | | | | | | Move trailing statements to next line with indentation as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41092
* atheros: spaces fixesFelix Fietkau2014-06-101-19/+19
| | | | | | | | Add missed spaces and remove odd space as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41091
* atheros: indent fixesFelix Fietkau2014-06-101-105/+108
| | | | | | | | | 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> SVN-Revision: 41090
* atheros: fix includesFelix Fietkau2014-06-101-3/+3
| | | | | | | | | 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> SVN-Revision: 41089
* atheros: various printk(...) fixesFelix Fietkau2014-06-101-19/+19
| | | | | | | | | 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> SVN-Revision: 41088
* atheros: various braces fixesFelix Fietkau2014-06-101-13/+13
| | | | | | | | | 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> SVN-Revision: 41087
* atheros: do not initialize statics to 0 or falseFelix Fietkau2014-06-101-1/+1
| | | | | | | | as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41086
* atheros: do not assignment in if conditionFelix Fietkau2014-06-101-4/+5
| | | | | | | | Remove assignments from if conditions as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41084
* atheros: remove parentheses around return valuesFelix Fietkau2014-06-101-1/+1
| | | | | | | | | 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> SVN-Revision: 41083
* atheros: parenthesis around complex macroses valueFelix Fietkau2014-06-101-30/+30
| | | | | | | | | Use parenthesis around complex macroses value as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41082
* atheros: various comments fixesFelix Fietkau2014-06-101-8/+8
| | | | | | | | | | 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> SVN-Revision: 41081
* atheros: avoid CamelCaseFelix Fietkau2014-06-101-54/+55
| | | | | | | | | | 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> SVN-Revision: 41080
* atheros: fix kernel warning about usage of reset gpioGabor Juhos2013-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> SVN-Revision: 38183
* kernel: update 3.10 to 3.10.9Gabor Juhos2013-08-231-2/+2
| | | | | | | | Also refresh 3.10 patches. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37832
* kernel: update 3.10 to 3.10.3Gabor Juhos2013-07-261-2/+2
| | | | | | | | Also refresh 3.10 patches. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37546
* linux/atheros: add 3.10 kernel supportJohn Crispin2013-07-221-0/+3158
SVN-Revision: 37513