19 Oct, 2020
1 commit
-
Enable LPSPI2-3 clock enable and get functions.
Please note that the lpspi's alias should only be set as same as its
module number.Signed-off-by: Clark Wang
Reviewed-by: Ye Li
(cherry picked from commit 132ea95f15f3dcf3408d70eb7879533b412cd521)
26 Aug, 2020
2 commits
-
This reverts commit 70dc02f0e0227f872e9df93f186606113791049c.
(cherry picked from commit 083bfb8fc1960550f4f50fe86b633655faa155b3)
-
Remove dead switch
Reported-by: Coverity 10473371
Signed-off-by: Peng Fan
Reviewed-by: Ye Li
(cherry picked from commit 70dc02f0e0227f872e9df93f186606113791049c)
16 Jun, 2020
1 commit
-
Update DTS for LCDIF, MIPI DSI and panel relevant nodes.
Enable the video drivers and splash screen in board codseSigned-off-by: Ye Li
(cherry picked from commit 52d4c7c3e98d573f1c3e4e67e02dd4b08be6bee7)
06 May, 2020
11 commits
-
Porting the iMX7ULP 10x10 validation board and 14x14 validation board codes
from v2019.04 u-boot.Signed-off-by: Ye Li
-
Since the freescale entity does not exist, remove it from CPU info print.
Signed-off-by: Ye Li
-
Update the mx7ulp wdog disable sequence to avoid potential reset issue
in unlock or refresh sequence. Both sequence need two words write
to wdog CNT register in 16 bus clocks window, if miss the window,
the write will cause violation in wdog and reset the chip.Current u-boot code is using writel() function which has a DMB barrier
to order the memory access. The DMB between two words write may introduce
some delay in certain circumstance, causing the wdog reset due to 16 bus
clock window requirement.This patch replaces writel() function by __raw_writel() to avoid such issue,
and improve to check if watchdog is already disabled or unlocked.Signed-off-by: Ye Li
Tested-by: Breno Lima
Reviewed-by: Peng Fan
(cherry picked from commit b8c99d5f5bcc5573d3394b68890db16b6bb5fc88) -
The get_boot_device will return USB type from ROM info if booting from
serial download, so change the is_boot_from_usb to use this function.Signed-off-by: Ye Li
(cherry picked from commit 306fca12fb21829be552a6262e310a90664a8cc2) -
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)
(cherry picked from commit 9b149c2a28829fe7017f83981d634157bc31cc94) -
Since we enabled MMC alias, the USDHC index in u-boot is the usdhc port.
So we don't need to convert them for kernel and u-boot env device.Signed-off-by: Ye Li
(cherry picked from commit 8fd6e14f5c1598684bc08a7917f89cd94e988d8f)
(cherry picked from commit 96bc8f724159a3a9e2ba9f605b84f53534bc3e1f) -
Since from B0 TO, there is a Mirror of JTAG ID register added in
SIM. We can read the part revision from this register.
Update codes to use this register.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit de14e88698b9ae9b0a9ac674f16d65b3ceb4ccc2)
(cherry picked from commit 0d0d9acc04972792890776e3c066f05a349bb623)
(cherry picked from commit 00dfa82643b4e06c4c5e3830d35a82801e74ad81) -
Change USDHC0 and USDHC1 per clock source from APLL_PFD1,
and set the APll_PFD1 clock rate to 352.8MHz.Also gate off APll_PFD1/2/3 before boot OS, otherwise set
the clock rate of APll_PFD1/2/3 during OS boot up will triger
some warning message.Reviewed-by: Ye Li
Signed-off-by: Haibo Chen
(cherry picked from commit 07ef0fab23204684d82f27baf721a72b247f30c5)
(cherry picked from commit 1c30a73542990afbe48bf7a398baba9c5efaf4fe)
(cherry picked from commit 0e4ce4b6b3f8d06f5b63850e04a1e4deb9b07624) -
The single boot mode in MX7ULP will only boot up A7, the M4 is running in ROM
by checking entry from SIM0 GP register.In this patch, We bind M4 image with u-boot.bin by allocating a section for m4 image.
So the whole image (included M4 image) will be loaded by A7 ROM into DDR. Then
when u-boot is up, it will try to load M4 image into TCML and boot it there.Since M4 image will not be relocated in u-boot codes, we must load it during
board_f. Current implementation put it in arch_cpu_init to get M4 booted
as quick as possible.We requires the M4 image with IVT head and padding embedded, not a RAW binary. The
image should be same as what is used for M4 QSPI boot in dual boot mode.Signed-off-by: Ye Li
(cherry picked from commit 04163dbd4f6190f310fff17b53b4bc7b8370ba89)
(cherry picked from commit 81b5ea14493ef25a6cca22bc5651ec3e93e941f3)
(cherry picked from commit 1e4414da2e9a671896af1af887ab710489a2007e)
(cherry picked from commit b3a50e57aafe2830388d1295a8583c4e2515594b) -
Call the TRNG init function at the end of arch_cpu_init()
Concerned SoCs are: i.MX6, i.MX7 and i.MX8MSigned-off-by: Aymen Sghaier
(cherry picked from commit 996329904c0304a7bfbc6cda8287ab93de77870d)
(cherry picked from commit 5dd4441081f2af6f198a4d43eb1a3e543d986306) -
Signed-off-by: Franck LENORMAND
(cherry picked from commit 5f429339ab5a5f0d1f00a2880ce05cf479f11ba5)
(cherry picked from commit c26db25a130ef1f0abd43a3133877f74431eb217)
(cherry picked from commit 62ca8b07d4906ea11380f2638cc4b9d55beae9f6)
21 Jan, 2020
1 commit
-
---------------------------------
imx8: cleanup, fix warnings
imx6ull: add VisionSOM SoM and EVK
mx7ulp: fix warning due network, cleanup
mx7dsabre: Fix dm probe pmic
imx6: fixed for vining2000Travis: https://travis-ci.org/sbabic/u-boot-imx/builds/639512296
20 Jan, 2020
1 commit
-
On SPL enabled systems, the current s_init code (wdog, clock and ldo
init) is executed twice (by SPL and u-boot). This is not necessary and
might lead to boot issues (ie, starting PMC1 when it is already running).Signed-off-by: Jorge Ramirez-Ortiz
Reviewed-by: Fabio Estevam
18 Jan, 2020
2 commits
-
Move this function out of common.h and into a relevant header file.
Signed-off-by: Simon Glass
-
These three clock functions don't use driver model and should be migrated.
In the meantime, create a new file to hold them.Signed-off-by: Simon Glass
07 Jan, 2020
1 commit
-
The Embedded Artists COM board is based on NXP i.MX7ULP.
It has a BD70528 PMIC from Rohm with discrete DCDC powering option and
improved current observability (compared to the existing NXP i.MX7ULP EVK).Add the initial support for the board.
Signed-off-by: Fabio Estevam
06 Dec, 2019
4 commits
-
scg_a7_apll_init() is not called anywhere, so remove such dead code
Signed-off-by: Fabio Estevam
-
The LDOVL definitions is common to all the modes, not only RUN mode,
so in order to avoid confusion, remove the _RUN notation from the PMC1
LDOVL definitions.Signed-off-by: Fabio Estevam
-
Introduce the CONFIG_LDO_ENABLED_MODE option so that i.MX7ULP boards
designed to operate with LDO enabled mode can work with 0.95V at LDO
output in RUN mode as per the datasheet.Signed-off-by: Fabio Estevam
-
As per the i.MX7ULP datasheet, it can boot in LDO enabled mode
or LDO bypass mode.Print the LDO mode status in the U-Boot log for convenience.
Signed-off-by: Fabio Estevam
03 Dec, 2019
1 commit
-
A number of board function belong in init.h with the others. Move them.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
08 Oct, 2019
11 commits
-
CONFIG_SECURE_BOOT is too generic and forbids to use it for cross
architecture purposes. If Secure Boot is required for imx, this means to
enable and use the HAB processor in the soc.Signed-off-by: Stefano Babic
-
On i.MX7ULP B0, there is change in NIC clock dividers architecture.
On A0, the NIC1 BUS and EXT dividers were in a chain with NIC1 DIV, but
on B0 they are parallel with NIC1 DIV. So now the dividers are independent.
This patch modifies the scg_nic_get_rate function according to this change.Signed-off-by: Ye Li
Acked-by: Peng Fan -
The normal target frequency for ULP A7 core is 500Mhz, but now ROM
set the core frequency to 413Mhz. So change it to 500Mhz in u-boot.Signed-off-by: Ye Li
Signed-off-by: Peng Fan -
Since there is no register for CPU revision, we use ROM version to
check the A0 or B0 chip.Signed-off-by: Peng Fan
-
The GPU uses APLL PFD2 as its clock parent (483.84Mhz) with divider
set to 1. This frequecy is out of ULP A0 spec. The MAX rate for GPU
is 350Mhz. So we simply configure the APLL PFD2 to 345.6Mhz (FRAC=28)
to workaround the problem. The correct fix should let GPU handle the
clock rate in kernel.Signed-off-by: Ye Li
Signed-off-by: Peng Fan -
The num/denom is a float value, but in the calculation it is convert
to integer 0, and cause the result wrong.Signed-off-by: Ye Li
Signed-off-by: Peng Fan -
Wrong I2c driver configuration name is used in codes, so I2c driver is
not built. Correct it.Signed-off-by: Ye Li
Signed-off-by: Peng Fan -
Since many drivers need this CONFIG_MX7ULP to distiguish the settings
for i.MX7ULP only. Add this entry to cpu's kconfig.Signed-off-by: Ye Li
Signed-off-by: Peng Fan -
On i.MX7ULP, value zero is reserved in SCG1 RCCR register,
so the val should be decreased by 1 to get the correct clock
source index.Signed-off-by: Bai Ping
Signed-off-by: Peng Fan -
The board will reboot if A7 core enter mem mode by rtc, then M4 core
enter VLLS mode after the RTC alarm expired. Enable the dumb PMIC mode
to fix this issue.
Since i.MX7ULP B0 moves the SNVS LP into M4 domain, A core can't access
it. So check the CPU rev and not apply the settings for B0.Signed-off-by: Bai Ping
Signed-off-by: Peng Fan -
Add get_boot_device for i.MX7ULP
Signed-off-by: Peng Fan
Tested-by: Fabio Estevam
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
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
29 Apr, 2018
1 commit
-
SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch
timer) in U-Boot.
At the moment it is mandatory for ARMv8 and used by a few ARMv7 boards.
Add a proper Kconfig symbol to express this dependency properly,
allowing certain board configuration to later disable arch timer in case
there are any problems with it.Signed-off-by: Andre Przywara
[tuomas: rebase + fix conflicts and resync with moveconfig & use select]
Signed-off-by: Tuomas Tynkkynen
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