summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2014-06-04 14:22:00 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2014-06-26 10:22:33 +0200
commit4cee4915dbc3a76bd6c354f17c98cf22be3802c8 (patch)
tree14639d8c9d6a4537e1e3c23f5d7b02c96dbaaa35
parent6d977b89f35957e08ecac4cebac4bb83073c8082 (diff)
LEON3: devfs free nodes must be sized
.. according to the maximum number of termios ports which is 8. Since LEON3 uses PnP to find how many UARTs there are present we must make sure worst case work. The current maximum of 4 free nodes caused for example the GR712RC with its 6 UARTs to fail during devfs02 test.
-rw-r--r--c/src/lib/libbsp/sparc/leon3/include/bsp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h
index 1be6cc2088..cb15796499 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/bsp.h
@@ -62,6 +62,9 @@ void *bsp_idle_thread( uintptr_t ignored );
/* Maximum supported APBUARTs by BSP */
#define BSP_NUMBER_OF_TERMIOS_PORTS 8
+/* Make sure maximum number of consoles fit in filesystem */
+#define BSP_MAXIMUM_DEVICES 8
+
/*
* Network driver configuration
*/