天嵌 ARM开发社区

 找回密码
 注册
查看: 3084|回复: 0

TQ210 更新之usb hub复位问题

[复制链接]
TQ-lkp 发表于 2014-2-13 10:00:35 | 显示全部楼层 |阅读模式
2014-02-13更新:
       bug描述:
       usb hub 系统调用reboot后没有复位问题,会导致USB设备无法继续使用。
       解决方法:
       修改内核目录arch/arm/mach-s5pv210/mach-tq210.c
  1. +#ifdef CONFIG_USB_SUPPORT
  2. +void usb_host_phy_off(void)
  3. +{
  4. +    __raw_writel(__raw_readl(S3C_USBOTG_PHYPWR) | (0x1<<7)|(0x1<<6),
  5. +    S3C_USBOTG_PHYPWR);
  6. +    __raw_writel(__raw_readl(S5P_USB_PHY_CONTROL) & ~(1<<1),
  7. +    S5P_USB_PHY_CONTROL);
  8. +}
  9. +EXPORT_SYMBOL(usb_host_phy_off);
  10. +#endif

  11. +static void tq210_pm_restart(char mode, const char *cmd)
  12. +{
  13. +    usb_host_phy_off();
  14. +    arm_machine_restart(mode, cmd);
  15. +}
  16. static void __init tq210_machine_init(void)
  17. {
  18. +   arm_pm_restart = tq210_pm_restart;
复制代码



您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-29 22:42 , Processed in 1.078125 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表