summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-12-02 12:19:43 -0600
committerJoel Sherrill <joel@rtems.org>2022-12-23 13:06:42 -0600
commit30ca711d19542af453f00ef4691fca9d17890d83 (patch)
treebe7f66fa69aced50cb3b209bbc8c78df92281926 /spec/build/bsps
parentbsps: Import Xilinx support code (diff)
downloadrtems-30ca711d19542af453f00ef4691fca9d17890d83.tar.bz2
bsps: Import Xilinx NAND driver
This adds Xilinx's driver for the Xilinx NAND controller embedded in the ZynqMP SoC. Within that device alone, it is possible to access this peripheral from MicroBlaze, ARMv7, and ARMv8 cores. This has been added to the hardware ZynqMP BSPs since QEMU does not support emulation of this peripheral. This driver supports polled operation only. The imported files are and should be able to remain unmodified. Import information is kept in bsps/shared/dev/nand/VERSION.
Diffstat (limited to 'spec/build/bsps')
-rw-r--r--spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml2
-rw-r--r--spec/build/bsps/objnandpsu.yml33
-rw-r--r--spec/build/bsps/optnandpsu0baseaddress.yml18
-rw-r--r--spec/build/bsps/optnandpsunuminstances.yml18
4 files changed, 71 insertions, 0 deletions
diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml
index 30cddaa0bb..41a5c9c596 100644
--- a/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml
+++ b/spec/build/bsps/aarch64/xilinx-zynqmp/grp_zu3eg.yml
@@ -11,6 +11,8 @@ install: []
ldflags: []
links:
- role: build-dependency
+ uid: ../../objnandpsu
+- role: build-dependency
uid: grp
- role: build-dependency
uid: tstzu3eg
diff --git a/spec/build/bsps/objnandpsu.yml b/spec/build/bsps/objnandpsu.yml
new file mode 100644
index 0000000000..60dc8f67cc
--- /dev/null
+++ b/spec/build/bsps/objnandpsu.yml
@@ -0,0 +1,33 @@
+SPDX-License-Identifier: CC-BY-SA-5.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/nand/
+- bsps/include/xil/
+- bsps/include/xil/${XIL_SUPPORT_PATH}/
+install:
+- destination: ${BSP_INCLUDEDIR}
+ source:
+ - bsps/include/dev/nand/xnandpsu_bbm.h
+ - bsps/include/dev/nand/xnandpsu.h
+ - bsps/include/dev/nand/xnandpsu_hw.h
+ - bsps/include/dev/nand/xnandpsu_onfi.h
+links:
+- role: build-dependency
+ uid: objxilinxsupport
+- role: build-dependency
+ uid: optnandpsu0baseaddress
+- role: build-dependency
+ uid: optnandpsunuminstances
+source:
+- bsps/shared/dev/nand/xnandpsu_bbm.c
+- bsps/shared/dev/nand/xnandpsu.c
+- bsps/shared/dev/nand/xnandpsu_g.c
+- bsps/shared/dev/nand/xnandpsu_onfi.c
+- bsps/shared/dev/nand/xnandpsu_sinit.c
+type: build
diff --git a/spec/build/bsps/optnandpsu0baseaddress.yml b/spec/build/bsps/optnandpsu0baseaddress.yml
new file mode 100644
index 0000000000..34668a39de
--- /dev/null
+++ b/spec/build/bsps/optnandpsu0baseaddress.yml
@@ -0,0 +1,18 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-integer: null
+- assert-uint32: null
+- env-assign: null
+- format-and-define: null
+build-type: option
+copyrights:
+- Copyright (C) 2022 On-Line Applications Research Corporation (OAR)
+default: 0xFF100000
+default-by-variant: []
+description: |
+ base address of NAND PSU 0
+enabled-by: true
+format: '{:#010x}'
+links: []
+name: XPAR_XNANDPSU_0_BASEADDR
+type: build \ No newline at end of file
diff --git a/spec/build/bsps/optnandpsunuminstances.yml b/spec/build/bsps/optnandpsunuminstances.yml
new file mode 100644
index 0000000000..4d8cfa6b05
--- /dev/null
+++ b/spec/build/bsps/optnandpsunuminstances.yml
@@ -0,0 +1,18 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-integer: null
+- assert-uint32: null
+- env-assign: null
+- format-and-define: null
+build-type: option
+copyrights:
+- Copyright (C) 2022 On-Line Applications Research Corporation (OAR)
+default: 1
+default-by-variant: []
+description: |
+ Number of nand instances
+enabled-by: true
+format: '{:#010x}'
+links: []
+name: XPAR_XNANDPSU_NUM_INSTANCES
+type: build \ No newline at end of file