NANDファームをPARTNERでデバッグするためのNORファームをデフォルトバックライトOFFに。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@769 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
nakasima 2008-02-28 12:07:49 +00:00
parent 7a3bc18bfe
commit a500703b62
2 changed files with 11 additions and 2 deletions

View File

@ -18,6 +18,7 @@
#include "reboot.h"
//#define PRINT_DEBUG
//#define FIRM_ENABLE_BACKLIGHT
#ifndef PRINT_DEBUG
#undef OS_TPrintf
@ -28,9 +29,11 @@ void TwlSpMain( void )
{
OS_TPrintf( "\nNOR Boot time is %d msec.\n", OS_TicksToMilliSecondsBROM32(OS_GetTick()));
// MIi_CpuClearFast( 0, (void*)HW_TWL_ROM_HEADER_BUF, HW_MAIN_MEM_SYSTEM_END - HW_TWL_ROM_HEADER_BUF ); // include HW_MAIN_MEM_SHARED
MIi_CpuClearFast( 0, (void*)OSi_GetFromBromAddr(), sizeof(OSFromBromBuf) );
#ifdef FIRM_ENABLE_BACKLIGHT
// MIi_CpuClearFast( 0, (void*)HW_TWL_ROM_HEADER_BUF, HW_MAIN_MEM_SYSTEM_END - HW_TWL_ROM_HEADER_BUF ); // include HW_MAIN_MEM_SHARED
OS_InitFIRM();
OS_TPrintf( "\nARM7 starts.\n" );
@ -44,6 +47,7 @@ void TwlSpMain( void )
PM_BackLightOn( TRUE );
OS_TPrintf( "\nARM7 ends.\n" );
#endif // FIRM_ENABLE_BACKLIGHT
REBOOT_DisableInterruptsAndProtectionUnit();
reg_SCFG_JTAG = REG_SCFG_JTAG_CPUJE_MASK | REG_SCFG_JTAG_ARM7SEL_MASK | REG_SCFG_JTAG_DSPJE_MASK;

View File

@ -18,6 +18,7 @@
#include "reboot.h"
//#define PRINT_DEBUG
//#define FIRM_ENABLE_BACKLIGHT
#ifndef PRINT_DEBUG
#undef OS_TPrintf
@ -30,12 +31,16 @@ void TwlMain( void )
MIi_CpuClearFast( 0, (void*)OSi_GetFromBromAddr(), sizeof(OSFromBromBuf) );
#ifdef FIRM_ENABLE_BACKLIGHT
OS_InitFIRM();
OS_TPrintf( "\nARM9 starts.\n" );
OS_TPrintf( "\nARM9 ends.\n" );
#endif // FIRM_ENABLE_BACKLIGHT
REBOOT_DisableInterruptsAndProtectionUnit();
OS_Terminate();
while (1)
{
}
}