X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fcommon.h;h=74d97046a0e5242c330dd9fd923e492dde2b8349;hb=7373323056f524b3136cee4911f1debc23723ae7;hp=3df1defab16f3f690b7d6880b96046e48f46ed95;hpb=d877bc099e3a37ac13cfdf20139c1ffcac5c9ac4;p=oweals%2Fu-boot.git diff --git a/include/common.h b/include/common.h index 3df1defab1..74d97046a0 100644 --- a/include/common.h +++ b/include/common.h @@ -206,6 +206,13 @@ typedef void (interrupt_handler_t)(void *); #endif /* CONFIG_SERIAL_MULTI */ +/* + * Return the time since boot in microseconds, This is needed for bootstage + * and should be defined in CPU- or board-specific code. If undefined then + * millisecond resolution will be used (the standard get_timer()). + */ +ulong timer_get_boot_us(void); + /* * General Purpose Utilities */ @@ -260,12 +267,10 @@ int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen); /* common/main.c */ void main_loop (void); -int run_command (const char *cmd, int flag); -#ifdef CONFIG_CMD_PXE -int run_command2(const char *cmd, int flag); -#endif +int run_command(const char *cmd, int flag); int readline (const char *const prompt); -int readline_into_buffer (const char *const prompt, char * buffer); +int readline_into_buffer(const char *const prompt, char *buffer, + int timeout); int parse_line (char *, char *[]); void init_cmd_timeout(void); void reset_cmd_timeout(void); @@ -284,13 +289,7 @@ int last_stage_init(void); extern ulong monitor_flash_len; int mac_read_from_eeprom(void); extern u8 _binary_dt_dtb_start[]; /* embedded device tree blob */ - -/* - * Called when console output is requested before the console is available. - * The board should do its best to get the character out to the user any way - * it can. - */ -void board_pre_console_putc(int ch); +int set_cpu_clk_info(void); /* common/flash.c */ void flash_perror (int); @@ -799,10 +798,8 @@ int pcmcia_init (void); #ifdef CONFIG_STATUS_LED # include #endif -/* - * Board-specific Platform code can reimplement show_boot_progress () if needed - */ -void show_boot_progress(int val); + +#include /* Multicore arch functions */ #ifdef CONFIG_MP