Browse Source

drivers: debug: Add debug driver class

Add a new driver class for drivers related to debugging, such as
trace hardware, performance counters etc.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
pull/88487/merge
Aksel Skauge Mellbye 3 months ago committed by Benjamin Cabé
parent
commit
b66c720ed6
  1. 12
      MAINTAINERS.yml
  2. 1
      drivers/CMakeLists.txt
  3. 1
      drivers/Kconfig
  4. 7
      drivers/debug/CMakeLists.txt
  5. 24
      drivers/debug/Kconfig

12
MAINTAINERS.yml

@ -1340,6 +1340,18 @@ Release Notes: @@ -1340,6 +1340,18 @@ Release Notes:
labels:
- "area: DAI"
"Drivers: Debug":
status: maintained
maintainers:
- asmellby
collaborators:
- nordic-krch
files:
- drivers/debug/
- dts/bindings/debug/
labels:
- "area: Debugging"
"Drivers: Devmux":
status: maintained
maintainers:

1
drivers/CMakeLists.txt

@ -31,6 +31,7 @@ add_subdirectory_ifdef(CONFIG_COUNTER counter) @@ -31,6 +31,7 @@ add_subdirectory_ifdef(CONFIG_COUNTER counter)
add_subdirectory_ifdef(CONFIG_CRYPTO crypto)
add_subdirectory_ifdef(CONFIG_DAC dac)
add_subdirectory_ifdef(CONFIG_DAI dai)
add_subdirectory_ifdef(CONFIG_DEBUG_DRIVER debug)
add_subdirectory_ifdef(CONFIG_DISPLAY display)
add_subdirectory_ifdef(CONFIG_DMA dma)
add_subdirectory_ifdef(CONFIG_DP_DRIVER dp)

1
drivers/Kconfig

@ -23,6 +23,7 @@ source "drivers/counter/Kconfig" @@ -23,6 +23,7 @@ source "drivers/counter/Kconfig"
source "drivers/crypto/Kconfig"
source "drivers/dac/Kconfig"
source "drivers/dai/Kconfig"
source "drivers/debug/Kconfig"
source "drivers/disk/Kconfig"
source "drivers/display/Kconfig"
source "drivers/dma/Kconfig"

7
drivers/debug/CMakeLists.txt

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
# Copyright (c) 2025 Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
# zephyr-keep-sorted-start
# zephyr-keep-sorted-stop

24
drivers/debug/Kconfig

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
# Copyright (c) 2025 Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0
menuconfig DEBUG_DRIVER
bool "Debug drivers"
help
Enable support for debug drivers
if DEBUG_DRIVER
config DEBUG_DRIVER_INIT_PRIORITY
int "Initialization priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
Debug drivers initialization priority.
# zephyr-keep-sorted-start
# zephyr-keep-sorted-stop
module = DEBUG_DRIVER
module-str = debug_driver
source "subsys/logging/Kconfig.template.log_config"
endif
Loading…
Cancel
Save