Commit graph

23 commits

Author SHA1 Message Date
Imre Kaloz
b0fe7d1ec6 add pushbutton GPIO for GW2380/82/83
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 38702
2013-11-10 09:55:17 +00:00
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
2013-04-10 16:20:50 +00:00
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
2013-04-07 11:24:30 +00:00
Felix Fietkau
bd6c9d6252 cns3xxx: ethernet - clean the tx ring before refilling the rx ring to reduce memory pressure
SVN-Revision: 35953
2013-03-11 02:29:53 +00:00
Felix Fietkau
d7a529709a cns3xxx: ethernet - clean the tx ring only in the poll function, not in the xmit handler
SVN-Revision: 35952
2013-03-11 02:29:47 +00:00
Felix Fietkau
0d13baff1e cns3xxx: increase number of ethernet driver rx buffers
SVN-Revision: 35951
2013-03-10 21:59:32 +00:00
Felix Fietkau
ee2b511e1f cns3xxx: prevent the ethernet driver from accessing uninitialized dma descriptor entries
SVN-Revision: 35950
2013-03-10 21:59:28 +00:00
Felix Fietkau
d22ac8d8fb cns3xxx: minor ethernet driver cleanup
SVN-Revision: 35949
2013-03-10 21:59:21 +00:00
Felix Fietkau
9facda9570 cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers
SVN-Revision: 35943
2013-03-10 18:25:20 +00:00
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
2013-03-10 18:25:16 +00:00
Felix Fietkau
c1adc79328 cns3xxx: fix ethernet driver memory barrier usage
SVN-Revision: 35941
2013-03-10 18:25:11 +00:00
Felix Fietkau
446409f43e cns3xxx: reduce buffer allocation size to 2048 bytes, improves ethernet performance
SVN-Revision: 35917
2013-03-10 01:27:04 +00:00
Felix Fietkau
95f14d052a cns3xxx: add linux 3.8 support and use it by default
SVN-Revision: 35908
2013-03-09 18:51:46 +00:00
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
2013-01-10 13:23:33 +00:00
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
2012-12-23 18:53:38 +00:00
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
2012-12-04 16:19:18 +00:00
Imre Kaloz
77504ac06f split spi patch, follow mainline file naming
SVN-Revision: 34168
2012-11-12 08:22:14 +00:00
Imre Kaloz
9a780e0328 split the i2c patch, merge the retry fixup
SVN-Revision: 34167
2012-11-12 08:21:38 +00:00
Luka Perkov
16275bdd15 cns3xxx: convert dwc_otg patches to files
SVN-Revision: 34162
2012-11-11 20:03:58 +00:00
Luka Perkov
e38adfc912 cns3xxx: convert ethernet patches to files
SVN-Revision: 34161
2012-11-11 20:03:56 +00:00
Luka Perkov
965c190444 cns3xxx: exit from laguna late_initcall if not running on laguna board
SVN-Revision: 34120
2012-11-08 11:31:56 +00:00
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
2012-11-08 05:42:31 +00:00
Luka Perkov
9a5c26d4ef cns3xxx: use files directory
SVN-Revision: 34101
2012-11-06 11:16:41 +00:00