Commit Graph

279 Commits (1634461bd208f4bd108ea5c3d3f1cf9eb56d4a7e)

Author SHA1 Message Date
Felix Fietkau 5ab4db376a cns3xxx: enable CONFIG_PROC_STRIPPED to improve network performance
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48581
8 years ago
Felix Fietkau 9ab08d665f cns3xxx: improve ethernet performance by using the page fragment allocation API
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48580
8 years ago
Felix Fietkau 3d4444f257 cns3xxx: fix ethernet DMA ring allocation issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48579
8 years ago
Felix Fietkau 82939c3f52 Revert "cns3xxx: re-enable CONFIG_CPU_SW_DOMAIN_PAN"
There seem to be some remaining SMP issues with it

This reverts commit r48336

SVN-Revision: 48367
8 years ago
Felix Fietkau 10220cd7e9 cns3xxx: re-enable CONFIG_CPU_SW_DOMAIN_PAN
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48336
8 years ago
Felix Fietkau 87e4f9f009 cns3xxx: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48334
8 years ago
Felix Fietkau 91278df70e cns3xxx: fix a ethernet driver napi poll handling bug
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48333
8 years ago
Felix Fietkau 136747c564 cns3xxx: clean up SMP related code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48332
8 years ago
Felix Fietkau 8ecfa0e773 cns3xxx: fix adding twd local timers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48331
8 years ago
Felix Fietkau f366dc25d3 cns3xxx: remove obsolete file
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48330
8 years ago
Felix Fietkau 2ac8b1c1fe cns3xxx: remove unused define and use of a deprecated function
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48329
8 years ago
Hauke Mehrtens de18003b6e kernel/3.18: update to version 3.18.25
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48225
8 years ago
John Crispin f0b708acdf cns3xxx: add GW2393 Support
Based off of the GW2391-C, but with the following changes:
 * 4x4in to 4x5in pcb
 * flat panel connector for LED signals

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 47920
9 years ago
John Crispin c6d95f0752 cns3xxx: Fix comment
Original comment was wrong about which pads are being set.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 47919
9 years ago
Hauke Mehrtens 55a912f43e kernel: update kernel 3.18 to version 3.18.23
Changelog:
 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.22
 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.23

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47334
9 years ago
Jonas Gorski 7d6cff4882 kernel: update 3.18 to 3.18.21
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46768
9 years ago
Jonas Gorski 901a7fa067 kernel: update 3.18 to 3.18.17
Changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.17

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46150
9 years ago
Jo-Philipp Wich 8f032fdda1 cns3xxx: use common image prefix
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45781
9 years ago
Jonas Gorski 76d079204d kernel: update 3.18 to 3.18.14
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14

Build tested on brcm63xx and ipq806x, runtested on brcm63xx.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45711
9 years ago
John Crispin 518d9fd2a0 cns3xxx: drop 3.14 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44817
9 years ago
John Crispin d15ac306fa kernel: move KERNFS to generic config
KERNFS symbol is selected by SYSFS, so place it in generic config.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44615
9 years ago
John Crispin f04a268a04 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED
Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since
only one platfrom (omap) needs them.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

SVN-Revision: 44614
9 years ago
John Crispin 7886cced18 kernel: remove GENERIC_NET_UTILS from platform configs
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>

SVN-Revision: 44611
9 years ago
John Crispin e7d8a82a5c cns3xxx: set v3.18 as default
tested on a nor and a spi laguna

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44393
9 years ago
Felix Fietkau 7cc5b6f9e9 all targets: remove all =m kernel config symbols
modules build during the kernel compile phase are ignored anyway,
all modules should be built using KernelPackage in
package/kernel/linux/modules/*
selecting the appropriate config symbols there rather than in
target/linux/*/config-*

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43842
10 years ago
Felix Fietkau 9a495f6bbb kernel: refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43564
10 years ago
Felix Fietkau f473f95196 cns3xxx: fix PCIe->PCI bridge access (fixes #18422)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43414
10 years ago
Felix Fietkau ca2d0c15cc cns3xxx: add experimental 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43406
10 years ago
Felix Fietkau d57b64dfb0 cns3xxx: fix pcie root bridge topology
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43403
10 years ago
Felix Fietkau d0e4f71b9a cns3xxx: add missing dma mask for ethernet device
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43399
10 years ago
Felix Fietkau ebf6331c10 cns3xxx: switch to using the upstream dwc2 driver instead of dwc_otg
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43398
10 years ago
Felix Fietkau 211669da3b cns3xxx: update to linux 3.14
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43397
10 years ago
Felix Fietkau 0525ffa4c5 cns3xxx: remove bogus image added in r38703
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43396
10 years ago
Felix Fietkau 8c136e6b56 cns3xxx: set base device for ethernet port netdevs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43395
10 years ago
Felix Fietkau 365cf9d10c cns3xxx: fix passing the device to dma mapping ops
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43394
10 years ago
Felix Fietkau c288d2d6d9 kernel: makefiles: make use of new var KERNEL_PATCHVER
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>

SVN-Revision: 43047
10 years ago
Felix Fietkau fa5237d936 cns3xxx: Adopt irq_domain support for cns3xxx gpio driver
Have gpio driver adopt irqdomain support so that there are
non-overlapping allocations of irq numbers mapped to gpio's.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 42844
10 years ago
Felix Fietkau 736419452b cns3xxx: fix shared PCI interrupt mapping
This patch originally failed to combine INTA/B/C/D onto a single ARM CPU
interrupt. Instead, it mapped INTA/B/C and excluded D. This patch
corrects the issue by mapping all four interrupts to the single ARM CPU
interrupt. The original intent of the patch still holds as the newer PCB
take advantage of isolated interrupts. This fix only applies to older
PCB's that do not route INTA/B/C/D to unique external ARM CPU
interrupts.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 42830
10 years ago
Felix Fietkau 0563e0225e cns3xxx: fix register for enabling MMC/SD pins
also fixes a GPIO related regression from the upgrade to 3.10

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42829
10 years ago
Felix Fietkau f35da063bc targets: remove useless quotes around KERNELNAME
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42780
10 years ago
Felix Fietkau 1839d1b912 cns3xxx: support isolated PCI interrupts on newer Laguna PCBs
The cns3xxx uses irq61 for pcie0_intr which in the case of a PCIe-to-PCI
bridge ends up combining INTA/B/C/D on a single ARM CPU interrupt. This is
not optimal when you have multiple cores. To overcome this limitation an
enhancement was made on newer Laguna PCB's that support miniPCI cards
to route the INTA/B/C/D signals to unique external ARM CPU interrupts which
can help balance CPU core utilization and in some cases increase overall
system performance or responsiveness.

For more details see:
 http://trac.gateworks.com/wiki/multicoreprocessing#PCIInterruptsteering

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42400
10 years ago
Felix Fietkau 8dac6739f8 cns3xxx: add myself as maintainer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41928
10 years ago
Felix Fietkau 2d5de51451 cns3xxx: fix building initramfs and non-initramfs together
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41922
10 years ago
Felix Fietkau 3c7cd63b72 cns3xxx: update to linux 3.10
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41917
10 years ago
Felix Fietkau 0426643bd5 cns3xxx: fix initramfs build
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41915
10 years ago
John Crispin f933a741a9 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
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>

SVN-Revision: 40915
10 years ago
Felix Fietkau 2603c9045d cns3xxx: ethernet - revert: clean up tx descs only when needed
This reverts commit 0772ab938c0aedd7f4cc7127059d6ce8cf929dfa.

Trying to optimize calls to eth_complete_tx in this fasion causes a regression
where when sending only the tx queue can get disabled until a packet is
received. This original call to eth_schedule_poll() is scheduled so it
should not cause a performance issue.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 40592
10 years ago
Imre Kaloz 8411a5703f Add GW2385 support
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 39894
10 years ago
Imre Kaloz 68022cac64 various dwc (OTG) driver fixups
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 39892
10 years ago
Felix Fietkau bbc0c67bb0 cns3xxx: fix uImage build issue
The uImage target will always fail on a clean build due to dependency issues.
Building the uImage isn't necessary anyway as its re-built with correct
entry points in image/Makefile so remove it.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 39778
10 years ago
Felix Fietkau 8665c57923 cns3xxx: ethernet - clean up tx descs only when needed
We already clean up tx descriptors in the napi eth_poll() function so it
would likely be rare to run out of available descriptors in eth_xmit. Thus
we can clean them up only when needed and return busy only when we
still don't have enough.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 39762
10 years ago
Felix Fietkau 96eb3d883d cns3xxx: ethernet - resolve SMP issue
The combination of r35942 and r35952 causes an issue where eth_schedule_poll()
can be called from a different CPU between the call to napi_complete() and the
setting of cur_index which can break the rx ring accounting and cause ethernet
latency and/or ethernet stalls.  The issue can be easilly created by adding
a couple of artificial delays such as:

@@ -715,6 +715,7 @@ static int eth_poll(struct napi_struct *napi, int budget)

 	if (!received) {
 		napi_complete(napi);
+udelay(1000);
 		enable_irq(IRQ_CNS3XXX_SW_R0RXC);
 	}

@@ -727,6 +728,7 @@ static int eth_poll(struct napi_struct *napi, int budget)
 	rx_ring->cur_index = i;

 	wmb();
+udelay(1000);
 	enable_rx_dma(sw);

 	return received;

This patch moves the setting of cur_index back up where it needs to be and
addresses the original corner case that r35942 was trying to catch in an
improved fashion by checking to see if the rx descriptor ring has become
full before interrupts were re-enabled so that a poll can be scheduled again
and avoid an rx stall caused by rx interrupts ceasing to fire again.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 39761
10 years ago
Imre Kaloz 28de84d024 add uImage image build
- add building of a standard uImage along with the combined kernel+rootfs
- remove 'old' image build - that was for a very old and obsolete bootloader

To update the bootloader for GW2387,GW2388,GW2391 (NOR Flash) from uboot:
put latest NOR bootloader on tftp server:

http://svn.gateworks.com/laguna/trunk/images/u-boot_nor.bin

 Laguna> setenv ipaddr <localip>
 Laguna> setenv ipaddr <serverip>
 Laguna> tftpboot 0x800000 laguna/u-boot-nor.bin
 Laguna> erase 0x10000000 +$(filesize)
 Laguna> cp.b 0x800000 0x10000000 $(filesize)
 Laguna> reset

To update the bootloader for GW2380,GW2382,GW2383 (SPI Flash) from uboot:
put latest SPI bootloader on tftp server:

http://svn.gateworks.com/laguna/trunk/images/u-boot_spi.bin

 Laguna> setenv ipaddr <localip>
 Laguna> setenv ipaddr <serverip>
 Laguna> tftpboot 0x800000 laguna/u-boot-spi.bin
 Laguna> erase 0x60000000 +$(filesize)
 Laguna> cp.b 0x800000 0x60000000 $(filesize)
 Laguna> reset

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 38703
11 years ago
Imre Kaloz b0fe7d1ec6 add pushbutton GPIO for GW2380/82/83
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 38702
11 years ago
Felix Fietkau c8609ab4f8 build: unify arm target cflags
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38211
11 years ago
Felix Fietkau 73c4d73d6d build: unify target independent optimization options
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37600
11 years ago
Florian Fainelli 6a4f2922f6 targets: prepare for supporting normal and initramfs images
In order to support both normal images and initramfs, ensure that each
target sets KERNELNAME properly so that the generic kernel building code
can copy the corresponding files over $(KDIR) with the appropriate
extension. Update the various paths to the kernel and wrapper images
from $(LINUX_DIR)/arch/$(ARCH)/boot/$(foo) to $(KDIR)/$(foo).

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 37049
11 years ago
Gabor Juhos 46225b99d9 kernel: update linux 3.8 to 3.8.13
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36724
11 years ago
Gabor Juhos e57c7d6c12 kernel: update linux 3.8 to 3.8.12
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36576
11 years ago
Gabor Juhos 8a9fe26f20 kernel: update linux 3.8 to 3.8.11
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36507
11 years ago
Gabor Juhos f718179af5 kernel: update linux 3.8 to 3.8.10
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36493
11 years ago
Gabor Juhos 36d4fd70bc kernel: update linux 3.8 to 3.8.9
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36453
11 years ago
Gabor Juhos 151cadfe32 kernel: update linux 3.8 to 3.8.8
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36363
11 years ago
Gabor Juhos 604395650a kernel: update linux 3.8 to 3.8.7
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36332
11 years ago
Felix Fietkau 6436b3f736 cns3xxx: fix USB ehci/ohci platform driver
Update ehci/ohci driver registration to conform to the new platform
drivers.

This fixes missing USB host support in 3.8.x

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 36309
11 years ago
Felix Fietkau fde143b66f cns3xxx: remove the watchdog IRQ from the resources, it breaks the driver init and is useful only for testing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36241
11 years ago
Gabor Juhos f78c902cfd kernel: update linux 3.8 to 3.8.6
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36215
11 years ago
Gabor Juhos 07532dca7f kernel: update linux 3.8 to 3.8.3
Also refresh the related generic/platform patches.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36039
11 years ago
Felix Fietkau bd6c9d6252 cns3xxx: ethernet - clean the tx ring before refilling the rx ring to reduce memory pressure
SVN-Revision: 35953
11 years ago
Felix Fietkau d7a529709a cns3xxx: ethernet - clean the tx ring only in the poll function, not in the xmit handler
SVN-Revision: 35952
11 years ago
Felix Fietkau 0d13baff1e cns3xxx: increase number of ethernet driver rx buffers
SVN-Revision: 35951
11 years ago
Felix Fietkau ee2b511e1f cns3xxx: prevent the ethernet driver from accessing uninitialized dma descriptor entries
SVN-Revision: 35950
11 years ago
Felix Fietkau d22ac8d8fb cns3xxx: minor ethernet driver cleanup
SVN-Revision: 35949
11 years ago
Felix Fietkau 9facda9570 cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers
SVN-Revision: 35943
11 years ago
Felix Fietkau c44506fcbd cns3xxx: fix an rx irq handling corner case
When an rx interrupt comes in, rx interrupts are disabled and NAPI
polling is scheduled. During the NAPI poll, the driver first processes
received frames in the ring, then fills the dma descriptor slots with
new buffers and calls tx complete, before finally re-enabling rx
interrupts and completing NAPI (if below the budget).
If the hardware rx queue overflows before the napi complete is called,
the hardware will not throw any further rx interrupts and rx processing
stops completely.
Fix this by keeping NAPI polling scheduled until it completes a poll
without receiving any packets, and also handle NAPI completion before
refilling rx or completing tx.

SVN-Revision: 35942
11 years ago
Felix Fietkau c1adc79328 cns3xxx: fix ethernet driver memory barrier usage
SVN-Revision: 35941
11 years ago
Felix Fietkau 446409f43e cns3xxx: reduce buffer allocation size to 2048 bytes, improves ethernet performance
SVN-Revision: 35917
11 years ago
Felix Fietkau 95431b7843 cns3xxx: remove linux 3.3 support
SVN-Revision: 35916
11 years ago
Felix Fietkau 3d919b7c08 cns3xxx: disable CONFIG_PROC_STRIPPED and add an init script to set the ethernet cpu affinity (improves lan<->wlan bridging performance)
SVN-Revision: 35915
11 years ago
Felix Fietkau 95f14d052a cns3xxx: add linux 3.8 support and use it by default
SVN-Revision: 35908
11 years ago
Felix Fietkau a9c584c277 Revert "[cns3xxx]: clean up PCI bus topology" (r35079)
It breaks PCIe IRQ mapping and possibly other things

SVN-Revision: 35842
11 years ago
Florian Fainelli 1e103b2ecc target: enable XZ BCJ decompressor code after r35097
Required to actually be able to mount squashfs xz compressed
filesystems.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 35156
12 years ago
Imre Kaloz a2950fabd4 clean up PCI bus topology
This makes the PCI bus topology more standard for devices behind a bridge

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 35079
12 years ago
Imre Kaloz b63b970866 clean up PCI bus topology
This makes the PCI bus topology more standard for devices behind a bridge

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 35078
12 years ago
Imre Kaloz 2c05915b24 add nol2x0 cmdline to disable l2x0 cache
L2 cache via L2X0 cache controller available on some ARM boards can
provide a performance boost in some situations but decrease performance
in others.  This adds a kernel cmdline to disable L2X0 for cns3xxx based
boards.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 34874
12 years ago
Florian Fainelli 33f6c5ddb9 kernel: add missing USB configuration symbols after r34501
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34568
12 years ago
Florian Fainelli 822ee5053e cns3xxx: fix dwc_otg driver compat with udc-core
function.  This removes those from the dwc_otg driver and removes the patch
that comments out the linkage of udc-core so that the dwc_otg driver can
co-exist happily with other USB Device Controllers.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34475
12 years ago
Florian Fainelli fd0729f35c cns3xxx: advertise pcie usb usbgadget features
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34474
12 years ago
Gabor Juhos 1f516235ea remove common symbols from 3.3 configs
The removed symbols are present in the generic configuration.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34403
12 years ago
Luka Perkov 00243027dd cns3xxx: merge gpio patches
SVN-Revision: 34174
12 years ago
Luka Perkov fb9b572f0a cns3xxx: fix build failure after r34168
SVN-Revision: 34173
12 years ago
Imre Kaloz 5cddb170cd reorder, rename and refresh patches
SVN-Revision: 34169
12 years ago
Imre Kaloz 77504ac06f split spi patch, follow mainline file naming
SVN-Revision: 34168
12 years ago
Imre Kaloz 9a780e0328 split the i2c patch, merge the retry fixup
SVN-Revision: 34167
12 years ago
Imre Kaloz dcfd6cd5a4 generate single images for tftp flashing as well as sysupgrade images for boards with old u-boot
SVN-Revision: 34163
12 years ago
Luka Perkov 16275bdd15 cns3xxx: convert dwc_otg patches to files
SVN-Revision: 34162
12 years ago
Luka Perkov e38adfc912 cns3xxx: convert ethernet patches to files
SVN-Revision: 34161
12 years ago
Imre Kaloz f3f3f52259 cns3xxx: clean up pcie patches
Combine two pcie patches (2nd patch undid the 1st patch) together
and refresh the other affected patches

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 34132
12 years ago
Luka Perkov 965c190444 cns3xxx: exit from laguna late_initcall if not running on laguna board
SVN-Revision: 34120
12 years ago
Imre Kaloz 0da0dc0f2b cns3xxx: add PPS support for laguna
Many Laguna products have on-board GPS with Pulse-per-second (PPS)
support.  This patch adds kernel support (statically) and adds
the platform data in laguna board support.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 34115
12 years ago
Imre Kaloz efcdc21824 fixup symbol selection
SMP already selects HAVE_ARM_TWD and HAVE_ARM_SCU,
ARCH_CNS3XXX already selects MIGHT_HAVE_PCI

SVN-Revision: 34114
12 years ago
Luka Perkov 4d66b749de cns3xxx: fix coding style in board script
SVN-Revision: 34113
12 years ago
Luka Perkov 865933a0ec cns3xxx: refresh kernel config file
SVN-Revision: 34102
12 years ago
Luka Perkov 9a5c26d4ef cns3xxx: use files directory
SVN-Revision: 34101
12 years ago
Imre Kaloz e141cbb0f9 refresh patches
SVN-Revision: 34095
12 years ago
Imre Kaloz 1a9dfd566e add default packages
SVN-Revision: 34094
12 years ago
Imre Kaloz 3c12bad276 move PCIe init to subsys init call
ARM Linux PCI/PCIe hardware intialization needs to occur before device_init
as it does not support hotplug.  I have modeled the cns3xxx PCIe init after
other ARM platforms.  Registering it early resolves resource issues occuring
during bus enumeration that occur when a device driver is linked static in
the kernel.

Instead of passing in a bitmask to enable the 2 available ports, link detect
is used to enable ports that have a valid link.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 34044
12 years ago
Felix Fietkau 879b7a7a9b cns3xxx: update FIQ header file and disable RWFO
Update header file appropriately and disable read for ownership

Note that the FIQ support implements a workaround that provides a performance
boost over the traditional upstream workaround which ensures cache lines
are exclusive on driver CPU using 'read for ownership'.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

 target/linux/cns3xxx/config-3.3                                |    2 +-
 target/linux/cns3xxx/patches-3.3/460-cns3xxx_fiq_support.patch |    9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

SVN-Revision: 33827
12 years ago
John Crispin 6993e19532 drop GPIODEV platform code
SVN-Revision: 33825
12 years ago
Imre Kaloz 88a740ff80 fix (really this time) laguna UART config
Properly terminate the correct platform resource for laguna UARTs

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33721
12 years ago
Imre Kaloz 9b22ca8042 The Gateworks System Controller (GSC) is an i2c device that provides system level monitoring and control of Gateworks boards. It is used on several product families spanning several different target architectures (ixp4xx, cns3xxx, davinci).
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33720
12 years ago
Imre Kaloz 31c2f1a4d2 fix non terminated uart resources for laguna
Resolves crashes when probing multiple serial devices

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33719
12 years ago
Felix Fietkau 85871f283a cns3xxx: Fix GPIO configuration for Gateworks Laguna boards
The Laguna boards do not use all the same pins for SDHCI as the Cavium
reference board.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33684
12 years ago
Felix Fietkau 6bb7409e5a cns3xxx: Fix laguna arm11mpcore watchdog
The ARM11MPCore Timer/Watchdog registers start at offset 0x600 which is where
all mpcore-wdt boards point the driver base too.  I believe this is wrong
because 0x600 is aliased to the timer/watchdog of the 'current CPU' where
0x700 is CPU0's timer/watchdog, and 0x800 is CPU1's timer/watchdog.  Thus
if your timer/watchdog application is switching between CPU's it can end up
writing to the wrong CPU's registers which results in random board resets
from watchdog timeouts etc.

This patch forces the timer/watchdog driver to use CPU0's registers always.
Its my opinion that other mpcore-wdt boards should be doing the same thing.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33683
12 years ago
Felix Fietkau e5bb1a1bc7 cns3xxx: add sysupgrade support
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

 target/linux/cns3xxx/base-files/lib/cns3xxx.sh          |   22 ++
 target/linux/cns3xxx/base-files/lib/upgrade/platform.sh |  122 ++++++++++++++++
 target/linux/cns3xxx/image/Makefile                     |   19 +-
 3 files changed, 159 insertions(+), 4 deletions(-)

SVN-Revision: 33650
12 years ago
Felix Fietkau 68449e2e01 cns3xxx: add GW2383 board support
Add GPIO/LED support for Gateworks GW2383

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

 target/linux/cns3xxx/patches-3.3/300-laguna_support.patch |   18 +++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

SVN-Revision: 33649
12 years ago
Felix Fietkau 6b778f57aa cns3xxx: fix gpio access and add gpio IRQ support
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

 target/linux/cns3xxx/patches-3.3/470-gpio_irq.patch |  536 ++++++++++++++++++++
 1 file changed, 536 insertions(+)

SVN-Revision: 33648
12 years ago
Felix Fietkau a2e1dce829 cns3xxx: add missing kernel config symbol
SVN-Revision: 33603
12 years ago
Imre Kaloz c53936bb4b Add FIQ support for cns3xxx
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33581
12 years ago
Imre Kaloz 2f2115c436 Update board support for Gateworks Laguna Product family
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33580
12 years ago
Imre Kaloz 70729bb4a5 USB iso mode fixes
Resolves an issue where isochronouse USB would cause the driver to hang as
well as scheduling issues.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33579
12 years ago
Imre Kaloz 68f8db6731 fix ncores for single-core systems.
For cns3xxx SCU_CONFIGURATION always shows multipe cores but SCU_CPU_STATUS
shows which ones are active.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33566
12 years ago
Imre Kaloz 9ace6ace8f add i2c retries
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33565
12 years ago
Imre Kaloz 7dd6b04c28 fix pcie abort handling
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 33564
12 years ago
Felix Fietkau d6ca46cd25 cns3xxx: fix ethernet driver tx completion and queue stop/start
SVN-Revision: 33504
12 years ago
Felix Fietkau fb71465a4e cns3xxx: implement ethernet fraglist tx support for improved bridging performance with jumbo frames
SVN-Revision: 33503
12 years ago
Imre Kaloz ed3597d927 move gpio stuff into the right file
SVN-Revision: 33502
12 years ago
Felix Fietkau 15159604d9 cns3xxx: add a small optimization for rx offload
SVN-Revision: 33500
12 years ago
Felix Fietkau a1c016fe16 cns3xxx: fix ethernet port lookup for multi-descriptor jumbo frames
SVN-Revision: 33499
12 years ago
Felix Fietkau 029aaf4514 cns3xxx: fix ethernet packet alignment issues (hw has an alignment requirement of 64), fix skb fragment chaining
SVN-Revision: 33498
12 years ago
Felix Fietkau 1067ccf9f7 cns3xxx: remove the broken flag
SVN-Revision: 33493
12 years ago
Felix Fietkau 2db9e9f624 cns3xxx: fix kernel config
SVN-Revision: 33492
12 years ago
Felix Fietkau 34d30654ae cns3xxx: fix ethernet jumbo-frame support, use single-page rx buffers and skb fragment lists
SVN-Revision: 33491
12 years ago
Felix Fietkau eff9405752 cns3xxx: fix ethernet tx checksum offload
SVN-Revision: 33490
12 years ago
Felix Fietkau dd1fb8289f cns3xxx: merge ethernet driver changes from gateworks
SVN-Revision: 33489
12 years ago
Felix Fietkau 190b4344a3 cns3xxx: build images for the old boot loader and the new one (default to the new one)
SVN-Revision: 33488
12 years ago
Felix Fietkau 59b1d018b1 cns3xxx: fix the ethernet driver makefile
SVN-Revision: 33487
12 years ago
Felix Fietkau c9139c150c cns3xxx: reorganize patches, fix pcie io space init order
SVN-Revision: 33486
12 years ago
Felix Fietkau 7cd4968d0e cns3xxx: move virtual io addresses to vmalloc space to fix kernel BUG() calls
SVN-Revision: 33485
12 years ago
Felix Fietkau 2f39fa872a cns3xxx: add missing callbacks for the laguna machine support
SVN-Revision: 33484
12 years ago
John Crispin 1cbfa0c0f5 laguna: fix eeprom read buffer size during platform configuration
Increase the size of the buffer used for eeprom reads during the platform configuration of the Gateworks laguna.  The model name read in is 16 bytes but the original buffer was only 8 bytes.

Signed-off-by: David Acker <dacker@rajant.com>

SVN-Revision: 32833
12 years ago
John Crispin a4d96aae8d bump to 3.3.8
SVN-Revision: 32055
12 years ago
Gabor Juhos d004168445 cns3xxx: remove 3.1 support
SVN-Revision: 31888
12 years ago
Gabor Juhos 6f2ca5da39 cns3xxx: switch to 3.3 and add broken flag
SVN-Revision: 31887
12 years ago
Gabor Juhos c2a2d59db5 cns3xxx: add support for 3.3
Compile tested only.

SVN-Revision: 31809
12 years ago
Gabor Juhos 05c0d8b28e cns3xxx: sync kernel config
SVN-Revision: 31807
12 years ago
Gabor Juhos 9718f03e24 cns3xxx: remove 2.6.39 support
SVN-Revision: 31806
12 years ago
Gabor Juhos 9e78becbac cns3xxx: switch to 3.1
Compile tested only.

SVN-Revision: 31805
12 years ago
Gabor Juhos 39994008cb linux: move certain disabled symbols to the generic configs
* CONFIG_ARCH_DMA_ADDR_T_64BIT
  * CONFIG_ARCH_HAS_ILOG2_U32
  * CONFIG_ARCH_HAS_ILOG2_U64
  * CONFIG_ARCH_PHYS_ADDR_T_64BIT
  * CONFIG_ARCH_SUPPORTS_MSI
  * CONFIG_GENERIC_CPU_DEVICES
  * CONFIG_HWMON_DEBUG_CHIP
  * CONFIG_I2C_PXA_PCI
  * CONFIG_LEDS_GPIO
  * CONFIG_MINIX_FS_NATIVE_ENDIAN
  * CONFIG_MLX4_CORE
  * CONFIG_POWER_SUPPLY
  * CONFIG_POWER_SUPPLY_DEBUG
  * CONFIG_QUOTACTL
  * CONFIG_SDIO_UART
  * CONFIG_SENSORS_K10TEMP
  * CONFIG_SENSORS_SCH56XX_COMMON
  * CONFIG_SENSORS_VIA_CPUTEMP
  * CONFIG_SERIO_AMBAKMI
  * CONFIG_SERIO_I8042
  * CONFIG_SERIO_LIBPS2
  * CONFIG_SERIO_PCIPS2
  * CONFIG_SERIO_RAW
  * CONFIG_SERIO_SERPORT
  * CONFIG_SPI_BITBANG
  * CONFIG_SPI_GPIO

SVN-Revision: 31737
12 years ago
Gabor Juhos 26b3cdad1c cns3xxx: remove 2.6.31 support
SVN-Revision: 31418
12 years ago