summaryrefslogtreecommitdiffstats
path: root/cpukit/dev
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-06-14 07:41:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-06-14 07:41:36 +0200
commit2be6ab7f77bdf61cc1d3fa33e8772f880384bbb3 (patch)
tree2ab91eb4bed1992ebe3c16a0331a368d7a12460b /cpukit/dev
parent6ff1da40c7688a880920c3f4b0f1d530775c315c (diff)
downloadrtems-2be6ab7f77bdf61cc1d3fa33e8772f880384bbb3.tar.bz2
dev/sc16is752: Add set/get EFCR IO controls
Diffstat (limited to 'cpukit/dev')
-rw-r--r--cpukit/dev/serial/sc16is752.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/dev/serial/sc16is752.c b/cpukit/dev/serial/sc16is752.c
index 5384563abe..9b6f6eb6e1 100644
--- a/cpukit/dev/serial/sc16is752.c
+++ b/cpukit/dev/serial/sc16is752.c
@@ -400,6 +400,12 @@ static int sc16is752_ioctl(
case SC16IS752_GET_IOSTATE:
read_reg(ctx, SC16IS752_IOSTATE, (uint8_t *)buffer, 1);
break;
+ case SC16IS752_SET_EFCR:
+ write_reg(ctx, SC16IS752_EFCR, (uint8_t *)buffer, 1);
+ break;
+ case SC16IS752_GET_EFCR:
+ read_reg(ctx, SC16IS752_EFCR, (uint8_t *)buffer, 1);
+ break;
case TIOCMGET:
sc16is752_get_modem_bits(ctx, (int *)buffer);
break;