summaryrefslogtreecommitdiffstats
path: root/bsps/shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* leon,gr1553b: set codec versionArvid Bjorkengren2021-03-111-0/+4
| | | | | This is enables the updated codec for GR740 and is backwards compatible with all other versions of the IP.
* leon,gr1553rt: Fixed spinlock unlockArvid Bjorkengren2021-03-111-1/+1
|
* leon,gr1553rt: Fixed memory leakArvid Bjorkengren2021-03-111-5/+11
|
* bsps/xilinx_zynq: Add SPI driver for cadence-spiJan Sommer2021-03-101-0/+444
| | | | Updates #4320
* grcan.c: Fix Unused value (CID #1437613)Ryan Long2021-03-051-1/+1
| | | | | | | CID 1437613: Unused value in grcan_set_filter(). This fix was recommended by Daniel Hellstrom (daniel@gaisler.com). Closes #4301
* b1553brm.c: Fix Unsigned compared against 0 (CID #1399773)Ryan Long2021-03-051-1/+1
| | | | | | CID 1399773: Unsigned compared against 0 in brm_write(). Closes #4295
* satcan.c: Fix Unsigned compared against 0 (CID #1399768)Ryan Long2021-03-051-12/+4
| | | | | | CID 1399768: Unsigned compared against 0 in satcan_ioctl(). Closes #4294
* gr_tmtc_1553.c: Unchecked return value from library (CID #1399785)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399785: Unchecked return value from library in gr_tmtc_1553_init1(). Closes #4289
* gr_701.c: Unchecked return value from library (CID #1399783)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399783: Unchecked return value from library in gr701_init1(). Closes #4288
* gr_rasta_adcdac.c: Fix Unchecked return value from library (CID #1399780)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399780: Unchecked return value from library in gr_rasta_adcdac_init1(). Closes #4287