[PATCH 19/47] bsp/tms570: Add TMS570LC4357 BSP variants

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Dec 21 14:37:52 UTC 2023


---
 .../tms570/start/linkcmds.tms570lc4357_hdk    | 24 +++++++++++++++
 .../start/linkcmds.tms570lc4357_hdk_sdram     | 30 +++++++++++++++++++
 spec/build/bsps/arm/tms570/bsplc4357hdk.yml   | 21 +++++++++++++
 .../bsps/arm/tms570/bsplc4357hdksdram.yml     | 19 ++++++++++++
 spec/build/bsps/arm/tms570/obj.yml            |  2 ++
 spec/build/bsps/arm/tms570/optvariant.yml     |  4 +++
 6 files changed, 100 insertions(+)
 create mode 100644 bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk
 create mode 100644 bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk_sdram
 create mode 100644 spec/build/bsps/arm/tms570/bsplc4357hdk.yml
 create mode 100644 spec/build/bsps/arm/tms570/bsplc4357hdksdram.yml

diff --git a/bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk b/bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk
new file mode 100644
index 0000000000..70f60662a6
--- /dev/null
+++ b/bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk
@@ -0,0 +1,24 @@
+INCLUDE linkcmds.memory
+
+REGION_ALIAS ("REGION_START", ROM_INT);
+REGION_ALIAS ("REGION_VECTOR", RAM_INT);
+REGION_ALIAS ("REGION_TEXT", ROM_INT);
+REGION_ALIAS ("REGION_TEXT_LOAD", ROM_INT);
+REGION_ALIAS ("REGION_RODATA", ROM_INT);
+REGION_ALIAS ("REGION_RODATA_LOAD", ROM_INT);
+REGION_ALIAS ("REGION_DATA", RAM_INT);
+REGION_ALIAS ("REGION_DATA_LOAD", ROM_INT);
+REGION_ALIAS ("REGION_FAST_TEXT", RAM_INT);
+REGION_ALIAS ("REGION_FAST_TEXT_LOAD", ROM_INT);
+REGION_ALIAS ("REGION_FAST_DATA", RAM_INT);
+REGION_ALIAS ("REGION_FAST_DATA_LOAD", ROM_INT);
+REGION_ALIAS ("REGION_BSS", RAM_INT);
+REGION_ALIAS ("REGION_WORK", RAM_INT);
+REGION_ALIAS ("REGION_STACK", RAM_INT);
+REGION_ALIAS ("REGION_NOCACHE", RAM_INT);
+REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_INT);
+
+bsp_vector_table_in_start_section = 1;
+bsp_int_vec_overlay_start = ORIGIN(ROM_INT) + 64;
+
+INCLUDE linkcmds.armv4
diff --git a/bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk_sdram b/bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk_sdram
new file mode 100644
index 0000000000..b6a76ff407
--- /dev/null
+++ b/bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk_sdram
@@ -0,0 +1,30 @@
+INCLUDE linkcmds.memory
+
+REGION_ALIAS ("REGION_START", RAM_EXT);
+REGION_ALIAS ("REGION_VECTOR", RAM_EXT);
+REGION_ALIAS ("REGION_TEXT", RAM_EXT);
+REGION_ALIAS ("REGION_TEXT_LOAD", RAM_EXT);
+REGION_ALIAS ("REGION_RODATA", RAM_EXT);
+REGION_ALIAS ("REGION_RODATA_LOAD", RAM_EXT);
+REGION_ALIAS ("REGION_DATA", RAM_EXT);
+REGION_ALIAS ("REGION_DATA_LOAD", RAM_EXT);
+REGION_ALIAS ("REGION_FAST_TEXT", RAM_EXT);
+REGION_ALIAS ("REGION_FAST_TEXT_LOAD", RAM_EXT);
+REGION_ALIAS ("REGION_FAST_DATA", RAM_INT);
+REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM_EXT);
+REGION_ALIAS ("REGION_BSS", RAM_EXT);
+REGION_ALIAS ("REGION_WORK", RAM_EXT);
+REGION_ALIAS ("REGION_STACK", RAM_EXT);
+REGION_ALIAS ("REGION_NOCACHE", RAM_EXT);
+REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_EXT);
+
+bsp_vector_table_in_start_section = 1;
+
+SECTIONS {
+  .int_vec_overlay : ALIGN_WITH_INPUT {
+    bsp_int_vec_overlay_start = .;
+    . += 256;
+  } > RAM_INT AT > RAM_INT
+}
+
+INCLUDE linkcmds.armv4
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/obj.yml b/spec/build/bsps/arm/tms570/obj.yml
index d6a4255a52..d9f0043397 100644
--- a/spec/build/bsps/arm/tms570/obj.yml
+++ b/spec/build/bsps/arm/tms570/obj.yml
@@ -65,6 +65,8 @@ 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
diff --git a/spec/build/bsps/arm/tms570/optvariant.yml b/spec/build/bsps/arm/tms570/optvariant.yml
index fb33e8ade4..d8432a3fa0 100644
--- a/spec/build/bsps/arm/tms570/optvariant.yml
+++ b/spec/build/bsps/arm/tms570/optvariant.yml
@@ -13,6 +13,10 @@ 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: |
-- 
2.35.3



More information about the devel mailing list