diff --git a/arch/x86/soc/quark_se/Kconfig b/arch/x86/soc/quark_se/Kconfig index 3174a9e5af1..d3f19419556 100644 --- a/arch/x86/soc/quark_se/Kconfig +++ b/arch/x86/soc/quark_se/Kconfig @@ -318,4 +318,13 @@ config PWM_DW_NUM_PORTS endif endif +if IPM_CONSOLE_RECEIVER +config QUARK_SE_IPM_CONSOLE_RING_BUF_SIZE32 + int + default 256 + help + Size of the buffer for the console reciever, for incoming + console messages from the ARC side. Must be a power of 2. +endif + endif #SOC_QUARK_SE_X86 diff --git a/arch/x86/soc/quark_se/soc_config.c b/arch/x86/soc/quark_se/soc_config.c index 99b77d6ed5d..16885e506fd 100644 --- a/arch/x86/soc/quark_se/soc_config.c +++ b/arch/x86/soc/quark_se/soc_config.c @@ -49,9 +49,8 @@ SYS_DEFINE_DEVICE(quark_se_ipm, NULL, PRIMARY, QUARK_SE_IPM_DEFINE(quark_se_ipm4, 4, QUARK_SE_IPM_INBOUND); #define QUARK_SE_IPM_CONSOLE_LINE_BUF_SIZE 80 -#define QUARK_SE_IPM_CONSOLE_RING_BUF_SIZE32 128 -static uint32_t ipm_console_ring_buf_data[QUARK_SE_IPM_CONSOLE_RING_BUF_SIZE32]; +static uint32_t ipm_console_ring_buf_data[CONFIG_QUARK_SE_IPM_CONSOLE_RING_BUF_SIZE32]; static char __stack ipm_console_fiber_stack[IPM_CONSOLE_STACK_SIZE]; static char ipm_console_line_buf[QUARK_SE_IPM_CONSOLE_LINE_BUF_SIZE]; @@ -59,7 +58,7 @@ struct ipm_console_receiver_config_info quark_se_ipm_receiver_config = { .bind_to = "quark_se_ipm4", .fiber_stack = ipm_console_fiber_stack, .ring_buf_data = ipm_console_ring_buf_data, - .rb_size32 = QUARK_SE_IPM_CONSOLE_RING_BUF_SIZE32, + .rb_size32 = CONFIG_QUARK_SE_IPM_CONSOLE_RING_BUF_SIZE32, .line_buf = ipm_console_line_buf, .lb_size = QUARK_SE_IPM_CONSOLE_LINE_BUF_SIZE, .flags = IPM_CONSOLE_PRINTK