am 5e294902
: Merge "init.usb.rc: fix USB typec property names" into mnc-dr-dev
* commit '5e29490203c1f83fbdb4bbc68227ab5b7cc14681': init.usb.rc: fix USB typec property names
This commit is contained in:
commit
100de590e7
1 changed files with 4 additions and 4 deletions
|
@ -108,18 +108,18 @@ on property:sys.usb.typec.mode=ufp
|
|||
|
||||
# USB data role changes
|
||||
on property:sys.usb.typec.data_role=device
|
||||
write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data}
|
||||
write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role}
|
||||
setprop sys.usb.typec.state ${sys.usb.typec.data_role}
|
||||
|
||||
on property:sys.usb.typec.data_role=host
|
||||
write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data}
|
||||
write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role}
|
||||
setprop sys.usb.typec.state ${sys.usb.typec.data_role}
|
||||
|
||||
# USB power role changes
|
||||
on property:sys.usb.typec.power_role=source
|
||||
write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power}
|
||||
write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role}
|
||||
setprop sys.usb.typec.state ${sys.usb.typec.power_role}
|
||||
|
||||
on property:sys.usb.typec.power_role=sink
|
||||
write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power}
|
||||
write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role}
|
||||
setprop sys.usb.typec.state ${sys.usb.typec.power_role}
|
||||
|
|
Loading…
Reference in a new issue