diff options
Diffstat (limited to 'spec/build/bsps/aarch64')
77 files changed, 759 insertions, 330 deletions
diff --git a/spec/build/bsps/aarch64/a53/abi.yml b/spec/build/bsps/aarch64/a53/abi.yml index 02d9880041..4374818fbd 100644 --- a/spec/build/bsps/aarch64/a53/abi.yml +++ b/spec/build/bsps/aarch64/a53/abi.yml @@ -7,14 +7,13 @@ build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) default: -- -mcpu=cortex-a53 -default-by-family: [] -default-by-variant: -- value: +- enabled-by: aarch64/a53_ilp32_qemu + value: - -mcpu=cortex-a53 - -mabi=ilp32 - variants: - - aarch64/a53_ilp32_qemu +- enabled-by: true + value: + - -mcpu=cortex-a53 description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/aarch64/a53/grp.yml b/spec/build/bsps/aarch64/a53/grp.yml index 9853c6deb7..9ab10d643d 100644 --- a/spec/build/bsps/aarch64/a53/grp.yml +++ b/spec/build/bsps/aarch64/a53/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -12,8 +15,6 @@ links: - role: build-dependency uid: ../start - role: build-dependency - uid: ../optisns -- role: build-dependency uid: abi - role: build-dependency uid: obj @@ -32,6 +33,10 @@ links: - role: build-dependency uid: ../../objirq - role: build-dependency + uid: ../../dev/irq/objarmgicv3 +- role: build-dependency + uid: ../../objmem +- role: build-dependency uid: ../../optcachedata - role: build-dependency uid: ../../optcacheinst diff --git a/spec/build/bsps/aarch64/a53/obj.yml b/spec/build/bsps/aarch64/a53/obj.yml index 939079a35a..e4b5a70fd9 100644 --- a/spec/build/bsps/aarch64/a53/obj.yml +++ b/spec/build/bsps/aarch64/a53/obj.yml @@ -11,7 +11,6 @@ install: - destination: ${BSP_INCLUDEDIR} source: - bsps/aarch64/a53/include/bsp.h - - bsps/aarch64/a53/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/aarch64/a53/include/bsp/irq.h @@ -22,15 +21,14 @@ source: - bsps/aarch64/a53/start/bspstarthooks.c - bsps/aarch64/shared/cache/cache.c - bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c +- bsps/aarch64/shared/mmu/vmsav8-64-nommu.c - bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/clock/arm-generic-timer.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c -- bsps/shared/dev/irq/arm-gicv3.c - bsps/shared/dev/serial/console-termios-init.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/bspreset-arm-psci.c - bsps/shared/start/gettargethash-default.c - bsps/shared/start/sbrk.c diff --git a/spec/build/bsps/aarch64/a53/optloadoff.yml b/spec/build/bsps/aarch64/a53/optloadoff.yml index cbc44f37a5..efdc8a0d8b 100644 --- a/spec/build/bsps/aarch64/a53/optloadoff.yml +++ b/spec/build/bsps/aarch64/a53/optloadoff.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 32768 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00008000 description: | offset of RAM region from memory area base enabled-by: true diff --git a/spec/build/bsps/aarch64/a53/optnocachelen.yml b/spec/build/bsps/aarch64/a53/optnocachelen.yml index 4b2a04b9ef..989354af2e 100644 --- a/spec/build/bsps/aarch64/a53/optnocachelen.yml +++ b/spec/build/bsps/aarch64/a53/optnocachelen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 1048576 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00100000 description: | length of nocache RAM region enabled-by: true diff --git a/spec/build/bsps/aarch64/a53/optramlen.yml b/spec/build/bsps/aarch64/a53/optramlen.yml index 2a0cdcc39a..452587021f 100644 --- a/spec/build/bsps/aarch64/a53/optramlen.yml +++ b/spec/build/bsps/aarch64/a53/optramlen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 0x8000000 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x08000000 description: | length of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/a53/optramori.yml b/spec/build/bsps/aarch64/a53/optramori.yml index 6718e70f14..58e4ec0082 100644 --- a/spec/build/bsps/aarch64/a53/optramori.yml +++ b/spec/build/bsps/aarch64/a53/optramori.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 1073741824 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x40000000 description: | base address of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/a53/tsta53.yml b/spec/build/bsps/aarch64/a53/tsta53.yml index f263557cb3..adf6d85ae1 100644 --- a/spec/build/bsps/aarch64/a53/tsta53.yml +++ b/spec/build/bsps/aarch64/a53/tsta53.yml @@ -1,42 +1,18 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - # expected to fail, don't compile these - minimum: exclude - - # don't compile due to toolchain issues - spconfig01: exclude - spmisc01: exclude - - # tests that are passing intermittently - spcpucounter01: indeterminate - rtmonuse: indeterminate - sp68: indeterminate - sp04: indeterminate - sp20: indeterminate - sp69: indeterminate - rtmonusxtimes01: indeterminate - spedfsched02: indeterminate - spedfsched04: indeterminate - psxtimes01: indeterminate - sprmsched01: indeterminate - sptimecounter02: indeterminate - sptimecounter04: indeterminate - ttest02: indeterminate - - # tests that pass nominally, but fail under Qemu when the host is under - # heavy load - psx12: indeterminate - spintrcritical03: indeterminate - spintrcritical04: indeterminate - spintrcritical05: indeterminate + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: null -default-by-family: [] -default-by-variant: [] +default: [] description: '' enabled-by: true -links: [] +links: +- role: build-dependency + uid: ../../tstqemu type: build diff --git a/spec/build/bsps/aarch64/a72/abi.yml b/spec/build/bsps/aarch64/a72/abi.yml index 9b2e536d26..994a3bbbe1 100644 --- a/spec/build/bsps/aarch64/a72/abi.yml +++ b/spec/build/bsps/aarch64/a72/abi.yml @@ -7,14 +7,13 @@ build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) default: -- -mcpu=cortex-a72 -default-by-family: [] -default-by-variant: -- value: +- enabled-by: aarch64/a72_ilp32_qemu + value: - -mcpu=cortex-a72 - -mabi=ilp32 - variants: - - aarch64/a72_ilp32_qemu +- enabled-by: true + value: + - -mcpu=cortex-a72 description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/aarch64/a72/grp.yml b/spec/build/bsps/aarch64/a72/grp.yml index 7544a47f9f..a8d09d108c 100644 --- a/spec/build/bsps/aarch64/a72/grp.yml +++ b/spec/build/bsps/aarch64/a72/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -12,8 +15,6 @@ links: - role: build-dependency uid: ../start - role: build-dependency - uid: ../optisns -- role: build-dependency uid: abi - role: build-dependency uid: obj @@ -32,6 +33,10 @@ links: - role: build-dependency uid: ../../objirq - role: build-dependency + uid: ../../dev/irq/objarmgicv3 +- role: build-dependency + uid: ../../objmem +- role: build-dependency uid: ../../optcachedata - role: build-dependency uid: ../../optcacheinst diff --git a/spec/build/bsps/aarch64/a72/obj.yml b/spec/build/bsps/aarch64/a72/obj.yml index 812b21be67..69836ce2f6 100644 --- a/spec/build/bsps/aarch64/a72/obj.yml +++ b/spec/build/bsps/aarch64/a72/obj.yml @@ -11,7 +11,6 @@ install: - destination: ${BSP_INCLUDEDIR} source: - bsps/aarch64/a72/include/bsp.h - - bsps/aarch64/a72/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/aarch64/a72/include/bsp/irq.h @@ -22,15 +21,14 @@ source: - bsps/aarch64/a72/start/bspstarthooks.c - bsps/aarch64/shared/cache/cache.c - bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c +- bsps/aarch64/shared/mmu/vmsav8-64-nommu.c - bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/clock/arm-generic-timer.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c -- bsps/shared/dev/irq/arm-gicv3.c - bsps/shared/dev/serial/console-termios-init.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/bspreset-arm-psci.c - bsps/shared/start/gettargethash-default.c - bsps/shared/start/sbrk.c diff --git a/spec/build/bsps/aarch64/a72/optloadoff.yml b/spec/build/bsps/aarch64/a72/optloadoff.yml index 1943ca00ed..91ea7669f3 100644 --- a/spec/build/bsps/aarch64/a72/optloadoff.yml +++ b/spec/build/bsps/aarch64/a72/optloadoff.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 32768 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00008000 description: | offset of RAM region from memory area base enabled-by: true diff --git a/spec/build/bsps/aarch64/a72/optnocachelen.yml b/spec/build/bsps/aarch64/a72/optnocachelen.yml index 3cbf1da53d..6b069f2d7e 100644 --- a/spec/build/bsps/aarch64/a72/optnocachelen.yml +++ b/spec/build/bsps/aarch64/a72/optnocachelen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 1048576 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00100000 description: | length of nocache RAM region enabled-by: true diff --git a/spec/build/bsps/aarch64/a72/optramlen.yml b/spec/build/bsps/aarch64/a72/optramlen.yml index bb5574b8b0..5d1e1e5043 100644 --- a/spec/build/bsps/aarch64/a72/optramlen.yml +++ b/spec/build/bsps/aarch64/a72/optramlen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 0x8000000 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x08000000 description: | length of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/a72/optramori.yml b/spec/build/bsps/aarch64/a72/optramori.yml index 8718e2c903..ec7e098fe4 100644 --- a/spec/build/bsps/aarch64/a72/optramori.yml +++ b/spec/build/bsps/aarch64/a72/optramori.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 1073741824 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x40000000 description: | base address of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/a72/tsta72.yml b/spec/build/bsps/aarch64/a72/tsta72.yml index f263557cb3..adf6d85ae1 100644 --- a/spec/build/bsps/aarch64/a72/tsta72.yml +++ b/spec/build/bsps/aarch64/a72/tsta72.yml @@ -1,42 +1,18 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - # expected to fail, don't compile these - minimum: exclude - - # don't compile due to toolchain issues - spconfig01: exclude - spmisc01: exclude - - # tests that are passing intermittently - spcpucounter01: indeterminate - rtmonuse: indeterminate - sp68: indeterminate - sp04: indeterminate - sp20: indeterminate - sp69: indeterminate - rtmonusxtimes01: indeterminate - spedfsched02: indeterminate - spedfsched04: indeterminate - psxtimes01: indeterminate - sprmsched01: indeterminate - sptimecounter02: indeterminate - sptimecounter04: indeterminate - ttest02: indeterminate - - # tests that pass nominally, but fail under Qemu when the host is under - # heavy load - psx12: indeterminate - spintrcritical03: indeterminate - spintrcritical04: indeterminate - spintrcritical05: indeterminate + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: null -default-by-family: [] -default-by-variant: [] +default: [] description: '' enabled-by: true -links: [] +links: +- role: build-dependency + uid: ../../tstqemu type: build diff --git a/spec/build/bsps/aarch64/grp.yml b/spec/build/bsps/aarch64/grp.yml index a6bc0d5a31..8f40a9952e 100644 --- a/spec/build/bsps/aarch64/grp.yml +++ b/spec/build/bsps/aarch64/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: @@ -9,9 +12,6 @@ install: source: - bsps/aarch64/include/bsp/linker-symbols.h - bsps/aarch64/include/bsp/start.h -- destination: ${BSP_INCLUDEDIR}/dev/clock - source: - - bsps/include/dev/clock/arm-generic-timer.h - destination: ${BSP_INCLUDEDIR}/dev/irq source: - bsps/aarch64/include/dev/irq/arm-gic-arch.h diff --git a/spec/build/bsps/aarch64/optgtuseps.yml b/spec/build/bsps/aarch64/optgtuseps.yml index b78d268de8..9ce0cb7552 100644 --- a/spec/build/bsps/aarch64/optgtuseps.yml +++ b/spec/build/bsps/aarch64/optgtuseps.yml @@ -5,9 +5,9 @@ actions: build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: false -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: false description: | If set to true, and AARCH64_GENERIC_TIMER_USE_VIRTUAL is false, then the clock driver uses the Physical Secure Timer of the AARCH64 diff --git a/spec/build/bsps/aarch64/optgtusevirt.yml b/spec/build/bsps/aarch64/optgtusevirt.yml index 562213725f..b50e5b0490 100644 --- a/spec/build/bsps/aarch64/optgtusevirt.yml +++ b/spec/build/bsps/aarch64/optgtusevirt.yml @@ -5,9 +5,9 @@ actions: build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: false -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: false description: | If set to true, then the clock driver uses the Virtual Timer of the AARCH64 Generic Timer, otherwise it uses the Physical Non-Secure Timer (EL1). diff --git a/spec/build/bsps/aarch64/optisns.yml b/spec/build/bsps/aarch64/optisns.yml deleted file mode 100644 index 6270861f20..0000000000 --- a/spec/build/bsps/aarch64/optisns.yml +++ /dev/null @@ -1,21 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: -- get-boolean: null -- define-condition: null -build-type: option -copyrights: -- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: true -default-by-family: [] -default-by-variant: -- value: false - variants: - - aarch64/xilinx_versal_lp64_qemu - - aarch64/xilinx_versal_ilp32_qemu -description: | - If set to true, then the processor starts and stays in the non-secure mode, - otherwise it will be in the secure mode. -enabled-by: true -links: [] -name: AARCH64_IS_NONSECURE -type: build diff --git a/spec/build/bsps/aarch64/optmmupages.yml b/spec/build/bsps/aarch64/optmmupages.yml index 88812643d4..a8460ca11d 100644 --- a/spec/build/bsps/aarch64/optmmupages.yml +++ b/spec/build/bsps/aarch64/optmmupages.yml @@ -1,16 +1,16 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null -- assert-ge: 0x1 -- assert-le: 0x800 +- assert-ge: 1 +- assert-le: 2048 - env-assign: null - format-and-define: null build-type: option copyrights: - Copyright (C) 2021 On-Line Applications Research (OAR) -default: 0x40 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00000040 description: | Defines the number of MMU translation table pages to provide. enabled-by: true diff --git a/spec/build/bsps/aarch64/raspberrypi/abi.yml b/spec/build/bsps/aarch64/raspberrypi/abi.yml new file mode 100644 index 0000000000..38a8d8bc8f --- /dev/null +++ b/spec/build/bsps/aarch64/raspberrypi/abi.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- split: null +- env-append: null +build-type: option +copyrights: +- Copyright (C) 2022 Mohd Noor Aman +default: +- enabled-by: true + value: + - -mcpu=cortex-a72 + - -march=armv8-a +description: | + ABI flags +enabled-by: true +links: [] +name: ABI_FLAGS +type: build diff --git a/spec/build/bsps/aarch64/raspberrypi/bspraspberrypi4.yml b/spec/build/bsps/aarch64/raspberrypi/bspraspberrypi4.yml new file mode 100644 index 0000000000..7b6511a8cc --- /dev/null +++ b/spec/build/bsps/aarch64/raspberrypi/bspraspberrypi4.yml @@ -0,0 +1,74 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: aarch64 +bsp: raspberrypi4b +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2022 Mohd Noor Aman +cppflags: [] +enabled-by: true +family: raspberrypi +includes: [] +install: +- destination: ${BSP_INCLUDEDIR} + source: + - bsps/aarch64/raspberrypi/include/bsp.h + - bsps/aarch64/raspberrypi/include/tm27.h +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/aarch64/raspberrypi/include/bsp/irq.h + - bsps/aarch64/raspberrypi/include/bsp/raspberrypi.h +links: +- role: build-dependency + uid: objclock +- role: build-dependency + uid: objsystemtimer +- role: build-dependency + uid: ../grp +- role: build-dependency + uid: ../start +- role: build-dependency + uid: ../optmmupages +- role: build-dependency + uid: ../optgtusevirt +- role: build-dependency + uid: ../optgtuseps +- role: build-dependency + uid: abi +- role: build-dependency + uid: ../../optcachedata +- role: build-dependency + uid: ../../optcacheinst +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: ../../bspopts +- role: build-dependency + uid: linkercmds +- role: build-dependency + uid: ../../obj +- role: build-dependency + uid: ../../objirq +source: +- bsps/aarch64/raspberrypi/console/console.c +- bsps/aarch64/raspberrypi/start/bspstart.c +- bsps/aarch64/raspberrypi/start/bspstarthooks.c +- bsps/aarch64/raspberrypi/start/bspstartmmu.c +- bsps/aarch64/shared/cache/cache.c +- bsps/aarch64/shared/mmu/vmsav8-64.c +- bsps/shared/dev/irq/arm-gicv2.c +- bsps/shared/dev/irq/arm-gicv2-get-attributes.c +- bsps/shared/dev/serial/console-termios-init.c +- bsps/shared/dev/serial/console-termios.c +- bsps/shared/dev/serial/arm-pl011.c +- bsps/shared/dev/getentropy/getentropy-cpucounter.c +- bsps/shared/dev/btimer/btimer-cpucounter.c +- bsps/shared/irq/irq-default-handler.c +- bsps/shared/start/bspfatal-default.c +- bsps/shared/start/bspreset-arm-psci.c +- bsps/shared/start/gettargethash-default.c +- bsps/shared/start/sbrk.c +- bsps/shared/start/wkspaceinitone.c +- bsps/shared/start/mallocinitmulti.c +- bsps/shared/start/bspgetworkarea-default.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/linkcmds_ilp32.yml b/spec/build/bsps/aarch64/raspberrypi/linkercmds.yml index 3030fd0ae9..701f9f935c 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/linkcmds_ilp32.yml +++ b/spec/build/bsps/aarch64/raspberrypi/linkercmds.yml @@ -4,7 +4,7 @@ content: | /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> + * Copyright (C) 2022 Mohd Noor Aman * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,9 +29,8 @@ content: | */ MEMORY { - RAM : ORIGIN = ${BSP_XILINX_VERSAL_RAM_BASE} + ${BSP_XILINX_VERSAL_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_VERSAL_RAM_LENGTH} - ${BSP_XILINX_VERSAL_LOAD_OFFSET} - ${BSP_XILINX_VERSAL_NOCACHE_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - NOCACHE : ORIGIN = ${BSP_XILINX_VERSAL_RAM_BASE} + ${BSP_XILINX_VERSAL_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_VERSAL_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_VERSAL_NOCACHE_LENGTH} - RAM_MMU : ORIGIN = ${BSP_XILINX_VERSAL_RAM_BASE} + ${BSP_XILINX_VERSAL_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES} + RAM_MMU : ORIGIN = 0x0, LENGTH = (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) + RAM : ORIGIN = 0x80000, LENGTH = 1024M } REGION_ALIAS ("REGION_START", RAM); @@ -49,24 +48,27 @@ content: | REGION_ALIAS ("REGION_BSS", RAM); REGION_ALIAS ("REGION_WORK", RAM); REGION_ALIAS ("REGION_STACK", RAM); - REGION_ALIAS ("REGION_NOCACHE", NOCACHE); - REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE); + REGION_ALIAS ("REGION_NOCACHE", RAM); + REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM); + + bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 1024; + + bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M; bsp_stack_exception_size = DEFINED (bsp_stack_exception_size) ? bsp_stack_exception_size : 1024; bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M; bsp_vector_table_in_start_section = 1; - bsp_translation_table_base = ORIGIN (RAM_MMU); bsp_translation_table_end = ORIGIN (RAM_MMU) + LENGTH (RAM_MMU); - OUTPUT_FORMAT ("elf32-littleaarch64") - OUTPUT_ARCH (aarch64:ilp32) + OUTPUT_FORMAT ("elf64-littleaarch64") + OUTPUT_ARCH (aarch64) INCLUDE linkcmds.base copyrights: -- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +- Copyright (C) 2022 Mohd Noor Aman enabled-by: true install-path: ${BSP_LIBDIR} links: [] diff --git a/spec/build/bsps/aarch64/raspberrypi/objclock.yml b/spec/build/bsps/aarch64/raspberrypi/objclock.yml new file mode 100644 index 0000000000..24f61c93c4 --- /dev/null +++ b/spec/build/bsps/aarch64/raspberrypi/objclock.yml @@ -0,0 +1,31 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: + - Copyright (C) 2022 Mohd Noor Aman + - Copyright (C) 2023 Utkarsh Verma + - Copyright (C) 2024 Ning Yang + +type: build +enabled-by: + not: BSP_CLOCK_USE_SYSTEMTIMER + +build-type: objects +cflags: [] +cppflags: [] +cxxflags: [] +includes: [] +install: +- destination: ${BSP_INCLUDEDIR}/dev/clock + source: + - bsps/include/dev/clock/arm-generic-timer.h + +source: + - bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c + - bsps/shared/dev/clock/arm-generic-timer.c + +links: + - role: build-dependency + uid: ../optgtusevirt + - role: build-dependency + uid: ../optgtuseps + - role: build-dependency + uid: optsystemtimer
\ No newline at end of file diff --git a/spec/build/bsps/aarch64/raspberrypi/objsystemtimer.yml b/spec/build/bsps/aarch64/raspberrypi/objsystemtimer.yml new file mode 100644 index 0000000000..1ead15fdd5 --- /dev/null +++ b/spec/build/bsps/aarch64/raspberrypi/objsystemtimer.yml @@ -0,0 +1,23 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: + - Copyright (C) 2024 Ning Yang + +type: build +enabled-by: +- BSP_CLOCK_USE_SYSTEMTIMER + +build-type: objects +cflags: [] +cppflags: [] +cxxflags: [] +includes: [] +install: [] + +source: + - bsps/shared/dev/clock/bcm2835-system-timer.c + - bsps/shared/dev/cpucounter/cpucounterfrequency.c + - bsps/shared/dev/cpucounter/cpucounterread.c + +links: + - role: build-dependency + uid: optsystemtimer
\ No newline at end of file diff --git a/spec/build/bsps/aarch64/raspberrypi/optsystemtimer.yml b/spec/build/bsps/aarch64/raspberrypi/optsystemtimer.yml new file mode 100644 index 0000000000..c20371ab8b --- /dev/null +++ b/spec/build/bsps/aarch64/raspberrypi/optsystemtimer.yml @@ -0,0 +1,25 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: + - Copyright (C) 2024 Ning Yang + +type: build +build-type: option + +enabled-by: true +name: BSP_CLOCK_USE_SYSTEMTIMER +description: | + The clock from the ARM timer is derived from the system clock. This clock can + change dynamically e.g. if the system goes into reduced power or in low power + mode. Thus the clock speed adapts to the overall system performance + capabilities. For accurate timing it is recommended to use the system timers. + +actions: + - get-boolean: null + - define-condition: null + - env-enable: null +default: + - enabled-by: + - aarch64/raspberrypi4b + value: false + +links: []
\ No newline at end of file diff --git a/spec/build/bsps/aarch64/xilinx-versal/abi.yml b/spec/build/bsps/aarch64/xilinx-versal/abi.yml index 96611332f0..9e7a59a7f4 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/abi.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/abi.yml @@ -5,17 +5,11 @@ actions: - env-append: null build-type: option copyrights: -- Copyright (C) 2021 Gedare Bloom +- Copyright (C) 2021 Gedare Bloom default: -- -mcpu=cortex-a72 -default-by-family: [] -default-by-variant: -- value: +- enabled-by: true + value: - -mcpu=cortex-a72 - - -mabi=ilp32 - variants: - - aarch64/xilinx_versal_ilp32_qemu - - aarch64/xilinx_versal_ilp32_vck190 description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/bspqemuilp32.yml b/spec/build/bsps/aarch64/xilinx-versal/bspaiedge.yml index cdad919b1c..f8c9011143 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/bspqemuilp32.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/bspaiedge.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: aarch64 -bsp: xilinx_versal_ilp32_qemu +bsp: xilinx_versal_aiedge build-type: bsp cflags: [] copyrights: -- Copyright (C) 2021 Gedare Bloom +- Copyright (C) 2022 Chris Johns <chris@contemporary.software> cppflags: [] enabled-by: true family: xilinx-versal @@ -12,8 +12,8 @@ includes: [] install: [] links: - role: build-dependency - uid: grp_qemu + uid: grp_aiedge - role: build-dependency - uid: linkcmds_ilp32 + uid: linkcmds_lp64 source: [] type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/bspqemulp64.yml b/spec/build/bsps/aarch64/xilinx-versal/bspqemu.yml index bd8dab6a6e..f7f167dbfb 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/bspqemulp64.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/bspqemu.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: aarch64 -bsp: xilinx_versal_lp64_qemu +bsp: xilinx_versal_qemu build-type: bsp cflags: [] copyrights: -- Copyright (C) 2021 Gedare Bloom +- Copyright (C) 2021 Gedare Bloom cppflags: [] enabled-by: true family: xilinx-versal diff --git a/spec/build/bsps/aarch64/xilinx-versal/bspvck190lp64.yml b/spec/build/bsps/aarch64/xilinx-versal/bspvck190.yml index b33a10f8f0..bc2bbc1c5d 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/bspvck190lp64.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/bspvck190.yml @@ -1,6 +1,6 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: aarch64 -bsp: xilinx_versal_lp64_vck190 +bsp: xilinx_versal_vck190 build-type: bsp cflags: [] copyrights: diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp.yml b/spec/build/bsps/aarch64/xilinx-versal/grp.yml index 977c732506..badfa07fcc 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/grp.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: -- Copyright (C) 2021 Gedare Bloom +- Copyright (C) 2021 Gedare Bloom +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -14,8 +17,6 @@ links: - role: build-dependency uid: ../optmmupages - role: build-dependency - uid: ../optisns -- role: build-dependency uid: ../optgtusevirt - role: build-dependency uid: ../optgtuseps @@ -24,6 +25,8 @@ links: - role: build-dependency uid: obj - role: build-dependency + uid: optconirq +- role: build-dependency uid: optloadoff - role: build-dependency uid: optnocachelen @@ -32,6 +35,10 @@ links: - role: build-dependency uid: optramori - role: build-dependency + uid: optclki2c0 +- role: build-dependency + uid: optclki2c1 +- role: build-dependency uid: optclkuart - role: build-dependency uid: optconminor @@ -40,10 +47,14 @@ links: - role: build-dependency uid: ../../objirq - role: build-dependency + uid: ../../dev/irq/objarmgicv3 +- role: build-dependency uid: ../../objdevspizynq - role: build-dependency uid: ../../objdevspixil - role: build-dependency + uid: ../../objmem +- role: build-dependency uid: ../../optcachedata - role: build-dependency uid: ../../optcacheinst diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml b/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml new file mode 100644 index 0000000000..30f5852ac4 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: group +cflags: [] +copyrights: +- Copyright (C) 2022 Chris Johns <chris@contemporary.software> +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: [] +ldflags: [] +links: +- role: build-dependency + uid: grp +- role: build-dependency + uid: objcadencei2c +- role: build-dependency + uid: tstaiedge +type: build +use-after: [] +use-before: [] diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp_qemu.yml b/spec/build/bsps/aarch64/xilinx-versal/grp_qemu.yml index 5a98190ee3..116e1ae6ff 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/grp_qemu.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/grp_qemu.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml b/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml index d47895b489..2f9662c597 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -10,6 +13,8 @@ links: - role: build-dependency uid: grp - role: build-dependency + uid: objcadencei2c +- role: build-dependency uid: tstvck190 type: build use-after: [] diff --git a/spec/build/bsps/aarch64/xilinx-versal/linkcmds_lp64.yml b/spec/build/bsps/aarch64/xilinx-versal/linkcmds_lp64.yml index bd5d1f791b..ca353d2662 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/linkcmds_lp64.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/linkcmds_lp64.yml @@ -4,7 +4,8 @@ content: | /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> + * Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> + * Copyright (C) 2022 Chris Johns <chrisj@rtems.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,10 +29,41 @@ content: | * POSSIBILITY OF SUCH DAMAGE. */ + /* + * The RAM supports 32G of DDR4 or LPDDR memory using DDRMC0. + * + * The DDR Conroller (DDRC) has two regions R0 and R1. R0 is + * in the A32 address space and R1 is in the A64 address space. + */ + DDRMC0_REGION_0_BASE = 0x00000000000; + DDRMC0_REGION_0_LENGTH = 0x00080000000; + DDRMC0_REGION_1_BASE = 0x00800000000; + DDRMC0_REGION_1_LENGTH = 0x01000000000; + + BSP_RAM_BASE = ${BSP_XILINX_VERSAL_RAM_BASE}; + + BSP_R0_RAM_BASE = DDRMC0_REGION_0_BASE; + BSP_R0_RAM_LENGTH = + ${BSP_XILINX_VERSAL_RAM_LENGTH} >= DDRMC0_REGION_0_LENGTH ? + DDRMC0_REGION_0_LENGTH - BSP_RAM_BASE : ${BSP_XILINX_VERSAL_RAM_LENGTH}; + BSP_R0_RAM_END = BSP_RAM_BASE + BSP_R0_RAM_LENGTH; + + BSP_R1_RAM_BASE = DDRMC0_REGION_1_BASE; + BSP_R1_RAM_LENGTH = + ${BSP_XILINX_VERSAL_RAM_LENGTH} >= DDRMC0_REGION_0_LENGTH ? + ${BSP_XILINX_VERSAL_RAM_LENGTH} - DDRMC0_REGION_0_LENGTH : 0; + + AARCH64_MMU_TT_PAGES_SIZE = 0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}; + MEMORY { - RAM : ORIGIN = ${BSP_XILINX_VERSAL_RAM_BASE} + ${BSP_XILINX_VERSAL_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_VERSAL_RAM_LENGTH} - ${BSP_XILINX_VERSAL_LOAD_OFFSET} - ${BSP_XILINX_VERSAL_NOCACHE_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - NOCACHE : ORIGIN = ${BSP_XILINX_VERSAL_RAM_BASE} + ${BSP_XILINX_VERSAL_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_VERSAL_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_VERSAL_NOCACHE_LENGTH} - RAM_MMU : ORIGIN = ${BSP_XILINX_VERSAL_RAM_BASE} + ${BSP_XILINX_VERSAL_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES} + RAM : ORIGIN = BSP_RAM_BASE + ${BSP_XILINX_VERSAL_LOAD_OFFSET}, + LENGTH = BSP_R0_RAM_LENGTH - ${BSP_XILINX_VERSAL_LOAD_OFFSET} - ${BSP_XILINX_VERSAL_NOCACHE_LENGTH} - AARCH64_MMU_TT_PAGES_SIZE + RAM1 : ORIGIN = BSP_R1_RAM_BASE, + LENGTH = BSP_R1_RAM_LENGTH + NOCACHE : ORIGIN = BSP_RAM_BASE + BSP_R0_RAM_LENGTH - AARCH64_MMU_TT_PAGES_SIZE - ${BSP_XILINX_VERSAL_NOCACHE_LENGTH}, + LENGTH = ${BSP_XILINX_VERSAL_NOCACHE_LENGTH} + RAM_MMU : ORIGIN = BSP_R0_RAM_END - AARCH64_MMU_TT_PAGES_SIZE, + LENGTH = AARCH64_MMU_TT_PAGES_SIZE } REGION_ALIAS ("REGION_START", RAM); @@ -58,6 +90,11 @@ content: | bsp_vector_table_in_start_section = 1; + bsp_r0_ram_base = DDRMC0_REGION_0_BASE; + bsp_r0_ram_end = ORIGIN (RAM) + LENGTH (RAM); + bsp_r1_ram_base = ORIGIN (RAM1); + bsp_r1_ram_end = ORIGIN (RAM1) + LENGTH (RAM1); + bsp_translation_table_base = ORIGIN (RAM_MMU); bsp_translation_table_end = ORIGIN (RAM_MMU) + LENGTH (RAM_MMU); @@ -66,7 +103,8 @@ content: | INCLUDE linkcmds.base copyrights: -- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +- Copyright (C) 2022 Chris Johns <chrisj@rtems.org> enabled-by: true install-path: ${BSP_LIBDIR} links: [] diff --git a/spec/build/bsps/aarch64/xilinx-versal/obj.yml b/spec/build/bsps/aarch64/xilinx-versal/obj.yml index 79e7000b52..ac7e6519db 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/obj.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/obj.yml @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: objects cflags: [] copyrights: -- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> cppflags: [] cxxflags: [] enabled-by: true @@ -11,7 +11,6 @@ install: - destination: ${BSP_INCLUDEDIR} source: - bsps/aarch64/xilinx-versal/include/bsp.h - - bsps/aarch64/xilinx-versal/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/aarch64/xilinx-versal/include/bsp/irq.h @@ -24,20 +23,20 @@ links: [] source: - bsps/aarch64/shared/cache/cache.c - bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c +- bsps/aarch64/shared/mmu/vmsav8-64.c - bsps/aarch64/xilinx-versal/console/console.c - bsps/aarch64/xilinx-versal/dev/serial/versal-uart-polled.c +- bsps/aarch64/xilinx-versal/dev/serial/versal-uart.c - bsps/aarch64/xilinx-versal/start/bspstart.c - bsps/aarch64/xilinx-versal/start/bspstarthooks.c - bsps/aarch64/xilinx-versal/start/bspstartmmu.c - bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/clock/arm-generic-timer.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c -- bsps/shared/dev/irq/arm-gicv3.c - bsps/shared/dev/serial/console-termios-init.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/bspreset-arm-psci.c - bsps/shared/start/gettargethash-default.c - bsps/shared/start/sbrk.c diff --git a/spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml b/spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml new file mode 100644 index 0000000000..f290d433e7 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2021 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/aarch64/xilinx-versal/include/bsp/i2c.h +- destination: ${BSP_INCLUDEDIR}/dev/i2c + source: + - bsps/include/dev/i2c/cadence-i2c-regs.h + - bsps/include/dev/i2c/cadence-i2c.h +links: [] +source: +- bsps/shared/dev/i2c/cadence-i2c.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml b/spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml new file mode 100644 index 0000000000..049bd0bd4a --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2022 Chris Johns <chris@contemporary.software> +default: +- enabled-by: true + value: 99999001 +description: | + Versal i2c0 clock frequency in Hz. This is the frequency after the signal + has been processed using the values passed to the I2C0_REF_CTRL register. +enabled-by: true +format: '{}' +links: [] +name: VERSAL_CLOCK_I2C0 +type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml b/spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml new file mode 100644 index 0000000000..1fa3ebba93 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2022 Chris Johns <chris@contemporary.software> +default: +- enabled-by: true + value: 99999001 +description: | + Versal i2c1 clock frequency in Hz. This is the frequency after the signal + has been processed using the values passed to the I2C1_REF_CTRL register. +enabled-by: true +format: '{}' +links: [] +name: VERSAL_CLOCK_I2C1 +type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/optclkuart.yml b/spec/build/bsps/aarch64/xilinx-versal/optclkuart.yml index c4fc42ee70..2ea9ea636d 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/optclkuart.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/optclkuart.yml @@ -4,14 +4,12 @@ actions: - define: null build-type: option copyrights: -- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: 24000000 -default-by-family: [] -default-by-variant: -- value: 100000000 - variants: - - aarch64/xilinx_versal_ilp32.* - - aarch64/xilinx_versal_lp64.* +- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +default: +- enabled-by: aarch64/xilinx_versal_qemu + value: 24000000 +- enabled-by: true + value: 100000000 description: | Versal UART clock frequency in Hz enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/optconirq.yml b/spec/build/bsps/aarch64/xilinx-versal/optconirq.yml new file mode 100644 index 0000000000..00c5dbaebd --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/optconirq.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 Chris Johns (chris@contemporary.software) +default: +- enabled-by: true + value: true +description: | + use interrupt driven mode for console devices (used by default) +enabled-by: true +links: [] +name: VERSAL_CONSOLE_USE_INTERRUPTS +type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/optconminor.yml b/spec/build/bsps/aarch64/xilinx-versal/optconminor.yml index 95a99fb309..dc38507bca 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/optconminor.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/optconminor.yml @@ -4,10 +4,10 @@ actions: - define: 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: 0 description: | minor number of console device enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/optloadoff.yml b/spec/build/bsps/aarch64/xilinx-versal/optloadoff.yml index 5aee8e0e07..27f7913fb4 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/optloadoff.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/optloadoff.yml @@ -7,13 +7,11 @@ actions: build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: 32768 -default-by-family: [] -default-by-variant: -- value: 0x0 - variants: - - aarch64/xilinx_versal_lp64_vck190 - - aarch64/xilinx_versal_ilp32_vck190 +default: +- enabled-by: aarch64/xilinx_versal_qemu + value: 0x00008000 +- enabled-by: true + value: 0x00000000 description: | offset of RAM region from memory area base enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/optnocachelen.yml b/spec/build/bsps/aarch64/xilinx-versal/optnocachelen.yml index b5cbc46a79..894a0b59e9 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/optnocachelen.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/optnocachelen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: 0x100000 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00100000 description: | length of nocache RAM region enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/optramlen.yml b/spec/build/bsps/aarch64/xilinx-versal/optramlen.yml index 3aff249c86..b635f01502 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/optramlen.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/optramlen.yml @@ -1,15 +1,15 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null -- assert-uint32: null +- assert-uint64: null - env-assign: null - format-and-define: null build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: 0x10000000 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x10000000 description: | length of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/optramori.yml b/spec/build/bsps/aarch64/xilinx-versal/optramori.yml index a05802bf88..110642becf 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/optramori.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/optramori.yml @@ -7,13 +7,11 @@ actions: build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: 0x20000000 -default-by-family: [] -default-by-variant: -- value: 0x10000000 - variants: - - aarch64/xilinx_versal_lp64_vck190 - - aarch64/xilinx_versal_ilp32_vck190 +default: +- enabled-by: aarch64/xilinx_versal_qemu + value: 0x20000000 +- enabled-by: true + value: 0x10000000 description: | base address of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/tstaiedge.yml b/spec/build/bsps/aarch64/xilinx-versal/tstaiedge.yml new file mode 100644 index 0000000000..0a0ab619af --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/tstaiedge.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- set-test-state: + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum +build-type: option +copyrights: +- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +default: [] +description: '' +enabled-by: true +links: [] +type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/tstqemu.yml b/spec/build/bsps/aarch64/xilinx-versal/tstqemu.yml index 43f6b2eaa8..69b85cadbd 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/tstqemu.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/tstqemu.yml @@ -1,20 +1,18 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - # expected to fail - minimum: exclude - - # don't compile due to toolchain issues, see RTEMS issue #4218 - spconfig01: exclude - spmisc01: exclude - + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: null -default-by-family: [] -default-by-variant: [] +default: [] description: '' enabled-by: true -links: [] +links: +- role: build-dependency + uid: ../../tstqemu type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/tstvck190.yml b/spec/build/bsps/aarch64/xilinx-versal/tstvck190.yml index 0876ef9e69..0a0ab619af 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/tstvck190.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/tstvck190.yml @@ -1,19 +1,15 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - # expected to produce a fatal-error when run - minimum: exclude - - # don't compile due to toolchain issues, see RTEMS issue #4218 - spconfig01: exclude - spmisc01: exclude - + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum build-type: option copyrights: - Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> -default: null -default-by-family: [] -default-by-variant: [] +default: [] description: '' enabled-by: true links: [] diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/abi.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/abi.yml index b22894cc87..8f514ca791 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/abi.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/abi.yml @@ -7,15 +7,17 @@ build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) default: -- -mcpu=cortex-a53 -default-by-family: [] -default-by-variant: -- value: - - -mcpu=cortex-a53 - - -mabi=ilp32 - variants: +- enabled-by: - aarch64/xilinx_zynqmp_ilp32_qemu - aarch64/xilinx_zynqmp_ilp32_zu3eg + value: + - -mcpu=cortex-a53 + - -mno-outline-atomics + - -mabi=ilp32 +- enabled-by: true + value: + - -mcpu=cortex-a53 + - -mno-outline-atomics description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-versal/bspvck190ilp32.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/bspa53lp64.yml index 741b28c6e8..42316db4d3 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/bspvck190ilp32.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/bspa53lp64.yml @@ -1,19 +1,21 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: aarch64 -bsp: xilinx_versal_ilp32_vck190 +bsp: xilinx_zynqmp_lp64_a53 build-type: bsp cflags: [] copyrights: -- Copyright (C) 2021 Gedare Bloom <gedare@rtems.org> +- Copyright (C) 2024 embedded brains GmbH cppflags: [] enabled-by: true -family: xilinx-versal +family: xilinx-zynqmp includes: [] install: [] links: - role: build-dependency - uid: grp_vck190 + uid: grp - role: build-dependency - uid: linkcmds_ilp32 + uid: linkcmds_lp64 +- role: build-dependency + uid: objfdtzynqmp source: [] type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/bspcfc400xlp64.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/bspcfc400xlp64.yml new file mode 100644 index 0000000000..1687ced857 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/bspcfc400xlp64.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: aarch64 +bsp: xilinx_zynqmp_lp64_cfc400x +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2022 On-Line Applications Research (OAR) +cppflags: [] +enabled-by: true +family: xilinx-zynqmp +includes: [] +install: [] +links: +- role: build-dependency + uid: grp_zu3eg +- role: build-dependency + uid: linkcmds_lp64 +- role: build-dependency + uid: objfdtcfc400x +source: [] +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemuilp32.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemuilp32.yml index 6e0eafc871..18968cd43d 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemuilp32.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemuilp32.yml @@ -17,5 +17,7 @@ links: uid: tstqemu - role: build-dependency uid: linkcmds_ilp32 +- role: build-dependency + uid: objfdtzynqmp source: [] type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemulp64.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemulp64.yml index 0d047e263c..86177d7fcd 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemulp64.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/bspqemulp64.yml @@ -17,5 +17,7 @@ links: uid: tstqemu - role: build-dependency uid: linkcmds_lp64 +- role: build-dependency + uid: objfdtzynqmp source: [] type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3egilp32.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3egilp32.yml index dd7d39fb94..cd0bb2b854 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3egilp32.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3egilp32.yml @@ -15,5 +15,7 @@ links: uid: grp_zu3eg - role: build-dependency uid: linkcmds_ilp32 +- role: build-dependency + uid: objfdtzynqmp source: [] type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3eglp64.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3eglp64.yml index 073e91175b..19211dae15 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3eglp64.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/bspzu3eglp64.yml @@ -15,5 +15,7 @@ links: uid: grp_zu3eg - role: build-dependency uid: linkcmds_lp64 +- role: build-dependency + uid: objfdtzynqmp source: [] type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/grp.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/grp.yml index 03ccdbbc8b..00b1060be6 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/grp.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -14,12 +17,14 @@ links: - role: build-dependency uid: ../optmmupages - role: build-dependency - uid: ../optisns -- role: build-dependency uid: abi - role: build-dependency uid: obj - role: build-dependency + uid: objjffs2qspinor +- role: build-dependency + uid: objsmp +- role: build-dependency uid: optloadoff - role: build-dependency uid: optnocachelen @@ -28,9 +33,11 @@ links: - role: build-dependency uid: optramori - role: build-dependency - uid: optclkuart + uid: optclki2c0 - role: build-dependency - uid: ../../optconminor + uid: optclki2c1 +- role: build-dependency + uid: optclkuart - role: build-dependency uid: ../../obj - role: build-dependency @@ -42,6 +49,10 @@ links: - role: build-dependency uid: ../../objdevspixil - role: build-dependency + uid: ../../objmem +- role: build-dependency + uid: ../../objxilinxsupport +- role: build-dependency uid: ../../optcachedata - role: build-dependency uid: ../../optcacheinst diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml index fa6347b2e4..a7a23ca2c0 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml @@ -1,16 +1,25 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: - Copyright (C) 2021 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] ldflags: [] links: - role: build-dependency + uid: ../../objnandpsu +- role: build-dependency + uid: objnandjffs2 +- role: build-dependency uid: grp - role: build-dependency uid: tstzu3eg +- role: build-dependency + uid: objcadencei2c type: build use-after: [] use-before: [] diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml index b530969de7..568e663c49 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml @@ -30,9 +30,9 @@ content: | */ MEMORY { - RAM : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - ${BSP_XILINX_ZYNQMP_LOAD_OFFSET} - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - NOCACHE : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - RAM_MMU : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES} + RAM : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - ${BSP_XILINX_ZYNQMP_LOAD_OFFSET} - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) + NOCACHE : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} + RAM_MMU : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES} } REGION_ALIAS ("REGION_START", RAM); diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_lp64.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_lp64.yml index d9696be5d4..4a26c59944 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_lp64.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_lp64.yml @@ -30,9 +30,9 @@ content: | */ MEMORY { - RAM : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - ${BSP_XILINX_ZYNQMP_LOAD_OFFSET} - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - NOCACHE : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - RAM_MMU : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x4000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES} + RAM : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - ${BSP_XILINX_ZYNQMP_LOAD_OFFSET} - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) + NOCACHE : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} + RAM_MMU : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES} } REGION_ALIAS ("REGION_START", RAM); diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/obj.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/obj.yml index d8286bec35..1a3b754d92 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/obj.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/obj.yml @@ -11,7 +11,6 @@ install: - destination: ${BSP_INCLUDEDIR} source: - bsps/aarch64/xilinx-zynqmp/include/bsp.h - - bsps/aarch64/xilinx-zynqmp/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h @@ -20,7 +19,9 @@ links: [] source: - bsps/aarch64/shared/cache/cache.c - bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c +- bsps/aarch64/shared/mmu/vmsav8-64.c - bsps/aarch64/xilinx-zynqmp/console/console.c +- bsps/aarch64/xilinx-zynqmp/fdt/bsp_fdt.c - bsps/aarch64/xilinx-zynqmp/start/bspstart.c - bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c - bsps/aarch64/xilinx-zynqmp/start/bspstartmmu.c @@ -28,11 +29,11 @@ source: - bsps/shared/dev/clock/arm-generic-timer.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c - bsps/shared/dev/irq/arm-gicv2.c +- bsps/shared/dev/irq/arm-gicv2-zynqmp.c - bsps/shared/dev/serial/console-termios-init.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/bspreset-arm-psci.c - bsps/shared/start/gettargethash-default.c - bsps/shared/start/sbrk.c diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/objcadencei2c.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/objcadencei2c.yml new file mode 100644 index 0000000000..fa269d61ad --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/objcadencei2c.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2021 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/aarch64/xilinx-zynqmp/include/bsp/i2c.h +- destination: ${BSP_INCLUDEDIR}/dev/i2c + source: + - bsps/include/dev/i2c/cadence-i2c-regs.h + - bsps/include/dev/i2c/cadence-i2c.h +links: [] +source: +- bsps/shared/dev/i2c/cadence-i2c.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/objfdtcfc400x.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/objfdtcfc400x.yml new file mode 100644 index 0000000000..53d93803cb --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/objfdtcfc400x.yml @@ -0,0 +1,14 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2022 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: [] +links: [] +source: +- bsps/aarch64/xilinx-zynqmp/fdt/cfc400x_dtb.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/objfdtzynqmp.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/objfdtzynqmp.yml new file mode 100644 index 0000000000..271bb82976 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/objfdtzynqmp.yml @@ -0,0 +1,14 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2022 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: [] +links: [] +source: +- bsps/aarch64/xilinx-zynqmp/fdt/zynqmp_dtb.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/objjffs2qspinor.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/objjffs2qspinor.yml new file mode 100644 index 0000000000..818e32d985 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/objjffs2qspinor.yml @@ -0,0 +1,22 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2022 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: +- bsps/include/dev/spi/ +- bsps/include/xil/ +- bsps/include/xil/${XIL_SUPPORT_PATH}/ +install: +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/aarch64/xilinx-zynqmp/include/bsp/jffs2_xqspipsu.h +links: +- role: build-dependency + uid: ../../objqspipsu +source: +- bsps/aarch64/xilinx-zynqmp/jffs2_xqspipsu.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/objnandjffs2.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/objnandjffs2.yml new file mode 100644 index 0000000000..d57251e81c --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/objnandjffs2.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2023 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +includes: +- bsps/include/dev/nand/ +- bsps/include/xil/ +- bsps/include/xil/${XIL_SUPPORT_PATH}/ +install: +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/aarch64/xilinx-zynqmp/include/bsp/jffs2_xnandpsu.h +links: [] +source: +- bsps/aarch64/xilinx-zynqmp/jffs2_xnandpsu.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/objsmp.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/objsmp.yml new file mode 100644 index 0000000000..752e6622c6 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/objsmp.yml @@ -0,0 +1,16 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2021 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: +- RTEMS_SMP +includes: [] +install: [] +links: [] +source: +- bsps/aarch64/shared/start/aarch64-smp.c +- bsps/shared/start/bspsmp-arm-psci.c +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optclki2c0.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optclki2c0.yml new file mode 100644 index 0000000000..9b367d22bb --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optclki2c0.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2021 On-Line Applications Research (OAR) +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 111111111 +description: | + ZynqMP i2c0 clock frequency in Hz. This is the frequency after the signal + has been processed using the values passed to the I2C0_REF_CTRL register. +enabled-by: true +format: '{}' +links: [] +name: ZYNQMP_CLOCK_I2C0 +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optclki2c1.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optclki2c1.yml new file mode 100644 index 0000000000..e2798548a6 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optclki2c1.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2021 On-Line Applications Research (OAR) +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 111111111 +description: | + ZynqMP i2c1 clock frequency in Hz. This is the frequency after the signal + has been processed using the values passed to the I2C1_REF_CTRL register. +enabled-by: true +format: '{}' +links: [] +name: ZYNQMP_CLOCK_I2C1 +type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optclkuart.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optclkuart.yml index ac21974629..5cec0d2188 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/optclkuart.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optclkuart.yml @@ -5,13 +5,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 100000000 -default-by-family: [] -default-by-variant: -- value: 100000000 - variants: - - aarch64/xilinx_zynqmp_ilp32.* - - aarch64/xilinx_zynqmp_lp64.* +default: +- enabled-by: true + value: 100000000 description: | Zynq UART clock frequency in Hz enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optloadoff.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optloadoff.yml index 28ed8a321f..3a78b9af38 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/optloadoff.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optloadoff.yml @@ -7,13 +7,15 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 32768 -default-by-family: [] -default-by-variant: -- value: 0x0 - variants: - - aarch64/xilinx_zynqmp_lp64_zu3eg +default: +- enabled-by: + - aarch64/xilinx_zynqmp_lp64_a53 - aarch64/xilinx_zynqmp_ilp32_zu3eg + - aarch64/xilinx_zynqmp_lp64_cfc400x + - aarch64/xilinx_zynqmp_lp64_zu3eg + value: 0x00000000 +- enabled-by: true + value: 0x00008000 description: | offset of RAM region from memory area base enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optnocachelen.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optnocachelen.yml index 66285b07c8..68aa5dc9ab 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/optnocachelen.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optnocachelen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 0x100000 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x00100000 description: | length of nocache RAM region enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optramlen.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optramlen.yml index 331e61ca35..9f488afd10 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/optramlen.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optramlen.yml @@ -7,9 +7,9 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 0x10000000 -default-by-family: [] -default-by-variant: [] +default: +- enabled-by: true + value: 0x10000000 description: | length of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml index 3035d4efda..33f0946532 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml @@ -7,13 +7,15 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 0x40018000 -default-by-family: [] -default-by-variant: -- value: 0x10000000 - variants: - - aarch64/xilinx_zynqmp_lp64_zu3eg +default: +- enabled-by: + - aarch64/xilinx_zynqmp_lp64_a53 - aarch64/xilinx_zynqmp_ilp32_zu3eg + - aarch64/xilinx_zynqmp_lp64_cfc400x + - aarch64/xilinx_zynqmp_lp64_zu3eg + value: 0x10000000 +- enabled-by: true + value: 0x40018000 description: | base address of memory area available to the BSP enabled-by: true diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/tstqemu.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/tstqemu.yml index efe0b82a4f..adf6d85ae1 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/tstqemu.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/tstqemu.yml @@ -1,42 +1,18 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - # expected to fail - minimum: exclude - - # don't compile due to toolchain issues - spconfig01: exclude - spmisc01: exclude - - # tests that are passing intermittently - spcpucounter01: indeterminate - rtmonuse: indeterminate - sp68: indeterminate - sp04: indeterminate - sp20: indeterminate - sp69: indeterminate - rtmonusxtimes01: indeterminate - spedfsched02: indeterminate - spedfsched04: indeterminate - psxtimes01: indeterminate - sprmsched01: indeterminate - sptimecounter02: indeterminate - sptimecounter04: indeterminate - ttest02: indeterminate - - # tests that pass nominally, but fail under Qemu when the host is under - # heavy load - psx12: indeterminate - spintrcritical03: indeterminate - spintrcritical04: indeterminate - spintrcritical05: indeterminate + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: null -default-by-family: [] -default-by-variant: [] +default: [] description: '' enabled-by: true -links: [] +links: +- role: build-dependency + uid: ../../tstqemu type: build diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/tstzu3eg.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/tstzu3eg.yml index b7376e98bf..15cb9697ed 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/tstzu3eg.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/tstzu3eg.yml @@ -1,18 +1,15 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - set-test-state: - # expected to produce a fatal-error when run - minimum: exclude - - # don't compile due to toolchain issues, see RTEMS issue #4218 - spconfig01: exclude - spmisc01: exclude + reason: | + Expected to fail, do not compile these. + state: exclude + tests: + - minimum build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: null -default-by-family: [] -default-by-variant: [] +default: [] description: '' enabled-by: true links: [] |