Enable otg support and copy missing function on driver.c