Back to home page

LXR

 
 

    


Warning, /spec/build/bsps/arm/atsam/optsdram.yml is written in an unsupported language. File is not indexed.

0001 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
0002 actions:
0003 - get-string: null
0004 - script: |
0005     s = ("ATSAM_SDRAM_IS42S16100E_7BLI", 0x00200000)
0006     sdram = {
0007          "is42s16100e-7bli": s,
0008          "is42s16320f-7bl": ("ATSAM_SDRAM_IS42S16320F_7BL", 0x04000000),
0009          "mt48lc16m16a2p-6a": ("ATSAM_SDRAM_MT48LC16M16A2P_6A", 0x02000000),
0010     }
0011     if value:
0012         if value.startswith("custom-"):
0013             name = "ATSAM_SDRAM_CUSTOM"
0014             try:
0015                 size = int(value[len("custom-"):], base=0)
0016                 s = (name, size)
0017             except Exception as e:
0018                 conf.fatal("Invalid SDRAM size '{}': {}".format(value, e))
0019         else:
0020             try:
0021                 s = sdram[value]
0022             except:
0023                 conf.fatal("Unkown SDRAM variant '{}'".format(value))
0024     conf.define_cond(s[0], True)
0025     conf.env["ATSAM_MEMORY_SDRAM_SIZE"] = s[1]
0026 build-type: option
0027 copyrights:
0028 - Copyright (C) 2020 embedded brains GmbH & Co. KG
0029 default:
0030 - enabled-by: true
0031   value: is42s16100e-7bli
0032 description: |
0033   SDRAM variant. Known chips are "is42s16100e-7bli", "is42s16320f-7bl",
0034   "mt48lc16m16a2p-6a". You can also set this to "custom-<RAM_SIZE>" (for example
0035   "custom-0x1000000" for a 16MiB RAM). In that case the BOARD_Sdram_Config has
0036   to be overwritten by the application to get working applications.
0037 enabled-by: true
0038 format: '{}'
0039 links: []
0040 name: ATSAM_SDRAM
0041 type: build