Adapting USB OTG host code to YP-G1