1. 04 Sep, 2018 1 commit
  2. 30 Aug, 2018 2 commits
    • Bryan O'Donoghue's avatar
      drivers: imx: crash-console: Add a mxc_crash_console driver · 2f5307d6
      Bryan O'Donoghue authored
      
      
      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: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
      2f5307d6
    • Bryan O'Donoghue's avatar
      drivers: imx: uart: Add mxc_console · 598cee48
      Bryan O'Donoghue authored
      
      
      - Adds a simple register read/write abstraction to cut-down on the
        amount of typing and text required to access UART registers in this driver.
      
      - Adds a console getc() callback.
      
      - Adds a console putc() callback, translating '\n' to '\r' + '\n'.
      
      - Initializes the MXC UART, take a crude method of calculating the
        BAUD rate generator. The UART clock-gates must have been enabled prior
        to launching the UART init code.
        Special care needs to be taken to ensure the UBIR is initialized before the
        UBMR and we need to ensure that UCR2.SRST comes good before trying to
        program other registers associated with the UART.
      Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
      598cee48