23 Mar, 2018
3 commits
-
Currently it's not possible to build i.MX6SL EVK with CONFIG_SECURE_BOOT
enabled:In file included from drivers/crypto/fsl/jobdesc.c:12:0:
drivers/crypto/fsl/jobdesc.c: In function ‘inline_cnstr_jobdesc_blob_dek’:
include/fsl_sec.h:268:25: error: ‘CAAM_ARB_BASE_ADDR’ undeclared (first
use in this function)
#define SEC_MEM_PAGE1 (CAAM_ARB_BASE_ADDR + 0x1000)
^
drivers/crypto/fsl/jobdesc.c:140:21: note: in expansion of macro
‘SEC_MEM_PAGE1’
memcpy((uint32_t *)SEC_MEM_PAGE1, (uint32_t *)plain_txt, in_sz);
^
include/fsl_sec.h:268:25: note: each undeclared identifier is reported only
once for each function it appears in
#define SEC_MEM_PAGE1 (CAAM_ARB_BASE_ADDR + 0x1000)
^
drivers/crypto/fsl/jobdesc.c:140:21: note: in expansion of macro
‘SEC_MEM_PAGE1’
memcpy((uint32_t *)SEC_MEM_PAGE1, (uint32_t *)plain_txt, in_sz);
^
scripts/Makefile.build:280: recipe for target 'drivers/crypto/fsl/jobdesc.o'
failedCurrently the MX6SL option is selected via CONFIG_SYS_EXTRA_OPTIONS, so
CONFIG_FSL_CAAM is being wrongly selected by the imx-common Kconfig.
Select CONFIG_MX6SL via Kconfig to address this issue.Signed-off-by: Breno Lima
Reviewed-by: Ye Li -
Since commit 6e1f4d2652e79 ("arm: imx-common: add SECURE_BOOT option
to Kconfig") it's preferable to select CONFIG_SECURE_BOOT via Kconfig.Add ARCH_MX7ULP as a CONFIG_SECURE_BOOT dependency, do not select
CONFIG_FSL_CAAM since CAAM is not implemented for i.MX7ULP yet.Signed-off-by: Breno Lima
Reviewed-by: Ye Li -
Currently is not possible to call HAB API on i.MX7ULP:
=> hab_status
Secure boot disabled
System is hanging here.
The function is_mx8m() is returning true for i.MX7ULP, thus calling
HAB API with a wrong HAB RVT address.Align SoC ID and CPU ID with U-Boot upstream to address this issue:
http://git.denx.de/?p=u-boot.git;a=commit;h=4fdffb98568651f6581bccb53f5277cb0d2dcdc5Signed-off-by: Peng Fan
Signed-off-by: Breno Lima
Reviewed-by: Ye Li
20 Mar, 2018
1 commit
-
Add partition API cmd support.
Signed-off-by: Peng Fan
19 Mar, 2018
1 commit
-
Implemented the clock enable and disable interfaces for CDNS3 USB
driver.Signed-off-by: Ye Li
Acked-by: Peter Chen
14 Mar, 2018
1 commit
-
To those who use power domains that take SC_R_LAST
as resource id, need to check that in case those
are error.Signed-off-by: Peng Fan
07 Mar, 2018
1 commit
-
SCFW commit (0d43db9 SCF-22: Move SCU controls to SYSTEM.
Allows AP to use SCU temp sensor) changes system resource name
from SC_R_SC_PID0 to SC_R_SYSTEM, need to change it accordingly
to avoid system incorrect system type got from SCFW and cause
linux kernel booting fail as below:Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.51-04508-g9caddc6 (anson@anson-OptiPlex-790) (gcc version 4.9.1 20140529 (prerelease) (c8
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] earlycon: lpuart32 at MMIO 0x000000005a060000 (options '115200,115200')
[ 0.000000] bootconsole [lpuart32] enabled
[ 0.000000] Bad mode in Error handler detected on CPU0, code 0xbf000002 -- SError
[ 0.000000] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.51-04508-g9caddc6 #40
[ 0.000000] Hardware name: Freescale i.MX8QM MEK (DT)
[ 0.000000] task: ffff000009270780 task.stack: ffff000009260000
[ 0.000000] PC is at setup_arch+0xf4/0x578
[ 0.000000] LR is at setup_arch+0xf0/0x578
[ 0.000000] pc : [] lr : [] pstate: 000000c5
[ 0.000000] sp : ffff000009263f20
[ 0.000000] x29: ffff000009263f20 x28: 0000000081350018
[ 0.000000] x27: 00000000ffe93f58 x26: 0000000000000000
[ 0.000000] x25: 00000000ffefe110 x24: 0000000000000000
[ 0.000000] x23: 0000000000000000 x22: ffff000009267000
[ 0.000000] x21: ffff7dfffe800000 x20: ffff000009284000
[ 0.000000] x19: ffff000008080000 x18: 0000000000000077
[ 0.000000] x17: 0000000000002c00 x16: 0000000000001000
[ 0.000000] x15: ffffffffffffffff x14: 0000000000000000
[ 0.000000] x13: 0000000000000007 x12: 0000000000000018
[ 0.000000] x11: 0000000000000007 x10: 0101010101010101
[ 0.000000] x9 : ffffffffffffffff x8 : 0000000000000008
[ 0.000000] x7 : 0000000000000007 x6 : 0000008080808080
[ 0.000000] x5 : 000000000000005f x4 : 0000000000000072
[ 0.000000] x3 : 0000000000000000 x2 : 0000000000000072
[ 0.000000] x1 : 0000000000000000 x0 : 0000000000000001Signed-off-by: Anson Huang
Reviewed-by: Ye Li
28 Feb, 2018
1 commit
-
Checks whether the HDMI FW is running before initialize the HDMI display.
So that for cases like mfgtool and imx-boot image without HDMI FW, the
u-boot won't be blocked.Signed-off-by: Ye Li
13 Feb, 2018
3 commits
-
Adding Display support for splash screen.
Signed-off-by: Oliver Brown
-
Adding basic HDMI support for i.MX8 for splash screen.
Signed-off-by: Oliver Brown
-
"
commit 97b8a6eed4eee19ec8a60dedfffc2f5f3d8933c5
Author: Chuck Cannon
Date: Tue Feb 6 08:54:16 2018 -0600Add unique ID API call. Required to get info needed for SECO fuse
programming. Added info command to DM.
"Signed-off-by: Ranjani Vaidyanathan
25 Jan, 2018
1 commit
-
Add board support imx7d multa
Change-Id: I5c50363681d7cb1d93bf8d8a14d93496bd152bcb
Signed-off-by: fang hui
22 Jan, 2018
1 commit
-
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
13 Jan, 2018
1 commit
-
"
commit cfdb9821531da523fd1f01536eb67c8b8451477f
Author: Oliver Brown
Date: Tue Jan 2 07:46:06 2018 -0600dc: Add controls for display controller resets.
"Signed-off-by: Oliver Brown
10 Jan, 2018
1 commit
-
The i2c mux PCA9646 does not have register offset. We should read/write
its control register immediately following the i2c device address.
Use u-boot,i2c-offset-len to set the register offset length to 0.Signed-off-by: Ye Li
Acked-by: Peng Fan
29 Dec, 2017
3 commits
-
After relocation, when error happends, it is hard to track
ELR and LR with asm file objdumped from elf file.So subtract the gd->reloc_off the reflect the compliation address.
Signed-off-by: Peng Fan
Reviewed-by: Simon Glass
(cherry picked from commit 082693f4f02ad7a9de192e73feae34e28856b8e3) -
Fix build error.
Correct ENET1 enablement, Define CONFIG_FEC_ENET_DEV 1, to enable
ENET1 on Base board.Signed-off-by: Peng Fan
-
Since android needs the USB OTG port on base board to run fastboot,
add the USBOTG1 node to imx8qm mek DTS, so that the OTG can work on
reworked board.Tested-by: Chen Guoyin
Signed-off-by: Ye Li
26 Dec, 2017
1 commit
-
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
21 Dec, 2017
1 commit
-
Fix build warnings below, because the imx8m_usb_power is not declared
board/freescale/imx8mq_evk/imx8m_evk.c: In function ‘board_usb_init’:
board/freescale/imx8mq_evk/imx8m_evk.c:205:2: warning: implicit
declaration of function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
imx8m_usb_power(index, true);
^~~~~~~~~~~~~~~drivers/usb/host/xhci-imx8m.c: In function ‘xhci_hcd_init’:
drivers/usb/host/xhci-imx8m.c:123:3: warning: implicit declaration of
function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
imx8m_usb_power(ctr_data[index].usb_id, false);
^~~~~~~~~~~~~~~Signed-off-by: Ye Li
Acked-by: Peng Fan
15 Dec, 2017
1 commit
-
ATF will power off all PUs at default, so for USB, we enable
its PU power for both host and device modes in board_usb_init and
disable the power when usb is stop in board_usb_cleanup.Signed-off-by: Ye Li
Reviewed-by: Li Jun
13 Dec, 2017
3 commits
-
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: Ye Li
Reviewed-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: Ye Li
Reviewed-by: Peng Fan -
Currently, the DPLL of conn ss is not stable, will cause usdhc
data CRC error. So here change USDHC_CLK_ROOT source from AVPLL
as a workaround. And config USDHC1_CLK_ROOT to 333MHz, USDHC2_CLK_ROOT
to 200MHz. This workaround do not impact SD performance, but decrease
the eMMC performance, HS400ES work clock change from 198MHz to 166MHz,
read performance drop about 10%, write performance drop about 6%.Reviewed-by: Peng Fan
Signed-off-by: Haibo Chen
12 Dec, 2017
1 commit
-
Add support for DDR4 board in u-boot.
Main changes are the SD card slot and ddr
typeSigned-off-by: Teo Hall
08 Dec, 2017
4 commits
-
Add board codes, configurations, DTS and DDR initialization codes for the
DDR3L and DDR4 ARM2 boards.Supported modules
- DDR3L ARM2: Two RANK DDR3L, QSPI B, eMMC/SD, RMII ENET, UART.
- DDR4 ARM2: Two RANK DDR4, SD, NAND, RGMII ENET, UART.
NAND read/write/erase is ok in u-boot, NAND SPL boot will be tested later
when tool is ready.Signed-off-by: Ye Li
Acked-by: Peng Fan -
Update the gpmi/apbh_dma/bch drivers and relevant registers for i.MX8M.
Signed-off-by: Ye Li
-
Add 400Mhz, 600Mhz and 800Mhz frequencies for dram pll init function to
support DDR3L/DDR4/LPDDR4.Signed-off-by: Ye Li
-
Sync the FEC1 and FEC2 pad settings with latest kernel DTS
(commit a67f777dfb805fa72ffe31911a18d8c0a9683f73)Signed-off-by: Ye Li
Acked-by Fugang Duan
04 Dec, 2017
2 commits
-
Print out atf commit in U-Boot.
Signed-off-by: Peng Fan
-
This code was originally developed by Raul Cardenas
and modified to be applied in U-Boot imx_v2017.03.More information about the initial submission can be seen
in the link below:
https://lists.denx.de/pipermail/u-boot/2016-February/245273.htmli.MX7D has an a protection feature for Manufacturing process.
This feature uses asymmetric encryption to sign and verify
authenticated software handled between parties. This command
enables the use of such feature.The private key is unique and generated once per device.
And it is stored in secure memory and only accessible by CAAM.
Therefore, the public key generation and signature functions
are the only functions available for the user.The manufacturing-protection authentication process can be used to
authenticate the chip to the OEM's server.Command usage:
Print the public key for the device.
- mfgprot pubkGenerates Signature over given data.
- mfgprot signSigned-off-by: Raul Ulises Cardenas
Signed-off-by: Breno Lima
Reviewed-by: Fabio Estevam
Reviewed-by: Ye Li
30 Nov, 2017
2 commits
-
When current EL is not EL3, the direct calling to HAB will fail because
CAAM/SNVS can't initialize at non-secure mode. In this case, we use
SIP call to run the HAB in ATF.Signed-off-by: Ye Li
-
Need to pass total 5 arguments for SIP HAB call, so update the interface
to add new argument.Signed-off-by: Ye Li
29 Nov, 2017
3 commits
-
The TMU calibration data in u-boot DTB is not updated, so the temperature
we got in u-boot won't exceed 40C.
This patch updates the TMU node with latest kernel DTB
(commit ee0a9fbdca80b058c00d74c6afa70558f6c1dcc6)Signed-off-by: Ye Li
Acked-by: Peng Fan -
The codes use the QSPI when booting from Flexspi, this cause u-boot prints
out unknown device if we boot from Flexspi NOR.Signed-off-by: Ye Li
-
Correct Copyright
Signed-off-by: Peng Fan
24 Nov, 2017
1 commit
-
We found USB issue when using super-speed for mfgtool, temporally work around
the problem to use high-speed only.Signed-off-by: Ye Li
Reviewed-by: Li Jun
22 Nov, 2017
3 commits
-
This fixes SCFW commits with leading zeros like
0245582bf4a58289e25c59fb0befe84923ca6742 being displayed as "245582b".Signed-off-by: Leonard Crestez
Reviewed-by: Ye Li -
When running mfgtool, the HDMI FW won't be loaded. U-boot has to disable these
new added HDMI and display relevant nodes in DTB.Signed-off-by: Ye Li
Acked-by: Peng Fan -
Set NAND_USDHC_BUS_CLK_ROOT to sys pll1 266M
Signed-off-by: Peng Fan