mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
tty: serial: samsung_tty: loopback mode support
Internal loopback mode can be supported by setting UCON register's Loopback Mode bit. The mode & bit can be supported since s3c2410 and later SoCs. The prefix of LOOPBACK / BIT(5) naming should be also changed to S3C2410_ in order to avoid confusion. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Link: https://lore.kernel.org/r/20220629004141.51484-1-chanho61.park@samsung.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9636047ffa
commit
72a43046b6
@@ -83,7 +83,7 @@
|
||||
#define S3C2410_UCON_RXIRQMODE (1<<0)
|
||||
#define S3C2410_UCON_RXFIFO_TOI (1<<7)
|
||||
#define S3C2443_UCON_RXERR_IRQEN (1<<6)
|
||||
#define S3C2443_UCON_LOOPBACK (1<<5)
|
||||
#define S3C2410_UCON_LOOPBACK (1<<5)
|
||||
|
||||
#define S3C2410_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
|
||||
S3C2410_UCON_RXILEVEL | \
|
||||
|
||||
Reference in New Issue
Block a user