Commit Graph

5 Commits

Author SHA1 Message Date
Keith Short
e63584dcf5 test: bc12: add charging mode test
Add chargning mode test for the pi3usb9201 BC1.2 device.

Signed-off-by: Keith Short <keithshort@google.com>
2023-05-08 09:57:56 +02:00
Keith Short
86cb55943d bc12: Add charging mode role information to callback
Update the result callback routine to also provide information about the
charging mode role. This permits tests to validate plug/unplug events
detected by the BC1.2 device operating in charging mode.

Signed-off-by: Keith Short <keithshort@google.com>
2023-05-08 09:57:56 +02:00
Keith Short
824d021377 test: bc12: cleanup naming
Cleanup some internal names.  Remove references to the pi3usb9201 device
as the test should work with all BC1.2 driver/emulators.

Signed-off-by: Keith Short <keithshort@google.com>
2023-05-08 09:57:56 +02:00
Keith Short
3981b8f827 test: bc12: rename test
Rename the main test file to pd_mode.c as the test verfies portable
device mode only.

Signed-off-by: Keith Short <keithshort@google.com>
2023-05-08 09:57:56 +02:00
Keith Short
0d342989cf test: bc12: add test for pi3usb9201 device
Verify the operation of the pi3usb9201 USB charging detector driver.

Signed-off-by: Keith Short <keithshort@google.com>
2023-03-30 17:34:36 -04:00