Commit Graph

14288 Commits

Author SHA1 Message Date
Daniel Hellstrom
77856f67aa leon, grspw_pkt: allow user controlled DMA intr
The user has already the power to control which DMA buffer
will generate interrupt, but no clean way to enable RX/TX
interrupts on DMA channel. Without this patch the user had
to init DMA config rx/tx_irq_en_cnt to a very large value.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
1ef9caa26b leon, grspw_pkt: support for reading tx/rx DMA queue
* Add support for reading the GRSPW TX/RX descriptor counters
   directly.
 * Add semaphore lock to counters to avoid couters being out
   of sync
 * This makes it possible for the user in polling mode to check
   the amount of work before entering RX/TX descriptor table
   processing.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
eb5a42f6e0 leon, grspw_pkt: fixed device/dma closing
The user is now responsible to stop and close the DMA channels
before closing the device. To prevent complicated situations and
blocking the caller of grspw_close and grspw_dma_close a return
code was added to indicate to the user that the DMA may not have
been stopped or that blocked tasks are still active within the
driver for the specified device.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
36c3fbbd4a leon, grspw_pkt: coding style fixups 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
9cb7e5d80f leon, grspw_pkt: fixed and improved RX/TX wait 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
57e1f4c30b leon, grspw_pkt: fixed error return path in dma_open 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
ac7da5bcb0 leon, grspw_pkt: Manual handling of link status events
Added functionality for manual handling of link status events,
configurable via grspw_link_ctrl.

Added statistics counter for disconnect error.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
49cf776e7f leon, grspw_pkt: added link_ctrl options
Improved the link error handling options. Its now possible to
disable the link on individual link errors/warnings instead of
always on all or none.

Changed name of LINKOPTS_IRQ to LINKOPTS_EIRQ to match Linux
and VxWorks SpW driver.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
fad4324d52 leon, grspw_pkt: added grspw_link_status_clr() to API 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
c442647f9d leon, grspw_pkt: code style clean-ups 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
61cc024aca leon, gptimer: start/reset must take RS and IP into account 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
b109add5b2 leon: Fix ambapp_bus OCCAN device registeration order
NOTE that this will change the association of /dev/occanN
with OCCAN[N] device to the same order as in hardware. This means
that if you have been useing /dev/occan0 before you have to use
/dev/occan1 on a dual OCCAN device system (this affects GR712RC).
2017-03-06 07:54:55 +01:00
Martin Aberg
6ecad1d526 leon, grspw_pkt: Preserve DMA address enable at start.
The EN bit (enable separate node address for this channel) is preserved when
grspw_dma_start is called. This preserves any previous address configuration.
2017-03-06 07:54:55 +01:00
Martin Aberg
a48bfc0ffa leon, grspw_pkt: Fixed txpkt flag for link error
There was a mixup between the transmit descriptor Link error (LE) bit and
Interrupt enable (IE) bit. TXPKT_FLAG_LINKERR now correctly indicates the link
error condition.
2017-03-06 07:54:55 +01:00
Martin Aberg
3395ca9912 leon, grspw_pkt: Fixed parameter check in grspw_dma_open() 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
4431f7d262 leon, gr1553b: RT status words register declarations fix
The fix does not affect the driver since the bit definitions
were never used by the GR5133B drivers. However it could affect
and application using the definitions.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
d7452976e4 leon, gr1553b: comment cleanup 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
be66bbc1e8 leon, grspw: rxPktSize must set DMA RX max length 2017-03-06 07:54:55 +01:00
Sebastian Huber
c0dafd7ba3 bsp/qoriq: Use at most 2GiB of RAM 2017-03-02 16:53:45 +01:00
Sebastian Huber
d3f60afbfe bsp/qoriq: Adjust workspace according to FDT 2017-03-02 15:25:34 +01:00
Sebastian Huber
35136d3d4e bsp/qoriq: Use -O2 2017-03-02 15:20:52 +01:00
Sebastian Huber
62f16ad4e3 bsp/qoriq: Enable linker garbage collection 2017-03-02 15:20:19 +01:00
Sebastian Huber
891b834fb5 bsp/qoriq: Do not overwrite configured baud 2017-03-02 15:17:35 +01:00
Sebastian Huber
805d721304 powerpc: Fix warnings 2017-03-02 12:02:49 +01:00
Sebastian Huber
09dab28da0 powerpc: Fix interrupt thread dispatch
Update #2751.
2017-03-02 12:02:49 +01:00
Sebastian Huber
08d8599245 bsps/powerpc: Fix warnings 2017-03-01 11:31:57 +01:00
Sebastian Huber
33986022af Add rtems_interrupt_server_request_submit()
This function may be used to do a two-step interrupt processing.  The
first step is done in interrupt context which calls this function.  The
second step is then done in the context of the interrupt server.
2017-02-23 07:27:39 +01:00
Sebastian Huber
11f0d528b5 bsp/xilinx-zynq: Add interrupt support to UART 2017-02-22 14:20:33 +01:00
Sebastian Huber
6b2fcc40ac bsp/xilinx-zynq: Use new Termios device driver 2017-02-21 12:11:44 +01:00
Sebastian Huber
7318e7db91 bsp/lpc24xx: Remove debug output 2017-02-15 13:41:02 +01:00
Sebastian Huber
6afeedaa71 bsps/powerpc: Fix warnings 2017-02-15 13:39:02 +01:00
Sebastian Huber
f6f764c131 bsps/powerpc: Fix warnings 2017-02-15 13:28:02 +01:00
Sebastian Huber
32292d5d7c bsps/powerpc: Fix warning 2017-02-15 13:14:40 +01:00
Sebastian Huber
bc74461882 bsps/sparc: Fix warnings 2017-02-15 12:57:56 +01:00
Sebastian Huber
444cb5cd23 bsps/arm: Fix prototype 2017-02-15 11:12:57 +01:00
Sebastian Huber
73f8d93847 bsps/powerpc: Fix warnings 2017-02-15 11:09:50 +01:00
Christian Mauderer
180107e971 bsps/arm: Fix Cortex-M DWT CPU counter.
It is necessary to enable the DWT using a special initialization
sequence before the CYCCNT can be enabled. See for example the
RESET_CYCLE_COUNTER in libbsp/arm/atsam/utils/utility.h.

Note that this problem only occurs if no debugger is connected. A
debugger most likely already enables the necessary module.
2017-01-30 11:35:31 +01:00
Kevin Kirspel
b43c2e8952 Adding ARM VFP V2 support 2017-01-24 15:42:05 +01:00
Sebastian Huber
2711914f82 Use <sys/endian.h>
Update #2803.
2017-01-24 08:39:22 +01:00
Kevin Kirspel
2f8f951b42 bsp/lpc32xx: Fix interrupt controller suppport
Enable/Disable vector routines now check for a valid vector. Without
these guards, the Enable/Disable vector routines will not work with the
interrupt server.
2017-01-24 07:09:55 +01:00
Sebastian Huber
7fbd72cb00 libchip: Really fix high capacity detection
Update #2239.
2017-01-20 15:29:00 +01:00
Sebastian Huber
e8606d5b90 bsp/beatnik: Remove superfluous check
Close #2874.
2017-01-20 14:23:12 +01:00
Gedare Bloom
2126789736 raspberrypi: fix math inside of sizeof
Move the subtraction of 1 for terminator outside of
sizeof operator.

Closes #2731.
2017-01-19 15:37:13 -05:00
Gedare Bloom
70e8abf391 raspberrypi: use signed int for return variable
Closes #2873.
2017-01-19 15:34:18 -05:00
Gedare Bloom
3f09d63548 smdk2410: delete unused variables
Closes #2868.
2017-01-19 12:58:44 -05:00
Joel Sherrill
e397122cf4 m68k/mcf5225x/*/mc525x5-testsuite.tcfg: Add cdtest 2017-01-17 17:59:07 -06:00
Joel Sherrill
900f9857eb m68k/mcf52235/*/mc52235-testsuite.tcfg: Add cdtest 2017-01-17 17:59:05 -06:00
Joel Sherrill
96ba863df0 arm/lpc32xx/*/lpc32xx_mzx_stage_1-testsuite.tcfg: Add dl05 2017-01-17 17:59:03 -06:00
Joel Sherrill
79ec730e09 powerpc/mpc55xxevb/*.tcfg: Add fsjffs2gc01 to excluded tests 2017-01-17 17:59:02 -06:00
Joel Sherrill
09f6666b21 m68k/mcf5225x/*.tcfg: Add fsjffs2gc01 to excluded tests 2017-01-17 17:59:02 -06:00