aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorStefan-gabriel Mirea <[email protected]>2019-08-09 11:29:16 +0000
committerGreg Kroah-Hartman <[email protected]>2019-09-04 12:43:54 +0200
commit09864c1cdf5c537bd01bff45181406e422ea988c (patch)
treea646e147848688a6edd6181029d200cf4b85ab2e /tools/perf/util/c++/clang.cpp
parent8d41ab87630bdd249996a7ec1f138a23bcd2f5ff (diff)
tty: serial: Add linflexuart driver for S32V234
Introduce support for LINFlex driver, based on: - the version of Freescale LPUART driver after commit b3e3bf2ef2c7 ("Merge 4.0-rc7 into tty-next"); - commit abf1e0a98083 ("tty: serial: fsl_lpuart: lock port on console write"). In this basic version, the driver can be tested using initramfs and relies on the clocks and pin muxing set up by U-Boot. Remarks concerning the earlycon support: - LinFlexD does not allow character transmissions in the INIT mode (see section 47.4.2.1 in the reference manual[1]). Therefore, a mutual exclusion between the first linflex_setup_watermark/linflex_set_termios executions and linflex_earlycon_putchar was employed and the characters normally sent to earlycon during initialization are kept in a buffer and sent afterwards. - Empirically, character transmission is also forbidden within the last 1-2 ms before entering the INIT mode, so we use an explicit timeout (PREINIT_DELAY) between linflex_earlycon_putchar and the first call to linflex_setup_watermark. - U-Boot currently uses the UART FIFO mode, while this driver makes the transition to the buffer mode. Therefore, the earlycon putchar function matches the U-Boot behavior before initializations and the Linux behavior after. [1] https://www.nxp.com/webapp/Download?colCode=S32V234RM Signed-off-by: Stoica Cosmin-Stefan <[email protected]> Signed-off-by: Adrian.Nitu <[email protected]> Signed-off-by: Larisa Grigore <[email protected]> Signed-off-by: Ana Nedelcu <[email protected]> Signed-off-by: Mihaela Martinas <[email protected]> Signed-off-by: Matthew Nunez <[email protected]> [[email protected]: Reduced for upstreaming and implemented earlycon support] Signed-off-by: Stefan-Gabriel Mirea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions