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
ipm_console.c
ipm_console_receiver.c
ipm_console_sender.c
jailhouse_debug_console.c
posix_arch_console.c
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
semihost_console.c
uart_console.c
uart_mcumgr.c
winstream_console.c
xtensa_sim_console.c Revert "drivers/console/xtensa_sim_console: force `\r\n` byte sequence" 2024-06-06 20:06:26 -04:00