Hello, I have reduced the patchset size to focus on some improvements of the SMC (Flash) controller model only and will address the watchdog and network models in other patchset.
The main benefit of this series is to enable booting directly from a flash image containing U-Boot. It adds : - some minor fixes and code rearrangements - Command mode support. Flash contents is accessed directly on the AHB bus - auto strapping of configuration for boot flash - use CE0 as a boot ROM. Today, qemu can not boot from a MMIO region. As this is complex to do (TCG layer modification), we use a ROM region in which we copy the flash contents. Hopefully, I got it right this time. - dummy bytes support for Command mode only Still in the pipe for the SMC controller are : - DMA support - dummy bytes support in user mode (hacky) which I will send later. Thanks, C. Cédric Le Goater (11): aspeed/smc: remove call to reset in realize function aspeed/smc: remove call to aspeed_smc_update_cs() in reset function aspeed/smc: rework the prototype of the AspeedSMCFlash helper routines aspeed/smc: autostrap CE0/1 configuration aspeed/smc: unfold the AspeedSMCController array aspeed/smc: adjust the size of the register region aspeed/smc: handle SPI flash Command mode aspeed/smc: reset flash after each test aspeed/smc: extend tests for Command mode aspeed: use first SPI flash as a boot ROM aspeed/smc: handle dummy bytes when doing fast reads in command mode hw/arm/aspeed.c | 41 ++++++ hw/ssi/aspeed_smc.c | 352 +++++++++++++++++++++++++++++++++++--------- include/hw/ssi/aspeed_smc.h | 4 +- tests/m25p80-test.c | 133 +++++++++++++++++ 4 files changed, 456 insertions(+), 74 deletions(-) -- 2.7.4