Skip to contentSkip to conversation

msf2: Add Smartfusion2 System timer

RFC Superseded Subbaraya Sundeep 1 participant 3 messages Mar 19, 2017

v1 of 10 Superseded Latest is v10 →

lore
Share & tools
lore
#0 lore raw

RFC 1/3 msf2: Add Smartfusion2 System timer

Modelled System Timer in Microsemi's Smartfusion2 Soc. Timer has two 32bit down counters and two interrupts.

---
 hw/timer/Makefile.objs |   1 +
 hw/timer/msf2_timer.c  | 273 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 274 insertions(+)
 create mode 100644 hw/timer/msf2_timer.c
hw/timer/Makefile.objs +1 -0
index dd6f27e..0bdf1e1 100644
@@ -41,3 +41,4 @@ common-obj-$(CONFIG_STM32F2XX_TIMER) += stm32f2xx_timer.o
 common-obj-$(CONFIG_ASPEED_SOC) += aspeed_timer.o
 
 common-obj-$(CONFIG_SUN4V_RTC) += sun4v-rtc.o
+common-obj-$(CONFIG_MSF2) += msf2_timer.o
hw/timer/msf2_timer.c new file +273 -0

273 lines not on this page · raw message

Signature · 1 line
2.5.0
#1 lore raw

RFC 2/3 msf2: Microsemi Smartfusion2 System Register block.

Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.

---
 hw/misc/Makefile.objs |   1 +
 hw/misc/msf2_sysreg.c | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 169 insertions(+)
 create mode 100644 hw/misc/msf2_sysreg.c
hw/misc/Makefile.objs +1 -0
index c8b4893..aee53df 100644
@@ -56,3 +56,4 @@ obj-$(CONFIG_EDU) += edu.o
 obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.o
 obj-$(CONFIG_AUX) += auxbus.o
 obj-$(CONFIG_ASPEED_SOC) += aspeed_scu.o aspeed_sdmc.o
+obj-$(CONFIG_MSF2) += msf2_sysreg.o
hw/misc/msf2_sysreg.c new file +168 -0

168 lines not on this page · raw message

Signature · 1 line
2.5.0
#2 lore raw

RFC 3/3 msf2: Add Emcraft's Smartfusion2 SOM kit.

In reply to Subbaraya Sundeep

Emulated Emcraft's Smartfusion2 System On Module starter kit.

---
 default-configs/arm-softmmu.mak |   1 +
 hw/arm/Makefile.objs            |   2 +-
 hw/arm/msf2_soc.c               | 122 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 124 insertions(+), 1 deletion(-)
 create mode 100644 hw/arm/msf2_soc.c
default-configs/arm-softmmu.mak +1 -0
index 1e3bd2b..379f7e1 100644
@@ -121,3 +121,4 @@ CONFIG_ACPI=y
 CONFIG_SMBIOS=y
 CONFIG_ASPEED_SOC=y
 CONFIG_GPIO_KEY=y
+CONFIG_MSF2=y
hw/arm/Makefile.objs +1 -1
index 4c5c4ee..cce2759 100644
@@ -1,7 +1,7 @@
 obj-y += boot.o collie.o exynos4_boards.o gumstix.o highbank.o
 obj-$(CONFIG_DIGIC) += digic_boards.o
 obj-y += integratorcp.o mainstone.o musicpal.o nseries.o
-obj-y += omap_sx1.o palm.o realview.o spitz.o stellaris.o
+obj-y += omap_sx1.o palm.o realview.o spitz.o stellaris.o msf2_soc.o
 obj-y += tosa.o versatilepb.o vexpress.o virt.o xilinx_zynq.o z2.o
 obj-$(CONFIG_ACPI) += virt-acpi-build.o
 obj-y += netduino2.o
hw/arm/msf2_soc.c new file +122 -0

122 lines not on this page · raw message

Signature · 1 line
2.5.0