upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
799 B
34 lines
799 B
/*
|
|
* (C) Copyright 2015 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <command.h>
|
|
#include "dhry.h"
|
|
|
|
static int do_dhry(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
{
|
|
ulong start, duration, dhry_per_sec, vax_mips;
|
|
int iterations = 1000000;
|
|
|
|
if (argc > 1)
|
|
iterations = simple_strtoul(argv[1], NULL, 10);
|
|
|
|
start = get_timer(0);
|
|
dhry(iterations);
|
|
duration = get_timer(start);
|
|
dhry_per_sec = iterations * 1000 / duration;
|
|
vax_mips = dhry_per_sec / 1757;
|
|
printf("%d iterations in %lu ms: %lu/s, %lu DMIPS\n", iterations,
|
|
duration, dhry_per_sec, vax_mips);
|
|
|
|
return 0;
|
|
}
|
|
|
|
U_BOOT_CMD(
|
|
dhry, 2, 1, do_dhry,
|
|
"[iterations] - run dhrystone benchmark",
|
|
"\n - run the Dhrystone 2.1 benchmark, a rough measure of CPU speed\n"
|
|
);
|
|
|