[Qemu-devel] [Qemu-devel PATCH 0/5] Add support for Smartfusion2 SoC

Subbaraya Sundeep posted 5 patches 6 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1494348286-10253-1-git-send-email-sundeep.lkml@gmail.com
Test checkpatch passed
Test docker passed
Test s390x passed
There is a newer version of this series
default-configs/arm-softmmu.mak |   1 +
hw/arm/Makefile.objs            |   3 +-
hw/arm/msf2-soc.c               | 188 ++++++++++++++++++++
hw/arm/msf2-som.c               |  67 +++++++
hw/misc/Makefile.objs           |   1 +
hw/misc/msf2-sysreg.c           | 131 ++++++++++++++
hw/ssi/Makefile.objs            |   1 +
hw/ssi/msf2-spi.c               | 378 ++++++++++++++++++++++++++++++++++++++++
hw/timer/Makefile.objs          |   1 +
hw/timer/msf2-timer.c           | 252 +++++++++++++++++++++++++++
include/hw/arm/msf2-soc.h       |  60 +++++++
include/hw/misc/msf2-sysreg.h   |  80 +++++++++
include/hw/ssi/msf2-spi.h       | 105 +++++++++++
include/hw/timer/msf2-timer.h   |  85 +++++++++
14 files changed, 1352 insertions(+), 1 deletion(-)
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/msf2-spi.c
create mode 100644 hw/timer/msf2-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/msf2-spi.h
create mode 100644 include/hw/timer/msf2-timer.h
[Qemu-devel] [Qemu-devel PATCH 0/5] Add support for Smartfusion2 SoC
Posted by Subbaraya Sundeep 6 years, 11 months ago
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

U-boot is from Emcraft with modified SPI driver not to use PDMA.
Linux is 4.5 linux with Smartfusion2 SoC dts and clocksource 
driver added by myself @
https://github.com/Subbaraya-Sundeep/linux.git

Baremetal elfs from Microsemi Softconsole IDE are also working.

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            |   3 +-
 hw/arm/msf2-soc.c               | 188 ++++++++++++++++++++
 hw/arm/msf2-som.c               |  67 +++++++
 hw/misc/Makefile.objs           |   1 +
 hw/misc/msf2-sysreg.c           | 131 ++++++++++++++
 hw/ssi/Makefile.objs            |   1 +
 hw/ssi/msf2-spi.c               | 378 ++++++++++++++++++++++++++++++++++++++++
 hw/timer/Makefile.objs          |   1 +
 hw/timer/msf2-timer.c           | 252 +++++++++++++++++++++++++++
 include/hw/arm/msf2-soc.h       |  60 +++++++
 include/hw/misc/msf2-sysreg.h   |  80 +++++++++
 include/hw/ssi/msf2-spi.h       | 105 +++++++++++
 include/hw/timer/msf2-timer.h   |  85 +++++++++
 14 files changed, 1352 insertions(+), 1 deletion(-)
 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/msf2-spi.c
 create mode 100644 hw/timer/msf2-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/msf2-spi.h
 create mode 100644 include/hw/timer/msf2-timer.h

-- 
2.5.0


Re: [Qemu-devel] [Qemu-arm] [Qemu-devel PATCH 0/5] Add support for Smartfusion2 SoC
Posted by Philippe Mathieu-Daudé 6 years, 11 months ago
Hi Subbaraya,

This is your v4 of this patch set, please don't forget to include the 
version in your next set.

Please also include changes between versions in your cover letter, it 
eases the review.

On 05/09/2017 01:44 PM, Subbaraya Sundeep wrote:
> 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
>
> U-boot is from Emcraft with modified SPI driver not to use PDMA.
> Linux is 4.5 linux with Smartfusion2 SoC dts and clocksource
> driver added by myself @
> https://github.com/Subbaraya-Sundeep/linux.git
>
> Baremetal elfs from Microsemi Softconsole IDE are also working.
>
> 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            |   3 +-
>  hw/arm/msf2-soc.c               | 188 ++++++++++++++++++++
>  hw/arm/msf2-som.c               |  67 +++++++
>  hw/misc/Makefile.objs           |   1 +
>  hw/misc/msf2-sysreg.c           | 131 ++++++++++++++
>  hw/ssi/Makefile.objs            |   1 +
>  hw/ssi/msf2-spi.c               | 378 ++++++++++++++++++++++++++++++++++++++++
>  hw/timer/Makefile.objs          |   1 +
>  hw/timer/msf2-timer.c           | 252 +++++++++++++++++++++++++++
>  include/hw/arm/msf2-soc.h       |  60 +++++++
>  include/hw/misc/msf2-sysreg.h   |  80 +++++++++
>  include/hw/ssi/msf2-spi.h       | 105 +++++++++++
>  include/hw/timer/msf2-timer.h   |  85 +++++++++
>  14 files changed, 1352 insertions(+), 1 deletion(-)
>  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/msf2-spi.c
>  create mode 100644 hw/timer/msf2-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/msf2-spi.h
>  create mode 100644 include/hw/timer/msf2-timer.h
>

Re: [Qemu-devel] [Qemu-arm] [Qemu-devel PATCH 0/5] Add support for Smartfusion2 SoC
Posted by sundeep subbaraya 6 years, 11 months ago
Hi Philippe,


On Wed, May 10, 2017 at 3:14 PM, Philippe Mathieu-Daudé <f4bug@amsat.org>
wrote:

> Hi Subbaraya,
>
> This is your v4 of this patch set, please don't forget to include the
> version in your next set.
>
> Please also include changes between versions in your cover letter, it
> eases the review.


Sure. Sorry since this is not RFC i did not include versions. I will add
versions from next iteration.

Thanks,
Sundeep

>
>
> On 05/09/2017 01:44 PM, Subbaraya Sundeep wrote:
>
>> 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
>>
>> U-boot is from Emcraft with modified SPI driver not to use PDMA.
>> Linux is 4.5 linux with Smartfusion2 SoC dts and clocksource
>> driver added by myself @
>> https://github.com/Subbaraya-Sundeep/linux.git
>>
>> Baremetal elfs from Microsemi Softconsole IDE are also working.
>>
>> 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            |   3 +-
>>  hw/arm/msf2-soc.c               | 188 ++++++++++++++++++++
>>  hw/arm/msf2-som.c               |  67 +++++++
>>  hw/misc/Makefile.objs           |   1 +
>>  hw/misc/msf2-sysreg.c           | 131 ++++++++++++++
>>  hw/ssi/Makefile.objs            |   1 +
>>  hw/ssi/msf2-spi.c               | 378 ++++++++++++++++++++++++++++++
>> ++++++++++
>>  hw/timer/Makefile.objs          |   1 +
>>  hw/timer/msf2-timer.c           | 252 +++++++++++++++++++++++++++
>>  include/hw/arm/msf2-soc.h       |  60 +++++++
>>  include/hw/misc/msf2-sysreg.h   |  80 +++++++++
>>  include/hw/ssi/msf2-spi.h       | 105 +++++++++++
>>  include/hw/timer/msf2-timer.h   |  85 +++++++++
>>  14 files changed, 1352 insertions(+), 1 deletion(-)
>>  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/msf2-spi.c
>>  create mode 100644 hw/timer/msf2-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/msf2-spi.h
>>  create mode 100644 include/hw/timer/msf2-timer.h
>>
>>