All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/7] ast2400: U-boot support
@ 2016-07-04 12:18 Cédric Le Goater
  2016-07-04 12:18 ` [Qemu-devel] [PATCH 1/7] tests: add a m25p80 test Cédric Le Goater
                   ` (6 more replies)
  0 siblings, 7 replies; 37+ messages in thread
From: Cédric Le Goater @ 2016-07-04 12:18 UTC (permalink / raw)
  To: Peter Maydell, Peter Crosthwaite
  Cc: qemu-devel, qemu-arm, Andrew Jeffery, mar.krzeminski,
	Cédric Le Goater

Hello,

Here is a serie adding the changes requires to boot a ast2400 guest
directly from a flash image. These images generally start with the
U-boot bootloader.

U-boot on the Aspeed SOCs makes use of the SPI controller in the
Command mode. In this mode, the flash content is mapped to a memory
region and accesses are treated like mmios. The proposal below adds a
routine which permits us to share the memory storage between the flash
object and the SPI controller handling the MMIOs. This is very close
to the approach taken by the pflash_cfi object.


The patchset starts with a test case for the m25p80 which now supports
BE host, followed with an addon for the mx25l25635f flash modules.
These modules are common in the OpenPower ecosystem. Then come the
changes to support the SPI controller Command mode and the mapping of
the first BMC flash at 0x0. Last, is initial support for the memory
controller which is used in some occasion to retrieve the size of the
RAM.

Thanks,

C.

Cédric Le Goater (7):
  tests: add a m25p80 test
  m25p80: add mx25l25635f chip
  ast2400: use a mx25l25635f chip
  m25p80: add a m25p80_set_rom_storage() routine
  ast2400: handle SPI flash Command mode (read only)
  ast2400: use contents of first SPI flash as a rom
  ast2400: add a memory controller device model

 hw/arm/ast2400.c              |  13 +++
 hw/arm/palmetto-bmc.c         |  22 +++-
 hw/block/m25p80.c             |  18 ++-
 hw/misc/Makefile.objs         |   2 +-
 hw/misc/aspeed_sdmc.c         | 126 +++++++++++++++++++++
 hw/ssi/aspeed_smc.c           |  60 +++++++++-
 include/hw/arm/ast2400.h      |   1 +
 include/hw/block/flash.h      |   2 +
 include/hw/misc/aspeed_sdmc.h |  49 ++++++++
 include/hw/ssi/aspeed_smc.h   |   1 +
 tests/Makefile.include        |   2 +
 tests/m25p80-test.c           | 256 ++++++++++++++++++++++++++++++++++++++++++
 12 files changed, 544 insertions(+), 8 deletions(-)
 create mode 100644 hw/misc/aspeed_sdmc.c
 create mode 100644 include/hw/misc/aspeed_sdmc.h
 create mode 100644 tests/m25p80-test.c

-- 
2.1.4

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2016-09-26 21:26 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-04 12:18 [Qemu-devel] [PATCH 0/7] ast2400: U-boot support Cédric Le Goater
2016-07-04 12:18 ` [Qemu-devel] [PATCH 1/7] tests: add a m25p80 test Cédric Le Goater
2016-07-04 12:24   ` Peter Maydell
2016-07-04 12:39     ` Cédric Le Goater
2016-07-04 12:51       ` Peter Maydell
2016-07-04 13:08         ` Cédric Le Goater
2016-07-04 12:18 ` [Qemu-devel] [PATCH 2/7] m25p80: add mx25l25635f chip Cédric Le Goater
2016-07-04 12:57   ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-07-04 13:41     ` Cédric Le Goater
2016-07-04 15:23       ` [Qemu-devel] Odp.: " Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-07-04 15:48         ` Cédric Le Goater
2016-07-04 16:03           ` [Qemu-devel] Odp.: " Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-07-04 16:18             ` Cédric Le Goater
2016-07-04 12:18 ` [Qemu-devel] [PATCH 3/7] ast2400: use a " Cédric Le Goater
2016-07-04 12:18 ` [Qemu-devel] [PATCH 4/7] m25p80: add a m25p80_set_rom_storage() routine Cédric Le Goater
2016-07-04 17:57   ` mar.krzeminski
2016-07-04 18:12     ` Cédric Le Goater
2016-07-04 18:42       ` mar.krzeminski
2016-07-06 16:30       ` Cédric Le Goater
2016-07-06 17:44         ` mar.krzeminski
2016-07-09 23:38     ` Peter Crosthwaite
2016-07-11 16:37       ` Cédric Le Goater
2016-09-23  7:19     ` Cédric Le Goater
2016-09-23  8:17       ` Peter Maydell
2016-09-23  8:28         ` Cédric Le Goater
2016-09-23 18:26           ` mar.krzeminski
2016-09-24  8:25             ` Cédric Le Goater
2016-09-24  8:55               ` [Qemu-devel] [Qemu-arm] " Edgar E. Iglesias
2016-09-26  8:25                 ` KONRAD Frederic
2016-09-26  8:56                   ` Cédric Le Goater
2016-09-26 21:25                     ` mar.krzeminski
2016-07-04 12:18 ` [Qemu-devel] [PATCH 5/7] ast2400: handle SPI flash Command mode (read only) Cédric Le Goater
2016-07-04 12:18 ` [Qemu-devel] [PATCH 6/7] ast2400: use contents of first SPI flash as a rom Cédric Le Goater
2016-07-04 14:58   ` Cédric Le Goater
2016-07-04 12:18 ` [Qemu-devel] [PATCH 7/7] ast2400: add a memory controller device model Cédric Le Goater
2016-07-06  4:34   ` Andrew Jeffery
2016-07-06  6:51     ` Cédric Le Goater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.