hw/misc: Add nr_regs and cold_reset_values to NPCM CLK
authorHao Wu <wuhaotsh@google.com>
Wed, 19 Feb 2025 18:46:03 +0000 (10:46 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2025 15:22:22 +0000 (15:22 +0000)
commitcf76c4e174e128397763c4ec98b0aa3345bab3be
treea6073dafff9d11b629e6cba1fc6a2de8989a6fef
parentca6d6a94f450f5fba92626704a5758cf4bb4a210
hw/misc: Add nr_regs and cold_reset_values to NPCM CLK

These 2 values are different between NPCM7XX and NPCM8XX
CLKs. So we add them to the class and assign different values
to them.

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