示例#1
0
void usb_enable(bool on)
{
    /* FIXME: power up/down usb phy and pll usb */
    if(on)
        usb_core_init();
    else
        usb_core_exit();
}
示例#2
0
void usb_enable(bool on)
{
#if defined(HAVE_USBSTACK) && defined(USE_ROCKBOX_USB)
    if (on)
        usb_core_init();
    else
        usb_core_exit();
#else
    (void)on;
#endif
}
/* RB API fuctions */
void usb_enable(bool on)
{
#ifdef HAVE_USBSTACK
    if (on){
        cpu_boost(1);
        usb_core_init();
    } else {
        usb_core_exit();
        cpu_boost(0);
    }
#else
    (void)on;
#endif
}
void usb_enable(bool on)
{
    if(on)
    {
        imx233_enable_usb_pll(true);
        imx233_enable_usb_phy(true);
        imx233_enable_usb_controller(true);
        usb_core_init();
    }
    else
    {
        usb_core_exit();
        imx233_enable_usb_controller(false);
        imx233_enable_usb_phy(false);
        imx233_enable_usb_pll(false);
    }
}
示例#5
0
void usb_enable(bool on)
{
    /* Module clock should be on since since this could be called with
     * OFF initially and writing module registers would hardlock otherwise. */
    ccm_module_clock_gating(CG_USBOTG, CGM_ON_RUN_WAIT);
    enable_transceiver(true);

    if (on)
    {
        usb_core_init();
    }
    else
    {
        usb_core_exit();
        enable_transceiver(false);
        ccm_module_clock_gating(CG_USBOTG, CGM_OFF);
    }
}
示例#6
0
void usb_enable(bool on)
{
    if (on) usb_core_init();
    else usb_core_exit();
}