Skip to contentSkip to conversation

tricore: added triboard with tc27x_soc

PATCH Applied David Brenken 2 participants 3 messages Nov 9, 2020 – Nov 12, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

v5 cover tricore: added triboard with tc27x_soc

From: Andreas Konopik <[email protected]>

Hello everyone,

this patch adds the AURIX TC277 D-Step TriBoard as QEMU machine (-M AURIX_TriBoard_TC277D). Memory maps are implemented according to the "AURIX TC27x D-Step User's Manual V2.2 2014-12". AURIX memory layouts are specified by the processor, that is why this patch has been reworked as a SoC-implementation for v2. Patch v3 added sizes to memory mappings and v4 reintroduced more readable memory sizes. make check failed for v4, so v5 fixed the machine and soc layout to pass the tests.

Andreas Konopik (1):
tricore: added triboard with tc27x_soc

 default-configs/devices/tricore-softmmu.mak |   2 +-
 hw/tricore/Kconfig                          |   8 +
 hw/tricore/meson.build                      |   2 +
 hw/tricore/tc27x_soc.c                      | 246 ++++++++++++++++++++
 hw/tricore/triboard.c                       |  98 ++++++++
 include/hw/tricore/tc27x_soc.h              | 129 ++++++++++
 include/hw/tricore/triboard.h               |  50 ++++
 7 files changed, 534 insertions(+), 1 deletion(-)
 create mode 100644 hw/tricore/tc27x_soc.c
 create mode 100644 hw/tricore/triboard.c
 create mode 100644 include/hw/tricore/tc27x_soc.h
 create mode 100644 include/hw/tricore/triboard.h
Signature · 1 line
2.28.0
#1 lore raw

PATCH v5 1/1 tricore: added triboard with tc27x_soc

From: Andreas Konopik <[email protected]>

---
 default-configs/devices/tricore-softmmu.mak |   2 +-
 hw/tricore/Kconfig                          |   8 +
 hw/tricore/meson.build                      |   2 +
 hw/tricore/tc27x_soc.c                      | 246 ++++++++++++++++++++
 hw/tricore/triboard.c                       |  98 ++++++++
 include/hw/tricore/tc27x_soc.h              | 129 ++++++++++
 include/hw/tricore/triboard.h               |  50 ++++
 7 files changed, 534 insertions(+), 1 deletion(-)
 create mode 100644 hw/tricore/tc27x_soc.c
 create mode 100644 hw/tricore/triboard.c
 create mode 100644 include/hw/tricore/tc27x_soc.h
 create mode 100644 include/hw/tricore/triboard.h
default-configs/devices/tricore-softmmu.mak +1 -1
index c397cff38a..5cc91cebce 100644
@@ -1 +1 @@
-CONFIG_TRICORE=y
+CONFIG_TRIBOARD=y
hw/tricore/Kconfig +8 -0
index 9313409309..506e6183c1 100644
@@ -1,2 +1,10 @@
 config TRICORE
     bool
+
+config TRIBOARD
+    bool
+    select TRICORE
+    select TC27X_SOC
+
+config TC27X_SOC
+    bool
hw/tricore/meson.build +2 -0
index 579aa13c78..77ff6fd137 100644
@@ -1,4 +1,6 @@
 tricore_ss = ss.source_set()
 tricore_ss.add(when: 'CONFIG_TRICORE', if_true: files('tricore_testboard.c'))
+tricore_ss.add(when: 'CONFIG_TRIBOARD', if_true: files('triboard.c'))
+tricore_ss.add(when: 'CONFIG_TC27X_SOC', if_true: files('tc27x_soc.c'))
 
 hw_arch += {'tricore': tricore_ss}
hw/tricore/tc27x_soc.c new file +246 -0

246 lines not on this page · raw message

hw/tricore/triboard.c new file +98 -0

98 lines not on this page · raw message

include/hw/tricore/tc27x_soc.h new file +129 -0

129 lines not on this page · raw message

include/hw/tricore/triboard.h new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.28.0
Reviewed-by on v5 1/1 Applied
#2 lore raw
Quoted 7 lines · David Brenken

From: Andreas Konopik <[email protected]>

Quoted 13 lines
---
 default-configs/devices/tricore-softmmu.mak |   2 +-
 hw/tricore/Kconfig                          |   8 +
 hw/tricore/meson.build                      |   2 +
 hw/tricore/tc27x_soc.c                      | 246 ++++++++++++++++++++
 hw/tricore/triboard.c                       |  98 ++++++++
 include/hw/tricore/tc27x_soc.h              | 129 ++++++++++
 include/hw/tricore/triboard.h               |  50 ++++
 7 files changed, 534 insertions(+), 1 deletion(-)
 create mode 100644 hw/tricore/tc27x_soc.c
 create mode 100644 hw/tricore/triboard.c
 create mode 100644 include/hw/tricore/tc27x_soc.h
 create mode 100644 include/hw/tricore/triboard.h

I applied this to my tricore.next tree.

Cheers,
Bastian