Skip to contentSkip to conversation

Add support for Men Chameleon Bus emulation

PATCH RESEND New Johannes Thumshirn 1 participant 5 messages Sep 10, 2018

lore
Share & tools
lore
#0 lore raw

v2 cover Add support for Men Chameleon Bus emulation

This is a re-send of the last version from 9 Aug 2018 13:40:13 +0200.

This series adds support for emulating FPGAs by Men Mikroelektronik Nürnberg and expose the FPGA itself as a bus. The IP-Cores implemented in the FPGA are represented as devices hanging off that bus. This is the same aproach that is used in the Linux kernel as well for these devices.

The main intention for this series is to have a test-bed for Linux Kernel patches targeting the bus and/or sub-devices of it for people who do not have access the hardware.

Changes since v1:
* Updated License comments of the files (Peter Maydell)
* Added <public>/<private> annotations (Philippe Mathieu-Daudé)

Johannes Thumshirn (4):
Add MEN Chameleon Bus emulation
Add MEN Chameleon Bus via PCI carrier
serial-mcb: Add serial via MEN chameleon bus
wdt_z069: Add support for MEN 16z069 Watchdog

 default-configs/pci.mak   |   1 +
 hw/Makefile.objs          |   1 +
 hw/char/Makefile.objs     |   1 +
 hw/char/serial-mcb.c      | 100 +++++++++++++++
 hw/mcb/Makefile.objs      |   2 +
 hw/mcb/mcb-pci.c          | 305 ++++++++++++++++++++++++++++++++++++++++++++++
 hw/mcb/mcb.c              | 180 +++++++++++++++++++++++++++
 hw/watchdog/Makefile.objs |   1 +
 hw/watchdog/wdt_z069.c    | 215 ++++++++++++++++++++++++++++++++
 include/hw/mcb/mcb.h      | 104 ++++++++++++++++
 10 files changed, 910 insertions(+)
 create mode 100644 hw/char/serial-mcb.c
 create mode 100644 hw/mcb/Makefile.objs
 create mode 100644 hw/mcb/mcb-pci.c
 create mode 100644 hw/mcb/mcb.c
 create mode 100644 hw/watchdog/wdt_z069.c
 create mode 100644 include/hw/mcb/mcb.h
Signature · 1 line
2.16.4
#1 lore raw

PATCH RESEND v2 1/4 Add MEN Chameleon Bus emulation

The MEN Chameleon Bus (MCB) is an on-chip bus system exposing IP Cores of an FPGA to a outside bus system like PCIe.

---
 default-configs/pci.mak |   1 +
 hw/Makefile.objs        |   1 +
 hw/mcb/Makefile.objs    |   1 +
 hw/mcb/mcb.c            | 180 ++++++++++++++++++++++++++++++++++++++++++++++++
 include/hw/mcb/mcb.h    | 104 ++++++++++++++++++++++++++++
 5 files changed, 287 insertions(+)
 create mode 100644 hw/mcb/Makefile.objs
 create mode 100644 hw/mcb/mcb.c
 create mode 100644 include/hw/mcb/mcb.h
default-configs/pci.mak +1 -0
index de53d20ac62c..341498615d6e 100644
@@ -46,3 +46,4 @@ CONFIG_VGA=y
 CONFIG_VGA_PCI=y
 CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM)
 CONFIG_ROCKER=y
+CONFIG_MCB=y
hw/Makefile.objs +1 -0
index a19c1417ed3e..96ab195a24b9 100644
@@ -17,6 +17,7 @@ devices-dirs-$(CONFIG_IPACK) += ipack/
 devices-dirs-$(CONFIG_IPMI) += ipmi/
 devices-dirs-$(CONFIG_SOFTMMU) += isa/
 devices-dirs-$(CONFIG_SOFTMMU) += misc/
+devices-dirs-$(CONFIG_MCB) += mcb/
 devices-dirs-$(CONFIG_SOFTMMU) += net/
 devices-dirs-$(CONFIG_SOFTMMU) += rdma/
 devices-dirs-$(CONFIG_SOFTMMU) += nvram/
hw/mcb/Makefile.objs new file +1 -0
new file mode 100644
index 000000000000..32427c987c44
@@ -0,0 +1 @@
+common-obj-$(CONFIG_MCB) += mcb.o
hw/mcb/mcb.c new file +180 -0

180 lines not on this page · raw message

include/hw/mcb/mcb.h new file +104 -0

104 lines not on this page · raw message

Signature · 1 line
2.16.4
#2 lore raw

PATCH RESEND v2 2/4 Add MEN Chameleon Bus via PCI carrier

In reply to Johannes Thumshirn
---
 hw/mcb/Makefile.objs |   1 +
 hw/mcb/mcb-pci.c     | 305 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 306 insertions(+)
 create mode 100644 hw/mcb/mcb-pci.c
hw/mcb/Makefile.objs +1 -0
index 32427c987c44..125f4a84700a 100644
@@ -1 +1,2 @@
 common-obj-$(CONFIG_MCB) += mcb.o
+common-obj-$(CONFIG_MCB) += mcb-pci.o
hw/mcb/mcb-pci.c new file +305 -0

305 lines not on this page · raw message

Signature · 1 line
2.16.4
#3 lore raw

PATCH RESEND v2 3/4 serial-mcb: Add serial via MEN chameleon bus

In reply to Johannes Thumshirn

Add MEN z125 UART over MEN Chameleon Bus emulation.

---
 hw/char/Makefile.objs |   1 +
 hw/char/serial-mcb.c  | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 101 insertions(+)
 create mode 100644 hw/char/serial-mcb.c
hw/char/Makefile.objs +1 -0
index b57053129107..063f1720974d 100644
@@ -6,6 +6,7 @@ common-obj-$(CONFIG_PL011) += pl011.o
 common-obj-$(CONFIG_SERIAL) += serial.o
 common-obj-$(CONFIG_SERIAL_ISA) += serial-isa.o
 common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o
+common-obj-$(CONFIG_MCB) += serial-mcb.o
 common-obj-$(CONFIG_VIRTIO_SERIAL) += virtio-console.o
 common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o
 common-obj-$(CONFIG_XEN) += xen_console.o
hw/char/serial-mcb.c new file +100 -0

100 lines not on this page · raw message

Signature · 1 line
2.16.4
#4 lore raw

PATCH RESEND v2 4/4 wdt_z069: Add support for MEN 16z069 Watchdog

In reply to Johannes Thumshirn

Add 16z069 Watchdog over MEN Chameleon BUS emulation.

---
 hw/watchdog/Makefile.objs |   1 +
 hw/watchdog/wdt_z069.c    | 215 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 216 insertions(+)
 create mode 100644 hw/watchdog/wdt_z069.c
hw/watchdog/Makefile.objs +1 -0
index 9589bed63a3d..ada010f1eb69 100644
@@ -3,3 +3,4 @@ common-obj-$(CONFIG_WDT_IB6300ESB) += wdt_i6300esb.o
 common-obj-$(CONFIG_WDT_IB700) += wdt_ib700.o
 common-obj-$(CONFIG_WDT_DIAG288) += wdt_diag288.o
 common-obj-$(CONFIG_ASPEED_SOC) += wdt_aspeed.o
+common-obj-$(CONFIG_MCB) += wdt_z069.o
hw/watchdog/wdt_z069.c new file +215 -0

215 lines not on this page · raw message

Signature · 1 line
2.16.4