mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
06a1975d8253d9b09f8b1d2a644a81dbf6e8d8bd
On MEC1322, we don't have indication of empty space in transmit FIFO. To work around this, we needed to look at Tx FIFO empty bit instead. However, this effectively made the FIFO length one. This CL fixes this by only checking Tx FIFO empty bit every 16 characters written to Tx FIFO. This is assuming the UART module works the same way as 16550 UART, which has a 16-byte FIFO. In a simple bulk write test, this improves Tx performance by 30%. BUG=chrome-os-partner:24107 TEST=Build and boot. Check console still works. BRANCH=None Change-Id: I97a6f42bd11be6bb18bc339af6d9b0cf2bae4845 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/206160 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%