diff options
Diffstat (limited to '')
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/abi.yml | 25 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/bspraspberrypi.yml | 19 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/bspraspberrypi2.yml | 19 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/grp.yml | 46 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/linkcmds.yml | 43 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/obj.yml | 61 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/objsmp.yml | 16 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/optenhyp.yml | 15 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/opti2ciomode.yml | 15 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/optnocachelen.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/optramlen.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/optresetvec.yml | 15 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/optrpi2.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/raspberrypi/optspiiomode.yml | 15 |
14 files changed, 343 insertions, 0 deletions
diff --git a/spec/build/bsps/arm/raspberrypi/abi.yml b/spec/build/bsps/arm/raspberrypi/abi.yml new file mode 100644 index 0000000000..66459a1e1b --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/abi.yml @@ -0,0 +1,25 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- split: null +- env-append: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: +- -march=armv7-a +- -mthumb +- -mfpu=neon +- -mfloat-abi=hard +- -mtune=cortex-a7 +default-by-variant: +- value: + - -mcpu=arm1176jzf-s + variants: + - arm/raspberrypi +description: | + ABI flags +enabled-by: true +links: [] +name: ABI_FLAGS +type: build diff --git a/spec/build/bsps/arm/raspberrypi/bspraspberrypi.yml b/spec/build/bsps/arm/raspberrypi/bspraspberrypi.yml new file mode 100644 index 0000000000..ceef1d06e0 --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/bspraspberrypi.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: arm +bsp: raspberrypi +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +enabled-by: true +family: raspberrypi +includes: [] +install: [] +links: +- role: build-dependency + uid: grp +- role: build-dependency + uid: ../../opto2 +source: [] +type: build diff --git a/spec/build/bsps/arm/raspberrypi/bspraspberrypi2.yml b/spec/build/bsps/arm/raspberrypi/bspraspberrypi2.yml new file mode 100644 index 0000000000..5f604aa42f --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/bspraspberrypi2.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: arm +bsp: raspberrypi2 +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +enabled-by: true +family: raspberrypi +includes: [] +install: [] +links: +- role: build-dependency + uid: grp +- role: build-dependency + uid: ../../opto2 +source: [] +type: build diff --git a/spec/build/bsps/arm/raspberrypi/grp.yml b/spec/build/bsps/arm/raspberrypi/grp.yml new file mode 100644 index 0000000000..e28f387c8d --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/grp.yml @@ -0,0 +1,46 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: group +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +includes: [] +install: [] +ldflags: [] +links: +- role: build-dependency + uid: ../grp +- role: build-dependency + uid: abi +- role: build-dependency + uid: obj +- role: build-dependency + uid: objsmp +- role: build-dependency + uid: optenhyp +- role: build-dependency + uid: opti2ciomode +- role: build-dependency + uid: ../optmmusz +- role: build-dependency + uid: optnocachelen +- role: build-dependency + uid: optramlen +- role: build-dependency + uid: optresetvec +- role: build-dependency + uid: optrpi2 +- role: build-dependency + uid: optspiiomode +- role: build-dependency + uid: ../start +- role: build-dependency + uid: ../../obj +- role: build-dependency + uid: ../../objirq +- role: build-dependency + uid: linkcmds +- role: build-dependency + uid: ../../bspopts +type: build +use-after: [] +use-before: [] diff --git a/spec/build/bsps/arm/raspberrypi/linkcmds.yml b/spec/build/bsps/arm/raspberrypi/linkcmds.yml new file mode 100644 index 0000000000..100d593757 --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/linkcmds.yml @@ -0,0 +1,43 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: config-file +content: | + MEMORY { + RAM_MMU (AIW) : ORIGIN = 0x00100000, LENGTH = ${ARM_MMU_TRANSLATION_TABLE_SIZE} + RAM (AIW) : ORIGIN = 0x00200000, LENGTH = ${RPI_RAM_LENGTH_AVAILABLE} - ${RPI_RAM_NOCACHE_LENGTH} + } + + REGION_ALIAS ("REGION_START", RAM); + REGION_ALIAS ("REGION_VECTOR", RAM); + REGION_ALIAS ("REGION_TEXT", RAM); + REGION_ALIAS ("REGION_TEXT_LOAD", RAM); + REGION_ALIAS ("REGION_RODATA", RAM); + REGION_ALIAS ("REGION_RODATA_LOAD", RAM); + REGION_ALIAS ("REGION_DATA", RAM); + REGION_ALIAS ("REGION_DATA_LOAD", RAM); + REGION_ALIAS ("REGION_FAST_TEXT", RAM); + REGION_ALIAS ("REGION_FAST_TEXT_LOAD", RAM); + REGION_ALIAS ("REGION_FAST_DATA", RAM); + REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM); + REGION_ALIAS ("REGION_BSS", RAM); + REGION_ALIAS ("REGION_WORK", RAM); + REGION_ALIAS ("REGION_STACK", RAM); + REGION_ALIAS ("REGION_NOCACHE", RAM); + REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM); + + bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 1024; + + bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M; + + bsp_vector_table_in_start_section = 1; + + bsp_translation_table_base = ORIGIN (RAM_MMU); + bsp_translation_table_end = ORIGIN (RAM_MMU) + LENGTH (RAM_MMU); + + INCLUDE linkcmds.armv4 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +install-path: ${BSP_LIBDIR} +links: [] +target: linkcmds +type: build diff --git a/spec/build/bsps/arm/raspberrypi/obj.yml b/spec/build/bsps/arm/raspberrypi/obj.yml new file mode 100644 index 0000000000..45180cdd5f --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/obj.yml @@ -0,0 +1,61 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: +- destination: ${BSP_INCLUDEDIR} + source: + - bsps/arm/raspberrypi/include/bsp.h + - bsps/arm/raspberrypi/include/tm27.h +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/arm/raspberrypi/include/bsp/fbcons.h + - bsps/arm/raspberrypi/include/bsp/i2c.h + - bsps/arm/raspberrypi/include/bsp/irq.h + - bsps/arm/raspberrypi/include/bsp/mailbox.h + - bsps/arm/raspberrypi/include/bsp/mmu.h + - bsps/arm/raspberrypi/include/bsp/raspberrypi.h + - bsps/arm/raspberrypi/include/bsp/rpi-fb.h + - bsps/arm/raspberrypi/include/bsp/rpi-gpio.h + - bsps/arm/raspberrypi/include/bsp/spi.h + - bsps/arm/raspberrypi/include/bsp/usart.h + - bsps/arm/raspberrypi/include/bsp/vc.h +links: [] +source: +- bsps/arm/raspberrypi/clock/clockdrv.c +- bsps/arm/raspberrypi/console/console-config.c +- bsps/arm/raspberrypi/console/fb.c +- bsps/arm/raspberrypi/console/fbcons.c +- bsps/arm/raspberrypi/console/outch.c +- bsps/arm/raspberrypi/gpio/rpi-gpio.c +- bsps/arm/raspberrypi/i2c/i2c.c +- bsps/arm/raspberrypi/irq/irq.c +- bsps/arm/raspberrypi/spi/spi.c +- bsps/arm/raspberrypi/start/bspreset.c +- bsps/arm/raspberrypi/start/bspstart.c +- bsps/arm/raspberrypi/start/bspstarthooks.c +- bsps/arm/raspberrypi/start/cmdline.c +- bsps/arm/raspberrypi/start/mailbox.c +- bsps/arm/raspberrypi/start/timer.c +- bsps/arm/raspberrypi/start/vc.c +- bsps/arm/shared/cache/cache-cp15.c +- bsps/arm/shared/cache/cache-v7ar-disable-data.S +- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c +- bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c +- bsps/arm/shared/serial/arm-pl011.c +- bsps/arm/shared/start/bsp-start-memcpy.S +- bsps/shared/dev/cpucounter/cpucounterfrequency.c +- bsps/shared/dev/cpucounter/cpucounterread.c +- bsps/shared/dev/getentropy/getentropy-cpucounter.c +- bsps/shared/dev/gpio/gpio-support.c +- bsps/shared/dev/serial/console-termios.c +- bsps/shared/start/bspfatal-default.c +- bsps/shared/start/bsp-fdt.c +- bsps/shared/start/sbrk.c +- bsps/shared/start/stackalloc.c +type: build diff --git a/spec/build/bsps/arm/raspberrypi/objsmp.yml b/spec/build/bsps/arm/raspberrypi/objsmp.yml new file mode 100644 index 0000000000..547c39abf5 --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/objsmp.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: +- RTEMS_SMP +includes: [] +install: [] +links: [] +source: +- bsps/arm/raspberrypi/start/bspsmp.c +- bsps/arm/raspberrypi/start/bspsmp_init.c +type: build diff --git a/spec/build/bsps/arm/raspberrypi/optenhyp.yml b/spec/build/bsps/arm/raspberrypi/optenhyp.yml new file mode 100644 index 0000000000..b9b9cb89ae --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/optenhyp.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: true +default-by-variant: [] +description: | + Support start of BSP in ARM HYP mode +enabled-by: true +links: [] +name: BSP_START_IN_HYP_SUPPORT +type: build diff --git a/spec/build/bsps/arm/raspberrypi/opti2ciomode.yml b/spec/build/bsps/arm/raspberrypi/opti2ciomode.yml new file mode 100644 index 0000000000..82ba37dc4d --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/opti2ciomode.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: true +default-by-variant: [] +description: | + Define to 1 to use interrupt-driven I/O with the Raspberry Pi I2C bus. If defined to other value the access will be polled-driven. +enabled-by: true +links: [] +name: I2C_IO_MODE +type: build diff --git a/spec/build/bsps/arm/raspberrypi/optnocachelen.yml b/spec/build/bsps/arm/raspberrypi/optnocachelen.yml new file mode 100644 index 0000000000..b9d9071b17 --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/optnocachelen.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-uint32: null +- env-assign: null +- format-and-define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 2097152 +default-by-variant: [] +description: | + No-cache region length +enabled-by: true +format: '{:#010x}' +links: [] +name: RPI_RAM_NOCACHE_LENGTH +type: build diff --git a/spec/build/bsps/arm/raspberrypi/optramlen.yml b/spec/build/bsps/arm/raspberrypi/optramlen.yml new file mode 100644 index 0000000000..040d514dad --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/optramlen.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-uint32: null +- env-assign: null +- format-and-define: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 268435456 +default-by-variant: [] +description: | + RAM region length +enabled-by: true +format: '{:#010x}' +links: [] +name: RPI_RAM_LENGTH_AVAILABLE +type: build diff --git a/spec/build/bsps/arm/raspberrypi/optresetvec.yml b/spec/build/bsps/arm/raspberrypi/optresetvec.yml new file mode 100644 index 0000000000..efd1ea2b2a --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/optresetvec.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: [] +description: | + reset vector address for BSP start +enabled-by: true +links: [] +name: BSP_START_RESET_VECTOR +type: build diff --git a/spec/build/bsps/arm/raspberrypi/optrpi2.yml b/spec/build/bsps/arm/raspberrypi/optrpi2.yml new file mode 100644 index 0000000000..08e3a1e381 --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/optrpi2.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: false +default-by-variant: +- value: true + variants: + - arm/raspberrypi2 +description: | + Set if the BSP variant is Raspberry Pi 2. +enabled-by: true +links: [] +name: BSP_IS_RPI2 +type: build diff --git a/spec/build/bsps/arm/raspberrypi/optspiiomode.yml b/spec/build/bsps/arm/raspberrypi/optspiiomode.yml new file mode 100644 index 0000000000..bb0b94a683 --- /dev/null +++ b/spec/build/bsps/arm/raspberrypi/optspiiomode.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: true +default-by-variant: [] +description: | + Define to 1 to use interrupt-driven I/O with the Raspberry Pi SPI bus. If defined to other value the access will be polled-driven. +enabled-by: true +links: [] +name: SPI_IO_MODE +type: build |