dev/sc16is752: Add set/get EFCR IO controls

This commit is contained in:
Sebastian Huber
2019-06-14 07:41:36 +02:00
parent 6ff1da40c7
commit 2be6ab7f77
2 changed files with 16 additions and 0 deletions

View File

@@ -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;