Skip to content

Commit

Permalink
drivers: console: Add DTS defaults
Browse files Browse the repository at this point in the history
Add default which takes the target device from DTS similar way to UART
console.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information
finikorg authored and nashif committed Sep 4, 2020
1 parent 92a6991 commit 3b1775d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/console/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ config IPM_CONSOLE
help
Enable console over Inter-processor Mailbox.

# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_IPM_CONSOLE := zephyr,console

config IPM_CONSOLE_ON_DEV_NAME
string "IPM device name used by console"
default "$(dt_chosen_label,$(DT_CHOSEN_Z_IPM_CONSOLE))" if HAS_DTS
default "IPM_0"
depends on IPM_CONSOLE
help
Expand Down

0 comments on commit 3b1775d

Please sign in to comment.