freemyipod r274 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r273‎ | r274 | r275 >
Date:00:02, 23 November 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Fix USB when booting from NOR on iPod Classic
Modified paths:
  • /embios/trunk/usb/synopsysotg.c (modified) (history)
  • /embios/trunk/usb/synopsysotg.h (modified) (history)

Diff [purge]

Index: embios/trunk/usb/synopsysotg.c
@@ -143,6 +143,7 @@
144144 ORSTCON = 1; /* PHY: Assert Software Reset */
145145 udelay(10);
146146 ORSTCON = 0; /* PHY: Deassert Software Reset */
 147+ OPHYUNK3 = 0x600;
147148
148149 GRSTCTL = 1; /* OTG: Assert Software Reset */
149150 while (GRSTCTL & 1); /* Wait for OTG to ack reset */
Index: embios/trunk/usb/synopsysotg.h
@@ -43,6 +43,7 @@
4444 #define OPHYPWR (*((uint32_t volatile*)(PHYBASE + 0x000)))
4545 #define OPHYCLK (*((uint32_t volatile*)(PHYBASE + 0x004)))
4646 #define ORSTCON (*((uint32_t volatile*)(PHYBASE + 0x008)))
 47+#define OPHYUNK3 (*((uint32_t volatile*)(PHYBASE + 0x018)))
4748 #define OPHYUNK1 (*((uint32_t volatile*)(PHYBASE + 0x01c)))
4849 #define OPHYUNK2 (*((uint32_t volatile*)(PHYBASE + 0x044)))
4950