summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-07-22 15:45:58 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-07-22 15:45:58 +0000
commit82f70b8efdbff01a9b76e31f46300465b076f158 (patch)
tree056fd25a11b7fd29c5f8259c7531bd8623deed70 /bootloader
parent85c32dbd12108fc570afdec450b7d73684f37a2d (diff)
downloadrockbox-82f70b8efdbff01a9b76e31f46300465b076f158.tar.gz
rockbox-82f70b8efdbff01a9b76e31f46300465b076f158.tar.bz2
rockbox-82f70b8efdbff01a9b76e31f46300465b076f158.zip
imx233/fuze+: add SD detection supportbootloader_ams_v4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30196 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index bec8ceec5b..f6c5ad9cf4 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -40,8 +40,8 @@
#include "usb.h"
-void main(void) NORETURN_ATTR;
-void main(void)
+void main(uint32_t arg) NORETURN_ATTR;
+void main(uint32_t arg)
{
unsigned char* loadbuffer;
int buffer_size;
@@ -62,6 +62,8 @@ void main(void)
button_init_device();
//button_debug_screen();
+ printf("arg=%c%c%c%c", arg >> 24,
+ (arg >> 16) & 0xff, (arg >> 8) & 0xff, (arg & 0xff));
ret = storage_init();
if(ret < 0)
@@ -84,6 +86,9 @@ void main(void)
error(EDISK, ret, true);
}
+ if(button_read_device() & BUTTON_VOL_UP)
+ printf("Booting from SD card required.");
+
printf("Loading firmware");
loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */