aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/stm32l4x5_rcc.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-25 23:21:17 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-31 21:32:43 +0200
commit490aaae935b6461cfe30660e819317521b255321 (patch)
tree8da49f29f952a9aa5bd91af032ded44959cf28c1 /hw/misc/stm32l4x5_rcc.c
parent2542d5cf471a38c4ceb9717708178938b96ded47 (diff)
downloadqemu-490aaae935b6461cfe30660e819317521b255321.zip
qemu-490aaae935b6461cfe30660e819317521b255321.tar.gz
qemu-490aaae935b6461cfe30660e819317521b255321.tar.bz2
hw/misc/pll: Do not expose as user-creatable
All these devices are part of SoC components and can not be created manually. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20250325224310.8785-9-philmd@linaro.org>
Diffstat (limited to 'hw/misc/stm32l4x5_rcc.c')
-rw-r--r--hw/misc/stm32l4x5_rcc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/misc/stm32l4x5_rcc.c b/hw/misc/stm32l4x5_rcc.c
index fd8466d..158b743 100644
--- a/hw/misc/stm32l4x5_rcc.c
+++ b/hw/misc/stm32l4x5_rcc.c
@@ -150,6 +150,8 @@ static void clock_mux_class_init(ObjectClass *klass, void *data)
rc->phases.hold = clock_mux_reset_hold;
rc->phases.exit = clock_mux_reset_exit;
dc->vmsd = &clock_mux_vmstate;
+ /* Reason: Part of Stm32l4x5RccState component */
+ dc->user_creatable = false;
}
static void clock_mux_set_enable(RccClockMuxState *mux, bool enabled)
@@ -302,6 +304,8 @@ static void pll_class_init(ObjectClass *klass, void *data)
rc->phases.hold = pll_reset_hold;
rc->phases.exit = pll_reset_exit;
dc->vmsd = &pll_vmstate;
+ /* Reason: Part of Stm32l4x5RccState component */
+ dc->user_creatable = false;
}
static void pll_set_vco_multiplier(RccPllState *pll, uint32_t vco_multiplier)