# SPDX-License-Identifier: Apache-2.0

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_GPIO=n
CONFIG_XIP=y
CONFIG_RISCV_S_MODE=y

# Workaround for incorrect SYS_CLOCK_HW_CYCLES_PER_SEC
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100

# The PLIC driver configures PLIC context 0 (M-mode) for hart 0.  In S-mode
# Zephyr the correct context is 1 (supervisor mode), so external device
# interrupts via the PLIC do not reach the CPU.  Disable interrupt-driven
# UART TX so the shell backend falls back to polling, which works correctly.
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
