summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-06-17 22:30:58 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-06-17 22:30:58 +0000
commit2cf33133820ee17e4b5d2d622db15dedff1a1f6e (patch)
tree60eddf4c3f16d5d274bc111ce53db02cfe75a6e8 /bootloader
parentd4800fa3851d2d89c1be03ec99af81f277892579 (diff)
downloadrockbox-2cf33133820ee17e4b5d2d622db15dedff1a1f6e.tar.gz
rockbox-2cf33133820ee17e4b5d2d622db15dedff1a1f6e.zip
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
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c38
1 files changed, 35 insertions, 3 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index 868d6e499f..85a545b523 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -37,6 +37,9 @@
37#include "power.h" 37#include "power.h"
38#include "pinctrl-imx233.h" 38#include "pinctrl-imx233.h"
39#include "system-target.h" 39#include "system-target.h"
40#include "ssp-imx233.h"
41
42#include "usb.h"
40 43
41int show_logo(void); 44int show_logo(void);
42 45
@@ -60,10 +63,39 @@ void main(void)
60 63
61 button_init_device(); 64 button_init_device();
62 65
63 button_debug_screen(); 66 //button_debug_screen();
64 67
65 power_off(); 68 #if 0
69 usb_init();
70 usb_start_monitoring();
71 extern int usb_status;
72 usb_status = USB_INSERTED;
73 usb_status_event(USB_POWERED);
74
75 printf("USB: Connecting");
76
77 while(1)
78 {
79 int button = button_get_w_tmo(HZ/25);
66 80
81 if(button == SYS_USB_CONNECTED)
82 break; /* Hit */
83 if(button_read_device() & BUTTON_POWER)
84 power_off();
85 yield();
86 }
87
88 printf("USB: Connected");
89 while(1)
90 {
91 int button = button_get_w_tmo(HZ/25);
92
93 if(button_read_device() & BUTTON_POWER)
94 power_off();
95 yield();
96 }
97 #endif
98
67 ret = storage_init(); 99 ret = storage_init();
68 if(ret < 0) 100 if(ret < 0)
69 error(EATA, ret, true); 101 error(EATA, ret, true);