Changeset 37024


Ignore:
Timestamp:
2013-06-24T14:06:56+02:00 (5 years ago)
Author:
blogic
Message:

ramips: make rt3883 usb work properly

Signed-off-by: John Crispin <blogic@…>

Location:
trunk/target/linux/ramips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/patches-3.9/0160-USB-phy-add-ralink-SoC-driver.patch

    r37016 r37024  
    1212 create mode 100644 drivers/usb/phy/ralink-phy.c 
    1313 
    14 diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig 
    15 index 9054938..b197c70 100644 
    16 --- a/drivers/usb/phy/Kconfig 
    17 +++ b/drivers/usb/phy/Kconfig 
    18 @@ -74,3 +74,11 @@ config SAMSUNG_USBPHY 
     14Index: linux-3.9.6/drivers/usb/phy/Kconfig 
     15=================================================================== 
     16--- linux-3.9.6.orig/drivers/usb/phy/Kconfig    2013-06-13 19:52:08.000000000 +0200 
     17+++ linux-3.9.6/drivers/usb/phy/Kconfig 2013-06-23 16:37:57.544772712 +0200 
     18@@ -74,3 +74,11 @@ 
    1919        help 
    2020          Enable this to support Samsung USB phy controller for samsung 
     
    2828+         Enable this to support ralink USB phy controller for ralink 
    2929+         SoCs. 
    30 diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile 
    31 index b13faa1..2df30f1 100644 
    32 --- a/drivers/usb/phy/Makefile 
    33 +++ b/drivers/usb/phy/Makefile 
    34 @@ -12,3 +12,4 @@ obj-$(CONFIG_MV_U3D_PHY)              += mv_u3d_phy.o 
     30Index: linux-3.9.6/drivers/usb/phy/Makefile 
     31=================================================================== 
     32--- linux-3.9.6.orig/drivers/usb/phy/Makefile   2013-06-13 19:52:08.000000000 +0200 
     33+++ linux-3.9.6/drivers/usb/phy/Makefile        2013-06-23 16:37:57.544772712 +0200 
     34@@ -12,3 +12,4 @@ 
    3535 obj-$(CONFIG_USB_EHCI_TEGRA)   += tegra_usb_phy.o 
    3636 obj-$(CONFIG_USB_RCAR_PHY)             += rcar-phy.o 
    3737 obj-$(CONFIG_SAMSUNG_USBPHY)           += samsung-usbphy.o 
    3838+obj-$(CONFIG_RALINK_USBPHY)            += ralink-phy.o 
    39 diff --git a/drivers/usb/phy/ralink-phy.c b/drivers/usb/phy/ralink-phy.c 
    40 new file mode 100644 
    41 index 0000000..3fbabea 
    42 --- /dev/null 
    43 +++ b/drivers/usb/phy/ralink-phy.c 
     39Index: linux-3.9.6/drivers/usb/phy/ralink-phy.c 
     40=================================================================== 
     41--- /dev/null   1970-01-01 00:00:00.000000000 +0000 
     42+++ linux-3.9.6/drivers/usb/phy/ralink-phy.c    2013-06-24 13:55:19.932135036 +0200 
    4443@@ -0,0 +1,191 @@ 
    4544+/* 
     
    10099+               usb_phy_enable(1); 
    101100+ 
    102 +               reset_control_assert(rstdev); 
    103 +               reset_control_assert(rsthost); 
     101+//             reset_control_assert(rstdev); 
     102+//             reset_control_assert(rsthost); 
    104103+ 
    105104+               if (OTG_STATE_B_HOST) { 
     
    234233+MODULE_DESCRIPTION("Ralink USB phy"); 
    235234+MODULE_AUTHOR("John Crispin <blogic@openwrt.org>"); 
    236 --  
    237 1.7.10.4 
    238  
  • trunk/target/linux/ramips/rt3883/config-3.9

    r37016 r37024  
    129129# CONFIG_PREEMPT_RCU is not set 
    130130CONFIG_RALINK=y 
    131 # CONFIG_RALINK_USBPHY is not set 
     131CONFIG_RALINK_USBPHY=y 
    132132CONFIG_RALINK_WDT=y 
    133133# CONFIG_RCU_STALL_COMMON is not set 
     
    159159CONFIG_UIDGID_CONVERTED=y 
    160160CONFIG_USB_ARCH_HAS_XHCI=y 
     161CONFIG_USB_OTG_UTILS=y 
    161162CONFIG_USB_SUPPORT=y 
    162163CONFIG_USE_OF=y 
Note: See TracChangeset for help on using the changeset viewer.