summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps/arm/tms570
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spec/build/bsps/arm/tms570/abi.yml15
-rw-r--r--spec/build/bsps/arm/tms570/bsplc4357hdk.yml21
-rw-r--r--spec/build/bsps/arm/tms570/bsplc4357hdksdram.yml19
-rw-r--r--spec/build/bsps/arm/tms570/bspls3137hdk.yml2
-rw-r--r--spec/build/bsps/arm/tms570/bspls3137hdkintram.yml2
-rw-r--r--spec/build/bsps/arm/tms570/bspls3137hdksdram.yml2
-rw-r--r--spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml21
-rw-r--r--spec/build/bsps/arm/tms570/grp.yml28
-rw-r--r--spec/build/bsps/arm/tms570/linkcmdsmemory.yml27
-rw-r--r--spec/build/bsps/arm/tms570/obj.yml14
-rw-r--r--spec/build/bsps/arm/tms570/objhwinit.yml20
-rw-r--r--spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml14
-rw-r--r--spec/build/bsps/arm/tms570/objhwinitls3137hdk.yml14
-rw-r--r--spec/build/bsps/arm/tms570/objnohwinit.yml16
-rw-r--r--spec/build/bsps/arm/tms570/optcclk.yml16
-rw-r--r--spec/build/bsps/arm/tms570/optconirq.yml7
-rw-r--r--spec/build/bsps/arm/tms570/optlinkflags.yml19
-rw-r--r--spec/build/bsps/arm/tms570/optlowinit.yml14
-rw-r--r--spec/build/bsps/arm/tms570/optmemflashorigin.yml18
-rw-r--r--spec/build/bsps/arm/tms570/optmemflashsize.yml20
-rw-r--r--spec/build/bsps/arm/tms570/optmemsdramorigin.yml18
-rw-r--r--spec/build/bsps/arm/tms570/optmemsdramsize.yml18
-rw-r--r--spec/build/bsps/arm/tms570/optmemsramorigin.yml18
-rw-r--r--spec/build/bsps/arm/tms570/optmemsramsize.yml20
-rw-r--r--spec/build/bsps/arm/tms570/optmintskstksz.yml7
-rw-r--r--spec/build/bsps/arm/tms570/optoscmain.yml14
-rw-r--r--spec/build/bsps/arm/tms570/optoscrtc.yml16
-rw-r--r--spec/build/bsps/arm/tms570/optreginit.yml7
-rw-r--r--spec/build/bsps/arm/tms570/optscibaud.yml7
-rw-r--r--spec/build/bsps/arm/tms570/opttms570ls3137.yml15
-rw-r--r--spec/build/bsps/arm/tms570/optvariant.yml29
-rw-r--r--spec/build/bsps/arm/tms570/tstls3137hdkintram.yml20
32 files changed, 369 insertions, 129 deletions
diff --git a/spec/build/bsps/arm/tms570/abi.yml b/spec/build/bsps/arm/tms570/abi.yml
index 0177616e2a..912f2f5029 100644
--- a/spec/build/bsps/arm/tms570/abi.yml
+++ b/spec/build/bsps/arm/tms570/abi.yml
@@ -5,14 +5,15 @@ actions:
- env-append: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
-- -march=armv7-r
-- -mthumb
-- -mbig-endian
-- -mfpu=vfpv3-d16
-- -mfloat-abi=hard
-default-by-variant: []
+- enabled-by: true
+ value:
+ - -march=armv7-r
+ - -mthumb
+ - -mbig-endian
+ - -mfpu=vfpv3-d16
+ - -mfloat-abi=hard
description: |
ABI flags
enabled-by: true
diff --git a/spec/build/bsps/arm/tms570/bsplc4357hdk.yml b/spec/build/bsps/arm/tms570/bsplc4357hdk.yml
new file mode 100644
index 0000000000..54710fccb0
--- /dev/null
+++ b/spec/build/bsps/arm/tms570/bsplc4357hdk.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: arm
+bsp: tms570lc4357_hdk
+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: ../../tstsmallmem
+- role: build-dependency
+ uid: grp
+source: []
+type: build
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/bspls3137hdk.yml b/spec/build/bsps/arm/tms570/bspls3137hdk.yml
index fea0efe06b..14b783aef2 100644
--- a/spec/build/bsps/arm/tms570/bspls3137hdk.yml
+++ b/spec/build/bsps/arm/tms570/bspls3137hdk.yml
@@ -4,7 +4,7 @@ bsp: tms570ls3137_hdk
build-type: bsp
cflags: []
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
enabled-by: true
family: tms570
diff --git a/spec/build/bsps/arm/tms570/bspls3137hdkintram.yml b/spec/build/bsps/arm/tms570/bspls3137hdkintram.yml
index 75adc36eab..0a6464c25c 100644
--- a/spec/build/bsps/arm/tms570/bspls3137hdkintram.yml
+++ b/spec/build/bsps/arm/tms570/bspls3137hdkintram.yml
@@ -4,7 +4,7 @@ bsp: tms570ls3137_hdk_intram
build-type: bsp
cflags: []
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
enabled-by: true
family: tms570
diff --git a/spec/build/bsps/arm/tms570/bspls3137hdksdram.yml b/spec/build/bsps/arm/tms570/bspls3137hdksdram.yml
index 05881eeda2..bd7bf47bd0 100644
--- a/spec/build/bsps/arm/tms570/bspls3137hdksdram.yml
+++ b/spec/build/bsps/arm/tms570/bspls3137hdksdram.yml
@@ -4,7 +4,7 @@ bsp: tms570ls3137_hdk_sdram
build-type: bsp
cflags: []
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
enabled-by: true
family: tms570
diff --git a/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml b/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml
deleted file mode 100644
index bb02657f4a..0000000000
--- a/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-arch: arm
-bsp: tms570ls3137_hdk_with_loader
-build-type: bsp
-cflags: []
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-cppflags: []
-enabled-by: true
-family: tms570
-includes: []
-install: []
-links:
-- role: build-dependency
- uid: ../../opto2
-- role: build-dependency
- uid: ../../tstsmallmem
-- 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 862136f7f0..5a3d4784be 100644
--- a/spec/build/bsps/arm/tms570/grp.yml
+++ b/spec/build/bsps/arm/tms570/grp.yml
@@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: group
cflags: []
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by: true
@@ -11,6 +11,8 @@ install: []
ldflags: []
links:
- role: build-dependency
+ uid: optvariant
+- role: build-dependency
uid: ../grp
- role: build-dependency
uid: ../start
@@ -19,25 +21,37 @@ links:
- role: build-dependency
uid: obj
- role: build-dependency
+ uid: optlowinit
+- role: build-dependency
uid: objhwinit
- role: build-dependency
- uid: optcclk
+ uid: objnohwinit
- role: build-dependency
uid: optconirq
- role: build-dependency
- uid: optlowinit
-- 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
+ 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
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 b03e6aa9a2..d9f0043397 100644
--- a/spec/build/bsps/arm/tms570/obj.yml
+++ b/spec/build/bsps/arm/tms570/obj.yml
@@ -2,7 +2,7 @@ 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)
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by: true
@@ -11,7 +11,6 @@ install:
- destination: ${BSP_INCLUDEDIR}
source:
- bsps/arm/tms570/include/bsp.h
- - bsps/arm/tms570/include/tm27.h
- destination: ${BSP_INCLUDEDIR}/bsp
source:
- bsps/arm/tms570/include/bsp/irq.h
@@ -19,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
@@ -69,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
@@ -84,11 +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/bspstarthooks.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 04241dffc9..01b1502280 100644
--- a/spec/build/bsps/arm/tms570/objhwinit.yml
+++ b/spec/build/bsps/arm/tms570/objhwinit.yml
@@ -2,20 +2,26 @@ 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)
+- 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
new file mode 100644
index 0000000000..0d122b7d98
--- /dev/null
+++ b/spec/build/bsps/arm/tms570/objnohwinit.yml
@@ -0,0 +1,16 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: objects
+cflags: []
+copyrights:
+- Copyright (C) 2022 embedded brains GmbH & Co. KG
+cppflags: []
+cxxflags: []
+enabled-by:
+ not: TMS570_USE_HWINIT_STARTUP
+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/optcclk.yml b/spec/build/bsps/arm/tms570/optcclk.yml
deleted file mode 100644
index 674ec1ac86..0000000000
--- a/spec/build/bsps/arm/tms570/optcclk.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-integer: null
-- define: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 96000000
-default-by-variant: []
-description: |
- CPU clock in Hz
-enabled-by: true
-format: '{}'
-links: []
-name: TMS570_CCLK
-type: build
diff --git a/spec/build/bsps/arm/tms570/optconirq.yml b/spec/build/bsps/arm/tms570/optconirq.yml
index 3e3dc5a836..80a5502ac2 100644
--- a/spec/build/bsps/arm/tms570/optconirq.yml
+++ b/spec/build/bsps/arm/tms570/optconirq.yml
@@ -4,9 +4,10 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 1
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value: 1
description: |
The tms570 console driver can operate in either polled or interrupt mode.
enabled-by: true
diff --git a/spec/build/bsps/arm/tms570/optlinkflags.yml b/spec/build/bsps/arm/tms570/optlinkflags.yml
new file mode 100644
index 0000000000..5c32e178b3
--- /dev/null
+++ b/spec/build/bsps/arm/tms570/optlinkflags.yml
@@ -0,0 +1,19 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+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
+default:
+- enabled-by: true
+ value:
+ - -mbe32
+description: |
+ TMS570-specific flags passed to the linker.
+enabled-by: true
+links: []
+name: TMS570_LINKFLAGS
+type: build
diff --git a/spec/build/bsps/arm/tms570/optlowinit.yml b/spec/build/bsps/arm/tms570/optlowinit.yml
index d889dd2573..32b84aa08c 100644
--- a/spec/build/bsps/arm/tms570/optlowinit.yml
+++ b/spec/build/bsps/arm/tms570/optlowinit.yml
@@ -5,11 +5,17 @@ actions:
- env-enable: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: false
-default-by-variant: []
+- 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/optmintskstksz.yml b/spec/build/bsps/arm/tms570/optmintskstksz.yml
index 57e77ae551..ab61e0e502 100644
--- a/spec/build/bsps/arm/tms570/optmintskstksz.yml
+++ b/spec/build/bsps/arm/tms570/optmintskstksz.yml
@@ -4,9 +4,10 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 1024
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value: 1024
description: |
Suggested minimum task stack size in bytes
enabled-by: true
diff --git a/spec/build/bsps/arm/tms570/optoscmain.yml b/spec/build/bsps/arm/tms570/optoscmain.yml
index 8ebd6bb82d..1755fdd85a 100644
--- a/spec/build/bsps/arm/tms570/optoscmain.yml
+++ b/spec/build/bsps/arm/tms570/optoscmain.yml
@@ -4,11 +4,17 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 12000000
-default-by-variant: []
+- 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: 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/optoscrtc.yml b/spec/build/bsps/arm/tms570/optoscrtc.yml
deleted file mode 100644
index 8e14cbf9a8..0000000000
--- a/spec/build/bsps/arm/tms570/optoscrtc.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-integer: null
-- define: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 32768
-default-by-variant: []
-description: |
- RTC oscillator frequency in Hz
-enabled-by: true
-format: '{}'
-links: []
-name: TMS570_OSCILLATOR_RTC
-type: build
diff --git a/spec/build/bsps/arm/tms570/optreginit.yml b/spec/build/bsps/arm/tms570/optreginit.yml
index 3f7e9f2bf2..8f3ea93556 100644
--- a/spec/build/bsps/arm/tms570/optreginit.yml
+++ b/spec/build/bsps/arm/tms570/optreginit.yml
@@ -4,9 +4,10 @@ actions:
- define-condition: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: true
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value: true
description: |
The TMS570 needs to have the registers of its CPU initialized to avoid CCMR4F errors
enabled-by: true
diff --git a/spec/build/bsps/arm/tms570/optscibaud.yml b/spec/build/bsps/arm/tms570/optscibaud.yml
index e4eedd871b..e7454074d7 100644
--- a/spec/build/bsps/arm/tms570/optscibaud.yml
+++ b/spec/build/bsps/arm/tms570/optscibaud.yml
@@ -4,9 +4,10 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 115200
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value: 115200
description: |
baud for UARTs
enabled-by: true
diff --git a/spec/build/bsps/arm/tms570/opttms570ls3137.yml b/spec/build/bsps/arm/tms570/opttms570ls3137.yml
deleted file mode 100644
index 344f209ca1..0000000000
--- a/spec/build/bsps/arm/tms570/opttms570ls3137.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-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: |
- target used for identify TMS570LS3137 board
-enabled-by: true
-links: []
-name: ARM_TMS570LS3137
-type: build
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/tstls3137hdkintram.yml b/spec/build/bsps/arm/tms570/tstls3137hdkintram.yml
index 3222cea9b2..f93f69f74f 100644
--- a/spec/build/bsps/arm/tms570/tstls3137hdkintram.yml
+++ b/spec/build/bsps/arm/tms570/tstls3137hdkintram.yml
@@ -1,17 +1,19 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- set-test-state:
- fileio: exclude
- iostream: exclude
- monitor02: exclude
- rcxx01: exclude
- syscall01: exclude
- utf8proc01: exclude
+ reason: null
+ state: exclude
+ tests:
+ - fileio
+ - iostream
+ - monitor02
+ - rcxx01
+ - syscall01
+ - utf8proc01
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: null
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default: []
description: ''
enabled-by: true
links: