Пример #1
0
/*============================================================================*/
static void bldr_pre_process(void)
{
    /* enter preloader safe mode */
    platform_safe_mode(1, 5000);

    /* essential hardware initialization. e.g. timer, pll, uart... */
    platform_pre_init();

    print("\n%s Build Time: %s\n", MOD, BUILD_TIME);    

    g_boot_mode = NORMAL_BOOT;

    /* hardware initialization */
    platform_init();

#if CFG_UART_TOOL_HANDSHAKE
    /* init uart handshake for sending 'ready' to tool and receiving handshake
     * pattern from tool in the background and we'll see the pattern later.
     * this can reduce the handshake time.
     */
    uart_handshake_init();
#endif   

    part_init();
    part_dump();

    /* init security library */
    sec_lib_init();
}
Пример #2
0
static void bldr_pre_process(void)
{

    #if CFG_USB_AUTO_DETECT
    platform_usbdl_flag_check();
    #endif

    #if CFG_EMERGENCY_DL_SUPPORT
    platform_safe_mode(1, CFG_EMERGENCY_DL_TIMEOUT_MS);
    #endif

    /* essential hardware initialization. e.g. timer, pll, uart... */
    platform_pre_init();

    print("\n%s Build Time: %s\n", MOD, BUILD_TIME);
//    config_DCC_Calin();
//    dump_dcc_regs();
//    disable_FBB_SW();

    g_boot_mode = NORMAL_BOOT;

    /* hardware initialization */
    platform_init();

#if CFG_UART_TOOL_HANDSHAKE
				/* init uart handshake for sending 'ready' to tool and receiving handshake
				 * pattern from tool in the background and we'll see the pattern later.
				 * this can reduce the handshake time.
				 */
	//#ifdef DUMMY_AP //FIXME
				uart_handshake_init();
	//#endif
#endif
    BOOTING_TIME_PROFILING_LOG("UART handshake init");
    log_buf_ctrl(1); /* switch log buffer to dram */

    part_init();
    part_dump();
	BOOTING_TIME_PROFILING_LOG("Part Init");

    /* init security library */
    sec_lib_init();
	BOOTING_TIME_PROFILING_LOG("Sec lib init");
}
Пример #3
0
/*============================================================================*/
static void bldr_pre_process(void)
{
    #ifdef PL_PROFILING
    u32 profiling_time;
    profiling_time = 0;
    #endif

#if defined(CFG_USB_AUTO_DETECT)
	platform_usbdl_flag_check();
#endif

    /* enter preloader safe mode */
#if CFG_EMERGENCY_DL_SUPPORT
    platform_safe_mode(1, CFG_EMERGENCY_DL_TIMEOUT_MS);
#endif

    /* essential hardware initialization. e.g. timer, pll, uart... */
    platform_pre_init();

    #ifdef PL_PROFILING
    printf("#T#total_preplf_init=%d\n", get_timer(0));
    #endif
    print("\n%s Build Time: %s\n", MOD, BUILD_TIME);

    g_boot_mode = NORMAL_BOOT;

    #ifdef PL_PROFILING
    profiling_time = get_timer(0);
    #endif
    /* hardware initialization */
    platform_init();

    #ifdef PL_PROFILING
    printf("#T#total_plf_init=%d\n", get_timer(profiling_time));
    #endif
#if CFG_UART_TOOL_HANDSHAKE && (!defined(CFG_MEM_PRESERVED_MODE))
    #ifdef PL_PROFILING
    profiling_time = get_timer(0);
    #endif
    /* init uart handshake for sending 'ready' to tool and receiving handshake
     * pattern from tool in the background and we'll see the pattern later.
     * this can reduce the handshake time.
     */
    uart_handshake_init();

    #ifdef PL_PROFILING
    printf("#T#UART_hdshk=%d\n", get_timer(profiling_time));
    #endif
#endif  //#if CFG_UART_TOOL_HANDSHAKE && (!defined(CFG_MEM_PRESERVED_MODE))

    #ifdef PL_PROFILING
    profiling_time = get_timer(0);
    #endif
    part_init();
    part_dump();

    #ifdef PL_PROFILING
    printf("#T#part_init+dump=%d\n", get_timer(profiling_time));
    #endif

    #ifdef PL_PROFILING
    profiling_time = get_timer(0);
    #endif
    /* init security library */
    sec_lib_init();

    #ifdef PL_PROFILING
    printf("#T#sec_lib_init=%d\n", get_timer(profiling_time));
    #endif
}