tizen: rpi: add support for RPi5 console 71/307171/2 accepted/tizen/unified/20240315.111201 accepted/tizen/unified/20240315.155124 accepted/tizen/unified/x/20240319.055506
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 5 Mar 2024 13:56:21 +0000 (14:56 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 14 Mar 2024 08:31:57 +0000 (09:31 +0100)
commit5024ac8888ee93901be03ee777bb20b14e9d6cab
tree4d045812cbf4a428e00dfadbac251731df0242ef
parent23999638dfca9ca94456337dcfb80b54d1e2f8cd
tizen: rpi: add support for RPi5 console

RPi5 board uses different drivers for the serial console than RPi4, so
the kernel's console parameter has to be adjusted depending on the
detected board and its configuration.

On RPi5 there are 2 serial ports available for debug messages:

1. Dedicated debug UART port. Used by firmware and u-boot
unconditionally. It is instantiated as /dev/ttyAMA10. By default it is
also used for kernel's earlycon and serial console.

2. Standard UART available on GPIO14 & GPIO15 lines (pins 8 & 10 on the
40-pin header, like on the RPi4). This can be enabled by adding
"dtoverlay=uart0-pi5" line to "config.txt" on "boot" partition. It is
instantiated as /dev/ttyAMA0. It can be used only for the standard Linux
kernel console and serial login.

Change-Id: I34aa978148fb593f5f88d3ed6471c8c3c7a74a38
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
tizen/bootscript/tizen-boot-rpi4.scr