summaryrefslogtreecommitdiffstats
path: root/bsps (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-27bsps/aarch64: Add MMU driver to relax alignmentKinsey Moore5-0/+518
Currently, the AArch64 BSPs have a hard time running on real hardware without building the toolchain and the bsps with -mstrict-align in multiple places. Configuring the MMU on these chips allows for unaligned memory accesses for non-device memory which avoids requiring strict alignment in the toolchain and in the BSPs themselves. In writing this driver, it was found that the synchronous exception handling code needed to be rewritten since it relied on clearing SCTLR_EL1 to avoid thread stack misalignments in RTEMS_DEBUG mode. This is now avoided by exactly preserving thread mode stack and flags and the new implementation is compatible with the draft information provided on the mailing list covering the Exception Management API.
2021-05-27bsps/aarch64: Advertise cache function supportKinsey Moore1-0/+10
Ensure that cache functions are flagged as usable by the generic cache implementation code.
2021-05-27bsps/aarch64: Align MVAs consistentlyKinsey Moore1-8/+5
This fixes a bug where addresses were not being aligned correctly. Addresses used in cache functions are now aligned consistently using RTEMS_ALIGN_DOWN.
2021-05-27bsps/aarch64: Break out system registersKinsey Moore1-180/+33
Break out system register definitions and accessors so that they're usable by other parts of RTEMS.
2021-05-25powerpc/.../sbrk.c: Do not reference errno.Joel Sherrill1-2/+12
Closes #4r37.
2021-05-25ppc-irq-legacy.c: Use rtems_malloc() instead of malloc().Joel Sherrill1-10/+11
Closes #4438.
2021-05-18score: Add _CPU_Context_switch_no_return()Sebastian Huber1-0/+2
The __builtin_unreachable() cannot be used with current GCC versions to tell the compiler that a function does not return to the caller, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 Add a no return variant of _CPU_Context_switch() to avoid generation of dead code in _Thread_Start_multitasking() if RTEMS was built with SMP support enabled.
2021-05-17bsps/imxrt: Enable DMA clockChristian Mauderer1-0/+3
The EDMA is intialized so make sure the the clock is initialized too. Update #4180
2021-05-17bsps/imxrt: Fix OCRAM, ITCM and DTCM sizesChristian Mauderer3-0/+33
The sizes are configurable via fuses or per software via some registers. At the moment the registers are not changed. Changing the registers destroys data stored in the RAM areas (like application code or data). So either the fuses or some bootloader should be used to set them before the application starts. This also adds an OCRAM only linker command file. Update #4180
2021-05-17bsps/imxrt: Add addresses and interrupts to dtsChristian Mauderer2-521/+1651
Add addresses and interrupts for most internal peripherals to the dts. The additional aliases make it possible for an application to easily access these informations. Update #4180
2021-05-17bsps/imxrt: Reduce devicetree sizeChristian Mauderer2-765/+472
Remove symbols that would be necessary for overlays and decrease padding that would be necessary for adding stuff during run-time. Update #4180
2021-05-17bsps/imxrt: Fix documentation errorChristian Mauderer1-1/+1
Update #4180
2021-05-17arm/altera-cyclone-v: Fix compile errorSebastian Huber1-2/+2
Update #4406.
2021-05-12rtems: Constify rtems_task_wake_when()Sebastian Huber2-2/+2
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ühndel2-7/+5
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-05-02bsps: Support RTEMS_NOINIT in linkcmdsSebastian Huber62-1/+256
Update #3866.
2021-04-29bsps/arm: ARMV7_CP15_START_WORKSPACE_ENTRY_INDEXSebastian Huber1-1/+1
Change the ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX value to be in line with the workspace entry in ARMV7_CP15_START_DEFAULT_SECTIONS. Close #4395.
2021-04-27powerpc/shared/console: "termios" first open sets console baud to 9600Peter Dufault1-0/+4
When the PowerPC shared console baud rate starts at anything other than 9600 the termios code will set it to 9600 at the first open.
2021-04-27powerpc/shared/console: Make console baud rate configurable.Peter Dufault2-3/+3
The "powerpc/shared/console" code has the start-up console value fixed at 9600 baud. This changes the hard-wired constant "9600" in the code to the configuration setting "BSP_CONSOLE_BAUD" and adds configuration support in both the "waf" and the legacy configuration systems. Note that the VME BSPs beatnik, mvme3100, and mve5100 can be improved by adding a "mvmexxxx" BSP family. This configuration change, as well as future configuration changes, could then be made in a "grp.yml" file.
2021-04-26Makefile.am: Remove legacy networking filesVijay Kumar Banerjee3-26/+0
2021-04-26Implementation for STM32 HAL_GetTick using RTEMSRobin Mueller1-2/+2
Uses configured millisecond per ticks
2021-04-22bsps/beagle: Refactored i2c driverG S Niteesh Babu4-95/+114
Refactored the i2c driver to parse register values from the device tree rather than hardcoding them. But still the clocks have to initialized manually.
2021-04-21bsps/arm: Set MSP in ARMv7-M start codeSebastian Huber1-0/+8
Set the Main Stack Pointer (MSP) to the ISR stack area end just in case we run using the Process Stack Pointer (PSP). This helps if applications are started by a boot loader.
2021-04-20Remove superfluous <rtems/score/wkspace.h> includesSebastian Huber1-1/+0
2021-04-20Updated tick implementation for HAL_GetTickRobin Mueller1-1/+3
This now uses rtems_clock_get_uptime_nanoseconds to calculate the uptime ticks in milliseconds.
2021-04-19bsps/xilinx-zynqmp: Avoid constant UART reinitKinsey Moore2-3/+12
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 Banerjee124-111498/+0
Update #3850
2021-04-06arm/stm32h7: Add STM32H7_USART3_GPIO_*Sebastian Huber1-2/+4
2021-04-06arm/stm32h7: Add STM32H7_HSE_FREQUENCYSebastian Huber1-0/+5
2021-04-01stm32h7: Add init for sdmmc pinsChristian Mauderer2-0/+90
Update #4372
2021-04-01stm32h7: Add SDMMC modules to clockChristian Mauderer2-3/+15
Update #4372
2021-03-30bsps/xilinx_zynq: Add Xilinx AXI SPI driver to autotools buildJan Sommer1-0/+2
Closes #4321
2021-03-30bsps/xilinx_zynq: Add SPI driver for xilinx-axi-spiJan Sommer3-0/+557
Updates #4321
2021-03-23bsps/riscv: Add per cpu clock interruptJan Sommer2-10/+50
- Fixes failure of test smpclock01
2021-03-21bsp/beagle: Ported Beagle pinmux driver to RTEMSG S Niteesh Babu4-2/+157
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-21bsps/beagle: Added SOC detection using FDTG S Niteesh Babu4-6/+158
Detects the SOC type using FDT and also replaces the ti_cpuid.h header in FreeBSD with custom one.
2021-03-21bsp/beagle: Import Beagle pinmux from FreeBSDG S Niteesh Babu4-0/+891
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 Babu2-0/+29
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-21bsps/arm/imxrt: Add FDT and FDT helper for QTMRChristian Mauderer4-139/+293
Makes it simpler to access the QTMR in an application via a FDT name or link in an application specific FDT entry.
2021-03-11grlib,grspw_pkt: correct link state enum numberingDaniel Hellstrom1-2/+2
Not used by the driver itself, but shuold be correct if used by application.
2021-03-11leon, l2cache: prevent unused diagnostic accessMartin Aberg1-2/+2
2021-03-11leon, ahbstat: register definitions for AHBSTAT version 1Martin Aberg2-0/+10
2021-03-11leon, grspw_router: added router_port_link_div()Martin Aberg2-0/+6
Allows user to set SpaceWire run clock divisor for an individual port.
2021-03-11leon: restart and load timer counter at initializationDaniel Hellstrom1-1/+4
Without this smp05 and smpthreadlife01 tests may fail depending on how the boot loader initialized the GPTIMER. Before the time counter stopped counting when reaching zero, but tests could work since it could take 2^32 us before stopping. The timer driver will potentially overwrite this, but it happens later due to the initialization order having RTEMS_SYSINIT_CPU_COUNTER very early.
2021-03-11leon,ckinit: avoid assuming 1MHz timer pre-scaler clockDaniel Hellstrom1-4/+3
2021-03-11leon3: avoid dependency on apbuart/timer driverDaniel Hellstrom2-12/+28
Moves drvmgr_drivers[] from amba.c to a separate file in order to avoid the dependecy on APBUART/GPTIMER drivers. This has an effect when user configured not to use timer or uart in their project.
2021-03-11leon,greth: added support for variable sized descriptor table sizesDaniel Hellstrom2-7/+16
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.