aspeed: Rework aspeed_board_init_flashes() interface
commit9bd4ac61c7e7e5cc84d1d6fd1f70cc88b0ac95f7
authorCédric Le Goater <clg@kaod.org>
Tue, 8 Mar 2022 08:18:11 +0000 (8 09:18 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 8 Mar 2022 08:18:11 +0000 (8 09:18 +0100)
tree12b3bebdd7a29c5b5e01efcb60bc102ce2a7403c
parentdcacfa945103d179e71bb1c853f2a13aca5ca4b0
aspeed: Rework aspeed_board_init_flashes() interface

Currently, the allocation of the flash devices uses the number of
slave selects configured in the SoC realize routine. It is simpler to
use directly the number of FMC devices defined in the machine class
and 1 for spi devices (which is what the SoC does in the back of the
machine).

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20220307071856.1410731-3-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/aspeed.c