hw/misc: Store DRAM size in NPCM8XX GCR Module
authorHao Wu <wuhaotsh@google.com>
Wed, 19 Feb 2025 18:45:59 +0000 (10:45 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2025 15:22:21 +0000 (15:22 +0000)
commit0ad46bbb56585fc3900f803747c485529869ca22
tree893cfe24f70984f890084a6c7b4fd8c87f373037
parentd9ffb75f2a85a2271dc928849f02f7bada4d1507
hw/misc: Store DRAM size in NPCM8XX GCR Module

NPCM8XX boot block stores the DRAM size in SCRPAD_B register in GCR
module. Since we don't simulate a detailed memory controller, we
need to store this information directly similar to the NPCM7XX's
INCTR3 register.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20250219184609.1839281-9-wuhaotsh@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/npcm_gcr.c
include/hw/misc/npcm_gcr.h