[Skiboot] [PATCH 1/3] flash: Increase the maximum number of flash devices

Michael Neuling mikey at neuling.org
Mon Jul 4 17:46:40 AEST 2016


Increase the max number of flash devices from 1 to 8.

With mambo bogusdisk, we can have many flash devices.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 core/flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/flash.c b/core/flash.c
index da97309..5036707 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -33,7 +33,7 @@ struct flash {
 	uint32_t		block_size;
 };
 
-#define MAX_FLASH 1
+#define MAX_FLASH 8
 static struct flash flashes[MAX_FLASH];
 static struct flash *system_flash;
 
-- 
2.7.4



More information about the Skiboot mailing list