target/loader: disable bootrom mapping
authorSteve Markgraf <steve@steve-m.de>
Wed, 12 Jan 2011 18:09:16 +0000 (19:09 +0100)
committerSteve Markgraf <steve@steve-m.de>
Wed, 12 Jan 2011 18:09:16 +0000 (19:09 +0100)
This is for being able to read the whole flash on devices that use the bootrom,
and also fixes flash detection on the C139/C140/J100i

Signed-off-by: Steve Markgraf <steve@steve-m.de>
src/target/firmware/apps/loader/main.c

index fd10b19..04b337b 100644 (file)
@@ -133,6 +133,9 @@ int main(void)
        /* Always disable wdt (some platforms enable it on boot) */
        wdog_enable(0);
 
+       /* Disable the bootrom mapping */
+       calypso_bootrom(0);
+
        /* Initialize TWL3025 for power control */
        twl3025_init();