forked from len0rd/rockbox
the delay in the as3525 bootloader was driving me mad so remove it and get the bootloader closer to where a "finished" one should be (only show info if sometrhing needs to be shown, which is always for now.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19085 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d5ea63a1e8
commit
ce505b8a01
2 changed files with 12 additions and 5 deletions
|
@ -34,7 +34,7 @@
|
||||||
on a button press - currently only the ipod, H10 and Sansa versions do. */
|
on a button press - currently only the ipod, H10 and Sansa versions do. */
|
||||||
#if defined(IPOD_ARCH) || defined(IRIVER_H10) || defined(IRIVER_H10_5GB) \
|
#if defined(IPOD_ARCH) || defined(IRIVER_H10) || defined(IRIVER_H10_5GB) \
|
||||||
|| defined(SANSA_E200) || defined(SANSA_C200) || defined(GIGABEAT_F) \
|
|| defined(SANSA_E200) || defined(SANSA_C200) || defined(GIGABEAT_F) \
|
||||||
|| defined(PHILIPS_SA9200)
|
|| defined(PHILIPS_SA9200) || (CONFIG_CPU == AS3525)
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
#else
|
#else
|
||||||
bool verbose = true;
|
bool verbose = true;
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "backlight-target.h"
|
#include "backlight-target.h"
|
||||||
|
#include "button-target.h"
|
||||||
#include "ascodec-target.h"
|
#include "ascodec-target.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "storage.h"
|
#include "storage.h"
|
||||||
|
@ -41,7 +42,6 @@ void main(void)
|
||||||
int buffer_size;
|
int buffer_size;
|
||||||
void(*kernel_entry)(void);
|
void(*kernel_entry)(void);
|
||||||
int ret;
|
int ret;
|
||||||
int delay;
|
|
||||||
|
|
||||||
system_init();
|
system_init();
|
||||||
kernel_init();
|
kernel_init();
|
||||||
|
@ -52,9 +52,16 @@ void main(void)
|
||||||
ascodec_init(); /* Required for backlight on e200v2 */
|
ascodec_init(); /* Required for backlight on e200v2 */
|
||||||
_backlight_on();
|
_backlight_on();
|
||||||
|
|
||||||
delay = 0x3000000;
|
#if 0 /* remove me when the bootloader can be considered finished */
|
||||||
while(delay--); /* show splash screen */
|
int btn = button_read_device();
|
||||||
reset_screen();
|
|
||||||
|
/* Enable bootloader messages if any button is pressed */
|
||||||
|
if (btn)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
lcd_clear_display();
|
||||||
|
verbose = true;
|
||||||
|
}
|
||||||
|
|
||||||
asm volatile(
|
asm volatile(
|
||||||
"mrs r0, cpsr \n"
|
"mrs r0, cpsr \n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue