Modelled Ethernet MAC of Smartfusion2 SoC.
Micrel KSZ8051 PHY is present on Emcraft's SOM kit hence same
PHY is emulated.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/msf2-soc.c | 21 +-
hw/net/Makefile.objs | 1 +
hw/net/mss-emac.c
Modelled Ethernet MAC of Smartfusion2 SoC.
Micrel KSZ8051 PHY is present on Emcraft's SOM kit hence same
PHY is emulated.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/msf2-soc.c | 21 +-
hw/net/Makefile.objs | 1 +
hw/net/mss-emac.c
Voluntarily add myself as maintainer for Smartfusion2
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
Reviewed-by: Philippe Mathieu-Daudé
---
v2:
reframed commit message as per Alistair's comment.
Renamed MSF2 SoC -> SmartFusion2
add voluntarily myself as maintainer for Smartfusion2
Signed-off-by: Subbaraya Sundeep
---
MAINTAINERS | 17 +
1 file changed, 17 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 0cd4d02..dae08bd 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -564,6 +564,23 @@ M
Implemented system reset by creating SYSRESETREQ gpio
out from nvic.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/msf2-soc.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/hw/arm/msf2-soc.c b/hw/arm/msf2-soc.c
index 6f97fa9..a8ec2cd 100644
--- a/hw/arm/msf2-soc.c
+++ b/hw/arm
Fixed incorrect frame size mask, validated maximum frame
size in spi_write and removed dead code.
Signed-off-by: Subbaraya Sundeep
---
v4:
changed %d to %u while logging frame size error.
v3:
Added comment that [31:6] bits are reserved in R_SPI_DFSIZE
register and logged
Fixed incorrect frame size mask, validated maximum frame
size in spi_write and removed dead code.
Signed-off-by: Subbaraya Sundeep
---
v3:
Added comment that [31:6] bits are reserved in R_SPI_DFSIZE
register and logged incorrect value too in guest error(suggested
by Darren
Fixed incorrect frame size mask, validated maximum frame
size in spi_write and removed dead code.
Signed-off-by: Subbaraya Sundeep
---
v2:
else if -> else in set_fifodepth
log guest error when frame size is more than 32
hw/ssi/mss-spi.c | 12
1 file changed
Fixed incorrect frame size mask, validated maximum frame
size in spi_write and removed dead code.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/mss-spi.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/hw/ssi/mss-spi.c b/hw/ssi/mss-spi.c
index 5a8e308..1e49cbc 100644
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Philippe Mathieu-Daudé
Tested-by: Philippe Mathieu-Daudé
---
hw/arm/Makefile.objs | 2 +-
hw/arm/msf2-som.c| 94
2
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
Tested-by: Philippe Mathieu-Daudé
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/mss-spi.c | 404 +++
include/hw/ssi/mss-
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
Acked-by: Philippe Mathieu-Daudé
Tested-by: Philippe Mathieu-Daudé
---
hw/timer/Makefile.objs | 1 +
hw/
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
Reviewed-by: Philippe Mathieu-Daudé
Tested-by: Philippe Mathieu-Daudé
.
Testing:
./arm-softmmu/qemu-system-arm -M emcraft-sf2 -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
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
Acked-by: Philippe Mathieu-Daudé
Tested-by: Philippe Mathieu-Daudé
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/mss-spi.c | 404 +++
include/hw/ssi/mss-spi.h | 58 +++
3 files changed
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
hw/timer/Makefile.objs | 1 +
hw/timer/mss-timer.c
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Philippe Mathieu-Daudé
---
hw/arm/Makefile.objs | 2 +-
hw/arm/msf2-som.c| 94
2 files changed, 95 insertions(+), 1 del
-by: Philippe Mathieu-Daudé
Testing:
./arm-softmmu/qemu-system-arm -M emcraft-sf2 -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
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2-sysreg.c | 168 ++
hw
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Philippe Mathieu-Daudé
---
hw/arm/Makefile.objs | 2 +-
hw/arm/msf2-som.c| 95
2 files changed, 96 insertions(+), 1 del
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/mss-spi.c | 404 +++
include/hw/ssi/mss-spi.h | 58 +++
3 files changed, 463 insertions(+)
create mode 1
.
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
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2-sysreg.c | 195
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
Reviewed-by: Alistair Francis
---
hw/timer/Makefile.objs | 1 +
hw/timer/mss-timer.c
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 1 +
hw/arm/msf2-soc.c
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs | 1 +
hw/timer/mss-timer.c | 289 +++
include/hw/timer/mss-ti
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/Makefile.objs | 2 +-
hw/arm/msf2-som.c| 94
2 files changed, 95 insertions(+), 1 deletion(-)
create mode 100644 hw/arm/msf2-
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2-sysreg.c | 199 ++
include/hw/misc/msf2-sysreg.h | 78
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/mss-spi.c | 409 +++
include/hw/ssi/mss-spi.h | 58 +++
3 files changed, 468 insertions(+)
create mode 1
.
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
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/Makefile.objs | 1 +
hw/arm/msf2-som.c| 94
2 files changed, 95 insertions(+)
create mode 100644 hw/arm/msf2-som.c
diff --
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 1 +
hw/arm/msf2-soc.c
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/mss-spi.c | 414 +++
include/hw/ssi/mss-spi.h | 62 +++
3 files changed, 477 insertions(+)
create mode 1
.
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
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2-sysreg.c | 200 ++
include/hw/misc/msf2-sysreg.h | 82
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs | 1 +
hw/timer/mss-timer.c | 261 +++
include/hw/timer/mss-ti
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 1 +
hw/arm/msf2-soc.c
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/mss-spi.c | 378 +++
include/hw/ssi/mss-spi.h | 104 +
3 files changed, 483 insertions(+)
create
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2-sysreg.c | 161 ++
include/hw/misc/msf2-sysreg.h | 80
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/Makefile.objs | 1 +
hw/arm/msf2-som.c| 89
2 files changed, 90 insertions(+)
create mode 100644 hw/arm/msf2-som.c
diff --
.
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
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs | 1 +
hw/timer/mss-timer.c | 249 +++
include/hw/timer/mss-ti
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 2 +-
hw/arm/msf2-soc.c
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/Makefile.objs | 1 +
hw/arm/msf2-som.c| 67
2 files changed, 68 insertions(+)
create mode 100644 hw/arm/msf2-som.c
diff --
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/msf2-spi.c | 378 ++
include/hw/ssi/msf2-spi.h | 105 +
3 files changed, 484 insertions(+)
c
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs| 1 +
hw/timer/msf2-timer.c | 252 ++
include/hw/timer/msf2-ti
@
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
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2-sysreg.c | 131 ++
include/hw/misc/msf2-sysreg.h | 80
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
hw/arm/Makefile.objs | 1 +
hw/arm/msf2_som.c| 68
2 files changed, 69 insertions(+)
create mode 100644 hw/arm/msf2_som.c
diff --
Smartfusion2 SoC has hardened Microcontroller subsystem
and flash based FPGA fabric. This patch adds support for
Microcontroller subsystem in the SoC.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 2 +-
hw/arm/msf2_soc.c
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
Hi Peter and Alistair,
I created two SPI controllers as per SoC spec
in hw/arm/msf2_soc.c. I am assuming there has to be two
busses spi0 and spi1 one for each controller. In board file
(hw/arm/msf2_
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2_sysreg.c | 127 ++
include/hw/misc/msf2_sysreg.h | 77
@
https://github.com/Subbaraya-Sundeep/linux.git
Baremetal elfs from Microsemi Softconsole IDE are also working.
Changes from v2:
Added SoC file and board file.
Changes from v1:
Added SPI controller.
Thanks,
Sundeep
Subbaraya Sundeep (5):
msf2: Add Smartfusion2 System timer
msf2
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs| 1 +
hw/timer/msf2_timer.c | 250 ++
include/hw/timer/msf2_ti
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2_sysreg.c | 168 ++
2 files changed, 169 insertions(+)
create
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 2 +-
hw/arm/msf2_soc.c | 141
3 files changed, 143 inser
Modelled Microsemi's Smartfusion2 SPI controller.
Signed-off-by: Subbaraya Sundeep
---
hw/ssi/Makefile.objs | 1 +
hw/ssi/msf2_spi.c| 449 +++
2 files changed, 450 insertions(+)
create mode 100644 hw/ssi/msf2_spi.c
diff --git a/h
@
https://github.com/Subbaraya-Sundeep/linux.git
Baremetal elfs from Microsemi Softconsole IDE are also working.
Changes from v1:
Added SPI controller.
Thanks,
Sundeep
Subbaraya Sundeep (4):
msf2: Add Smartfusion2 System timer
msf2: Microsemi Smartfusion2 System Register block.
msf2: Add
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs | 1 +
hw/timer/msf2_timer.c | 273 +
2 files changed, 274 inser
Added Sytem register block of Smartfusion2.
This block has PLL registers which are accessed by guest.
Signed-off-by: Subbaraya Sundeep
---
hw/misc/Makefile.objs | 1 +
hw/misc/msf2_sysreg.c | 168 ++
2 files changed, 169 insertions(+)
create
Emulated Emcraft's Smartfusion2 System On Module starter
kit.
Signed-off-by: Subbaraya Sundeep
---
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs| 2 +-
hw/arm/msf2_soc.c | 122
3 files changed, 124 inser
Modelled System Timer in Microsemi's Smartfusion2 Soc.
Timer has two 32bit down counters and two interrupts.
Signed-off-by: Subbaraya Sundeep
---
hw/timer/Makefile.objs | 1 +
hw/timer/msf2_timer.c | 273 +
2 files changed, 274 inser
65 matches
Mail list logo