[PATCH qemu v2 00/10] ast2400: Add SMC Support

Cédric Le Goater clg at kaod.org
Tue Jun 14 03:16:26 AEST 2016


This is a follow up of the initial serie :

     https://lists.ozlabs.org/pipermail/openbmc/2016-May/003316.html

with only the SMC device model. All issues reported by Andrew should
have been addressed :

 - better checks on register usage

 - use of different qemu classes to initialize the controllers

 - use of a rom memory region for the flash device, to be able to boot
   from 0x0. The interesting part is that qemu is now catching the
   relocation of vectors done by u-boot as if they were writes to the
   flash module. To be investigated.

I should be sending this serie on qemu-devel@ soon but there has been
a large rework of the block devices in the current qemu tree which is
breaking the flash devices. This has to be untangled first.

Thanks,

Cédric Le Goater (10):
  ast2400: add SMC controllers (FMC and SPI)
  ast2400: add SPI flash slave object
  ast2400: create SPI flash slaves
  m25p80: provide a realize to support late inits.
  m25p80: add a m25p80_create_rom() routine
  ast2400: handle SPI flash Command mode (read only)
  ast2400: use contents of first SPI flash as a rom
  m25p80: add RDCR instruction for Macronix chip
  m25p80: add mx25l25635f chip
  ast2400: use a mx25l25635f chip

 hw/arm/ast2400.c            |  31 +++
 hw/arm/palmetto-bmc.c       |  20 ++
 hw/block/m25p80.c           |  60 +++++-
 hw/ssi/Makefile.objs        |   1 +
 hw/ssi/aspeed_smc.c         | 504 ++++++++++++++++++++++++++++++++++++++++++++
 include/hw/arm/ast2400.h    |   3 +
 include/hw/block/flash.h    |   3 +
 include/hw/ssi/aspeed_smc.h | 106 ++++++++++
 8 files changed, 720 insertions(+), 8 deletions(-)
 create mode 100644 hw/ssi/aspeed_smc.c
 create mode 100644 include/hw/ssi/aspeed_smc.h

-- 
2.1.4



More information about the openbmc mailing list