g3: add flags for external sd and usb-otg