bios/main: align SoC info, show CPU speed on CPU line, show L2

This commit is contained in:
Florent Kermarrec 2019-03-30 11:49:39 +01:00
parent 6599f7bb50
commit dd214d2d21
1 changed files with 10 additions and 7 deletions

View File

@ -405,7 +405,7 @@ int main(int i, char **c)
printf("\n"); printf("\n");
printf("--============ \e[1mSoC info\e[0m ================--\n"); printf("--============ \e[1mSoC info\e[0m ================--\n");
printf("\e[1mCPU: \e[0m"); printf("\e[1mCPU\e[0m: ");
#ifdef __lm32__ #ifdef __lm32__
printf("LM32"); printf("LM32");
#elif __or1k__ #elif __or1k__
@ -419,11 +419,13 @@ int main(int i, char **c)
#else #else
printf("Unknown"); printf("Unknown");
#endif #endif
printf("\n"); printf(" @ %dMHz\n", SYSTEM_CLOCK_FREQUENCY/1000000);
printf("\e[1mFrequency\e[0m: %dMHz\n", SYSTEM_CLOCK_FREQUENCY/1000000); printf("\e[1mROM\e[0m: %dKB\n", ROM_SIZE/1024);
printf("\e[1mROM\e[0m: %dKB\n", ROM_SIZE/1024); printf("\e[1mSRAM\e[0m: %dKB\n", SRAM_SIZE/1024);
printf("\e[1mSRAM\e[0m: %dKB\n", SRAM_SIZE/1024); #ifdef L2_SIZE
printf("\e[1mMAIN-RAM\e[0m: %dKB\n", MAIN_RAM_SIZE/1024); printf("\e[1mL2\e[0m: %dKB\n", L2_SIZE/1024);
#endif
printf("\e[1mMAIN-RAM\e[0m: %dKB\n", MAIN_RAM_SIZE/1024);
printf("\n"); printf("\n");
printf("--========= \e[1mPeripherals init\e[0m ===========--\n"); printf("--========= \e[1mPeripherals init\e[0m ===========--\n");
@ -443,10 +445,11 @@ int main(int i, char **c)
printf("Memory initialization failed\n"); printf("Memory initialization failed\n");
printf("\n"); printf("\n");
if(sdr_ok) if(sdr_ok) {
printf("--========== \e[1mBoot sequence\e[0m =============--\n"); printf("--========== \e[1mBoot sequence\e[0m =============--\n");
boot_sequence(); boot_sequence();
printf("\n"); printf("\n");
}
printf("--============= \e[1mConsole\e[0m ================--\n"); printf("--============= \e[1mConsole\e[0m ================--\n");
while(1) { while(1) {