USB host-device switching patch change

Ian Stirling OpenMoko at mauve.plus.com
Mon Aug 6 04:32:45 CEST 2007


Are these all the changes that are needed to alter the
s3c2410-usb-switch.patch in svn to work?
Seems trivial.
I don't see anything other broken in a simple reading of the patch.

--- s3c2410-usb-switch.patch    2007-08-02 21:04:48.000000000 +0100
+++ new 2007-08-06 03:25:58.000000000 +0100
@@ -74,8 +74,10 @@
  +               * - call machine-specific disable-pullup function i
  +               * - enable +Vbus (if hardware supports it)
  +               */
++              s3c2410_gpio_setpin(S3C2410_GPE5, 0);
  +      } else if (!strcmp(buf, "device")) {
  +              s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST, 0);
++              s3c2410_gpio_setpin(S3C2410_GPE5, 1);
  +      } else
  +              return -EINVAL;




More information about the neo1973-hardware mailing list