aspeed: Create flash devices only when defaults are enabled
commitc7e313ae510ed037ca68a2861ab870de8042a779
authorCédric Le Goater <clg@kaod.org>
Wed, 7 Jun 2023 04:39:39 +0000 (7 06:39 +0200)
committerCédric Le Goater <clg@kaod.org>
Fri, 1 Sep 2023 09:40:04 +0000 (1 11:40 +0200)
tree62df392583d888cc2c87c3962258471c85bbba62
parenta617e65f43788e08dd390aa41798b0e57b936c6d
aspeed: Create flash devices only when defaults are enabled

When the -nodefaults option is set, flash devices should be created
with :

    -blockdev node-name=fmc0,driver=file,filename=./flash.img \
    -device mx66u51235f,cs=0x0,bus=ssi.0,drive=fmc0 \

To be noted that in this case, the ROM will not be installed and the
initial boot sequence (U-Boot loading) will fetch instructions using
SPI transactions which is significantly slower. That's exactly how HW
operates though.

Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
docs/system/arm/aspeed.rst
hw/arm/aspeed.c