Lars Ivar Miljeteig
e69448bf61
rm-otgcontrol: Add licensing info
2020-10-08 20:41:29 +02:00
Steinar Bakkemo
d30c2ef150
otgcontrol: change charger_mode property string to comply with power_supply_sysfs.c
...
OTG_supply -> OTG Supply
2020-10-08 20:41:21 +02:00
Steinar Bakkemo
a0d2974708
otgcontrol: adapt otg1_chargermode property to take both int/string as input
...
When reading the otg1_chargermode property, a list of valid strings are
returned.
Valid enum values may be given when writing to the otg1_chargermode
property, in addition to one of the strings returned when reading
the property (Charger, OTG_supply, Off).
2020-10-08 20:41:21 +02:00
Steinar Bakkemo
1c68dc0481
otgcontrol: add support for setting charger mode to OFF
2020-10-08 20:07:11 +02:00
Steinar Bakkemo
2d54f337c5
otgcntrol: fix simple dev_dbg outputting error message => dev_err
2020-10-08 20:07:11 +02:00
Steinar Bakkemo
e4330ec5be
otgcontrol: adapt to changed charger-driver interface
...
Original "set mode + set online" => "set mode"
2020-10-08 20:06:40 +02:00
Steinar Bakkemo
d6cdbfc9bb
otgcontrol: adjust to 8 char tab width and squeeze code within 80 chars, dyndbg
...
Convert printk's to dev_dbg.
Fix tabs (8 chars) and wrap lines to fit within 80 chars, according to kernel
standards.
2020-10-08 20:03:39 +02:00
Steinar Bakkemo
2833df5aa4
otgcontrol: implement initial FSM
...
Complete disabling of authenticated USB device connection in all modes
Code cleanup
- Spaces -> tabs
- Cleaner initiation sequence
2020-10-08 19:46:24 +02:00
Steinar Bakkemo
5279a775da
otgcontrol: rm-otgcontrol driver initial commit
2020-10-08 18:30:57 +02:00