Chris Johns
e70384d3f4
aarch64/gicv3: Remove accesses to secure registers
...
RTEMS runs at EL1 and the removed register accesses are for
EL3 or the TF-A. This change aligns our driver with the Linux
and FreeBSD ones.
2022-06-16 10:21:46 +10:00
Chris Johns
bfc99a6e70
bsp/aarch64: Flush the cache before invalidating it
...
- Any page tables need to be flushed if the cache is enabled.
Disabling the cache may only be available in secure mode.
2022-06-16 10:21:46 +10:00
Joel Sherrill
d6ebf4067e
bsps/shared/*: Change license to BSD-2
...
Updates #3053 .
2022-06-15 12:35:18 -05:00
Chris Johns
cb52e37464
bsps/arm: MP core timer setting off by one
2022-06-15 13:15:15 +10:00
Chris Johns
66dc06efce
bsp/aarch64: Fix array warning
...
Updates #4664
2022-06-11 12:08:49 +10:00
Karel Gardas
ae2367c505
bsps/stm32h7: remove external memory initialization from nucleo-h743zi BSP
...
Nucleo board does not provide any external memory so code does not have
any function here anyway.
Sponsored-By: Precidata
2022-06-10 11:17:17 +02:00
Karel Gardas
e5e1c00491
bsps/stm32h7: move BSP start hooks into boards subdirectories
...
The idea here is to prepare for better per-board specialization
of the hooks function code.
Sponsored-By: Precidata
2022-06-10 11:17:17 +02:00
Christian Mauderer
7ba1503661
bsps/imx: Enable clock of ETH2
2022-06-09 09:04:40 +02:00
Sebastian Huber
75af80a682
arm/lpc32xx: Implement new interrupt directives
2022-06-08 10:25:41 +02:00
Sebastian Huber
8d6190129a
bsp/lpc32xx: bsp_interrupt_vector_enable()
...
The interrupt enables are used to implement a priority scheme in
bsp_interrupt_dispatch(). Enable interrupts through
bsp_interrupt_vector_enable() only if they are not already enabled to
not interfere with the priority scheme while
bsp_interrupt_vector_enable() is called during interrupt dispatching.
2022-06-08 10:25:41 +02:00
Sebastian Huber
4d0d7d5413
bsp/lpc32xx: bsp_interrupt_is_valid_vector()
...
Provide custom bsp_interrupt_is_valid_vector() implementation since
several interrupt vectors are reserved.
2022-06-08 10:25:41 +02:00
Sebastian Huber
88a53ca682
bsp/lpc32xx: Use standard timer 2 for tm27.h
...
This helps to run the validation tests of the Interrupt Manager
directives.
2022-06-08 10:25:37 +02:00
Sebastian Huber
5dc5ab5650
arm/lpc32xx: Hide MLC details
2022-06-08 09:33:20 +02:00
Sebastian Huber
bb29f8b5ff
bsp/lpc32xx: Fix FIQ interrupt support
...
Do not sporadically service interrupts configured as FIQ by the IRQ
interrupt dispatch.
2022-06-08 09:33:20 +02:00
Karel Gardas
a5bde172fe
bsps/stm32h7: add board C files for stm32h747i-disco BSP
...
Besides C files for the BSP variant the patch also provides license
clarification on system_stm32h7xx.c file which is provided
in boards/stm/stm32h747i-disco directory.
The files comes from STM32CubeH7 project and references "root directory"
in its license comment and it's not clear where this points out.
Let's add clarification comment about it and also based on it
and resulting license let's add SPDX license identifier.
Sponsored-By: Precidata
2022-06-01 15:49:19 +02:00
Karel Gardas
7cb73a34d4
bsps/stm32h7: include CMSIS Cortex-M4 header when required by configuration
...
Sponsored-By: Precidata
2022-06-01 11:20:59 +02:00
Karel Gardas
ec39a69529
bsps/stm32h7: enable cache and MPU only on Cortex-M7
...
Sponsored-By: Precidata
2022-06-01 11:20:49 +02:00
Karel Gardas
ed814cd8bc
bsps/arm: add CMSIS Cortex-M4 Core Peripheral Access Layer Header File
2022-05-30 01:34:24 +02:00
Karel Gardas
99f00b12dd
bsps/stm32h7: enable SDRAM 2 MPU region
...
Sponsored-By: Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
2fded8138d
bsps/stm32h7: add board C files for stm32h757i-eval BSP
...
Besides C files for the BSP variant the patch also provides license
clarification on system_stm32h7xx.c file which is provided
in boards/stm/stm32h757i-eval directory.
The files comes from STM32CubeH7 project and references "root directory"
in its license comment and it's not clear where this points out.
Let's add clarification comment about it and also based on it
and resulting license let's add SPDX license identifier.
Sponsored-By: Precidata
2022-05-27 20:17:32 +02:00
Karel Gardas
635cd68aa7
bsp/arm: allocate .rtemsstack on REGION_STACK instead of on REGION_WORK
...
REGION_WORK may be backed by external RAM which may not be initialized
in a time we need stack to work well. E.g. code loaded in flash,
stack allocated on in-cpu SRAM and data (REGION_WORK) on external SDRAM.
Sponsored-By: Precidata
2022-05-23 08:36:41 +02:00
Sebastian Huber
6476cdc67c
bsps: Relicense <bsp/fatal.h>
...
Add Doxygen documentation. Change license to BSD-2-Clause according
to file history.
Update #3053 .
2022-05-18 11:34:45 +02:00
Sebastian Huber
be580201dd
bsps: Relicense <bsp/default-initial-extension.h>
...
Replace Doxygen documentation. Change license to BSD-2-Clause according
to file history.
Update #3053 .
2022-05-18 11:34:38 +02:00
Karel Gardas
135d5274bd
bsp/stm32h7: remove system files from start directory
...
The files are already presented in boards directories and are not needed
in start directory anymore.
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
31f756b07c
bsp/stm32h7: copy system files to nucleo-h743zi board directory
...
Also adjust BSP spec file to make it buildable with board files.
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
f8a9a47de1
bsp/stm32h7: copy system files to stm32h743i-eval board directory
...
Also adjust BSP spec file to make it buildable with board files.
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
6b051182a9
bsp/stm32h7: remove stm32h7b3i-dk related changes from start system files
...
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
d8017f203e
bsp/stm32h7: update stm32h7b3i-dk board system_stm32h7xx.c file
...
Updated content comes from STM32CubeIDE 1.9.0 generated for STM32H7B3I-DK
board and have RTEMS related changes merged in.
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
63e327f9fb
bsp/stm32h7: cleanup osc, clk, per files for stm32h7b3i-dk board
...
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
7234516cc5
bsp/stm32h7: copy system files to stm32h7b3i-dk board directory
...
Also adjust BSP spec file to make it buildable with board files.
Sponsored-By: Precidata
2022-05-16 10:23:27 +02:00
Karel Gardas
409b566571
bsp/stm32h7: update FMC configuration for SRAM and SDRAM usage
...
The patch merges differences in FMC configuration between system_stm32h7xx.c
file generated by STM32CubeIDE for 743i-eval2 board and the current RTEMS
ext-mem-ctl.c file.
Sponsored-By: Precidata
2022-04-07 08:04:19 +02:00
Sebastian Huber
0725b200e7
bsps: Add gicv3_get_attributes()
2022-04-06 09:48:52 +02:00
Sebastian Huber
d8b23fa488
bsps: Add gicv3_sgi_ppi_get_priority()
2022-04-06 09:48:52 +02:00
Sebastian Huber
f828ddd1a9
bsps: Add gicv3_sgi_ppi_set_priority()
2022-04-06 09:48:52 +02:00
Sebastian Huber
3026859d41
bsps: Move gicv3_init_cpu_interface()
...
Make the processor index a parameter.
2022-04-06 09:48:52 +02:00
Sebastian Huber
b3519336fd
bsps: Move gicv3_init_dist()
...
Make the distributor register block a parameter.
2022-04-06 09:48:52 +02:00
Sebastian Huber
ea353b4bfa
bsps: Add gicv3_sgi_ppi_disable()
2022-04-06 09:48:52 +02:00
Sebastian Huber
f74b120c24
bsps: Add gicv3_sgi_ppi_enable()
2022-04-06 09:48:52 +02:00
Sebastian Huber
42c806fc84
bsps: Add gicv3_sgi_ppi_is_enabled()
2022-04-06 09:48:52 +02:00
Sebastian Huber
be25de5ff8
bsps: Add gicv3_ppi_clear_pending()
2022-04-06 09:48:52 +02:00
Sebastian Huber
2e5b1312c8
bsps: Add gicv3_ppi_set_pending()
2022-04-06 09:48:52 +02:00
Sebastian Huber
518330069d
bsps: Add gicv3_trigger_sgi()
2022-04-06 09:48:52 +02:00
Sebastian Huber
f10c551f54
bsps: Add gicv3_sgi_ppi_is_pending()
2022-04-06 09:48:52 +02:00
Sebastian Huber
9abcaaebc3
bsps: Add <dev/irq/arm-gicv3.h>
...
Separate the Interrupt Manager implementation from the generic Arm GICv3
support. Move parts of the Arm GICv3 support into a new header file. This
helps to support systems with a clustered structure in which multiple GICv3
instances are present. For example, two clusters of two Cortex-R52 cores where
each cluster has a dedicated GICv3 instance.
2022-04-06 09:48:51 +02:00
Sebastian Huber
2b54d2e8b8
bsp/stm32h7: Convert to UNIX line endings
2022-04-05 11:34:25 +02:00
Karel Gardas
ef2c5f70e7
bsp/stm32h7: bring all required changes into system_stm32h7xx for STM32H7B3I-DK BSP variant
...
The changes provided here are a result of a merge from various examples
system_stm32h7xx.c files provided by STMicroelectronics for the STM32H7B3I-DK
board with the original RTEMS file provided for the STM32H743I-EVAL2 board.
2022-04-05 10:35:31 +02:00
Karel Gardas
e2b673d410
bsp/stm32h7: properly ifdef all unsupported features in start -hal file while compiling for STM32H7B3I-DK BSP
2022-04-05 09:56:06 +02:00
Karel Gardas
2c4331a14d
bsp/stm32h7: configure peripheral clocks for STM32H7B3xxQ (e.g. STM32H7B3I-DK BSP)
2022-04-05 09:56:06 +02:00
Karel Gardas
074cb1c61d
bsp/stm32h7: configure oscillator for STM32H7B3xxQ (e.g. STM32H7B3I-DK BSP)
2022-04-05 09:56:06 +02:00
Karel Gardas
b50f3e88c2
bsp/stm32h7: configure AHB clock divider for STM32H7B3xxQ (e.g. STM32H7B3I-DK BSP)
2022-04-05 09:56:06 +02:00