drivers: imx: crash-console: Add a mxc_crash_console driver
This patch does two main things

- It implements the crash console UART init in assembly, as a
  hard-coded 115200 8N1 assumed from the 24 MHz clock.

  If the clock setup code has not run yet, this code can't work but,
  setting up clocks and clock-gates is way out of scope for this type of
  recovery function.

- It adds code to write a character out of the NXP UART without using any
  stack-based operations when doing so.

- Provides support for crash console in DCE or DTE mode.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
1 parent 598cee4 commit 2f5307d6ba1620ae7bbec010a2aeefd5dad9ef44
@Bryan O'Donoghue Bryan O'Donoghue authored on 25 May 2018
Showing 1 changed file
View
drivers/imx/uart/imx_crash_uart.S 0 → 100644