summaryrefslogtreecommitdiffstats
path: root/bootloader/mini2440.c
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-10-22 17:45:02 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-10-22 17:45:02 +0000
commit5b4938a8ca8494afa560200b67eb76df4224caea (patch)
treea3051a2e0abf058d9b8a7b09483d3a3f381b8e50 /bootloader/mini2440.c
parent724d1e0f3cfba44d7aa4248d15c3ce35a718a91f (diff)
downloadrockbox-5b4938a8ca8494afa560200b67eb76df4224caea.tar.gz
rockbox-5b4938a8ca8494afa560200b67eb76df4224caea.tar.bz2
rockbox-5b4938a8ca8494afa560200b67eb76df4224caea.zip
Working Bootloader for mini2440.
Flyspray: FS#10701 Author: Bob Cousins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23316 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/mini2440.c')
-rw-r--r--bootloader/mini2440.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/bootloader/mini2440.c b/bootloader/mini2440.c
index c17f386b5b..dd811600f3 100644
--- a/bootloader/mini2440.c
+++ b/bootloader/mini2440.c
@@ -5,7 +5,7 @@
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
- *
+ * $Id$
*
* Copyright (C) 2009 by Bob Cousins, Lyre Project
*
@@ -43,10 +43,8 @@
#include "backlight-target.h"
#include "lcd-target.h"
#include "debug-target.h"
-#if 0
#include "dma-target.h"
#include "uart-s3c2440.h"
-#endif
#include "led-mini2440.h"
/* Show the Rockbox logo - in show_logo.c */
@@ -55,14 +53,11 @@ extern int show_logo(void);
int main(void)
{
-#if 0
/* required later */
unsigned char* loadbuffer;
int buffer_size;
int rc;
int(*kernel_entry)(void);
-#endif
- int start, elapsed;
led_init();
clear_leds(LED_ALL);
@@ -74,20 +69,11 @@ int main(void)
lcd_init();
lcd_setfont(FONT_SYSFIXED);
button_init();
-#if 0
dma_init();
uart_init_device(UART_DEBUG);
-#endif
-/* mini2440_test(); */
-
-#if 1
- show_logo();
- /* pause here for now */
- led_flash(LED1|LED4, LED2|LED3);
-#endif
-
-#if 0
+/* mini2440_test(); */
+
/* TODO */
/* Show debug messages if button is pressed */
@@ -130,15 +116,11 @@ int main(void)
if (rc == EOK)
{
- uart_printf ("entering kernel\n");
cpucache_invalidate();
kernel_entry = (void*) loadbuffer;
rc = kernel_entry();
}
- uart_printf ("stopping %d\n", rc);
-#endif
-
/* end stop - should not get here */
led_flash(LED_ALL, LED_NONE);
while (1); /* avoid warning */