freemyipod r225 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r224‎ | r225 | r226 >
Date:03:19, 24 October 2010
Author:theseven
Status:new
Tags:
Comment:
SynopsysOTG: Fix line endings
Modified paths:
  • /embios/trunk/usb/synopsysotg.c (modified) (history)

Diff [purge]

Index: embios/trunk/usb/synopsysotg.c
@@ -353,29 +353,29 @@
354354 }
355355 }
356356
357 -void usb_drv_power_up(void)
358 -{
359 - /* Enable USB clock */
 357+void usb_drv_power_up(void)
 358+{
 359+ /* Enable USB clock */
360360 clockgate_enable(CLOCKGATE_USB_1, true);
361361 clockgate_enable(CLOCKGATE_USB_2, true);
362 - PCGCCTL = 0;
363 -
364 - /* reset the beast */
365 - usb_reset();
366 -}
367 -
368 -void usb_drv_power_down(void)
369 -{
370 - DCTL = 0x802; /* Soft Disconnect */
371 -
372 - ORSTCON = 1; /* Put the PHY into reset (needed to get current down) */
373 - PCGCCTL = 1; /* Shut down PHY clock */
374 - OPHYPWR = 0xF; /* PHY: Power down */
375 -
 362+ PCGCCTL = 0;
 363+
 364+ /* reset the beast */
 365+ usb_reset();
 366+}
 367+
 368+void usb_drv_power_down(void)
 369+{
 370+ DCTL = 0x802; /* Soft Disconnect */
 371+
 372+ ORSTCON = 1; /* Put the PHY into reset (needed to get current down) */
 373+ PCGCCTL = 1; /* Shut down PHY clock */
 374+ OPHYPWR = 0xF; /* PHY: Power down */
 375+
376376 clockgate_enable(CLOCKGATE_USB_1, false);
377377 clockgate_enable(CLOCKGATE_USB_2, false);
378 -}
379 -
 378+}
 379+
380380 void usb_check_vbus()
381381 {
382382 bool oldstate = false;