09 Feb, 2020
2 commits
-
Explicitly configure GPIO0_0 in SPL, which controlls 3V3 voltage
on the XEA board (it also supplies TIVAs).This code would enable TIVAs power supply early (also when board
uses the falcon boot).Signed-off-by: Lukasz Majewski
-
The 'local-mac-address' property needs to be adjusted to the MAC address
value stored in U-Boot's 'ethaddr' env variable.Signed-off-by: Lukasz Majewski
18 Jan, 2020
1 commit
-
Move this function out of common.h and into a relevant header file.
Signed-off-by: Simon Glass
07 Jan, 2020
1 commit
-
This patch introduces support for i.MX28 based XEA board.
This board supports DM/DTS in U-Boot proper as well as DM aware drivers
in SPL (u-boot.sb) by using OF_PLATDATA.
More detailed information regarding usage of it can be found in
./board/liebherr/xea/README file.U-Boot SPL 2019.10-rc1-00233-g6aa549f05c (Aug 12 2019 - 09:23:36 +0200)
Trying to boot from MMC1
MMC0: Command 8 timeout (status 0xf0344020)
mmc_load_image_raw_sector: mmc block read errorU-Boot 2019.10-rc1-00233-g6aa549f05c (Aug 12 2019 - 09:23:36 +0200)
CPU: Freescale i.MX28 rev1.2 at 454 MHz
BOOT: SSP SPI #3, master, 3V3 NOR
Model: Liebherr (LWE) XEA i.MX28 Board
DRAM: 128 MiB
MMC: MXS MMC: 0
Loading Environment from SPI Flash... SF: Detected n25q128a13 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
OK
In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@800f0000 (eth0) using random MAC address - ce:e1:9e:46:f3:a2
eth0: ethernet@800f0000
Hit any key to stop autoboot: 0Signed-off-by: Lukasz Majewski
03 Dec, 2019
2 commits
-
A number of board function belong in init.h with the others. Move them.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
These functions belong in serial.h so move them over.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
04 Nov, 2019
3 commits
-
This commit enabled support for fitImage on mccmon6 when we
switch to DT/DTS (including falcon mode).Signed-off-by: Lukasz Majewski
-
The mccmon6 has been used a "mixed" approach between SPL and
U-Boot proper sources.This commit decoupes SPL and u-boot proper, which allows clear
distinction between those two code bases and facilitates
conversion to DM/DTS on this particular board.Signed-off-by: Lukasz Majewski
-
This commit converts mccmon6's u-boot proper (in a single commit to avoid
build breaks) to use solely DM/DTS.The DTS description of the mccmon6 has been ported from Linux kernel
(v4.20, SHA1: 8fe28cb58bcb235034b64cbbb7550a8a43fd88be)Signed-off-by: Lukasz Majewski
08 Oct, 2019
8 commits
-
The get_board_id() function was using the old gpio_* compatibility layer
to read HW and SW ID numbers encoded on the PCB board.After this change the new dm_gpio* API is used for this purpose.
Signed-off-by: Lukasz Majewski
-
After this change the display5's emergency gpio use dm_gpio* functions
instead of legacy ones (gpio*) to read its state.Signed-off-by: Lukasz Majewski
-
The common.c file content can be safely moved to spl.c file after
performing the DM/DTS conversion for the U-Boot proper.It contains the non DM/DTS setup code, which now is only used by SPL.
Signed-off-by: Lukasz Majewski
-
This UART is not used in U-Boot, so there is no need to initialize it.
Signed-off-by: Lukasz Majewski
-
The DM/DTS support for SPI is disabled on purpose for SPL, as it is not
supported as of time of this conversion.Signed-off-by: Lukasz Majewski
-
After this commit the display5 device would use FEC driver supporting
driver model (DM_ETH).Signed-off-by: Lukasz Majewski
-
After this commit the display5 device would use eMMC driver supporting
driver model (DM_MMC and BLK).Signed-off-by: Lukasz Majewski
-
After this commit the display5 device would use I2C driver supporting
driver model (DM_I2C).The 'i2c' and 'eeprom' commands now use DM I2C drivers and initialize
on-bus devices according to device tree description.Signed-off-by: Lukasz Majewski
12 Aug, 2019
4 commits
-
This header file is now only used by files that access internal
environment features. Drop it from various places where it is not needed.Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_set() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_init() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move this function over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
20 Jul, 2019
2 commits
-
Before the wide DM/DTS adoption in the U-Boot proper, the display5
has been using only DM_SERIAL to provide serial console in
pre-relocation.After moving to full DM/DTS adoption in the U-Boot proper the
U_BOOT_DEVICE definition is not needed anymore, as it has been
replaced with udevice creation from provided DTS description.Signed-off-by: Lukasz Majewski
Reviewed-by: Peng Fan -
After commit 14453fbfadc2 ("Convert CONFIG_SF_DEFAULT_* to Kconfig")
and commit abe66b1b5dec ("Convert CONFIG_ENV_SPI_* to Kconfig") ,which
moved some SPI related CONFIG_* defines to Kconfig the display5 board has
become unbootable as the SPI CS check condition had wrong value.This commit fixes this check and allows proper SPI NOR flash operation in
SPL.Signed-off-by: Lukasz Majewski
23 Jun, 2019
1 commit
-
Converted to use fsl_esdhc_imx for i.MX platforms.
Signed-off-by: Yangbo Lu
Tested-by: Steffen Dirkwinkel
Reviewed-by: Peng Fan
Reviewed-by: Lukasz Majewski
Reviewed-by: Martyn Welch
Acked-by: Jason Liu
18 Jun, 2018
6 commits
-
Without this change the following warning shows up when building:
board/liebherr/display5/display5.c:270:3:
warning: implicit declaration of function ‘eth_env_set_enetaddr’ [-Wimplicit-function-declaration]This commit fixes this issue.
Signed-off-by: Lukasz Majewski
-
Signed-off-by: Lukasz Majewski
-
This code performs DDR3 memory calibration for display5 board.
Signed-off-by: Lukasz Majewski
-
Test case:
The fitImage gets corrupted:
truncate -c -s 3M fitImage
run tftp_mmc_fitImg
setenv boot_os y
reset[board shall hang in SPL with
"Trying to boot from MMC1" information]Then after X seconds WDT is causing board to reset. After N boot attempts
we enter recovery mode.Signed-off-by: Lukasz Majewski
-
To enter the special mode, one needs to short cut two pads with e.g. screw
driver.After power up the SPL will execute u-boot in which proper actions will be
taken.It is worth noting that we do not alter envs (even the BOOT_FROM variable)
and unconditionally go to recovery.Signed-off-by: Lukasz Majewski
-
Force booting through u-boot proper when environment error encountered
(as a result of either broken SPI-NOR or erased envs).Signed-off-by: Lukasz Majewski
11 May, 2018
1 commit
-
This patch is necessary for providing basic bootcount checking in the case
of using "falcon" boot mode in that board.It forces u-boot proper boot, when we exceed the number of errors.
Signed-off-by: Lukasz Majewski
Reviewed-by: Stefan Roese
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
-
We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.Signed-off-by: Tom Rini
05 Mar, 2018
1 commit
-
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include -> #include
#include -> #includeReported-by: Thomas Petazzoni
Signed-off-by: Masahiro Yamada
09 Nov, 2017
1 commit
-
This commit provides support for LWN's IMX6Q based DISPLAY5 board.
Signed-off-by: Lukasz Majewski
18 Sep, 2017
1 commit
-
bss section is cleared in crt0.S. board_init_r() is also
entered from crt0 code.Signed-off-by: Anatolij Gustschin
Cc: Christian Gmeiner
Cc: Nikita Kiryanov
Cc: Jagan Teki
Cc: Tim Harvey
Cc: Marek Vasut
Cc: Lukasz Majewski
Cc: Fabio Estevam
Reviewed-by: Lukasz Majewski
Reviewed-by: Christian Gmeiner
Reviewed-by: Fabio Estevam
28 Aug, 2017
1 commit
-
Since the gpr_init() function is common for boards using MX6S, MX6DL, MX6D,
MX6Q and MX6QP processors move it to the soc.c file.Signed-off-by: Breno Lima
Acked-by: Stefano Babic
Reviewed-by: Lukasz Majewski
Reviewed-by: Fabio Estevam
16 Aug, 2017
2 commits
-
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 setenv()
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass
12 Jul, 2017
1 commit
-
Change is consistent with other SOCs and it is in preparation
for adding SOMs. SOC's related files are moved from cpu/ to
mach-imx/.This change is also coherent with the structure in kernel.
Signed-off-by: Stefano Babic
CC: Fabio Estevam
CC: Akshay Bhat
CC: Ken Lin
CC: Marek Vasut
CC: Heiko Schocher
CC: "Sébastien Szymanski"
CC: Christian Gmeiner
CC: Stefan Roese
CC: Patrick Bruenn
CC: Troy Kisky
CC: Nikita Kiryanov
CC: Otavio Salvador
CC: "Eric Bénard"
CC: Jagan Teki
CC: Ye Li
CC: Peng Fan
CC: Adrian Alonso
CC: Alison Wang
CC: Tim Harvey
CC: Martin Donnelly
CC: Marcin Niestroj
CC: Lukasz Majewski
CC: Adam Ford
CC: "Albert ARIBAUD (3ADEV)"
CC: Boris Brezillon
CC: Soeren Moch
CC: Richard Hu
CC: Wig Cheng
CC: Vanessa Maegima
CC: Max Krummenacher
CC: Stefan Agner
CC: Markus Niebel
CC: Breno Lima
CC: Francesco Montefoschi
CC: Jaehoon Chung
CC: Scott Wood
CC: Joe Hershberger
CC: Anatolij Gustschin
CC: Simon Glass
CC: "Andrew F. Davis"
CC: "Łukasz Majewski"
CC: Patrice Chotard
CC: Nobuhiro Iwamatsu
CC: Hans de Goede
CC: Masahiro Yamada
CC: Stephen Warren
CC: Andre Przywara
CC: "Álvaro Fernández Rojas"
CC: York Sun
CC: Xiaoliang Yang
CC: Chen-Yu Tsai
CC: George McCollister
CC: Sven Ebenfeld
CC: Filip Brozovic
CC: Petr Kulhavy
CC: Eric Nelson
CC: Bai Ping
CC: Anson Huang
CC: Sanchayan Maity
CC: Lokesh Vutla
CC: Patrick Delaunay
CC: Gary Bisson
CC: Alexander Graf
CC: u-boot@lists.denx.de
Reviewed-by: Fabio Estevam
Reviewed-by: Christian Gmeiner