summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-02-23 10:11:34 -0600
committerJoel Sherrill <joel@rtems.org>2022-02-23 12:33:55 -0600
commitfa944c5eac2c69f27a0810e52145c8a7a54b6ac6 (patch)
treea4479d8e83a180756d79f33113331e14daa02360
parentcpukit/libdebugger: Add MicroBlaze support (diff)
downloadrtems-fa944c5eac2c69f27a0810e52145c8a7a54b6ac6.tar.bz2
spec/microblaze: Use configurable RAM size
When committed, the MicroBlaze RAM size was hard-coded to 16MB. This changes the default to 256MB and sets the KCU105 BSPs to 2GB since that is what the board has on it.
-rw-r--r--spec/build/bsps/microblaze/microblaze_fpga/grp.yml2
-rw-r--r--spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml2
-rw-r--r--spec/build/bsps/microblaze/microblaze_fpga/optramlen.yml21
3 files changed, 24 insertions, 1 deletions
diff --git a/spec/build/bsps/microblaze/microblaze_fpga/grp.yml b/spec/build/bsps/microblaze/microblaze_fpga/grp.yml
index 3069ff2ff8..11df1802f1 100644
--- a/spec/build/bsps/microblaze/microblaze_fpga/grp.yml
+++ b/spec/build/bsps/microblaze/microblaze_fpga/grp.yml
@@ -34,6 +34,8 @@ links:
- role: build-dependency
uid: optintcbaseaddress
- role: build-dependency
+ uid: optramlen
+- role: build-dependency
uid: opttimerbaseaddress
- role: build-dependency
uid: opttimerfrequency
diff --git a/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml b/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml
index d478e86fb6..9a3ca11b51 100644
--- a/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml
+++ b/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml
@@ -35,7 +35,7 @@ content: |
MEMORY
{
BRAM (AIW) : ORIGIN = 0x00000000, LENGTH = 0x10000
- RAM : ORIGIN = _TEXT_START_ADDR, LENGTH = 0x1000000
+ RAM : ORIGIN = _TEXT_START_ADDR, LENGTH = ${BSP_MICROBLAZE_FPGA_RAM_LENGTH}
}
REGION_ALIAS ("REGION_START", BRAM);
diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optramlen.yml b/spec/build/bsps/microblaze/microblaze_fpga/optramlen.yml
new file mode 100644
index 0000000000..748b78f0a2
--- /dev/null
+++ b/spec/build/bsps/microblaze/microblaze_fpga/optramlen.yml
@@ -0,0 +1,21 @@
+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) 2022 On-Line Applications Research (OAR)
+default: 0x10000000
+default-by-variant:
+- value: 0x80000000
+ variants:
+ - microblaze/kcu105.*
+description: |
+ length of memory area available to the BSP
+enabled-by: true
+format: '{:#010x}'
+links: []
+name: BSP_MICROBLAZE_FPGA_RAM_LENGTH
+type: build