From b3d96833d023547c5868e292cb530b85489a71b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Sat, 11 Oct 2003 21:35:46 +0000 Subject: fixed rolo-ing of original Archos firmware when flashed. Finally narrowed it down, PAIOR needs to be initialized. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3969 a1c6a512-1295-4272-9138-f99709370657 --- firmware/rolo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/rolo.c b/firmware/rolo.c index 46819d8..80dab75 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -171,7 +171,7 @@ int rolo_load(char* filename) return -1; } - restore_io = rolo_io_load("/startup_io.bin"); /* test code, recycle a variable */ + restore_io = rolo_io_load("/startup_io.bin"); /* test code */ lcd_puts(0, 1, "Executing "); lcd_update(); @@ -185,6 +185,7 @@ int rolo_load(char* filename) system_init(); /* Initialize system for restart */ i2c_init(); /* Init i2c bus - it seems like a good idea */ ICR = IRQ0_EDGE_TRIGGER; /* Make IRQ0 edge triggered */ + PAIOR = 0x0FA0; /* needed when flashed, probably model-specific */ if (restore_io) /* test code */ rolo_io_restore(); /* restore the I/Os from the file content */ -- cgit v1.1