aspeed: Support create flash devices via command line for AST1030
authorJamin Lin <jamin_lin@aspeedtech.com>
Tue, 29 Oct 2024 09:17:29 +0000 (17:17 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 4 Nov 2024 10:33:13 +0000 (11:33 +0100)
commit22b3c557ffd4fb9c6c034a839b3e5b82d131123a
tree4c4ab2bf0f4715d9d3beed07fde60ef9d29a87d5
parent53b316926969d55646b5d6dd8f49e74e440a44f1
aspeed: Support create flash devices via command line for AST1030

Add a "if-statement" in aspeed_minibmc_machine_init function. If users add
"-nodefaults" in command line, the flash devices should be created by users
setting. Otherwise, the flash devices are created at machine init.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
hw/arm/aspeed.c