oh, hello bluetooth dongle :D
[ppcskel.git] / main.c
diff --git a/main.c b/main.c
index bbb7d39c9c81b72da7091708cbcdac569cb1a92f..e9dc2079128a0a34cba289735a14b2d3967a224d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -26,6 +26,7 @@ Copyright (C) 2009              John Kelley <wiidev@kelley.ca>
 #include "console.h"
 #include "irq.h"
 #include "usb/core/core.h"
+#include "hollywood.h"
 
 #define MINIMUM_MINI_VERSION 0x00010001
 
@@ -100,8 +101,6 @@ int main(void)
        VIDEO_SetFrameBuffer(get_xfb());
        VISetupEncoder();
 
-       usb_init();
-
        u32 version = ipc_getvers();
        u16 mini_version_major = version >> 16 & 0xFFFF;
        u16 mini_version_minor = version & 0xFFFF;
@@ -115,19 +114,15 @@ int main(void)
                        ; // better ideas welcome!
        }
 
+       usb_init(OHCI0_REG_BASE);
+       usb_init(OHCI1_REG_BASE);
+
        /*
     print_str_noscroll(112, 112, "ohai, world!\n");
        testOTP();
        printf("bye, world!\n");
        */
 
-       while(1) {
-               // just to get sure we are still in this loop
-               //_CPU_ISR_Enable() // don't know why this is needed...
-               //udelay(100000);
-               //printf("x");
-       }
-
        return 0;
 }