12 Jul, 2017
1 commit
-
Move the display options code into a separate function so that the U-Boot
banner can be obtained from other code. Adjust the 'version' command to
use it.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
Tested-by: Stephen Warren
20 Nov, 2015
2 commits
-
Since common.h will always include this automatically, it is not needed.
Signed-off-by: Simon Glass
-
The console includes a global variable and several functions that are only
used by a small subset of U-Boot files. Before adding more functions, move
the definitions into their own header file.Signed-off-by: Simon Glass
29 Aug, 2015
1 commit
-
Build without CONFIG_SPL_SERIAL_SUPPORT does not print the cpu freq.
I have seen this in the odroid U3 board, where on boot one sees this:
CPU: Exynos4412 @ GHz
instead of:
CPU: Exynos4412 @ 1 GHzI am assuming that this change was done to get rid of compiler
warnings related to unused variables when building with
CONFIG_SPL_SERIAL_SUPPORT not being defined in an SPL build.Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
Acked-by: Heiko Schocher
Reviewed-by: Joe Hershberger
13 Aug, 2015
1 commit
-
This patch enables building SPL without
CONFIG_SPL_SERIAL_SUPPORT support.Signed-off-by: Heiko Schocher
[trini: Ensure we build arch/arm/imx-common on mx28]
Signed-off-by: Tom Rini
15 May, 2015
1 commit
-
This fixes a warning in the print_buffer() function with some toolchains.
Signed-off-by: Simon Glass
Reviewed-by: Joe Hershberger
30 Apr, 2015
2 commits
-
Add a function similar to print_size() that works for frequencies. It can
handle from Hz to GHz.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng -
Before adding one more function, create a separate header to help reduce
the size of common.h. Add the missing function comments and tidy up.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
27 Oct, 2014
1 commit
-
Use inttypes.h and uint64_t to correct the code so that it will not issue
warnings on 64-bit machines where 'uint64_t' is 'unsigned long'.Signed-off-by: Simon Glass
05 Mar, 2014
1 commit
-
Add 64-bit data for memory commands, such as md, mw, mm, cmp. The new
size ".q " is introduced.For 64-bit architecture, 64-bit data is enabled by default, by detecting
compiler __LP64__. It is optional for other architectures.Signed-off-by: York Sun
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
12 Mar, 2013
1 commit
-
This patch adds whitespace to the printed hex numbers to have an aligned ASCII
printout at the end of the line.This changes for example the md output from:
---88---
to
---88---
The cost of this is about 72 byte .text increase (tested with at91 build).
Signed-off-by: Andreas Bießmann
01 Mar, 2013
1 commit
-
The buffer cannot be changed by this function, so change the buffer
pointer to a const. This allows callers with const pointer to use the
function without a cast.Signed-off-by: Simon Glass
28 Jul, 2011
1 commit
-
This patch removes the architecture specific implementation of
version_string where possible. Some architectures use a special place
and therefore we provide U_BOOT_VERSION_STRING definition and a common
weak symbol version_string.Signed-off-by: Andreas Bießmann
CC: Mike Frysinger
CC: Peter Pan
Acked-by: Mike Frysinger
13 Sep, 2010
1 commit
-
use a union to cause necessary alignment per architecture
Signed-off-by: Reinhard Meyer
09 Aug, 2010
1 commit
-
Applying a little creative format string allows us to shrink the initial
data read & display loop by only calling printf once. Re-using the local
data buffer to generate the string we want to display then allows us to
output everything with just one printf call instead of multiple calls to
the putc function.The local stack buffer needs increasing by 1 byte, but the resulting code
shrink and speed up is worth it I think.Signed-off-by: Mike Frysinger
18 May, 2010
1 commit
-
Modification of print_size to avoid use of divides and especially
long long divides. Keep the binary scale factor in terms of bit
shifts instead. This should be faster, since the previous code
gave the compiler no clues that the divides where always powers
of two, preventing optimisation.Signed-off-by: Nick Thompson
Acked-by: Timur Tabi
06 May, 2010
2 commits
-
Modify print_size() so that it can accept numbers larger than 4GB on 32-bit
systems.Add support for display terabyte, petabyte, and exabyte sizes. Change the
output to use International Electrotechnical Commission binary prefix standard.Signed-off-by: Timur Tabi
-
In print_size(), the math that calculates the fractional remainder of a number
used the same integer size as a physical address. However, the "10 *" factor
of the algorithm means that a large number (e.g. 1.5GB) can overflow the
integer if we're running on a 32-bit system. Therefore, we need to
disassociate this function from the size of a physical address.Signed-off-by: Timur Tabi
13 Apr, 2010
1 commit
-
Now that the other architecture-specific lib directories have been
moved out of the top-level directory there's not much reason to have the
'_generic' suffix on the common lib directory.Signed-off-by: Peter Tyser