Commit Graph
5 Commits
Author SHA1 Message Date
Alexander Couzens c79b582000 simtrace2-cardem-pcsc: allow to set sim presence polarity
Add api call osmo_st2_cardem_request_config2(struct cardemu_usb_msg_config *)
which contains a full cardemu_usb_msg_config.

Change-Id: Iacde63e667472a85a5f18cb4ca99dcfa1a84dd59
2024-06-03 13:59:38 +02:00
Alexander Couzens 504c0fab50 firmware: allow to change the sim presence pin polarity
The sim presence pin allows the simtrace2 to inform the modem
about the presence of the simcard. On a generic simcard slot a
button is pressed by the simcard which generate a high or low voltage level.
Even there are specifications of minipcie or ngff defining this signal, certain
modems behave different.
Certain modems require different signals from the specification.

Extend the usb protocol to set the behaviour at runtime.

Change-Id: I77118114ba873fdf0778137402888b40f2442456
2024-06-03 13:59:22 +02:00
Alexander Couzens 2fd8d3c18c dissector: add support for sim polarity
Change-Id: If3ae350d0f4d737bc9e80c4f5d73cc1a39d076af
2024-05-31 16:31:17 +02:00
Alexander Couzens d405133672 ngff_cardem: cosmetic: fix superflous space
Change-Id: Ib155d5778a0df7865958ab65fe2ce48b44f4326d
2024-05-22 15:09:23 +01:00
Alexander Couzens 2ceba0fdc4 firmware: usb: call USBD_HAL_DISCONNECT while usb init to recover from resets
The firmware doesn't recover from a OSMO_ASSERT() which direct reset the board.
After the reset the firmware will waits forever for the USBD state USBD_STATE_CONFIGURED.
By adding the explicit USBD_HAL_DISCONNECT the board always recovers.

Fixes: OS#5478
Related: SYS#5752
Change-Id: I600a26025166d20b6b27c191f24e4023efdaadf6
2022-03-09 07:21:01 +00:00