summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2023-03-08 13:01:21 -0600
committerJoel Sherrill <joel@rtems.org>2023-03-15 13:29:12 -0500
commit10ff982834580001a15dfd404401381dbbe39075 (patch)
tree4226753a1e4df546c4c1f4f2f1774be7ddc8d89a /bsps
parentsparc: Add header files to Doxygen group (diff)
downloadrtems-10ff982834580001a15dfd404401381dbbe39075.tar.bz2
bsps/xnandpsu: Allow use of both chip selects
By default, the Xilinx NAND driver does not probe the second chip select. This alteration allows the second half of chips to be detected when present.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/include/dev/nand/xnandpsu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsps/include/dev/nand/xnandpsu.h b/bsps/include/dev/nand/xnandpsu.h
index a93a74eb85..85343f4b96 100644
--- a/bsps/include/dev/nand/xnandpsu.h
+++ b/bsps/include/dev/nand/xnandpsu.h
@@ -181,7 +181,11 @@ extern "C" {
#define XNANDPSU_DEBUG
+#ifdef __rtems__
+#define XNANDPSU_MAX_TARGETS 2U /**< ce_n0, ce_n1 */
+#else
#define XNANDPSU_MAX_TARGETS 1U /**< ce_n0, ce_n1 */
+#endif
#define XNANDPSU_MAX_PKT_SIZE 0x7FFU /**< Max packet size */
#define XNANDPSU_MAX_PKT_COUNT 0xFFFU /**< Max packet count */