summaryrefslogtreecommitdiffstats
path: root/c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsp/beagle: Fix warningsSebastian Huber2017-03-081-0/+1
|
* bsp/smdk2410: Fix format warningSebastian Huber2017-03-081-1/+1
|
* bsp/lpc176x: Fix integer to pointer warningsSebastian Huber2017-03-082-2/+4
|
* bsps/umon: Fix format warningsSebastian Huber2017-03-081-3/+3
|
* bsp/altera-cyclone-v: Remove debug outputSebastian Huber2017-03-081-2/+0
|
* arm: Remove legacy execption supportSebastian Huber2017-03-0822-595/+182
|
* bsp/qoriq: Fix memory configurationSebastian Huber2017-03-081-1/+6
| | | | Take nocache section into account which may reside after the workspace.
* bsps: Provide <bsp/fdt.h> for every BSPSebastian Huber2017-03-087-6/+56
| | | | Add bsp_fdt_map_intr() intended for the libbsd FDT support.
* powerpc: Optimize AltiVec context switchSebastian Huber2017-03-072-31/+30
| | | | | | Use r8 instead of r5 to slightly optimize _CPU_Context_switch(). It is not a big deal, however, we already assume r12 is used by _CPU_Context_switch(). Treat r5 the in same way.
* powerpc: Fix AltiVec context switchSebastian Huber2017-03-071-12/+12
| | | | Update #2751.
* bsp/beatnik: More verbose fatal extensionSebastian Huber2017-03-061-0/+6
|
* bsp/beatnik: Update due to API changesSebastian Huber2017-03-062-2/+1
| | | | | The device_t typedef is already provided by <sys/types.h> if _KERNEL is defined.
* leon, grspw_pkt: fix overwrite protection when more than 32 devsDaniel Hellstrom2017-03-061-1/+1
| | | | This is a fix for a coverity warning
* leon,grtm: ioctl() shouldn't access pointer before validatedDaniel Hellstrom2017-03-061-1/+2
| | | | This is a fix for a coverity warning
* leon, grspw_pkt: SMP supportDaniel Hellstrom2017-03-062-36/+53
| | | | | | | | | | The driver already was developed with SMP in mind however SMP was disabled waiting for final fixups and testing. The new function to control the affinity of the ISR was added but does not work for now since the LEON BSP does not reroute IRQs between CPUs during run-time: grspw_isr_affinity()
* leon, grspw_pkt: unregister ISR on closeDaniel Hellstrom2017-03-061-0/+3
|
* leon, grspw_pkt: ISR activate shutdown work only if errintr enabledDaniel Hellstrom2017-03-061-1/+2
| | | | | | In shared interrupt systems it might be a problem to handle the interrupt regardless of the interrupt is enabled. Now the same approach to the DMA RX/TX interrupt in the ISR is taken.
* leon, grspw_pkt: fix descriptor table mem leak on grspw_close()Daniel Hellstrom2017-03-061-0/+6
|
* leon, grspw_pkt: add missing GRSPW1 IP-core supportDaniel Hellstrom2017-03-061-0/+23
|
* leon, grspw_pkt: ISR RX/TX DMA interrupt source disable configurableDaniel Hellstrom2017-03-062-12/+51
| | | | | | | | | | | | | | This patch introduces some new options to let the user control when the ISR shall disable DMA RX/TX interrupt. The ISR can be set in three modes when a RX/TX DMA interrupt is asserted: 1) ISR will always clear both RX/TX DMA interrupt enable. (DEFAULT). 2) ISR will never never RX or TX DMA interrupt enable, ISR will leave RX/TX DMA interrupt enable untouched. 3) ISR will clear the interrupt enable(s) causing the interrupt, this allows separate RX and TX IRQ handling. This patch is backwards compatible since default mode 1) is activated when the grspw_dma_config.flags DMAFLAGS2_IRQD field is 0.
* leon, grpsw_pkt: set unique work-task nameDaniel Hellstrom2017-03-061-2/+6
|
* leon, grspw_pkt: functions to support custom work-taskDaniel Hellstrom2017-03-062-76/+119
| | | | | | | Added new function: * grspw_dma_ctrlsts() - Read value of DMA CTRL/STS reg. * grspw_dma_enable_int() - re-enable interrupt, used when implementing a custom work-task.
* leon, grspw_pkt: fix interrupt code ctrl bit declarationsDaniel Hellstrom2017-03-061-1/+1
|
* leon, grspw_pkt: added work-task configuration optionsDaniel Hellstrom2017-03-062-73/+277
| | | | | | | | | | | | | | Following changes: * possible for user to create work-tasks and assign custom message queues. * possible for user to override default ISR message to implement custom handling of DMA error, DMA RX/TX and link error from ISR. * work-task now checks message to determine which work to perform rather than looking at registers only, this makes it possible for user to implement custom handling. * exported work-queue message definitions and separated them so that a user can assign custom DMA RX/TX handling of a specific DMA channel. * added a work-task event callback to let user add custom handling or monitoring of DMA Stop, DMA error, Link Error or work-task exits etc.
* leon, grpci2: latency timer user configurable (default 64)Javier Jalle2017-03-062-0/+20
|
* leon, gr740: fix device registration for GRPCI2 coreJavier Jalle2017-03-061-0/+26
|
* leon, gr-cpci-leon4-n2x: small comment fixJavier Jalle2017-03-061-1/+1
|
* leon, grpci2: updated DMA descriptor layoutJavier Jalle2017-03-061-9/+13
|
* leon, grpci2: fixed wrong bit layoutJavier Jalle2017-03-061-2/+2
|
* leon, grpci2: added TIMEOUT interruptJavier Jalle2017-03-061-2/+6
|
* bsps/sparc: Updated L2C registersJavier Jalle2017-03-061-21/+22
|
* leon, grspw_pkt: Added checks for special list casesDaniel Hellstrom2017-03-062-2/+11
| | | | | | | | - Fixed grspw_dma_tx_send() so that it does not fail when an empty user packet is provided. - Added empty checks on some of the list handling inline functions for GRSPW_PKT. Their use by the driver may be correct already, but the user might not have been aware of the assumptions that certain lists had to be non-empty.
* leon, grspw_pkt: fix stscfg cfg TimeCode Int clrDaniel Hellstrom2017-03-061-1/+2
| | | | | Without this patch time code interrupts was never cleared in the STATUS register.
* leon, grspw_pkt: split DMA sem into RX and TX semDaniel Hellstrom2017-03-061-54/+94
| | | | | | | By introducing a spearate RX and TX DMA channel semaphore RX operations and TX operations does not block each other. Stopping a DMA channel needs now to take both RX and TX semaphores to block out both RX and TX tasks.
* leon, grspw_pkt: coding style fixDaniel Hellstrom2017-03-061-1/+1
|
* leon, grspw_pkt: allow user controlled DMA intrDaniel Hellstrom2017-03-062-6/+18
| | | | | | | 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.
* leon, grspw_pkt: support for reading tx/rx DMA queueDaniel Hellstrom2017-03-062-6/+74
| | | | | | | | | | * 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.
* leon, grspw_pkt: fixed device/dma closingDaniel Hellstrom2017-03-062-15/+33
| | | | | | | | | 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.
* leon, grspw_pkt: coding style fixupsDaniel Hellstrom2017-03-061-8/+6
|
* leon, grspw_pkt: fixed and improved RX/TX waitDaniel Hellstrom2017-03-062-44/+61
|
* leon, grspw_pkt: fixed error return path in dma_openDaniel Hellstrom2017-03-061-12/+31
|
* leon, grspw_pkt: Manual handling of link status eventsDaniel Hellstrom2017-03-062-3/+26
| | | | | | | Added functionality for manual handling of link status events, configurable via grspw_link_ctrl. Added statistics counter for disconnect error.
* leon, grspw_pkt: added link_ctrl optionsDaniel Hellstrom2017-03-062-9/+33
| | | | | | | | | 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.
* leon, grspw_pkt: added grspw_link_status_clr() to APIDaniel Hellstrom2017-03-062-0/+10
|
* leon, grspw_pkt: code style clean-upsDaniel Hellstrom2017-03-061-8/+9
|
* leon, gptimer: start/reset must take RS and IP into accountDaniel Hellstrom2017-03-061-2/+4
|
* leon: Fix ambapp_bus OCCAN device registeration orderDaniel Hellstrom2017-03-061-10/+18
| | | | | | | 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).
* leon, grspw_pkt: Preserve DMA address enable at start.Martin Aberg2017-03-061-0/+4
| | | | | The EN bit (enable separate node address for this channel) is preserved when grspw_dma_start is called. This preserves any previous address configuration.
* leon, grspw_pkt: Fixed txpkt flag for link errorMartin Aberg2017-03-061-5/+5
| | | | | | 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.
* leon, grspw_pkt: Fixed parameter check in grspw_dma_open()Martin Aberg2017-03-061-1/+1
|