boards: degu_evk: add chosen nodes for shell and console

Remove UART_CONSOLE_ON_DEV_NAME and UART_SHELL_ON_DEV_NAME options
and add chosen nodes for shell and console.

Enable USB device support because the board uses
CDC ACM UART for console.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-07-22 15:37:44 +02:00 committed by Christopher Friedt
commit 6974c7cee3
3 changed files with 10 additions and 6 deletions

View file

@ -22,12 +22,6 @@ config UART_INTERRUPT_DRIVEN
config UART_LINE_CTRL
default y
config UART_CONSOLE_ON_DEV_NAME
default "CDC_ACM_0"
config UART_SHELL_ON_DEV_NAME
default "CDC_ACM_0"
endif # USB_DEVICE_STACK
if DISK_DRIVER_FLASH

View file

@ -14,6 +14,8 @@
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &degu_cdc_acm_uart;
zephyr,shell-uart = &degu_cdc_acm_uart;
zephyr,code-partition = &slot0_partition;
};
@ -141,4 +143,9 @@
zephyr_udc0: &usbd {
compatible = "nordic,nrf-usbd";
status = "okay";
degu_cdc_acm_uart: degu_cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM_0";
};
};

View file

@ -12,6 +12,9 @@ CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
# enable USB
CONFIG_USB_DEVICE_STACK=y
# additional board options
CONFIG_GPIO=y
CONFIG_GPIO_AS_PINRESET=y