24 May, 2019
2 commits
-
Porting the FSL android fastboot features from imx u-boot v2018.03 to
support all SoCs: imx6/imx7/imx7ulp/imx8/imx8m.The UUU commands like UCmd and ACmd are also added. Users need set
CONFIG_FASTBOOT_UUU_SUPPORT=y to enable the feature.Signed-off-by: Frank Li
Signed-off-by: Ye Li
(cherry picked from commit 65120b06a7f750b9b1a6e0db3d2082cc7088d5a8) -
Support EPDC.
E-Ink feature is supported by i.MX6DL/SL/SLL/ULL and i.MX7D.This driver supports 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)
(cherry picked from commit 21bf1c38b7d75c31875fb02a972c458f25d9c33a)
16 Jan, 2019
2 commits
-
Fix recent changes to serial API for driver model
Buildman clang support and a few fixes
Small fixes to 'dm tree' and regmap test
Improve sandbox build compatibility
A few other minor fixes -
Add the dollar_complete() function to auto-complete arguments starting
with a '$' and use it in the cmd_auto_complete() path such that all
args starting with a $ can be auto-completed based on the available env
vars.Signed-off-by: Boris Brezillon
[trini: Fix some linking problems]
Signed-off-by: Tom Rini
15 Jan, 2019
1 commit
-
We should not be adding new functions to common.h. Move these recently
added functions to serial.h.Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko
06 Dec, 2018
2 commits
-
Minor sandbox enhancements / fixes
tpm improvements to clear up v1/v2 support
buildman toolchain fixes
New serial options to set/get config -
- Various MTD fixes from Boris
- Zap various unused / legacy paths.
- pxa3xx NAND update from MiquelSigned-off-by: Tom Rini
05 Dec, 2018
2 commits
-
New callback will give a necessary information to fill up ACPI SPCR table,
for example. Maybe used later for other purposes.Signed-off-by: Andy Shevchenko
Reviewed-by: Simon Glass
Change ADR_SPACE_SYSTEM_IO to SERIAL_ADDRESS_SPACE_IO to fix build error:
Signed-off-by: Simon Glass -
In some cases it would be good to know the settings, such as parity,
of current serial console. One example might be an ACPI SPCR table
to generate using these parameters.Signed-off-by: Andy Shevchenko
Reviewed-by: Simon Glass
03 Dec, 2018
1 commit
-
On some systems, not all RAM may be usable within U-Boot. Maybe the
memory maps are incomplete, maybe it's used as workaround for broken
DMA. But whatever the reason may be, a platform can say that it does
not wish to have its RAM accessed above a certain address by defining
board_get_usable_ram_top().In the efi_loader world, we ignored that hint, mostly because very few
boards actually have real restrictions around this.So let's honor the board's wish to not access high addresses during
boot time. The best way to do so is by indicating the respective pages
as "allocated by firmware". That way, Operating Systems will still
use the pages after boot, but before boot no allocation will use them.Reported-by: Baruch Siach
Signed-off-by: Alexander Graf
Reviewed-by: Stephen Warren
Reviewed-by: Heinrich Schuchardt
Tested-by: Baruch Siach
27 Nov, 2018
1 commit
-
- spi_init_f
- spi_init_r
- spi_read
- spi_writethese spi calls are exclusively for mpc8xx, but
the relevant driver is not available so remove it.Signed-off-by: Jagan Teki
26 Nov, 2018
1 commit
-
This is now deprecated and no board is using it. Drop it.
Signed-off-by: Bin Meng
Signed-off-by: Lukas Auer
20 Nov, 2018
1 commit
-
Drop the _AC and UL macros from common.h. Linux headers is the original
source of this macro, so keep its definition in the same header.Update existing users of these macros to include const.h directly.
Cc: Daniel Schwierzeck
Cc: Rick Chen
Reviewed-by: Tom Rini
Reviewed-by: Rick Chen
Signed-off-by: Baruch Siach
Reviewed-by: Daniel Schwierzeck
Signed-off-by: Stefan Roese
20 Oct, 2018
1 commit
-
Add new Kconfig option, SYS_BOOTCOUNT_MAGIC, to select the boot
counter magic word. This can be useful ie. in case the entire
boot counter register is not usable.Signed-off-by: Marek Vasut
Cc: Tom Rini
11 Sep, 2018
2 commits
-
In int-ll64.h, we always use the following typedefs:
typedef unsigned int u32;
typedef unsigned long uintptr_t;
typedef unsigned long long u64;This does not need to match to the compiler's .
Do not include it.The use of PRI* makes the code super-ugly. You can simply use
"l" for printing uintptr_t, "ll" for u64, and no modifier for u32.Signed-off-by: Masahiro Yamada
-
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
19 Jun, 2018
1 commit
-
cpu_cmd() is reading cpu number via simple_strtoul() which is always
unsigned type.
Platform code implementations are not expecting that nr can be negative
and there is not checking in the code for that too.This patch is using u32 type for cpu number to make sure that platform
code get proper value range.Signed-off-by: Michal Simek
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
28 Apr, 2018
1 commit
-
This converts the following to Kconfig:
CONFIG_SPIThis partly involves updating code that assumes that CONFIG_SPI implies
things that are specific to the MPC8xx SPI driver. For now, just update
the CONFIG tests. This also involves reworking the default for
CONFIG_SYS_DEF_EEPROM_ADDR so that we don't set it when we cannot make a
reasonable default, as it does not cause any compile failures.Signed-off-by: Adam Ford
Signed-off-by: Tom Rini
17 Mar, 2018
7 commits
-
Move function prototype for common/init/board_init.c
from common.h to init.hSigned-off-by: Patrick Delaunay
-
Move function prototypes used in common/board_r.c
from common.h to init.hSigned-off-by: Patrick Delaunay
-
Move function prototypes for common/init/board_init.c
from common.h to init.hSigned-off-by: Patrick Delaunay
-
Move prototypes for function used in common/board_f.c
from common.h to init.h
Remove weak for arch_reserve_stacks in prototype
(checkpatch issue)Signed-off-by: Patrick Delaunay
-
The 2 functions board_power_mode and board_poweroff
are no more existing in U-Boot code (check with grep)
This patch updates the documentation and removes
the unnecessary prototypes.Signed-off-by: Patrick Delaunay
-
Remove the prototypes for 4 functions no more existing
in U-Boot code (checked by grep):
- checkflash
- checkdram
- mdm_init
- setup_board_extraSigned-off-by: Patrick Delaunay
-
Add a new file init.h with the prototype for arch_cpu_init
Add a prototype for mach_cpu_init() to avoid a warning:
no previous prototype for ‘mach_cpu_init’It is a first step to move all the functions prototype
used during U-Boot initialization (board_f.c / board_r.c)
from common.h to init.hSigned-off-by: Patrick Delaunay
Reviewed-by: Masahiro Yamada
24 Jan, 2018
1 commit
-
Adds a VID specific API in init_sequence_f and spl code flow
namely init_func_vid which is required to adjust core voltage.VID specific code is required in spl, hence moving flag CONFIG_VID
out of spl flags.Signed-off-by: Ashish Kumar
Signed-off-by: Rajesh Bhagat
Reviewed-by: York Sun
08 Dec, 2017
1 commit
-
Before adding new features, move these definitions to a separate header
to avoid further cluttering common.h.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
30 Nov, 2017
1 commit
-
Building spl with CONFIG_OF_EMBED enabled results in an error message
on my board: "SPL image too big". This is because the fdtgrep build
step is only executed for CONFIG_OF_SEPARATE.Fix this by moving the fdtgrep build step ('cmd_fdtgreo') from
scripts/Makefile.spl to dts/Makefile so that the reduced dtb is
available for all kinds of spl builds.The resulting variable name for the embedded device tree blob changes,
too, which is why common.h and fdtdec.c have tiny changes.Signed-off-by: Simon Goldschmidt
Reviewed-by: Simon Glass
16 Oct, 2017
1 commit
-
When compiling with W=1 the following warning is observed:
arch/arm/mach-imx/mx6/soc.c:590:6: warning: no previous prototype for ‘s_init’ [-Wmissing-prototypes] void s_init(void)
Remove this warning by adding the function prototype into include/common.h file.
Signed-off-by: Diego Dorta
06 Oct, 2017
1 commit
-
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
05 Oct, 2017
2 commits
-
Collect runtime BUG/WARN into a self-contained header
to make these macros easier to use.Signed-off-by: Masahiro Yamada
-
This macro prevents us from using compiletime_error/assert defined
in .Now we can remove it, then we will be able to import more BUILD_BUG
macros from Linux.Signed-off-by: Masahiro Yamada
04 Oct, 2017
2 commits
-
When we import code from Linux, with regular re-sync planned, we want
to use printk() and pr_*(). U-Boot does not support them in a clean
way. So, people end up with local macros, or compat headers here and
there, then we occasionally see build errors of definition conflicts.We have include/linux/compat.h, but putting all sorts of unrelated
things into a single header is just a temporal workaround. Hence this
patch, to find the best home for all printk variants. If you want to
use printk() and friends, please include . This header
is self-contained, and pulls in only a few headers.When I was testing this clean-up, I noticed the image size exceeded
its platform limit on some boards. This is because all pr_*() that
were previously defined as no-op in include/linux/mtd/mtd.h (unless
CONFIG_MTD_DEBUG is set), are now enabled.To make such boards happy, this commit also implements CONFIG_LOGLEVEL.
The concept is similar to the kernel parameter "loglevel". (Actually,
the Kconfig help message was taken from kernel-paremeter.txt of Linux)
Messages with a loglevel smaller than console loglevel will be printed.The difference is the loglevel is build-time determined. To save the
image size, lower priority pr_*() are compiled out. I set the default
of CONFIG_LOGLEVEL to 6, i.e. pr_notice and higher priority messages
are compiled in.I adjusted CONFIG_LOGLEVEL to avoid build error for some boards.
Signed-off-by: Masahiro Yamada
[trini: Add in SPL_LOGLEVEL that is the same as LOGLEVEL]
Signed-off-by: Tom Rini -
pulls in a lot of headers. Including it from every .c
file is a bad idea. We need to remove contents until it contains
nothing.Move printf() and friends to .
Signed-off-by: Masahiro Yamada
16 Aug, 2017
5 commits
-
We are now using an env_ prefix for environment functions. Rename these
other functions as well, for consistency:getenv_vlan()
getenv_bootm_size()
getenv_bootm_low()
getenv_bootm_mapsize()
env_get_default()Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename these
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename these
two functions for consistency. Also add function comments in common.h.Quite a few places use getenv() in a condition context, provoking a
warning from checkpatch. These are fixed up in this patch also.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename these
commonly used functions, for consistency. Also add function comments in
common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename setenv()
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass