summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps/arm/atsam/optsdram.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spec/build/bsps/arm/atsam/optsdram.yml28
1 files changed, 20 insertions, 8 deletions
diff --git a/spec/build/bsps/arm/atsam/optsdram.yml b/spec/build/bsps/arm/atsam/optsdram.yml
index c07edd9ba5..bc65280a11 100644
--- a/spec/build/bsps/arm/atsam/optsdram.yml
+++ b/spec/build/bsps/arm/atsam/optsdram.yml
@@ -9,19 +9,31 @@ actions:
"mt48lc16m16a2p-6a": ("ATSAM_SDRAM_MT48LC16M16A2P_6A", 0x02000000),
}
if value:
- try:
- s = sdram[value]
- except:
- conf.fatal("Unkown SDRAM variant '{}'".format(value))
+ if value.startswith("custom-"):
+ name = "ATSAM_SDRAM_CUSTOM"
+ try:
+ size = int(value[len("custom-"):], base=0)
+ s = (name, size)
+ except Exception as e:
+ conf.fatal("Invalid SDRAM size '{}': {}".format(value, e))
+ else:
+ try:
+ s = sdram[value]
+ except:
+ conf.fatal("Unkown SDRAM variant '{}'".format(value))
conf.define_cond(s[0], True)
conf.env["ATSAM_MEMORY_SDRAM_SIZE"] = s[1]
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: is42s16100e-7bli
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value: is42s16100e-7bli
description: |
- SDRAM variant
+ SDRAM variant. Known chips are "is42s16100e-7bli", "is42s16320f-7bl",
+ "mt48lc16m16a2p-6a". You can also set this to "custom-<RAM_SIZE>" (for example
+ "custom-0x1000000" for a 16MiB RAM). In that case the BOARD_Sdram_Config has
+ to be overwritten by the application to get working applications.
enabled-by: true
format: '{}'
links: []