All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Qemu devel v5 PATCH 0/5] Add support for Smartfusion2 SoC
@ 2017-05-16 15:38 Subbaraya Sundeep
  2017-05-16 15:38 ` [Qemu-devel] [Qemu devel v5 PATCH 1/5] msf2: Add Smartfusion2 System timer Subbaraya Sundeep
                   ` (5 more replies)
  0 siblings, 6 replies; 35+ messages in thread
From: Subbaraya Sundeep @ 2017-05-16 15:38 UTC (permalink / raw)
  To: qemu-devel, qemu-arm
  Cc: peter.maydell, crosthwaite.peter, alistair23, f4bug, Subbaraya Sundeep

Hi Qemu-devel,

I am trying to add Smartfusion2 SoC.
SoC is from Microsemi and System on Module(SOM)
board is from Emcraft systems. Smartfusion2 has hardened
Microcontroller(Cortex-M3)based Sub System and FPGA fabric.
At the moment only system timer, sysreg and SPI
controller are modelled.

Testing:
./arm-softmmu/qemu-system-arm -M smartfusion2-som -serial mon:stdio \
-kernel u-boot.bin -display none -drive file=spi.bin,if=mtd,format=raw

Binaries u-boot.bin and spi.bin are at:
https://github.com/Subbaraya-Sundeep/qemu-test-binaries.git

U-boot is from Emcraft with modified
    - SPI driver not to use PDMA.
    - ugly hack to pass dtb to kernel in r1.
@
https://github.com/Subbaraya-Sundeep/emcraft-uboot-sf2.git

Linux is 4.5 linux with Smartfusion2 SoC dts and clocksource
driver added by myself @
https://github.com/Subbaraya-Sundeep/linux.git

v5
    As per Philippe comments:
        Added abort in Sysreg if guest tries to remap memory
        other than default mapping.
        Use of CONFIG_MSF2 in Makefile for soc.c
        Fixed incorrect logic in timer model.
        Renamed msf2-timer.c -> mss-timer.c
                msf2-spi.c -> mss-spi.c also type names
        Renamed function msf2_init->emcraft_sf2_init in msf2-som.c
        Added part-name,eNVM-size,eSRAM-size,pclk0 and pclk1
            properties to soc.
        Pass soc part-name,memory size and clock rate properties from som.
v4:
    Fixed build failure by using PRIx macros.
v3:
    Added SoC file and board file as per Alistair comments.
v2:
    Added SPI controller so that u-boot loads kernel from spi flash.
v1:
    Initial patch set with timer and sysreg

Thanks,
Sundeep

Subbaraya Sundeep (5):
  msf2: Add Smartfusion2 System timer
  msf2: Microsemi Smartfusion2 System Register block.
  msf2: Add Smartfusion2 SPI controller
  msf2: Add Smartfusion2 SoC.
  msf2: Add Emcraft's Smartfusion2 SOM kit.

 default-configs/arm-softmmu.mak |   1 +
 hw/arm/Makefile.objs            |   2 +
 hw/arm/msf2-soc.c               | 201 +++++++++++++++++++++
 hw/arm/msf2-som.c               |  89 ++++++++++
 hw/misc/Makefile.objs           |   1 +
 hw/misc/msf2-sysreg.c           | 161 +++++++++++++++++
 hw/ssi/Makefile.objs            |   1 +
 hw/ssi/mss-spi.c                | 378 ++++++++++++++++++++++++++++++++++++++++
 hw/timer/Makefile.objs          |   1 +
 hw/timer/mss-timer.c            | 249 ++++++++++++++++++++++++++
 include/hw/arm/msf2-soc.h       |  69 ++++++++
 include/hw/misc/msf2-sysreg.h   |  80 +++++++++
 include/hw/ssi/mss-spi.h        | 104 +++++++++++
 include/hw/timer/mss-timer.h    |  80 +++++++++
 14 files changed, 1417 insertions(+)
 create mode 100644 hw/arm/msf2-soc.c
 create mode 100644 hw/arm/msf2-som.c
 create mode 100644 hw/misc/msf2-sysreg.c
 create mode 100644 hw/ssi/mss-spi.c
 create mode 100644 hw/timer/mss-timer.c
 create mode 100644 include/hw/arm/msf2-soc.h
 create mode 100644 include/hw/misc/msf2-sysreg.h
 create mode 100644 include/hw/ssi/mss-spi.h
 create mode 100644 include/hw/timer/mss-timer.h

-- 
2.5.0

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

end of thread, other threads:[~2017-07-03  4:46 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16 15:38 [Qemu-devel] [Qemu devel v5 PATCH 0/5] Add support for Smartfusion2 SoC Subbaraya Sundeep
2017-05-16 15:38 ` [Qemu-devel] [Qemu devel v5 PATCH 1/5] msf2: Add Smartfusion2 System timer Subbaraya Sundeep
2017-05-30 12:43   ` Philippe Mathieu-Daudé
2017-06-24 12:25     ` sundeep subbaraya
2017-05-16 15:38 ` [Qemu-devel] [Qemu devel v5 PATCH 2/5] msf2: Microsemi Smartfusion2 System Register block Subbaraya Sundeep
2017-05-30 12:51   ` Philippe Mathieu-Daudé
2017-06-24 12:48     ` sundeep subbaraya
2017-05-16 15:38 ` [Qemu-devel] [Qemu devel v5 PATCH 3/5] msf2: Add Smartfusion2 SPI controller Subbaraya Sundeep
2017-05-30 13:15   ` Philippe Mathieu-Daudé
2017-06-24  7:42     ` sundeep subbaraya
2017-05-16 15:38 ` [Qemu-devel] [Qemu devel v5 PATCH 4/5] msf2: Add Smartfusion2 SoC Subbaraya Sundeep
2017-05-26 23:48   ` Alistair Francis
2017-05-29  5:17     ` sundeep subbaraya
2017-05-30 22:33       ` Alistair Francis
2017-06-06  7:33         ` sundeep subbaraya
2017-05-31  5:43   ` Philippe Mathieu-Daudé
2017-06-06  7:35     ` sundeep subbaraya
2017-05-16 15:38 ` [Qemu-devel] [Qemu devel v5 PATCH 5/5] msf2: Add Emcraft's Smartfusion2 SOM kit Subbaraya Sundeep
2017-05-27  0:00   ` Alistair Francis
2017-05-29  5:26     ` sundeep subbaraya
2017-05-30 22:32       ` Alistair Francis
2017-06-26 16:01         ` sundeep subbaraya
2017-06-26 22:49           ` Alistair Francis
2017-06-28  6:04             ` sundeep subbaraya
2017-05-31  6:04   ` Philippe Mathieu-Daudé
2017-06-06  7:31     ` sundeep subbaraya
2017-05-17  4:27 ` [Qemu-devel] [Qemu devel v5 PATCH 0/5] Add support for Smartfusion2 SoC Philippe Mathieu-Daudé
2017-05-17  9:39   ` sundeep subbaraya
2017-05-29  5:28     ` sundeep subbaraya
2017-05-31  5:36       ` Philippe Mathieu-Daudé
2017-06-09  7:21         ` sundeep subbaraya
2017-06-26 16:11           ` sundeep subbaraya
2017-07-02 17:39             ` sundeep subbaraya
2017-07-02 21:00               ` Peter Maydell
2017-07-03  4:46                 ` sundeep subbaraya

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.