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

    Ye Li
     
  • 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

    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

    Ye Li
     
  • mx7ulp EVK B will use two mipi dsi panels, the new panel RM68200_WXGA
    supports WXGA resolution.

    Signed-off-by: Ye Li

    Ye Li
     

19 Jan, 2019

1 commit


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

    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

    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

    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

    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

    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 defconfig

    The 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 high

    When 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

    Ye Li
     

16 Jan, 2019

4 commits


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

    Ye Li
     
  • Update SCFW API from below SCFW commit which provides
    the API to get seco events

    commit 50355d4b11b089be8fc1bc13afa7da001b081a44
    Author: Chuck Cannon
    Date: Mon Jan 14 12:30:42 2019 -0600

    SCF-275: Fix monitor error on command 'event'.

    Signed-off-by: Chuck Cannon

    Signed-off-by: Ye Li

    Ye Li
     

09 Jan, 2019

11 commits


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-cert

    Test: Pass CTS cases:
    android.keystore.cts.KeyAttestationTest#testRsaAttestation
    android.keystore.cts.KeyAttestationTest#testEcAttestation

    Change-Id: Ic3ed87e7e328a39b0f1bfb163356ea9e37d2f4fc
    Signed-off-by: Ji Luo

    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#testEcAttestation

    Change-Id: I486b5493826160f42c61a3da0e6cd769df92254d
    Signed-off-by: Ji Luo

    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

    Ye Li
     

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 8mm

    Change-Id: Icf7e89df2b4993f6e17a6b7cf38b891591f680d7
    Signed-off-by: yang.tian

    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

    Ye Li
     
  • 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)

    Seung-Woo Kim
     

03 Jan, 2019

2 commits


29 Dec, 2018

1 commit


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

    Ye Li
     

26 Dec, 2018

2 commits