debug: tracing: Add Segger RTT and SystemView linker section options

Enables optionally placing Segger RTT and SystemView data in the DTCM
linker section instead of the default data section. This is needed on
SoCs in the i.MX RT series that use cacheable external SDRAM to store
data.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
diff --git a/drivers/debug/Kconfig.rtt b/drivers/debug/Kconfig.rtt
index a0d38f8..6a506d3 100644
--- a/drivers/debug/Kconfig.rtt
+++ b/drivers/debug/Kconfig.rtt
@@ -60,4 +60,15 @@
 config SEGGER_RTT_MEMCPY_USE_BYTELOOP
 	bool "Use a simple byte-loop instead of standard memcpy"
 
+choice SEGGER_RTT_SECTION
+	prompt "Choose RTT data linker section"
+
+config SEGGER_RTT_SECTION_NONE
+	bool "Place RTT data in the default linker section"
+
+config SEGGER_RTT_SECTION_DTCM
+	bool "Place RTT data in the DTCM linker section"
+
+endchoice
+
 endif
diff --git a/subsys/tracing/sysview/Kconfig b/subsys/tracing/sysview/Kconfig
index f4cef18..49c738d 100644
--- a/subsys/tracing/sysview/Kconfig
+++ b/subsys/tracing/sysview/Kconfig
@@ -16,4 +16,15 @@
 	bool "Enable post-mortem mode for SystemView"
 	depends on SEGGER_SYSTEMVIEW
 
+choice SEGGER_SYSVIEW_SECTION
+	prompt "Choose SystemView data linker section"
+
+config SEGGER_SYSVIEW_SECTION_NONE
+	bool "Place SystemView data in the default linker section"
+
+config SEGGER_SYSVIEW_SECTION_DTCM
+	bool "Place SystemView data in the DTCM linker section"
+
+endchoice
+
 endif
diff --git a/west.yml b/west.yml
index d43a1c8..60014c7 100644
--- a/west.yml
+++ b/west.yml
@@ -114,7 +114,7 @@
       revision: f9fbfad0119d7b0d473eaac50c2f0a0a483c2823
       path: modules/lib/openthread
     - name: segger
-      revision: 874d9e9696b00c09f9eeefe839028dc25fe44983
+      revision: 38c79a447e4a47d413b4e8d34448316a5cece77c
       path: modules/debug/segger
     - name: tinycbor
       path: modules/lib/tinycbor