X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=main.c;h=e2a51e95566d2ea00c33aec6983a22dc6f82102c;hb=f57c39027e4f153e0ce2f3ab847fb83da624e31d;hp=d69bb40a1d53dda7f353ae9fb491c4d1fc9f95d2;hpb=7e5ba118123fc6f330fb1416d0154f39b851a843;p=ppcskel.git diff --git a/main.c b/main.c index d69bb40..e2a51e9 100644 --- a/main.c +++ b/main.c @@ -26,6 +26,7 @@ Copyright (C) 2009 John Kelley #include "console.h" #include "irq.h" #include "usb/core/core.h" +#include "hollywood.h" #define MINIMUM_MINI_VERSION 0x00010001 @@ -87,7 +88,10 @@ int main(void) irq_initialize(); irq_bw_enable(BW_PI_IRQ_RESET); irq_bw_enable(BW_PI_IRQ_HW); //hollywood pic + /* external ohci */ irq_hw_enable(IRQ_OHCI0); + /* internal ohci */ + //irq_hw_enable(IRQ_OHCI1); ipc_initialize(); ipc_slowping(); @@ -100,8 +104,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,21 +117,17 @@ int main(void) ; // better ideas welcome! } + /* external ohci */ + usb_init(OHCI0_REG_BASE); + /* internal ohci */ + //usb_init(OHCI1_REG_BASE); + /* print_str_noscroll(112, 112, "ohai, world!\n"); testOTP(); printf("bye, world!\n"); */ - (void) usb_add_device(); - - 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; }