summaryrefslogtreecommitdiffstats
path: root/bsps/shared (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-24bsps/aarch64: add mnemonic for ICC_IGRPEN1_EL3Gedare Bloom1-0/+1
2021-06-24bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNTSebastian Huber2-2/+2
Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBERSebastian Huber1-1/+1
Replace it with BSP_INTERRUPT_VECTOR_COUNT. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_MINSebastian Huber1-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.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_NO_HEAP_USAGESebastian Huber1-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.
2021-06-24grlib: Register system console as /dev/consoleSebastian Huber1-1/+5
Close #4461.
2021-06-23bsps/powerpc, bsps/shared: Move remaining legacy networking header filesVijay Kumar Banerjee1-1663/+0
2021-06-17bsps/irq: Change license to BSD-2-ClauseSebastian Huber8-71/+185
Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2021-06-17grlib: Simplify apbuart_inbyte_nonblocking()Sebastian Huber1-5/+5
2021-06-17grlib: Fix apbuart_outbyte_polled() prototypeSebastian Huber1-1/+1
Callers usually want to output a character.
2021-06-17grlib: Add apbuart_outbyte_wait()Sebastian Huber3-17/+17
2021-06-17grlib: Remove NL -> CR in apbuart_outbyte_polled()Sebastian Huber3-9/+2
This is already done in rtems_putc().
2021-06-17grlib: Add ambapp_plb()Sebastian Huber4-6/+6
Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
2021-06-17grlib: Customizable allocation in ambapp_scan()Sebastian Huber1-16/+25
Make the memory allocations in ambapp_scan() customizable via the new struct ambapp_context parameter which generalizes the memory copy handler.
2021-05-12rtems: Constify rtems_task_wake_when()Sebastian Huber1-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.
2021-05-12_TOD_Validate(): Fix incorrect return codeFrank Kühndel1-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
2021-05-06bsps/shared/ofw: Fix coverity defectsG S Niteesh Babu1-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.
2021-04-26Makefile.am: Remove legacy networking filesVijay Kumar Banerjee2-18/+0
2021-04-19bsps/xilinx-zynqmp: Avoid constant UART reinitKinsey Moore1-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.
2021-04-16grlib/genirq: Taking into account that it could be more than one ISR ↵Moyano, Gabriel1-2/+2
enabled/disabled
2021-04-08disp_hcms29xx.c: Unused value (CID #1399752)Ryan Long1-1/+3
CID 1399752: Unused value in disp_hcms29xx_update_task(). Closes #4342
2021-04-07bsps: Remove networking driversVijay Kumar Banerjee25-21586/+0
Update #3850
2021-03-30bsps/xilinx_zynq: Add SPI driver for xilinx-axi-spiJan Sommer1-0/+402
Updates #4321
2021-03-21bsp/beagle: Ported Beagle pinmux driver to RTEMSG S Niteesh Babu2-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
2021-03-21bsp/beagle: Import Beagle pinmux from FreeBSDG S Niteesh Babu2-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
2021-03-21bsps/shared/ofw: Add rtems_ofw_is_node_compatibleG S Niteesh Babu1-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.
2021-03-11leon, l2cache: prevent unused diagnostic accessMartin Aberg1-2/+2
2021-03-11leon, ahbstat: register definitions for AHBSTAT version 1Martin Aberg1-0/+8
2021-03-11leon, grspw_router: added router_port_link_div()Martin Aberg1-0/+5
Allows user to set SpaceWire run clock divisor for an individual port.
2021-03-11leon,ckinit: avoid assuming 1MHz timer pre-scaler clockDaniel Hellstrom1-4/+3
2021-03-11leon,greth: added support for variable sized descriptor table sizesDaniel Hellstrom1-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.
2021-03-11leon,grcan: split out GRCAN non-FD specific support in separate fileDaniel Hellstrom3-405/+436
Close #4324.
2021-03-11leon,grcanfd: split out GRCANFD specific support in separate fileDaniel Hellstrom4-627/+687
Update #4324.
2021-03-11leon,grcan: added support for GRCANFDDaniel Hellstrom1-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.
2021-03-11leon,occan: use common CAN baud-rate calculation routineDaniel Hellstrom1-110/+41
Close #4323.
2021-03-11leon,grcan: use common CAN baud-rate calculation routineDaniel Hellstrom1-114/+20
Update #4323.
2021-03-11leon,can: introduce common CAN baud-rate calculation functionDaniel Hellstrom2-0/+145
Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. Update #4323.
2021-03-11grlib,ambapp: added new IP core IDsDaniel Hellstrom1-1/+20
2021-03-11leon,grspw: fix for SET_PACKET_SIZEDaniel Hellstrom1-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.
2021-03-11leon,gr1553b: Only align allocated memory. Verify alignment of memory.Arvid Bjorkengren3-83/+147
2021-03-11leon,gr1553b: set codec versionArvid Bjorkengren1-0/+4
This is enables the updated codec for GR740 and is backwards compatible with all other versions of the IP.
2021-03-11leon,gr1553rt: Fixed spinlock unlockArvid Bjorkengren1-1/+1
2021-03-11leon,gr1553rt: Fixed memory leakArvid Bjorkengren1-5/+11
2021-03-10bsps/xilinx_zynq: Add SPI driver for cadence-spiJan Sommer1-0/+444
Updates #4320
2021-03-05grcan.c: Fix Unused value (CID #1437613)Ryan Long1-1/+1
CID 1437613: Unused value in grcan_set_filter(). This fix was recommended by Daniel Hellstrom (daniel@gaisler.com). Closes #4301
2021-03-05b1553brm.c: Fix Unsigned compared against 0 (CID #1399773)Ryan Long1-1/+1
CID 1399773: Unsigned compared against 0 in brm_write(). Closes #4295
2021-03-05satcan.c: Fix Unsigned compared against 0 (CID #1399768)Ryan Long1-12/+4
CID 1399768: Unsigned compared against 0 in satcan_ioctl(). Closes #4294
2021-03-05gr_tmtc_1553.c: Unchecked return value from library (CID #1399785)Ryan Long1-1/+3
CID 1399785: Unchecked return value from library in gr_tmtc_1553_init1(). Closes #4289
2021-03-05gr_701.c: Unchecked return value from library (CID #1399783)Ryan Long1-1/+3
CID 1399783: Unchecked return value from library in gr701_init1(). Closes #4288
2021-03-05gr_rasta_adcdac.c: Fix Unchecked return value from library (CID #1399780)Ryan Long1-1/+3
CID 1399780: Unchecked return value from library in gr_rasta_adcdac_init1(). Closes #4287