diff options
Diffstat (limited to 'spec/build/bsps/arm/atsam')
-rw-r--r-- | spec/build/bsps/arm/atsam/abi.yml | 13 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/bspatsam.yml | 10 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/linkcmds.yml | 9 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optchgclksram.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optchip.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optconbaud.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optconidx.yml | 12 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optconirq.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optcontype.yml | 12 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optmck.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optnocachesz.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optnullsz.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optoscmain.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optqspiflashsz.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optsdram.yml | 28 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/opttcmsz.yml | 10 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/optusextal.yml | 7 | ||||
-rw-r--r-- | spec/build/bsps/arm/atsam/tstatsamv.yml | 60 |
18 files changed, 148 insertions, 87 deletions
diff --git a/spec/build/bsps/arm/atsam/abi.yml b/spec/build/bsps/arm/atsam/abi.yml index 7a95742c36..00dd2cbac3 100644 --- a/spec/build/bsps/arm/atsam/abi.yml +++ b/spec/build/bsps/arm/atsam/abi.yml @@ -5,13 +5,14 @@ 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: -- -mthumb -- -mcpu=cortex-m7 -- -mfpu=fpv5-d16 -- -mfloat-abi=hard -default-by-variant: [] +- enabled-by: true + value: + - -mthumb + - -mcpu=cortex-m7 + - -mfpu=fpv5-d16 + - -mfloat-abi=hard description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/arm/atsam/bspatsam.yml b/spec/build/bsps/arm/atsam/bspatsam.yml index 94a2bb32bc..6fd7c4e0db 100644 --- a/spec/build/bsps/arm/atsam/bspatsam.yml +++ b/spec/build/bsps/arm/atsam/bspatsam.yml @@ -4,7 +4,7 @@ bsp: atsamv 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: atsam @@ -19,7 +19,6 @@ install: - destination: ${BSP_INCLUDEDIR} source: - bsps/arm/atsam/include/bsp.h - - bsps/arm/atsam/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/arm/atsam/include/bsp/atsam-clock-config.h @@ -298,6 +297,8 @@ links: - role: build-dependency uid: optnocachesz - role: build-dependency + uid: optnullsz +- role: build-dependency uid: optoscmain - role: build-dependency uid: optqspiflashsz @@ -318,6 +319,8 @@ links: - role: build-dependency uid: ../../objirq - role: build-dependency + uid: ../../objmem +- role: build-dependency uid: ../../opto2 - role: build-dependency uid: linkcmds @@ -398,12 +401,11 @@ source: - bsps/arm/shared/irq/irq-dispatch-armv7m.c - bsps/arm/shared/start/bsp-start-memcpy.S - bsps/arm/shared/start/bspreset-armv7m.c -- bsps/shared/dev/btimer/btimer-stub.c +- bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/rtc/rtc-support.c - bsps/shared/dev/serial/console-termios.c - bsps/shared/irq/irq-default-handler.c - bsps/shared/start/bspfatal-default.c -- bsps/shared/start/bspgetworkarea-default.c - bsps/shared/start/gettargethash-default.c - bsps/shared/start/sbrk.c - bsps/shared/start/stackalloc.c diff --git a/spec/build/bsps/arm/atsam/linkcmds.yml b/spec/build/bsps/arm/atsam/linkcmds.yml index fe6211f82f..8e3d41928b 100644 --- a/spec/build/bsps/arm/atsam/linkcmds.yml +++ b/spec/build/bsps/arm/atsam/linkcmds.yml @@ -2,7 +2,8 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: config-file content: | MEMORY { - ITCM : ORIGIN = 0x00000000, LENGTH = ${ATSAM_MEMORY_TCM_SIZE} + NULL : ORIGIN = 0x00000000, LENGTH = ${ATSAM_MEMORY_NULL_SIZE} + ITCM : ORIGIN = ${ATSAM_MEMORY_NULL_SIZE}, LENGTH = ((${ATSAM_MEMORY_TCM_SIZE} > ${ATSAM_MEMORY_NULL_SIZE}) ? (${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NULL_SIZE}) : 0) INTFLASH : ORIGIN = 0x00400000, LENGTH = ${ATSAM_MEMORY_INTFLASH_SIZE} DTCM : ORIGIN = 0x20000000, LENGTH = ${ATSAM_MEMORY_TCM_SIZE} INTSRAM : ORIGIN = 0x20400000, LENGTH = ${ATSAM_MEMORY_INTSRAM_SIZE} - 2 * ${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NOCACHE_SIZE} @@ -13,6 +14,10 @@ content: | /* Must be used only for MPU definitions */ + atsam_memory_null_begin = ORIGIN (NULL); + atsam_memory_null_end = ORIGIN (NULL) + LENGTH (NULL); + atsam_memory_null_size = LENGTH (NULL); + atsam_memory_itcm_begin = ORIGIN (ITCM); atsam_memory_itcm_end = ORIGIN (ITCM) + LENGTH (ITCM); atsam_memory_itcm_size = LENGTH (ITCM); @@ -41,7 +46,7 @@ content: | atsam_memory_qspiflash_end = ORIGIN (QSPIFLASH) + LENGTH (QSPIFLASH); atsam_memory_qspiflash_size = LENGTH (QSPIFLASH); copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG enabled-by: true install-path: ${BSP_LIBDIR} links: [] diff --git a/spec/build/bsps/arm/atsam/optchgclksram.yml b/spec/build/bsps/arm/atsam/optchgclksram.yml index 58dca377d7..564ace9513 100644 --- a/spec/build/bsps/arm/atsam/optchgclksram.yml +++ b/spec/build/bsps/arm/atsam/optchgclksram.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: false -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: false description: | Move the functions that set up the clock into the SRAM. This allows to change the clock frequency even if the application is started from SDRAM. Requires a TCM_SIZE > 0. enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optchip.yml b/spec/build/bsps/arm/atsam/optchip.yml index 16998e6c2a..27b5f86366 100644 --- a/spec/build/bsps/arm/atsam/optchip.yml +++ b/spec/build/bsps/arm/atsam/optchip.yml @@ -42,9 +42,10 @@ actions: conf.env["ATSAM_MEMORY_INTSRAM_SIZE"] = c[2] build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: samv71q21 -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: samv71q21 description: | Chip variant enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optconbaud.yml b/spec/build/bsps/arm/atsam/optconbaud.yml index b0e34e7505..0e8cbe6c16 100644 --- a/spec/build/bsps/arm/atsam/optconbaud.yml +++ b/spec/build/bsps/arm/atsam/optconbaud.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: | initial baud for console devices (default 115200) enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optconidx.yml b/spec/build/bsps/arm/atsam/optconidx.yml index 42fb3b142a..c2f374f7dc 100644 --- a/spec/build/bsps/arm/atsam/optconidx.yml +++ b/spec/build/bsps/arm/atsam/optconidx.yml @@ -1,15 +1,17 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: -- get-boolean: null -- define-condition: null +- get-integer: null +- define: 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: 1 description: | device index for /dev/console (default 1, e.g. USART1) enabled-by: true +format: '{}' links: [] name: ATSAM_CONSOLE_DEVICE_INDEX type: build diff --git a/spec/build/bsps/arm/atsam/optconirq.yml b/spec/build/bsps/arm/atsam/optconirq.yml index a410e05060..de8b5339ca 100644 --- a/spec/build/bsps/arm/atsam/optconirq.yml +++ b/spec/build/bsps/arm/atsam/optconirq.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: | use interrupt driven mode for console devices (used by default) enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optcontype.yml b/spec/build/bsps/arm/atsam/optcontype.yml index eddbee1063..5b160bfc7c 100644 --- a/spec/build/bsps/arm/atsam/optcontype.yml +++ b/spec/build/bsps/arm/atsam/optcontype.yml @@ -1,15 +1,17 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: -- get-boolean: null -- define-condition: null +- get-integer: null +- define: 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: true + value: 0 description: | device type for /dev/console, use 0 for USART and 1 for UART (default USART) enabled-by: true +format: '{}' links: [] name: ATSAM_CONSOLE_DEVICE_TYPE type: build diff --git a/spec/build/bsps/arm/atsam/optmck.yml b/spec/build/bsps/arm/atsam/optmck.yml index d216542285..d6332b30bb 100644 --- a/spec/build/bsps/arm/atsam/optmck.yml +++ b/spec/build/bsps/arm/atsam/optmck.yml @@ -4,9 +4,10 @@ actions: - define: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 123000000 -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 123000000 description: | Frequency of the MCK in Hz. Set to 0 to force application defined speed. See start/pmc-config.c for available clock configurations. enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optnocachesz.yml b/spec/build/bsps/arm/atsam/optnocachesz.yml index 433633d3b0..cd803c1652 100644 --- a/spec/build/bsps/arm/atsam/optnocachesz.yml +++ b/spec/build/bsps/arm/atsam/optnocachesz.yml @@ -5,9 +5,10 @@ actions: - env-assign: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 4096 -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00001000 description: | size of NOCACHE section in bytes enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optnullsz.yml b/spec/build/bsps/arm/atsam/optnullsz.yml new file mode 100644 index 0000000000..2182f51011 --- /dev/null +++ b/spec/build/bsps/arm/atsam/optnullsz.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00000000 +description: | + Size of the NULL pointer protection area in bytes. This memory area reduces + the size of the ITCM available to the application. +enabled-by: true +format: '{:#010x}' +links: [] +name: ATSAM_MEMORY_NULL_SIZE +type: build diff --git a/spec/build/bsps/arm/atsam/optoscmain.yml b/spec/build/bsps/arm/atsam/optoscmain.yml index 4cafffea37..2d8c0bf5c1 100644 --- a/spec/build/bsps/arm/atsam/optoscmain.yml +++ b/spec/build/bsps/arm/atsam/optoscmain.yml @@ -4,9 +4,10 @@ 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 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 12000000 description: | Main oscillator frequency in Hz (default 12MHz) enabled-by: true diff --git a/spec/build/bsps/arm/atsam/optqspiflashsz.yml b/spec/build/bsps/arm/atsam/optqspiflashsz.yml index a9a71b049f..62cdbd219b 100644 --- a/spec/build/bsps/arm/atsam/optqspiflashsz.yml +++ b/spec/build/bsps/arm/atsam/optqspiflashsz.yml @@ -5,9 +5,10 @@ actions: - env-assign: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 2097152 -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00200000 description: | size of QSPI flash in bytes enabled-by: true 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: [] diff --git a/spec/build/bsps/arm/atsam/opttcmsz.yml b/spec/build/bsps/arm/atsam/opttcmsz.yml index 7e8b1121e8..ad3b71d8a5 100644 --- a/spec/build/bsps/arm/atsam/opttcmsz.yml +++ b/spec/build/bsps/arm/atsam/opttcmsz.yml @@ -5,11 +5,13 @@ actions: - env-assign: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 0 -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00000000 description: | - size of tightly coupled memories (TCM) in bytes + Size of tightly coupled memories (TCM) in bytes. Note that the ITCM is + reduced by the ATSAM_MEMORY_NULL_SIZE option. DTCM is unaffected. enabled-by: true format: '{:#010x}' links: [] diff --git a/spec/build/bsps/arm/atsam/optusextal.yml b/spec/build/bsps/arm/atsam/optusextal.yml index 6353956d15..bf4d8e6e98 100644 --- a/spec/build/bsps/arm/atsam/optusextal.yml +++ b/spec/build/bsps/arm/atsam/optusextal.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: | Use the external crystal as source for the slow clock instead of the internal RC oscillator. Note that on the ATSAM the NRST pin seems to depend on the slow clock as well as all watchdogs. If ATSAM_SLOWCLOCK_USE_XTAL is set to 1 without a external crystal connected, the controller might hang in the switching process without a working NRST pin. enabled-by: true diff --git a/spec/build/bsps/arm/atsam/tstatsamv.yml b/spec/build/bsps/arm/atsam/tstatsamv.yml index 41d28657e9..2860cfa51e 100644 --- a/spec/build/bsps/arm/atsam/tstatsamv.yml +++ b/spec/build/bsps/arm/atsam/tstatsamv.yml @@ -1,34 +1,42 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - fileio: exclude - flashdisk01: exclude - fsdosfsname01: exclude - ftp01: exclude - jffs2fserror: exclude - jffs2fslink: exclude - jffs2fspatheval: exclude - jffs2fspermission: exclude - jffs2fsrdwr: exclude - jffs2fsscandir01: exclude - jffs2fssymlink: exclude - jffs2fstime: exclude - linpack: exclude - mghttpd01: exclude - pppd: exclude - psxconfig01: exclude - record02: exclude - sp16: exclude - sp25: exclude - sp48: exclude - spregionerr01: exclude - spstkalloc02: exclude - tmfine01: exclude + reason: null + state: exclude + tests: + - fileio + - flashdisk01 + - fsdosfsname01 + - fsjffs2empty01 + - jffs2fserror + - jffs2fslink + - jffs2fspatheval + - jffs2fspermission + - jffs2fsrdwr + - jffs2fsscandir01 + - jffs2fssymlink + - jffs2fstime + - jffs2nandfserror + - jffs2nandfslink + - jffs2nandfspatheval + - jffs2nandfspermission + - jffs2nandfsrdwr + - jffs2nandfsscandir01 + - jffs2nandfssymlink + - jffs2nandfstime + - linpack + - psxconfig01 + - record02 + - sp16 + - sp25 + - sp48 + - spregionerr01 + - spstkalloc02 + - tmfine01 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: [] |