zephyr/drivers/console
Hou Zhiqiang 1cd37f21f3 drivers: ram_console: add option to link console buffer to given section
Currently, the ram_console buffer is defined as a global var, its
address is determined during the building and may be changed when
code update. This is not a problem if the ram_console is just used
in debug purpose.

While in the heterogeneous SoCs, there can be multiple MPU Cores
and several MCU cores, it can run multiple OS/bare-metal instances
on these cores, but the UART ports may be not enough, so the
ram_console can be leveraged. To make it easy to use, it's better
make the console buffer fixed and predefined.

This patch adds a option to link the console buffer to a given
section, through the "zephyr,memory-region" device tree node, then
the address can be known from the device tree node and easy to
check from other cores running Linux/U-Boot.

To use this option, the chosen property 'zephyr,ram-console' must
be added, the following is a example:

	chosen {
		zephyr,ram-console = &ram_console;
	};

	ram_console: memory@93d00000 {
		compatible = "zephyr,memory-region";
		reg = <0x93d00000 DT_SIZE_K(4)>;
		zephyr,memory-region = "RAM_CONSOLE";
	};

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2024-06-12 17:09:24 -05:00
..
CMakeLists.txt drivers: console: remove uart_mux and gsm_mux 2024-05-29 10:49:08 -07:00
Kconfig drivers: ram_console: add option to link console buffer to given section 2024-06-12 17:09:24 -05:00
efi_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
ipm_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
ipm_console_receiver.c
ipm_console_sender.c
jailhouse_debug_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
posix_arch_console.c drivers: Console: Move all posix arch boards to same driver 2023-05-26 12:57:41 +02:00
ram_console.c drivers: ram_console: add option to link console buffer to given section 2024-06-12 17:09:24 -05:00
rtt_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
semihost_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
uart_console.c pm: console: Use async runtime put to minimize resumption/suspension 2024-01-18 10:51:10 +01:00
uart_mcumgr.c drivers: console: uart_mcumgr: Skip reading FIFO during setup 2023-11-27 09:12:36 +00:00
winstream_console.c xtensa: move to use system cache API support for coherency 2024-02-03 13:42:33 -05:00
xtensa_sim_console.c Revert "drivers/console/xtensa_sim_console: force `\r\n` byte sequence" 2024-06-06 20:06:26 -04:00