summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorHao Wu <wuhaotsh@google.com>2025-02-19 10:45:54 -0800
committerPeter Maydell <peter.maydell@linaro.org>2025-02-20 14:20:29 +0000
commite9be8467b42f7e2af70694422f4b4d8afe82bf4e (patch)
tree8b968e869ac09ec41ba5c81ff86e74f129748230 /include
parent269b7effd906d6b22071971b7f5b4cb344403b86 (diff)
downloadfocaccia-qemu-e9be8467b42f7e2af70694422f4b4d8afe82bf4e.tar.gz
focaccia-qemu-e9be8467b42f7e2af70694422f4b4d8afe82bf4e.zip
hw/ssi: Make flash size a property in NPCM7XX FIU
This allows different FIUs to have different flash sizes, useful
in NPCM8XX which has multiple different sized FIU modules.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@linaro.org>
Message-id: 20250219184609.1839281-4-wuhaotsh@google.com
[PMM: flash_size must be a uint64_t to build on 32-bit hosts]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ssi/npcm7xx_fiu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ssi/npcm7xx_fiu.h b/include/hw/ssi/npcm7xx_fiu.h
index a3a1704289..7ebd422ca6 100644
--- a/include/hw/ssi/npcm7xx_fiu.h
+++ b/include/hw/ssi/npcm7xx_fiu.h
@@ -60,6 +60,7 @@ struct NPCM7xxFIUState {
     int32_t cs_count;
     int32_t active_cs;
     qemu_irq *cs_lines;
+    uint64_t flash_size;
     NPCM7xxFIUFlash *flash;
 
     SSIBus *spi;