FreeCalypso > hg > freecalypso-sw
diff target-utils/pirexplore/main.c @ 992:a7b0b426f9ca
target-utils: boot ROM UART autodetection revamped
The new implementation should work with both the familiar Calypso C035
boot ROM version found in our regular targets as well as the older
Calypso F741979B version found on the vintage D-Sample board.
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Wed, 30 Dec 2015 21:28:41 +0000 |
parents | fcbe1332b197 |
children |
line wrap: on
line diff
--- a/target-utils/pirexplore/main.c Wed Dec 30 20:48:12 2015 +0000 +++ b/target-utils/pirexplore/main.c Wed Dec 30 21:28:41 2015 +0000 @@ -1,18 +1,10 @@ #include "types.h" -#include "romvars.h" - -extern struct boot_rom_vars rom_vars; - -extern char *uart_name; main() { uart_select_init(); printf("Pirelli hardware exploration utility running\n"); - printf("Loaded via UART %d (%s) at baud rate #%d\n", rom_vars.uart_id, - uart_name, rom_vars.baud_rate_code); - printf("TCXO clock input autodetected to be %d MHz\n", - rom_vars.clktcxo_13mhz ? 13 : 26); + print_boot_rom_info(); /* * Make the same register settings as in the init script used by * fc-loadtool and fc-xram: ../../loadtools/scripts/pirelli.init