1
0
Fork 0
forked from len0rd/rockbox

fuze+: add more clocking code, add dma code, add ssp code, add stub usb code, update storage to SD + MMC, beginning of the driver

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30010 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2011-06-17 22:30:58 +00:00
parent d4800fa385
commit 2cf3313382
15 changed files with 1069 additions and 4 deletions

View file

@ -37,6 +37,9 @@
#include "power.h"
#include "pinctrl-imx233.h"
#include "system-target.h"
#include "ssp-imx233.h"
#include "usb.h"
int show_logo(void);
@ -60,10 +63,39 @@ void main(void)
button_init_device();
button_debug_screen();
power_off();
//button_debug_screen();
#if 0
usb_init();
usb_start_monitoring();
extern int usb_status;
usb_status = USB_INSERTED;
usb_status_event(USB_POWERED);
printf("USB: Connecting");
while(1)
{
int button = button_get_w_tmo(HZ/25);
if(button == SYS_USB_CONNECTED)
break; /* Hit */
if(button_read_device() & BUTTON_POWER)
power_off();
yield();
}
printf("USB: Connected");
while(1)
{
int button = button_get_w_tmo(HZ/25);
if(button_read_device() & BUTTON_POWER)
power_off();
yield();
}
#endif
ret = storage_init();
if(ret < 0)
error(EATA, ret, true);