endchoice
choice
- bool " Controller default status"
+ bool "Controller default status"
depends on DWC_OTG_BOTH_HOST_SLAVE
default DWC_OTG_DEFAULT_ID
.dma_enable = -1,
.dma_burst_size = -1,
.speed = -1,
- .host_support_fs_ls_low_power = -1,
+ .host_support_fs_ls_low_power = 1,
.host_ls_low_power_phy_clk = -1,
.enable_dynamic_fifo = -1,
.data_fifo_size = -1,
/* Check if we need to adjust the PHY clock speed for
* low power and adjust it */
+ /*yk @rk 20110525*/
+ /*fix bug usb host 1.1 with low-speed*/
if (params->host_support_fs_ls_low_power)
{
gusbcfg_data_t usbcfg;
* Low power
*/
hcfg_data_t hcfg;
+ #if 0
if (usbcfg.b.phylpwrclksel == 0) {
/* Set PHY low power clock select for FS/LS devices */
usbcfg.b.phylpwrclksel = 1;
dwc_write_reg32(&global_regs->gusbcfg, usbcfg.d32);
do_reset = 1;
}
+ #endif
hcfg.d32 = dwc_read_reg32(&host_if->host_global_regs->hcfg);
hcfg.b.fslspclksel = DWC_HCFG_6_MHZ;
dwc_write_reg32(&host_if->host_global_regs->hcfg,
hcfg.d32);
+ dwc_write_reg32(&host_if->host_global_regs->hfir, 0x1770);
do_reset = 1;
}
}
hcfg.b.fslspclksel = DWC_HCFG_48_MHZ;
dwc_write_reg32(&host_if->host_global_regs->hcfg,
hcfg.d32);
+ dwc_write_reg32(&host_if->host_global_regs->hfir, 0xea60);
do_reset = 1;
}
}