summaryrefslogtreecommitdiffstats
path: root/bsps/shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rtems: Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPTSebastian Huber2021-07-261-7/+5
| | | | | | | | Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT as the fatal source for spurious interrupts. Use the interrupt vector number of the spurious interrupt for the fatal code. Update #3269.
* rtems: Add rtems_interrupt_vector_enable()Sebastian Huber2021-07-263-0/+61
| | | | | | Add rtems_interrupt_vector_disable(). Update #3269.
* bsps/irq: Move handler iterate to separate fileSebastian Huber2021-07-264-82/+102
| | | | Update #3269.
* bsps/irq: Canonicalize get/set affinity errorsSebastian Huber2021-07-261-2/+10
| | | | | | | Bring the error conditions and status in line with rtems_task_get_affinity() and rtems_task_set_affinity(). Update #3269.
* bsps/irq: Move get/set affinity to separate fileSebastian Huber2021-07-264-52/+92
| | | | Update #3269.
* bsps: Fix bsp_fatal_extension()Sebastian Huber2021-07-231-0/+3
| | | | The heap protection is conditional.
* bsp: Remove fatal from exit(0). Add extended heap error outputChris Johns2021-07-231-13/+70
|
* bsps: Fix GICv3 support for AArch32Sebastian Huber2021-06-301-3/+3
| | | | | | | | | | | The GICv3 support is shared between AArch32 and AArch64. For AArch32, the new AARCH64_IS_NONSECURE is never defined. Use ARM_MULTILIB_ARCH_V4 instead. This issue was introduced by 76c6caad52244ab9a14151620a80ff0f71035b6c. There is still a change in bsp_interrupt_vector_enable() for AArch32 compared to the version before 76c6caad52244ab9a14151620a80ff0f71035b6c.
* bsps/zynq-uart: Make post baud change kick globalKinsey Moore2021-06-292-0/+14
| | | | | | | | The existing fix for the ZynqMP UART hardware bug only caught the vast majority of instances where it could occur. To fully fix the data corruption, this fix must be applied after every baud rate change. This makes the logic reset and kick apply in any locations where the baud rate could be changed.
* bsps/aarch64: add non-secure mode and versal supportGedare Bloom2021-06-241-2/+21
|
* bsps/aarch64: add mnemonic for ICC_IGRPEN1_EL3Gedare Bloom2021-06-241-0/+1
|
* bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNTSebastian Huber2021-06-242-2/+2
| | | | | | Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269.
* bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBERSebastian Huber2021-06-241-1/+1
| | | | | | Replace it with BSP_INTERRUPT_VECTOR_COUNT. Update #3269.
* bsps/irq: Remove BSP_INTERRUPT_VECTOR_MINSebastian Huber2021-06-241-1/+1
| | | | | | | | | | Remove BSP_INTERRUPT_VECTOR_MIN and unconditionally let interrupt vector numbers start with zero. The BSP_INTERRUPT_VECTOR_MIN == 0 invariant was tested by the previous commit and building all BSPs. Update #3269.
* bsps/irq: Remove BSP_INTERRUPT_NO_HEAP_USAGESebastian Huber2021-06-241-31/+3
| | | | | | | Remove the support for BSP_INTERRUPT_NO_HEAP_USAGE. This was only used by one BSP and provides no real benefit. Update #3269.
* grlib: Register system console as /dev/consoleSebastian Huber2021-06-241-1/+5
| | | | Close #4461.
* bsps/powerpc, bsps/shared: Move remaining legacy networking header filesVijay Kumar Banerjee2021-06-231-1663/+0
|
* bsps/irq: Change license to BSD-2-ClauseSebastian Huber2021-06-178-71/+185
| | | | | | | Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
* grlib: Simplify apbuart_inbyte_nonblocking()Sebastian Huber2021-06-171-5/+5
|
* grlib: Fix apbuart_outbyte_polled() prototypeSebastian Huber2021-06-171-1/+1
| | | | Callers usually want to output a character.
* grlib: Add apbuart_outbyte_wait()Sebastian Huber2021-06-173-17/+17
|
* grlib: Remove NL -> CR in apbuart_outbyte_polled()Sebastian Huber2021-06-173-9/+2
| | | | This is already done in rtems_putc().
* grlib: Add ambapp_plb()Sebastian Huber2021-06-174-6/+6
| | | | | Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
* grlib: Customizable allocation in ambapp_scan()Sebastian Huber2021-06-171-16/+25
| | | | | Make the memory allocations in ambapp_scan() customizable via the new struct ambapp_context parameter which generalizes the memory copy handler.
* rtems: Constify rtems_task_wake_when()Sebastian Huber2021-05-121-1/+1
| | | | | | | | | | | | | | | | Add a parameter to _TOD_Validate() to disable the validation of the ticks member. There are two reasons for this change. Firstly, in rtems_task_wake_when() was a double check for time_buffer == NULL (one in rtems_task_wake_when() and one in _TOD_Validate()). Secondly, the ticks member is ignored by rtems_task_wake_when(). This was done with a write of zero to the ticks member and thus a modification of the user-provided structure. Now the structure is no longer modified. Using a mask parameter is quite efficient. You just have to load an immediate value and there are no additional branches in _TOD_Validate(). Close #4406.
* _TOD_Validate(): Fix incorrect return codeFrank Kühndel2021-05-121-1/+1
| | | | | | | | | | | | | | | This patch fixes bug #4403. Directives * rtems_timer_fire_when() * rtems_timer_server_fire_when() * rtems_task_wake_when() are documented to return RTEMS_INVALID_ADDRESS when their time-of-day argument is NULL. But actually they return RTEMS_INVALID_CLOCK. To fix the issue this patch changes _TOD_Validate() to return a status code instead of just true/false. Close #4403
* bsps/shared/ofw: Fix coverity defectsG S Niteesh Babu2021-05-061-1/+11
| | | | | | | | | | This patch adds asserts to fix coverity defects 1) CID 1474437 (Out-of-bounds access) 2) CID 1474436 (Out-of-bounds access) From manual inspection, out of bounds access cannot occur due to bounds checking but coverity fails to detect the checks. We are adding asserts as a secondary check.
* Makefile.am: Remove legacy networking filesVijay Kumar Banerjee2021-04-262-18/+0
|
* bsps/xilinx-zynqmp: Avoid constant UART reinitKinsey Moore2021-04-191-3/+6
| | | | | | Constantly reinitializing the Cadence UART on every character output causes data corruption/loss on some ZynqMP hardware. Only initialize the UART once for early output and give it a kick on startup.
* grlib/genirq: Taking into account that it could be more than one ISR ↵Moyano, Gabriel2021-04-161-2/+2
| | | | enabled/disabled
* disp_hcms29xx.c: Unused value (CID #1399752)Ryan Long2021-04-081-1/+3
| | | | | | CID 1399752: Unused value in disp_hcms29xx_update_task(). Closes #4342
* bsps: Remove networking driversVijay Kumar Banerjee2021-04-0725-21586/+0
| | | | Update #3850
* bsps/xilinx_zynq: Add SPI driver for xilinx-axi-spiJan Sommer2021-03-301-0/+402
| | | | Updates #4321
* bsp/beagle: Ported Beagle pinmux driver to RTEMSG S Niteesh Babu2021-03-212-1/+118
| | | | | | | | | | The following files have been ported 1) ti_pinmux.c 2) ti_pinmux.h 3) am335x_scm_padconf.c 4) am335x_scm_padconf.h Update #3784
* bsp/beagle: Import Beagle pinmux from FreeBSDG S Niteesh Babu2021-03-212-0/+764
| | | | | | | | | | | | | | | | | | | This patch imports the beagle pinmux driver from FreeBSD into RTEMS. Previously this driver was placed in RTEMS-libBSD but this caused double initialization of few pins once during RTEMS initialization and second time during libBSD initialization. The following patches port the driver from FreeBSD to RTEMS and will remove the driver from RTEMS-libBSD. RTEMS Ticket Update: #3784 FreeBSD head: ca12b7e9534b10af022fed60c043984dbaf4003d The following files have been imported from FreeBSD: 1) freebsd/sys/arm/ti/am335x/am335x_scm_padconf.h 2) freebsd/sys/arm/ti/am335x/am335x_scm_padconf.c 3) freebsd/sys/arm/ti/ti_pinmux.h 4) freebsd/sys/arm/ti/ti_pinmux.c
* bsps/shared/ofw: Add rtems_ofw_is_node_compatibleG S Niteesh Babu2021-03-211-0/+12
| | | | | | | | This patch extends the RTEMS OFW API by adding rtems_ofw_find_device_by_compat This function checks if a node has the expected compatible property.
* leon, l2cache: prevent unused diagnostic accessMartin Aberg2021-03-111-2/+2
|
* leon, ahbstat: register definitions for AHBSTAT version 1Martin Aberg2021-03-111-0/+8
|
* leon, grspw_router: added router_port_link_div()Martin Aberg2021-03-111-0/+5
| | | | Allows user to set SpaceWire run clock divisor for an individual port.
* leon,ckinit: avoid assuming 1MHz timer pre-scaler clockDaniel Hellstrom2021-03-111-4/+3
|
* leon,greth: added support for variable sized descriptor table sizesDaniel Hellstrom2021-03-111-7/+15
| | | | | | | | | | The descriptor table size is equal to its alignment and set when configuring the HW IP through VHDL generics. This SW patch simply probes the HW how large the RX/TX descriptor tables are and adjusts accordingly. The number of descriptors actual used are controlled by other settings (rxDescs and txDescs) controlled by the user.
* leon,grcan: split out GRCAN non-FD specific support in separate fileDaniel Hellstrom2021-03-113-405/+436
| | | | Close #4324.
* leon,grcanfd: split out GRCANFD specific support in separate fileDaniel Hellstrom2021-03-114-627/+687
| | | | Update #4324.
* leon,grcan: added support for GRCANFDDaniel Hellstrom2021-03-111-16/+568
| | | | | | | | | | | | | The new GRCAN_FD IP supports CAN FD standard and is mostly backwards compatible with GRCAN SW interface. The GRCAN driver have been extended to support the GRCANFD IP using the same driver. Additional functions have been added that uses a new CAN FD frame format and read/write/baud-rate functions that supports both GRCANFD and GRCAN. To keep the SW API fully backwards compatible with GRCAN, the old functions remain. Update #4324.
* leon,occan: use common CAN baud-rate calculation routineDaniel Hellstrom2021-03-111-110/+41
| | | | Close #4323.
* leon,grcan: use common CAN baud-rate calculation routineDaniel Hellstrom2021-03-111-114/+20
| | | | Update #4323.
* leon,can: introduce common CAN baud-rate calculation functionDaniel Hellstrom2021-03-112-0/+145
| | | | | | | Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. Update #4323.
* grlib,ambapp: added new IP core IDsDaniel Hellstrom2021-03-111-1/+20
|
* leon,grspw: fix for SET_PACKET_SIZEDaniel Hellstrom2021-03-111-0/+7
| | | | | | | | | | When the DMA table has been allocated dynamically, the IOCTL_SET_PACKETSIZE will trigger an issue where pDev->rx and pDev->tx are not updated with the new DMA tables base address. Instead the old pointers are used. There is no point in reallocting the DMA tables because there is no configuration option to it. Therefore the DMA tables allocation is moved to a separate function never called from SET_PACKETSIZE.
* leon,gr1553b: Only align allocated memory. Verify alignment of memory.Arvid Bjorkengren2021-03-113-83/+147
|