proper card powerup handling
Now that the timers work as intended other voltages (that lead to
timeouts) may be used.
Change-Id: I6105ce7f827aaec8ac36b940766fe05d47145edb
diff --git a/ccid_host/cuart_driver_tty.c b/ccid_host/cuart_driver_tty.c
index 5f635b5..42a8430 100644
--- a/ccid_host/cuart_driver_tty.c
+++ b/ccid_host/cuart_driver_tty.c
@@ -284,7 +284,9 @@
case CUART_CTL_WTIME:
/* no driver-specific handling of this */
break;
- case CUART_CTL_POWER:
+ case CUART_CTL_POWER_5V0:
+ case CUART_CTL_POWER_3V0:
+ case CUART_CTL_POWER_1V8:
case CUART_CTL_CLOCK:
default:
return -EINVAL;
diff --git a/ccid_host/cuart_fsm_test.c b/ccid_host/cuart_fsm_test.c
index 5b03bfe..38cad14 100644
--- a/ccid_host/cuart_fsm_test.c
+++ b/ccid_host/cuart_fsm_test.c
@@ -79,7 +79,7 @@
/* activate reset, then power up */
card_uart_ctrl(&g_cuart, CUART_CTL_RST, true);
- card_uart_ctrl(&g_cuart, CUART_CTL_POWER, true);
+ card_uart_ctrl(&g_cuart, CUART_CTL_POWER_1V8, true);
osmo_fsm_inst_dispatch(fi, ISO7816_E_POWER_UP_IND, NULL);
/* activate clock */