summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/raspberrypi (follow)
Commit message (Collapse)AuthorAgeFilesLines
* build: Remove old build systemSebastian Huber2021-09-212-181/+0
| | | | | Close #3250. Close #4081.
* bsps: Add default rtems_get_target_hash()Sebastian Huber2021-02-261-0/+1
| | | | Update #4267.
* Move ARM PL011 UART driverKinsey Moore2020-10-051-1/+1
| | | | This UART driver is now needed for BSPs other than ARM.
* bsp/raspberrypi: Updated the console API.G S Niteesh2020-01-071-4/+2
| | | | | | Replaces the legacy termios API with new termios API (#3034) Replaces the custom PL011 serial driver with RTEMS arm-pl011. Update #3034
* bsp/raspberrypi: Enable FDT support.G S Niteesh2020-01-072-0/+13
| | | | This commit adds FDT support to the BSP.
* bsp/raspberrypi: Fix size of work area.Christian Mauderer2020-01-071-4/+0
| | | | | | | | | | The BSP tried to get the size of the SDRAM based on the revision code. Unfortunately the code had some bugs so that the default size has been used. Beneath that the MMU table hasn't been adapted. This patch queries the SDRAM size via a special VC Mailbox call instead. For the MMU adaption a simmilar method to the one in the imx BSP is used.
* arm/raspberry: Set the workspace based on the mailbox version.Chris Johns2019-08-121-4/+16
| | | | | | - Update the linkcmd file to support configure settings - Set the workspace size based on the revision value
* bsps/arm: Move HYP to SVC change to start.SSebastian Huber2019-07-261-3/+0
| | | | | | | | | This fixes the corruption of r3 by the call to bsp_start_arm_drop_hyp_mode(). Moving the code makes it easier to review changes in start.S. Close #3773.
* bsps/arm: Add ARMv7-AR disable data cacheSebastian Huber2018-12-211-0/+1
| | | | Close #3667.
* build: Remove local.amSebastian Huber2018-10-101-1/+0
|
* Rework initialization and interrupt stack supportSebastian Huber2018-06-271-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Statically initialize the interrupt stack area (_Configuration_Interrupt_stack_area_begin, _Configuration_Interrupt_stack_area_end, and _Configuration_Interrupt_stack_size) via <rtems/confdefs.h>. Place the interrupt stack area in a special section ".rtemsstack.interrupt". Let BSPs define the optimal placement of this section in their linker command files (e.g. in a fast on-chip memory). This change makes makes the CPU_HAS_SOFTWARE_INTERRUPT_STACK and CPU_HAS_HARDWARE_INTERRUPT_STACK CPU port defines superfluous, since the low level initialization code has all information available via global symbols. This change makes the CPU_ALLOCATE_INTERRUPT_STACK CPU port define superfluous, since the interrupt stacks are allocated by confdefs.h for all architectures. There is no need for BSP-specific linker command file magic (except the section placement), see previous ARM linker command file as a bad example. Remove _CPU_Install_interrupt_stack(). Initialize the hardware interrupt stack in _CPU_Initialize() if necessary (e.g. m68k_install_interrupt_stack()). The optional _CPU_Interrupt_stack_setup() is still useful to customize the registration of the interrupt stack area in the per-CPU information. The initialization stack can reuse the interrupt stack, since * interrupts are disabled during the sequential system initialization, and * the boot_card() function does not return. This stack resuse saves memory. Changes per architecture: arm: * Mostly replace the linker symbol based configuration of stacks with the standard <rtems/confdefs.h> configuration via CONFIGURE_INTERRUPT_STACK_SIZE. The size of the FIQ, ABT and UND mode stack is still defined via linker symbols. These modes are rarely used in applications and the default values provided by the BSP should be sufficient in most cases. * Remove the bsp_processor_count linker symbol hack used for the SMP support. This is possible since the interrupt stack area is now allocated by the linker and not allocated from the heap. This makes some configure.ac stuff obsolete. Remove the now superfluous BSP variants altcycv_devkit_smp and realview_pbx_a9_qemu_smp. bfin: * Remove unused magic linker command file allocation of initialization stack. Maybe a previous linker command file copy and paste problem? In the start.S the initialization stack is set to a hard coded value. lm32, m32c, mips, nios2, riscv, sh, v850: * Remove magic linker command file allocation of initialization stack. Reuse interrupt stack for initialization stack. m68k: * Remove magic linker command file allocation of initialization stack. Reuse interrupt stack for initialization stack. powerpc: * Remove magic linker command file allocation of initialization stack. Reuse interrupt stack for initialization stack. * Used dedicated memory region (REGION_RTEMSSTACK) for the interrupt stack on BSPs using the shared linkcmds.base (replacement for REGION_RWEXTRA). sparc: * Remove the hard coded initialization stack. Use the interrupt stack for the initialization stack on the boot processor. This saves 16KiB of RAM. Update #3459.
* arm: Simplify CPU counter supportSebastian Huber2018-06-151-1/+0
| | | | | | | | | | Use the standard ARMv7-M systick module for the ARMv7-M CPU counter instead of DWT counter since the DWT counter is affected by power saving states. Use an inline function for _CPU_Counter_difference() for all ARM BSPs. Update #3456.
* Add _CPU_Counter_frequency()Sebastian Huber2018-06-151-0/+1
| | | | | | | | | | Add rtems_counter_frequency() API function. Use it to initialize the counter value converter via the new system initialization step (RTEMS_SYSINIT_CPU_COUNTER). This decouples the counter implementation and the counter converter. It avoids an unnecessary pull in of the 64-bit integer division from libgcc. Update #3456.
* bsps: Move documentation, etc. files to bspsSebastian Huber2018-04-261-65/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsp/raspberrypi: Move source files to bspsSebastian Huber2018-04-257-1591/+4
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move arm-cp15-set-ttb-entries.c to bspsSebastian Huber2018-04-241-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move arm-cp15-set-exception-handler.c to bspsSebastian Huber2018-04-241-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps/arm: Move bsp_memory_management_initialize()Sebastian Huber2018-04-241-1/+0
| | | | | | | | This function is only used by the raspberrypi BSP. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move interrupt controller support to bspsSebastian Huber2018-04-232-169/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move SPI drivers to bspsSebastian Huber2018-04-232-658/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move I2C drivers to bspsSebastian Huber2018-04-232-423/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move make/custom/* files to bspsSebastian Huber2018-04-233-33/+0
| | | | | | | | | Adjust various build files. Remove automatic generation of the c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Remove AC_CONFIG_SRCDIR()Sebastian Huber2018-04-231-1/+0
| | | | | | | | | | | This AC_CONFIG_SRCDIR() is just a sanity check in this insane build system. Since all content of c/src/lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@ is bound to be moved it makes no sense to keep it. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move startup files to bspsSebastian Huber2018-04-2012-646/+12
| | | | | | | | Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move start files to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move console drivers to bspsSebastian Huber2018-04-208-6072/+7
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move clock drivers to bspsSebastian Huber2018-04-202-115/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move sbrk.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move shared CPU counter support to bspsSebastian Huber2018-04-201-2/+2
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move getentropy-cpucounter.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move gpio.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Convert all bsp_predriver_hook()Sebastian Huber2018-04-201-1/+0
| | | | | | Use RTEMS_SYSINIT_ITEM() instead. Update #2408.
* bsps: Move bspclean.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move stackalloc.c to bspsSebastian Huber2018-04-161-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* build: Remove subdir-objects from BSP configure.acSebastian Huber2018-04-121-1/+1
| | | | | | | The subdir-objects do not work currently due to BSP sources in bsps and c and the existing build tree layout. Update #3387.
* bsps: Remove empty gnatinstallhandler.cSebastian Huber2018-04-121-1/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move bootcard.c to bspsSebastian Huber2018-04-121-1/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Remove headers from librtemsbsp_a_SOURCESSebastian Huber2018-04-121-1/+0
| | | | | | | | This was used by the not supported "make dist". This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Avoid line continuation in Makefile.amSebastian Huber2018-04-121-1/+2
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move legacy console driver to bspsSebastian Huber2018-04-122-5/+3
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* configure: Add subdir-objects to all automake flags.Chris Johns2018-04-111-1/+1
| | | | | | | | | | | This option silences warning with automake-1.16.1 allowing us to upgrade to that version. This change has been tested with automake-1.12.6 and automake-1.16.1. It seems version 1.16.1 configures slower than 1.12.6 for the same source and BSP. The newer versions is 6 second slower. Close #3387.
* build: Remove DISTCLEANFILESSebastian Huber2018-04-091-1/+0
| | | | | A "make distclean" is not supported. So, it makes no sense to have pure "make distclean" related stuff in the Makefile.am.
* bsps: Move generic IRQ support to bspsSebastian Huber2018-04-091-5/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Remove librtemsbsp.a wrapupSebastian Huber2018-04-091-49/+49
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move config macros to RTEMS_BSP_CONFIGURESebastian Huber2018-04-041-7/+0
| | | | | | | | Provide HAS_NETWORKING and HAS_SMP Automake conditionals for all BSPs. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Add shared-sources.amSebastian Huber2018-04-041-0/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* build: Remove EXTRA_DISTSebastian Huber2018-04-041-2/+0
| | | | | A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
* bsps: Rework cache manager implementationSebastian Huber2018-01-311-4/+1
| | | | | | | | | | | | | | | | | | The previous cache manager support used a single souce file (cache_manager.c) which included an implementation header (cache_.h). This required the use of specialized include paths to find the right header file. Change this to include a generic implementation header (cacheimpl.h) in specialized source files. Use the following directories and files: * bsps/shared/cache * bsps/@RTEMS_CPU@/shared/cache * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c Update #3285.
* bsps: Move network define to source filesSebastian Huber2018-01-311-20/+1
| | | | | Define __INSIDE_RTEMS_BSD_TCPIP_STACK__ in the network interface driver source files to avoid some build system magic.
* Remove make preinstallChris Johns2018-01-2517-1571/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.