1. 08 Nov, 2018 1 commit
    • Antonio Nino Diaz's avatar
      Standardise header guards across codebase · c3cf06f1
      Antonio Nino Diaz authored
      
      
      All identifiers, regardless of use, that start with two underscores are
      reserved. This means they can't be used in header guards.
      
      The style that this project is now to use the full name of the file in
      capital letters followed by 'H'. For example, for a file called
      "uart_example.h", the header guard is UART_EXAMPLE_H.
      
      The exceptions are files that are imported from other projects:
      
      - CryptoCell driver
      - dt-bindings folders
      - zlib headers
      
      Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      c3cf06f1
  2. 30 Aug, 2018 1 commit
    • 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