21 Jun, 2017
1 commit
-
* Add API to read\write MISC partition.
* get the boot mode from BCB command when boot up.
* get the boot up tactics from bootctrl.Change-Id: Icbba6340e10983dddc1b04804ecc012a3a3c57d0
Signed-off-by: zhang sanshan
05 Apr, 2017
1 commit
-
Support EPDC.
E-Ink feature is supported by i.MX6DL/SL and i.MX7D.
For now this driver only supports i.MX6DL/SL, because the
i.MX7D EPDC driver needs pxp support which is not included
in U-Boot.Support user defined logo file, if there is no logo file, it will
draw a black border around a white screen.If need to enable EPDC, a waveform file is required to let all
work.Since we need LCD_MONOCHROME mode for EPDC, we introduce LCD_MONOCHROME
support.Please refer to Linux Reference Manual for how to flash WAVEFORM file.
Signed-off-by: Peng Fan
Signed-off-by: Robby Cai
Signed-off-by: Nitin Garg
Signed-off-by: Ye.Li
(cherry picked from commit a7244f279cc3c3994bcd103f5e9a183b1075ae71)
26 Jan, 2017
3 commits
-
This is not used in U-Boot, and the only usage calls a non-existent
function. Drop it.Signed-off-by: Simon Glass
-
This is only called from one place and the function cannot be inlined.
Convert it to a normal function.Signed-off-by: Simon Glass
-
To avoid an unnecessary arch-specific call in board_init_f(), rename this
function.Signed-off-by: Simon Glass
22 Jan, 2017
1 commit
-
Move all of the status LED feature to drivers/led/Kconfig.
The LED status definitions were moved from the board configuration
files to the defconfig files.TBD: Move all of the definitions in the include/status_led.h to the
relevant board's defconfig files.Tested boards: CL-SOM-AM57x, CM-T335
Signed-off-by: Uri Mashiach
15 Jan, 2017
2 commits
-
The include/common.h is a collection of unrelated declarations,
macros, etc.It is horrible to include such a cluttered header just for some
timer functions. Split out timer functions into include/time.h.Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass -
Currently, mdelay() and udelay() are declared in include/common.h,
while ndelay() in include/linux/compat.h. It would be nice to
collect them into include/linux/delay.h like Linux.While we are here, fix the ndelay() implementation; I used the
DIV_ROUND_UP() instead of (x)/1000 because it must wait *longer*
than the given period of time.Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
04 Jan, 2017
1 commit
-
The UL() macro is pretty useful in sharing constants between assembly
and C files while still being able to specify a type for C.
Move the macro from an armv8 specific header into a common header file
to be able to use it by arm code (for instance) as well.Signed-off-by: Andre Przywara
Reviewed-by: Alexander Graf
Reviewed-by: Jagan Teki
17 Sep, 2016
1 commit
-
At present TPL uses the same options as SPL support. In a few cases the board
config enables or disables the SPL options depending on whether
CONFIG_TPL_BUILD is defined.With the move to Kconfig, options are determined for the whole build and
(without a hack like an #undef in a header file) cannot be controlled in this
way.Create new TPL options for these and update users. This will allow Kconfig
conversion to proceed for these boards.Signed-off-by: Simon Glass
15 Jul, 2016
2 commits
-
SPL tends to be more space-constrained that U-Boot proper. Some error
messages are best suppressed in SPL. Add a macros to make this easy.warn_non_spl() does nothing when built in SPL code.
Signed-off-by: Simon Glass
-
Add a note to each of these so it is more obvious how they work.
Signed-off-by: Simon Glass
06 Jul, 2016
1 commit
-
We want people using errnos for errors instead of -1, so make it easy
by always including the definition of all the errnos.Signed-off-by: Joe Hershberger
Reviewed-by: Bin Meng
15 Mar, 2016
3 commits
-
Add an option to enable libfdt in SPL. This can be useful when decoding
FIT files in SPL.We need to make sure this option is not enabled in SPL by this change.
Also this option needs to be enabled in host builds. Si add a new
IMAGE_USE_LIBFDT #define which can be used in files that are built on the
host but must also build for U-Boot and SPL.Signed-off-by: Simon Glass
-
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
and causes 80-column violations, rename it to struct blk_desc.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren
25 Jan, 2016
1 commit
-
BUILD_BUG_* macros have been defined in several headers. It would
be nice to collect them in include/linux/bug.h like Linux.This commit is cherry-picking useful macros from include/linux/bug.h
of Linux 4.4.I did not import BUILD_BUG_ON_MSG() because it would not work if it
is used with include/common.h in U-Boot. I'd like to postpone it
until the root cause (the "error()" macro in include/common.h causes
the name conflict with "__attribute__((error()))") is fixed.Signed-off-by: Masahiro Yamada
Reviewed-by: Tom Rini
14 Jan, 2016
1 commit
-
board_init_f_mem() alters the C runtime environment's
stack it is actually already using. This is not a valid
behaviour within a C runtime environment.Split board_init_f_mem into C functions which do not alter
their own stack and always behave properly with respect to
their C runtime environment.Signed-off-by: Albert ARIBAUD
Acked-by: Thomas Chou
01 Dec, 2015
1 commit
-
Adjust this command to use the correct PCI functions, instead of the
compatibility layer.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
22 Nov, 2015
2 commits
-
Add bus argument to eeprom_init(), so that it can select
the I2C bus number on which the eeprom resides. Any negative
value of the $bus argument will preserve the old behavior.
This is in place so that old code does not randomly break.Signed-off-by: Marek Vasut
Cc: Simon Glass
Cc: Tom Rini
Cc: Heiko Schocher
Reviewed-by: Heiko Schocher
[trini: Wrap i2c_set_bus_num() call with CONFIG_SYS_I2C test]
Signed-off-by: Tom Rini -
Remove this function as it's no longer used.
Signed-off-by: Marek Vasut
Cc: Tom Rini
Cc: Simon Glass
Cc: Heiko Schocher
Reviewed-by: Heiko Schocher
20 Nov, 2015
1 commit
-
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
30 Oct, 2015
2 commits
-
Freescale LayerScape with Chassis Generation 2 is a set of SoCs with
ARMv8 cores and 2rd generation of Chassis.Signed-off-by: Li Yang
Signed-off-by: Hou Zhiqiang
Signed-off-by: Mingkai Hu
Signed-off-by: Gong Qianyu
Reviewed-by: York Sun -
There are two LS series processors are built on ARMv8 Layersacpe
architecture currently, LS2085A and LS1043A. They are based on
ARMv8 core although use different chassis, so create fsl-layerscape
to refactor the common code for the LS series processors which also
paves the way for adding LS1043A platform.Signed-off-by: Mingkai Hu
Signed-off-by: Hou Zhiqiang
Signed-off-by: Gong Qianyu
Reviewed-by: York Sun
12 Oct, 2015
1 commit
-
This patch adds support for LZ4-compressed FIT image contents. This
algorithm has a slightly worse compression ration than LZO while being
nearly twice as fast to decompress. When loading images from a fast
storage medium this usually results in a boot time win.Sandbox-tested only since I don't have a U-Boot development system set
up right now. The code was imported unchanged from coreboot where it's
proven to work, though. I'm mostly interested in getting this recognized
by mkImage for use in a downstream project.Signed-off-by: Julius Werner
Acked-by: Simon Glass
12 Sep, 2015
2 commits
-
Now that we have a new header file for cache-aligned allocation, we should
move the stack-based allocation macro there also.Signed-off-by: Simon Glass
-
At present malloc.h is included everywhere since it recently was added to
common.h in this commit:4519668 mtd/nand/ubi: assortment of alignment fixes
This seems wasteful and unnecessary. We have been trying to trim down
common.h and put separate functions into separate header files and that
change goes in the opposite direction.Move malloc_cache_aligned() to a new header so that this can be avoided.
The header would perhaps be better named as alignmem.h but it needs to be
included after common.h and people might be confused by this. With the name
memalign.h it fits nicely after malloc() in most cases.Signed-off-by: Simon Glass
Acked-by: Marcel Ziswiler
29 Aug, 2015
1 commit
-
Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer
alignment into account which led to failures of the following form:ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x1f7f1108Signed-off-by: Marcel Ziswiler
Reviewed-by: Simon Glass
Acked-by: Scott Wood
[trini: Add __UBOOT__ hunk to lib/zlib/zutil.c due to malloc.h in common.h]
Signed-off-by: Tom Rini
14 Aug, 2015
1 commit
-
At present we have a simple assignment to gd. With some archs this is
implemented as a register or through some other means; a simple assignment
does not suit in all cases.Change this to a function and add documentation to describe how this all
works.Signed-off-by: Simon Glass
Reviewed-by: York Sun
Reviewed-by: Bin Meng
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
05 Aug, 2015
1 commit
-
It is useful to be able to load U-Boot onto a board even if is it already
running EFI. This can allow access to the U-Boot command interface, flexible
booting options and easier development.The easiest way to do this is to build U-Boot as a binary blob and have an
EFI stub copy it into RAM. Add support for this feature, targeting 32-bit
initially.Also add a way to detect when U-Boot has been loaded via a stub. This goes
in common.h since it needs to be widely available so that we avoid redoing
initialisation that should be skipped.Signed-off-by: Simon Glass
Improvements to how the payload is built:
Signed-off-by: Bin Meng
Reviewed-by: Bin Meng
Tested-by: Bin Meng
22 Jul, 2015
1 commit
-
U-Boot uses structures for hardware access so it is important that these
structures are correct. Add a way of asserting that a structure member is
at a particular offset. This can be created using the datasheet for the
hardware.This implementation uses Static_assert() since BUILD_BUG_ON() only works
within functions.Signed-off-by: Simon Glass
11 Jun, 2015
1 commit
-
This function is used before jumping to U-Boot, but in that case we don't
always want to disable caches.Signed-off-by: Simon Glass
Signed-off-by: Vadim Bendebury
28 May, 2015
1 commit
-
gd->ram_size is stored as phys_size_t type which can be bigger than an
unsigned long on some architectures. When using unsigned long type,
SDRAM of 4GiB or larger will not print the correct size, but using
phys_size_t will.Signed-off-by: Andrew Bradford
30 Apr, 2015
1 commit
-
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
23 Apr, 2015
1 commit
-
Initial filesystem images are generally highly compressible.
Add a routine gzwrite that allows gzip-compressed images to be
written to block devices.Signed-off-by: Eric Nelson
Reviewed-by: Tom Rini
21 Apr, 2015
1 commit
-
U-Boot does not have system calls (the services it exposes to
standalone commands use a different mechanism), so the syscall handler
is dead code. It's also broken code, as it assumes it is located at
0xc00 -- while even before the patch to stop relocating exception
vectors to 0, U-Boot had the syscall at 0x900.The critical and machine check return paths are never called -- the
regular exception return path is used instead, which works because
xSRR0/1 have already been saved and can be restored via the regular
SRR0/1 (we don't care too much in U-Boot about taking a critical/mcheck
inside another exception prolog/epilog).Also remove a few other small unused functions.
Signed-off-by: Scott Wood
Reviewed-by: York Sun
19 Apr, 2015
2 commits
-
This patch is simply clean-up to make the IPv4 type that is used match
what Linux uses. It also attempts to move all variables that are IP
addresses use good naming instead of CamelCase. No functional change.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
In the case where the arch defines a custom map_sysmem(), make sure that
including just mapmem.h is sufficient to have these functions as they
are when the arch does not override it.Also split the non-arch specific functions out of common.h
Signed-off-by: Joe Hershberger
Reviewed-by: Simon Glass
17 Apr, 2015
1 commit
-
Since driver model is set up after arch_cpu_init(), that function cannot
use drivers. Add a new arch_cpu_init_dm() function which is called
immediately after driver model is ready, and can reference devices.This can be used to probe essential devices for the CPU.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng