21 Jan, 2019
4 commits
-
Enable the new mipi panel driver and add parameters to board codes.
We enable the RM68200_WXGA as default panel, users can set "panel"
environment variable to switch to different panel.Signed-off-by: Ye Li
Reviewed-by: Fancy Fang -
Since LCDIF does not have a dedicated PLL as its source, we have to
find a best frequency closed to the target frequency. The previous
method is finding a closed clock with actual frequency higher than target.
But this causes problem to DSI PHY clock which uses target frequency to
calculate its clock parameters. When the actaul pixclock is higher,
it may violates the requirement between DSI PHY clock and LCDIF pixclock clock.
clk_byte_freq >= dpi_pclk_freq * DPI_pixel_size / ( 8 * (cfg_num_lanes + 1))So we'd better selecting a LCDIF clock not exceed the target frequency.
Signed-off-by: Ye Li
-
The previous driver uses a hard coded value which generates the DSI
PHY clock can fit HX8363 WVGA screen. But when switching to new WXGA
screen which needs higher pixclock and higher DSI PHY clock, the
hard coded parameters can't work.
Change to follow kernel codes to find the best value of CM, CN, CO
parameters for DSI PHY clock to meet pixclock requirement.Signed-off-by: Ye Li
-
mx7ulp EVK B will use two mipi dsi panels, the new panel RM68200_WXGA
supports WXGA resolution.Signed-off-by: Ye Li
19 Jan, 2019
1 commit
-
When booting M4 with alt_config enabled, M4 will reserve 128MB for
video framebuffer from 0x88000000 to its partition, but Dom0 linux
loading address is 0x85000000, which will cause confict, so change
xenlinux_addr from 0x85000000 to 0x92000000.Signed-off-by: Flynn xu
Reviewed-by: Peng Fan
18 Jan, 2019
5 commits
-
Kick the CAAM JR3 before kicking the SMMU, so SMMU error
won't affect CAAM functions.Test: build and boot on imx8qxp_mek.
Change-Id: Iaa9a6084f226f81a087aac1eced93e8785861113
Signed-off-by: Ji Luo -
Open configs to enable dual bootloader feature for
imx8q Android Auto.Test: Build and boot on imx8q.
Change-Id: I99da2ee6b87efd201e16df1046188ae86cab1466
Signed-off-by: Ji Luo -
Support dual bootloader feature for imx8q which uses the
container format. Move the A/B slot select and verify to
SPL stage, the bootloader rollback index will be stored
at the last 8K bytes of eMMC rpmb storage.Test: Boot and rbindex verify pass on imx8q.
Change-Id: I0a48210f65984a083037a0cd3f9558951029ed7d
Signed-off-by: Ji Luo -
The CAAM driver in u-boot will use JR0 by default, but for
imx8q, both JR0 and JR1 are assigned to SECO and A core
should never access them.
Power on the JR3 in this patchset and use it to complete
the CAAM operations for imx8q.Test: CAAM self test cases pass for imx8q.
Change-Id: Ie3d77d1f2910e7f4c257c797c12b5c8a30ad936a
Signed-off-by: Ji Luo -
Add CAAM RNG generating and BLOB encap/decap
self test cases.Test: Test cases pass on imx8qm_mek/imx6qp_sabresd.
Change-Id: I538f7b1581b36df83a3006ac133ca9e7b57ab4f0
Signed-off-by: Ji Luo
17 Jan, 2019
1 commit
-
Add new u-boot command "imx_tamper" to configure and check the tamper pins.
The codes are used for reference and test. So command is disabled at default,
user can enable it by adding CONFIG_IMX_TAMPER=y to defconfigThe iMX7D has 10 tamper pins those can be used for SNVS tamper detection.
Tamper 9 pin is NVCC_DRAM power switch for LPSR by default.
It must be fused to tamper function by command
=> fuse prog -y 1 3 0x80000000
Otherwise, SNVS power consumption would be highWhen tamper is detected, CPU can't enter/stay in SNVS mode,
the tamper must be cleared and disabled before enter SNVS.Signed-off-by: Ye Li
Signed-off-by: Shaojun Wang
Acked-by: Peng Fan
16 Jan, 2019
4 commits
-
Current MXC NAND driver uses memory BBT, it will create memory BBT in each
booting by searching bad blocks.This patch enables the flash BBT, so the NAND driver can read back Bad block
table on the flash chip to create memory BBT.Signed-off-by: Ye Li
Acked-by: Peng Fan -
The new uuu will change to burn entire boot image to nandfit mtdpart not
only the FIT image. We enable REDUND offset configuration here, so that SPL will
try to find FIT header at two locations: the begin of nandfit mtdpart and
the 0x57c00 offset of nandfit mtdpart. This helps to be compatible with both
old and new uuu.Signed-off-by: Ye Li
-
The RAW image support must be disabled, otherwise a RAW image can be used
to bypass FIT image.Signed-off-by: Ye Li
-
Add the NAND support to SPL container parser and enable it for imx8qxp arm2
nand reworked board.
The SPL NAND will read from nandfit mtdpart (128MB offset) to parsing the entire
boot image and get the 3rd container from it. This requires burning tool (uuu)
to program the entire boot image into nandfit.Signed-off-by: Ye Li
15 Jan, 2019
2 commits
-
Add new u-boot command "ahab_status" to display seco events
and current lifecycle. It parses the seco event only for authenticating
container command, so that user can know the authentication failure.Signed-off-by: Ye Li
Acked-by: Peng Fan -
Update SCFW API from below SCFW commit which provides
the API to get seco eventscommit 50355d4b11b089be8fc1bc13afa7da001b081a44
Author: Chuck Cannon
Date: Mon Jan 14 12:30:42 2019 -0600SCF-275: Fix monitor error on command 'event'.
Signed-off-by: Chuck Cannon
Signed-off-by: Ye Li
09 Jan, 2019
11 commits
-
Due to some USB configurations are moved to header file to bypass
SPL build. Changes android and androidatuo defconfigs and header
files to avoid build break.Signed-off-by: Ye Li
-
Enable the SPL SDP driver and USB driver in MEK board codes and defconfigs.
Because the USB driver needs larger malloc pool, increase the malloc size
and disable simple mallocSigned-off-by: Ye Li
-
The SPL won't use host mode, and the tcpc is default set as device mode.
So we don't need to access tcpc in SPL.Signed-off-by: Ye Li
-
Add support to f_sdp to search and load iMX8 container image or iMX8M
FIT image by new UUU command SDPV.When using the SDPV, the uuu will continue to send out data after first
level boot loader used by ROM. This means uuu won't skip to the offset
of the second boot loader, and the padding data before second boot loader
will be sent out. So we have to search the FIT header or container header
in the buffer that SDP received.The new BCD value is used by uuu to distinguish if the SPL supports the
SDPV.Signed-off-by: Ye Li
-
Because SDP directly jumps to next level boot image, we'd better
clean up the USB driver before it. Implement a weak callback function,
that spl sdp can use it to clean up USB driver.Signed-off-by: Ye Li
-
Because the buffer length of sdp usb request is 65, we have to allocate
65 bytes not 64 bytes. Otherwise there is potential buffer overflow.Signed-off-by: Ye Li
-
Add HS endpoint descriptor for SDP. So that we can use high speed endpoint,
and the SDP device can send packet with 512 byte size.Signed-off-by: Ye Li
-
The imx8qm/qxp uses cdns3 USB driver. To support SPL SDP, we have
to enable the driver.Signed-off-by: Ye Li
-
Add a new configuration CONFIG_SPL_SDP_USB_DEV to specify the
usb index for spl sdp driver, so that we change use different device.
The default value is 0.Signed-off-by: Ye Li
-
Add i2c gpio pinctrl settings and properties to enable i2c force idle.
Signed-off-by: Ye Li
Reviewed-by: Peng Fan -
Add i2c gpio pinctrl settings and properties to enable i2c force idle.
Avoid any i2c bus not released by device during reboot.Signed-off-by: Ye Li
08 Jan, 2019
3 commits
-
Keystore attestation requires provision keys and cerificate chains into
secure storage. Add commands to support rsa/ecdsa keys and certificate
chains provision, each key/certificate should be staged before provision.
Usage:
Set rsa attestation key:
fastboot stage
fastboot oem set-rsa-atte-key
Set ec attestation key:
fastboot stage
fastboot oem set-ec-atte-key
Append rsa attestation certs:
fastboot stage
fastboot oem append-rsa-atte-cert
Append ec attestation certs:
fastboot stage
fastboot oem append-ec-atte-certTest: Pass CTS cases:
android.keystore.cts.KeyAttestationTest#testRsaAttestation
android.keystore.cts.KeyAttestationTest#testEcAttestationChange-Id: Ic3ed87e7e328a39b0f1bfb163356ea9e37d2f4fc
Signed-off-by: Ji Luo -
Pass the verified boot key hash to keymaster, it will be
treated as the root trust in keymaster service.
Also set the 'initialized' flag after initializing the
keymaster client or set keymaster boot parameters will fail.Test: Pass CTS cases:
android.keystore.cts.KeyAttestationTest#testRsaAttestation
android.keystore.cts.KeyAttestationTest#testEcAttestationChange-Id: I486b5493826160f42c61a3da0e6cd769df92254d
Signed-off-by: Ji Luo -
When running on iMX6ULZ, need to set tee_file to uTee-6ulzevk not
uTee-6ullevk. Thus, add findtee script into env to set correct tee
file before booting.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
07 Jan, 2019
1 commit
-
Remove this patch to specify wifi vendor info from uboot,
instead we directly add the bootargs in cmdline.Revert commit 9f1a11bdc3fef58bc41bebec858ccab0cd9050e4
MA-13879[wifi concurrency] Add bootargs to set a
property for wifi vendor of 8mmChange-Id: Icf7e89df2b4993f6e17a6b7cf38b891591f680d7
Signed-off-by: yang.tian
04 Jan, 2019
2 commits
-
The FAT16/12 has rootdir area before data area, and the clusters for
rootdir are not mantained by FAT table. So we don't need to find empty
cluster for next rootdir space, just use next dir cluster. And the FAT
table don't need to update for this new dir cluster.Signed-off-by: Ye Li
Acked-by: Peng Fan -
After the commit 265edc03d5a1 ("fs/fat: Clean up open-coded sector
cluster conversions"), it is hung up writing new file to FAT16
disk with more than 19 files in armv7. It is because result value
of sect_to_cluster() is not proper by casting from signed value to
unsigned value. Fix the wrong casting of sect_to_cluster().Reported-by: Jaehoon Chung
Signed-off-by: Seung-Woo Kim
Reviewed-by: Lukasz Majewski
(cherry picked from commit 6e2151c729674aecabf5ec5a96dac97433632009)
03 Jan, 2019
2 commits
-
The tstc function in Non-DM driver does not check the LPUART_FLAG_REGMAP_32BIT_REG
flag, it always use 8 bits register version and cause issue in 8QM/QXP SPL.Signed-off-by: Ye Li
Acked-by: Peng Fan -
Since evk_8mm will support both QCA9377 and BCM43455 wifi,
add bootargs to pass a property to differ which wifi is used.Change-Id: I83f7fd657dbdedc54931148cd6dd3d59563b6ec3
Signed-off-by: yang.tian
29 Dec, 2018
1 commit
-
The size used for malloc is wrong, the following read function will
read 1KB to the container header buffer not the size of the header.Signed-off-by: Ye Li
Acked-by: Peng Fan
27 Dec, 2018
1 commit
-
Only the ROM on RevA will pass over some info into OCRAM. U-boot gets
the info to determine whether it is eMMC fastboot.
Thus, change that codes only for RevA, otherwise if we protect
the OCRAM used by SPL on RevB, u-boot will fail to access it.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
26 Dec, 2018
2 commits
-
Since the gpio non-dm driver maps to wrong GPIO register, the SPL
also powers up wrong GPIO resources.Signed-off-by: Ye Li
Acked-by: Peng Fan -
The port index is not calculated correctly. It should not be descreased,
because the gpio number is from 0 on imx8 platform.
Otherwise we will access wrong registers.Signed-off-by: Ye Li