s5j/serial: add constraints on UART flowcontrol
authorHeesub Shin <heesub.shin@samsung.com>
Mon, 28 Aug 2017 00:44:39 +0000 (09:44 +0900)
committersunghan <sh924.chang@samsung.com>
Wed, 20 Sep 2017 07:55:21 +0000 (16:55 +0900)
RTS/CTS pins of UART2/3 are shared with other peripherals. To ensure
that those pins are mutually exclusive, add dependencies on Kconfig
entries.

Change-Id: I0ce100a082b0ce2a58d9a2b7259d2f73bbace155
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/s5j/Kconfig

index 596dcf8..3142459 100644 (file)
@@ -248,6 +248,7 @@ config S5J_UART2_FLOWCONTROL
        bool "UART2 Flow Control"
        default n
        depends on S5J_UART2
+       depends on !S5J_UART1
        select S5J_UART_FLOWCONTROL
 
 config S5J_UART3
@@ -261,6 +262,8 @@ config S5J_UART3_FLOWCONTROL
        bool "UART3 Flow Control"
        default n
        depends on S5J_UART3
+       depends on !S5J_PWM0
+       depends on !S5J_PWM1
        select S5J_UART_FLOWCONTROL
 
 config S5J_UART4