History log of /haiku/src/system/kernel/arch/arm/arch_uart_pl011.cpp
Revision Date Author Comments
# 191fa373 24-Nov-2021 David Karoly <karolyd577@gmail.com>

kernel/uart: fix GetChar for PL011

Check RX buffer status when GetChar is called in no-wait mode.
This fixes an 'infinite keypress' issue that used to occur
after 16 keypresses.

Change-Id: I47762de387b07c4fed46cc192cd3b81fdabfb270
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4732
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 1648ab52 15-Aug-2021 Alexander von Gluck IV <kallisti5@unixzen.com>

kernel/uart: Clean up uarts, make calling convention consistent

Change-Id: I36ef92ef13edb0b006344db74e9d1b3ae52e0127
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4327
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# f6c47144 18-Nov-2017 Alexander von Gluck IV <kallisti5@unixzen.com>

kernel/uart: Refinements to irq and FIFO management


# aa3083e0 29-Jan-2017 Freeman Lou <freemanlou2430@yahoo.com>

Style fixes to various parts of the system.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

This patch was never applied after GSoC 2012. Rebase the parts that
still apply so we can close the ticket.

Fixes #9490.


# c6a4fee5 28-Mar-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

loader/u-boot: Use FDT serial info to create uart

* drop my fdt tests
* we have to call fdt parsing code *after* cpu_init (why?)
* pass fdt pointer to all FDT support calls to avoid confusion
once we get into the kernel land
* look for PL011 compatible uart and use it
* Add some saftey checks to serial putc code to avoid null*
* fdt_node_check_compatible returns 0 on success not 1
* fdt_get_device_reg needs to add the SOC base to the result
* fdt_get_device_reg might need to add the second range cell
instead of reg?


# eb93f266 17-May-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

uart: Style Cleanup, no functional change


# e9ec7a55 16-May-2012 François Revol <revol@free.fr>

Attempt to factor out serial stuff

* introduce a DebugUART baseclass,
* rework 8250 and PL011 implementations from kallisti5 to inherit DebutUART,
* each arch should override the IO methods to access registers.
* on ARM registers are 32bit-aligned.
* U-Boot still works for the verdex target.
* rPi still compiles, needs testing.
* Still some more consolidation needed to allow runtime choice of the UART type (as read from FDT blobs for ex.).
* serial.cpp should probably mostly be made generic as well.
* didn't touch x86 or ppc yet.


# c6a4fee57959c986091fcd52f2096b28b98456e2 28-Mar-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

loader/u-boot: Use FDT serial info to create uart

* drop my fdt tests
* we have to call fdt parsing code *after* cpu_init (why?)
* pass fdt pointer to all FDT support calls to avoid confusion
once we get into the kernel land
* look for PL011 compatible uart and use it
* Add some saftey checks to serial putc code to avoid null*
* fdt_node_check_compatible returns 0 on success not 1
* fdt_get_device_reg needs to add the SOC base to the result
* fdt_get_device_reg might need to add the second range cell
instead of reg?


# eb93f2661d536dcb074a0a4e49842227e3023427 17-May-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

uart: Style Cleanup, no functional change


# e9ec7a55ddffa7a4f12eb8d425f43ec10c5ab258 16-May-2012 François Revol <revol@free.fr>

Attempt to factor out serial stuff

* introduce a DebugUART baseclass,
* rework 8250 and PL011 implementations from kallisti5 to inherit DebutUART,
* each arch should override the IO methods to access registers.
* on ARM registers are 32bit-aligned.
* U-Boot still works for the verdex target.
* rPi still compiles, needs testing.
* Still some more consolidation needed to allow runtime choice of the UART type (as read from FDT blobs for ex.).
* serial.cpp should probably mostly be made generic as well.
* didn't touch x86 or ppc yet.