summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps/arm/atsam
diff options
context:
space:
mode:
Diffstat (limited to 'spec/build/bsps/arm/atsam')
-rw-r--r--spec/build/bsps/arm/atsam/abi.yml14
-rw-r--r--spec/build/bsps/arm/atsam/bspatsam.yml10
-rw-r--r--spec/build/bsps/arm/atsam/linkcmds.yml9
-rw-r--r--spec/build/bsps/arm/atsam/optchgclksram.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optchip.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optconbaud.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optconidx.yml13
-rw-r--r--spec/build/bsps/arm/atsam/optconirq.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optcontype.yml13
-rw-r--r--spec/build/bsps/arm/atsam/optmck.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optnocachesz.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optnullsz.yml18
-rw-r--r--spec/build/bsps/arm/atsam/optoscmain.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optqspiflashsz.yml8
-rw-r--r--spec/build/bsps/arm/atsam/optsdram.yml29
-rw-r--r--spec/build/bsps/arm/atsam/opttcmsz.yml11
-rw-r--r--spec/build/bsps/arm/atsam/optusextal.yml8
-rw-r--r--spec/build/bsps/arm/atsam/tstatsamv.yml61
18 files changed, 148 insertions, 102 deletions
diff --git a/spec/build/bsps/arm/atsam/abi.yml b/spec/build/bsps/arm/atsam/abi.yml
index 82ab336152..00dd2cbac3 100644
--- a/spec/build/bsps/arm/atsam/abi.yml
+++ b/spec/build/bsps/arm/atsam/abi.yml
@@ -5,14 +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-family: []
-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 6875941849..564ace9513 100644
--- a/spec/build/bsps/arm/atsam/optchgclksram.yml
+++ b/spec/build/bsps/arm/atsam/optchgclksram.yml
@@ -4,10 +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-family: []
-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 baf74e3577..27b5f86366 100644
--- a/spec/build/bsps/arm/atsam/optchip.yml
+++ b/spec/build/bsps/arm/atsam/optchip.yml
@@ -42,10 +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-family: []
-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 de59323904..0e8cbe6c16 100644
--- a/spec/build/bsps/arm/atsam/optconbaud.yml
+++ b/spec/build/bsps/arm/atsam/optconbaud.yml
@@ -4,10 +4,10 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 115200
-default-by-family: []
-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 d40cae546d..c2f374f7dc 100644
--- a/spec/build/bsps/arm/atsam/optconidx.yml
+++ b/spec/build/bsps/arm/atsam/optconidx.yml
@@ -1,16 +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-family: []
-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 8dcb1a0ca3..de8b5339ca 100644
--- a/spec/build/bsps/arm/atsam/optconirq.yml
+++ b/spec/build/bsps/arm/atsam/optconirq.yml
@@ -4,10 +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-family: []
-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 1b50fd6056..5b160bfc7c 100644
--- a/spec/build/bsps/arm/atsam/optcontype.yml
+++ b/spec/build/bsps/arm/atsam/optcontype.yml
@@ -1,16 +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-family: []
-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 1f4c920cf2..d6332b30bb 100644
--- a/spec/build/bsps/arm/atsam/optmck.yml
+++ b/spec/build/bsps/arm/atsam/optmck.yml
@@ -4,10 +4,10 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 123000000
-default-by-family: []
-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 f9bb25db71..cd803c1652 100644
--- a/spec/build/bsps/arm/atsam/optnocachesz.yml
+++ b/spec/build/bsps/arm/atsam/optnocachesz.yml
@@ -5,10 +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-family: []
-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 4fb3a7ebf6..2d8c0bf5c1 100644
--- a/spec/build/bsps/arm/atsam/optoscmain.yml
+++ b/spec/build/bsps/arm/atsam/optoscmain.yml
@@ -4,10 +4,10 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 12000000
-default-by-family: []
-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 62ebd78241..62cdbd219b 100644
--- a/spec/build/bsps/arm/atsam/optqspiflashsz.yml
+++ b/spec/build/bsps/arm/atsam/optqspiflashsz.yml
@@ -5,10 +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-family: []
-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 6cd29f0700..bc65280a11 100644
--- a/spec/build/bsps/arm/atsam/optsdram.yml
+++ b/spec/build/bsps/arm/atsam/optsdram.yml
@@ -9,20 +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-family: []
-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 33ac8ad1bd..ad3b71d8a5 100644
--- a/spec/build/bsps/arm/atsam/opttcmsz.yml
+++ b/spec/build/bsps/arm/atsam/opttcmsz.yml
@@ -5,12 +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-family: []
-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 1537d6f16d..bf4d8e6e98 100644
--- a/spec/build/bsps/arm/atsam/optusextal.yml
+++ b/spec/build/bsps/arm/atsam/optusextal.yml
@@ -4,10 +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-family: []
-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 442a5be12e..2860cfa51e 100644
--- a/spec/build/bsps/arm/atsam/tstatsamv.yml
+++ b/spec/build/bsps/arm/atsam/tstatsamv.yml
@@ -1,35 +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-family: []
-default-by-variant: []
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+default: []
description: ''
enabled-by: true
links: []