Skip to content

Commit 4d7d234

Browse files
npal-cyChromeos LUCI
authored andcommitted
drivers: serial: CAT1 UART driver: fix HW flow control
fix HW flow control: - remove cyhal_uart_enable_flow_control - added Cy_SCB_UART_EnableCts if cfg->flow_ctrl = true (required to enable hw flow control) - configuration of CTS/RTS done by pincntr driver (cherry picked from commit b6d0958) Original-Signed-off-by: Nazar Palamar <[email protected]> GitOrigin-RevId: b6d0958 Change-Id: If19e56c8ba71d71c50e175cd0fd6f352ddc868ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5650213 Tested-by: Ting Shen <[email protected]> Tested-by: ChromeOS Prod (Robot) <[email protected]> Reviewed-by: Ting Shen <[email protected]> Commit-Queue: Ting Shen <[email protected]>
1 parent 1fcad7a commit 4d7d234

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/serial/uart_ifx_cat1.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static int ifx_cat1_uart_configure(const struct device *dev,
233233

234234
/* Enable RTS/CTS flow control */
235235
if ((result == CY_RSLT_SUCCESS) && cfg->flow_ctrl) {
236-
result = cyhal_uart_enable_flow_control(&data->obj, true, true);
236+
Cy_SCB_UART_EnableCts(data->obj.base);
237237
}
238238

239239
return (result == CY_RSLT_SUCCESS) ? 0 : -ENOTSUP;
@@ -437,6 +437,11 @@ static int ifx_cat1_uart_init(const struct device *dev)
437437
.resource = &data->hw_resource,
438438
.config = &_cyhal_uart_default_config,
439439
.clock = &data->clock,
440+
.gpios = {
441+
.pin_tx = NC,
442+
.pin_rts = NC,
443+
.pin_cts = NC,
444+
},
440445
};
441446

442447
/* Dedicate SCB HW resource */

0 commit comments

Comments
 (0)