void SYSC_CLKInform(void) { u32 uTTT0, uTTT1; SYSC_CtrlCLKOUT( eCLKOUT_APLLOUT, 4); SYSC_GetClkInform(); UART_InitDebugCh(0, 115200); uTTT0 = SYSC_RdLockDetect(eAPLL); uTTT1= SYSC_RdLockDetect(eMPLL); UART_Printf("\n\n"); UART_Printf("***************************************************\n"); UART_Printf("* S3C6410 - Test firmware v0.1 *\n"); UART_Printf("***************************************************\n"); UART_Printf("System ID : Revision [%d], Pass [%d]\n", g_System_Revision, g_System_Pass); UART_Printf("ARMCLK: %.2fMHz HCLKx2: %.2fMHz HCLK: %.2fMHz PCLK: %.2fMHz\n",(float)g_ARMCLK/1.0e6, (float)g_HCLKx2/1.0e6, (float)g_HCLK/1.0e6, (float)g_PCLK/1.0e6); UART_Printf("SYNC Mode : %d\n", g_SYNCACK); UART_Printf("APLL Lock : %d, MPLL_Lock: %d\n", uTTT0, uTTT1); UART_Printf("AMPLL: %.2fMHz \n",(float)g_MPLL/1.0e6); UART_Printf("\n"); }
////////// // Function Name : OpenConsole // Function Description : This function opens uart and LED for debugging // Input : NONE // Output : NONE // Version : void OpenConsole( void) { u8 ch=0; //uart channel for debugging InitUartPort(ch, FALSE); UART_InitDebugCh(ch, 115200); // InitLED(); return; }