diff options
Diffstat (limited to '')
22 files changed, 282 insertions, 37 deletions
diff --git a/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml b/spec/build/bsps/arm/tms570/bsplc4357hdk.yml index 90069533a1..54710fccb0 100644 --- a/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml +++ b/spec/build/bsps/arm/tms570/bsplc4357hdk.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: arm -bsp: tms570ls3137_hdk_with_loader +bsp: tms570lc4357_hdk build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH & Co. KG +- Copyright (C) 2023 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: tms570 diff --git a/spec/build/bsps/arm/tms570/bsplc4357hdksdram.yml b/spec/build/bsps/arm/tms570/bsplc4357hdksdram.yml new file mode 100644 index 0000000000..376b1635f6 --- /dev/null +++ b/spec/build/bsps/arm/tms570/bsplc4357hdksdram.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: arm +bsp: tms570lc4357_hdk_sdram +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +cppflags: [] +enabled-by: true +family: tms570 +includes: [] +install: [] +links: +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: grp +source: [] +type: build diff --git a/spec/build/bsps/arm/tms570/grp.yml b/spec/build/bsps/arm/tms570/grp.yml index 2e7c9b19e5..5a3d4784be 100644 --- a/spec/build/bsps/arm/tms570/grp.yml +++ b/spec/build/bsps/arm/tms570/grp.yml @@ -11,6 +11,8 @@ install: [] ldflags: [] links: - role: build-dependency + uid: optvariant +- role: build-dependency uid: ../grp - role: build-dependency uid: ../start @@ -25,24 +27,32 @@ links: - role: build-dependency uid: objnohwinit - role: build-dependency - uid: optcclk -- role: build-dependency uid: optconirq - role: build-dependency uid: optmintskstksz - role: build-dependency uid: optoscmain - role: build-dependency - uid: optoscrtc -- role: build-dependency uid: optreginit - role: build-dependency uid: optscibaud - role: build-dependency - uid: opttms570ls3137 -- role: build-dependency uid: optlinkflags - role: build-dependency + uid: optmemflashorigin +- role: build-dependency + uid: optmemflashsize +- role: build-dependency + uid: optmemsdramorigin +- role: build-dependency + uid: optmemsdramsize +- role: build-dependency + uid: optmemsramorigin +- role: build-dependency + uid: optmemsramsize +- role: build-dependency + uid: linkcmdsmemory +- role: build-dependency uid: ../../linkcmds - role: build-dependency uid: ../../obj diff --git a/spec/build/bsps/arm/tms570/linkcmdsmemory.yml b/spec/build/bsps/arm/tms570/linkcmdsmemory.yml new file mode 100644 index 0000000000..33a87513bd --- /dev/null +++ b/spec/build/bsps/arm/tms570/linkcmdsmemory.yml @@ -0,0 +1,27 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: config-file +content: | + MEMORY { + ROM_INT : ORIGIN = ${TMS570_MEMORY_FLASH_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_FLASH_SIZE:#010x} + RAM_INT : ORIGIN = ${TMS570_MEMORY_SRAM_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_SRAM_SIZE:#010x} + RAM_EXT : ORIGIN = ${TMS570_MEMORY_SDRAM_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_SDRAM_SIZE:#010x} + } + + tms570_memory_flash_begin = ORIGIN (ROM_INT); + tms570_memory_flash_end = ORIGIN (ROM_INT) + LENGTH (ROM_INT); + tms570_memory_flash_size = LENGTH (ROM_INT); + + tms570_memory_sram_begin = ORIGIN (RAM_INT); + tms570_memory_sram_end = ORIGIN (RAM_INT) + LENGTH (RAM_INT); + tms570_memory_sram_size = LENGTH (RAM_INT); + + tms570_memory_sdram_begin = ORIGIN (RAM_EXT); + tms570_memory_sdram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT); + tms570_memory_sdram_size = LENGTH (RAM_EXT); +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +enabled-by: true +install-path: ${BSP_LIBDIR} +links: [] +target: linkcmds.memory +type: build diff --git a/spec/build/bsps/arm/tms570/obj.yml b/spec/build/bsps/arm/tms570/obj.yml index 272ab64fcf..d9f0043397 100644 --- a/spec/build/bsps/arm/tms570/obj.yml +++ b/spec/build/bsps/arm/tms570/obj.yml @@ -18,10 +18,7 @@ install: - bsps/arm/tms570/include/bsp/tms570-pinmux.h - bsps/arm/tms570/include/bsp/tms570-pins.h - bsps/arm/tms570/include/bsp/tms570-pom.h - - bsps/arm/tms570/include/bsp/tms570-rti.h - bsps/arm/tms570/include/bsp/tms570-sci-driver.h - - bsps/arm/tms570/include/bsp/tms570-sci.h - - bsps/arm/tms570/include/bsp/tms570-vim.h - bsps/arm/tms570/include/bsp/tms570.h - bsps/arm/tms570/include/bsp/tms570_hwinit.h - bsps/arm/tms570/include/bsp/tms570_selftest.h @@ -68,10 +65,11 @@ install: - bsps/arm/tms570/include/bsp/ti_herc/reg_vim.h - destination: ${BSP_LIBDIR} source: + - bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk + - bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk_sdram - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_intram - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_sdram - - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_with_loader links: [] source: - bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c @@ -83,10 +81,12 @@ source: - bsps/arm/tms570/cpucounter/cpucounterread.c - bsps/arm/tms570/irq/irq.c - bsps/arm/tms570/start/bspreset.c +- bsps/arm/tms570/start/bsprestart.c - bsps/arm/tms570/start/bspstart.c - bsps/arm/tms570/start/pinmux.c - bsps/arm/tms570/start/tms570-pom.c -- bsps/shared/cache/nocache.c +- bsps/arm/shared/cache/cache-cp15.c +- bsps/arm/shared/cache/cache-v7ar-disable-data.S - bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c - bsps/shared/dev/serial/console-termios.c diff --git a/spec/build/bsps/arm/tms570/objhwinit.yml b/spec/build/bsps/arm/tms570/objhwinit.yml index afa12e28d9..01b1502280 100644 --- a/spec/build/bsps/arm/tms570/objhwinit.yml +++ b/spec/build/bsps/arm/tms570/objhwinit.yml @@ -5,17 +5,23 @@ copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] cxxflags: [] -enabled-by: -- TMS570_USE_HWINIT_STARTUP +enabled-by: TMS570_USE_HWINIT_STARTUP includes: [] -install: [] -links: [] +install: +- destination: ${BSP_INCLUDEDIR}/bsp/ti_herc + source: + - bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h +links: +- role: build-dependency + uid: objhwinitls3137hdk +- role: build-dependency + uid: objhwinitlc4357hdk source: +- bsps/arm/tms570/start/bspstarthooks.c - bsps/arm/tms570/start/bspstarthooks-hwinit.c +- bsps/arm/tms570/start/errata_SSWF021_45.c - bsps/arm/tms570/start/fail_notification.c -- bsps/arm/tms570/start/init_emif_sdram.c - bsps/arm/tms570/start/init_esm.c -- bsps/arm/tms570/start/init_pinmux.c - bsps/arm/tms570/start/init_system.c - bsps/arm/tms570/start/tms570_selftest.c - bsps/arm/tms570/start/tms570_selftest_par_can.c diff --git a/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml b/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml new file mode 100644 index 0000000000..1b91475804 --- /dev/null +++ b/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml @@ -0,0 +1,14 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] +enabled-by: arm/tms570lc4357_hdk +includes: [] +install: [] +links: [] +source: +- bsps/arm/tms570/start/hwinit-lc4357-hdk.c +type: build diff --git a/spec/build/bsps/arm/tms570/objhwinitls3137hdk.yml b/spec/build/bsps/arm/tms570/objhwinitls3137hdk.yml new file mode 100644 index 0000000000..9971a0a86f --- /dev/null +++ b/spec/build/bsps/arm/tms570/objhwinitls3137hdk.yml @@ -0,0 +1,14 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] +enabled-by: arm/tms570ls3137_hdk +includes: [] +install: [] +links: [] +source: +- bsps/arm/tms570/start/hwinit-ls3137-hdk.c +type: build diff --git a/spec/build/bsps/arm/tms570/objnohwinit.yml b/spec/build/bsps/arm/tms570/objnohwinit.yml index c34432f38b..0d122b7d98 100644 --- a/spec/build/bsps/arm/tms570/objnohwinit.yml +++ b/spec/build/bsps/arm/tms570/objnohwinit.yml @@ -11,5 +11,6 @@ includes: [] install: [] links: [] source: +- bsps/arm/shared/start/bspstarthook0-empty.c - bsps/arm/tms570/start/bspstarthooks.c type: build diff --git a/spec/build/bsps/arm/tms570/optlinkflags.yml b/spec/build/bsps/arm/tms570/optlinkflags.yml index bf8db9a910..5c32e178b3 100644 --- a/spec/build/bsps/arm/tms570/optlinkflags.yml +++ b/spec/build/bsps/arm/tms570/optlinkflags.yml @@ -3,6 +3,7 @@ actions: - get-string: null - split: null - env-append: LINKFLAGS +- env-append: PKGCONFIG_LDFLAGS build-type: option copyrights: - Copyright (C) 2022 embedded brains GmbH & Co. KG diff --git a/spec/build/bsps/arm/tms570/optlowinit.yml b/spec/build/bsps/arm/tms570/optlowinit.yml index e9aa3557b3..32b84aa08c 100644 --- a/spec/build/bsps/arm/tms570/optlowinit.yml +++ b/spec/build/bsps/arm/tms570/optlowinit.yml @@ -7,10 +7,15 @@ build-type: option copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG default: +- enabled-by: + - arm/tms570ls3137_hdk + - arm/tms570lc4357_hdk + value: true - enabled-by: true value: false description: | - Include BSP startup code for TMS570LS3137 which allows to start RTEMS application directly after reset + Include BSP startup code for TMS570LS3137 or TMS57LC4357 which allows to + start RTEMS application directly after reset. enabled-by: true links: [] name: TMS570_USE_HWINIT_STARTUP diff --git a/spec/build/bsps/arm/tms570/optmemflashorigin.yml b/spec/build/bsps/arm/tms570/optmemflashorigin.yml new file mode 100644 index 0000000000..c25e230f5c --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemflashorigin.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_FLASH_ORIGIN +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00000000 +description: | + Origin of the internal flash memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_FLASH_ORIGIN +type: build diff --git a/spec/build/bsps/arm/tms570/optmemflashsize.yml b/spec/build/bsps/arm/tms570/optmemflashsize.yml new file mode 100644 index 0000000000..defd82876e --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemflashsize.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_FLASH_SIZE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: TMS570_VARIANT_4357 + value: 0x00400000 +- enabled-by: true + value: 0x00300000 +description: | + Size in bytes of the internal flash memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_FLASH_SIZE +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsdramorigin.yml b/spec/build/bsps/arm/tms570/optmemsdramorigin.yml new file mode 100644 index 0000000000..2220fc07a0 --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsdramorigin.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SDRAM_ORIGIN +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x80000000 +description: | + Origin of the external SDRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SDRAM_ORIGIN +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsdramsize.yml b/spec/build/bsps/arm/tms570/optmemsdramsize.yml new file mode 100644 index 0000000000..e41cd24c40 --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsdramsize.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SDRAM_SIZE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00800000 +description: | + Size in bytes of the external SDRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SDRAM_SIZE +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsramorigin.yml b/spec/build/bsps/arm/tms570/optmemsramorigin.yml new file mode 100644 index 0000000000..198eda69af --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsramorigin.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SRAM_ORIGIN +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x08000000 +description: | + Origin of the internal SRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SRAM_ORIGIN +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsramsize.yml b/spec/build/bsps/arm/tms570/optmemsramsize.yml new file mode 100644 index 0000000000..515819daad --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsramsize.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SRAM_SIZE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: TMS570_VARIANT_4357 + value: 0x00080000 +- enabled-by: true + value: 0x00040000 +description: | + Size in bytes of the internal SRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SRAM_SIZE +type: build diff --git a/spec/build/bsps/arm/tms570/optoscmain.yml b/spec/build/bsps/arm/tms570/optoscmain.yml index 7207801c37..1755fdd85a 100644 --- a/spec/build/bsps/arm/tms570/optoscmain.yml +++ b/spec/build/bsps/arm/tms570/optoscmain.yml @@ -4,12 +4,17 @@ actions: - define: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH & Co. KG +- Copyright (C) 2020, 2024 embedded brains GmbH & Co. KG default: +- enabled-by: + - arm/tms570lc4357_hdk + - arm/tms570lc4357_hdk_sdram + value: 16000000 - enabled-by: true - value: 12000000 + value: 8000000 description: | - main oscillator frequency in Hz + The option value shall be the main oscillator (OSCIN) frequency in Hz of the + board. enabled-by: true format: '{}' links: [] diff --git a/spec/build/bsps/arm/tms570/optvariant.yml b/spec/build/bsps/arm/tms570/optvariant.yml new file mode 100644 index 0000000000..d8432a3fa0 --- /dev/null +++ b/spec/build/bsps/arm/tms570/optvariant.yml @@ -0,0 +1,29 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-in-set: + - 3137 + - 4357 +- define: null +- env-assign: null +- set-value: TMS570_VARIANT_${TMS570_VARIANT} +- substitute: null +- env-append: ENABLE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: + - arm/tms570lc4357_hdk + - arm/tms570lc4357_hdk_sdram + value: 4357 +- enabled-by: true + value: 3137 +description: | + Defines the TMS570 family variant. Use 3137 for the TMS570LS3137 and 4357 + for the TMSLC4357. +enabled-by: true +format: '{}' +links: [] +name: TMS570_VARIANT +type: build diff --git a/spec/build/bsps/arm/tms570/optoscrtc.yml b/spec/build/bsps/arm/xilinx-zynqmp-rpu/optint0len.yml index 7fa70ae45d..0799dd6205 100644 --- a/spec/build/bsps/arm/tms570/optoscrtc.yml +++ b/spec/build/bsps/arm/xilinx-zynqmp-rpu/optint0len.yml @@ -1,17 +1,18 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null -- define: null +- assert-uint32: null +- env-assign: null +- format-and-define: null build-type: option copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG default: - enabled-by: true - value: 32768 -description: | - RTC oscillator frequency in Hz + value: 0x00010000 +description: '' enabled-by: true -format: '{}' +format: '{:#010x}' links: [] -name: TMS570_OSCILLATOR_RTC +name: ZYNQMP_RPU_RAM_INT_0_LENGTH type: build diff --git a/spec/build/bsps/arm/tms570/optcclk.yml b/spec/build/bsps/arm/xilinx-zynqmp-rpu/optramori.yml index 498693457f..d5b163781a 100644 --- a/spec/build/bsps/arm/tms570/optcclk.yml +++ b/spec/build/bsps/arm/xilinx-zynqmp-rpu/optramori.yml @@ -1,17 +1,18 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null -- define: null +- assert-uint32: null +- env-assign: null +- format-and-define: null build-type: option copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG default: - enabled-by: true - value: 96000000 -description: | - CPU clock in Hz + value: 0x00100000 +description: '' enabled-by: true -format: '{}' +format: '{:#010x}' links: [] -name: TMS570_CCLK +name: ZYNQMP_RPU_RAM_ORIGIN type: build diff --git a/spec/build/bsps/arm/tms570/opttms570ls3137.yml b/spec/build/bsps/arm/xilinx-zynqmp-rpu/optresetvec.yml index e2a3de8994..206a6f2801 100644 --- a/spec/build/bsps/arm/tms570/opttms570ls3137.yml +++ b/spec/build/bsps/arm/xilinx-zynqmp-rpu/optresetvec.yml @@ -9,8 +9,8 @@ default: - enabled-by: true value: false description: | - target used for identify TMS570LS3137 board + reset vector address for BSP start enabled-by: true links: [] -name: ARM_TMS570LS3137 +name: BSP_START_RESET_VECTOR type: build |