28 Nov, 2018

2 commits


27 Nov, 2018

1 commit

  • The SPL loads the FIT image FDT part to an address related with the device
    block length. This length is 512 for SD/MMC and is 1 for other devices
    like SDP, NOR, NAND, SPI, etc.
    When signing FIT image, we use fixed address caculated by SD/MMC block length
    to sign FDT part. Thus, when booting through uuu, this causes mismatch and
    gets authentication failed.

    Fix the issue by providing a override function for this FIT buffer address.
    When secure boot is enabled, adjust the addresses of other devices to be same
    with SD/MMC.

    Signed-off-by: Ye Li
    Reviewed-by: Peng Fan
    (cherry picked from commit 710efd3ccb99e144bd30af8e1ee46459b4a54dd6)

    Ye Li
     

23 Nov, 2018

2 commits


21 Nov, 2018

1 commit


19 Nov, 2018

1 commit

  • Some platforms don't have alias for usb1 device, so when initialize the
    second controller, its seq is allocated by u-boot automatically.
    This introduces a problem if the initialization of first controller is failed,
    for example nothing connect to first controller, then the seq allocated
    for second controller is 0 not 1. EHCI driver uses the seq as index for
    USB controller and phy, so it will cause initialization problem for second
    controller.

    Fix the issue by adding the usb1 alias for second USB controller.

    Signed-off-by: Ye Li
    Reviewed-by: Peng Fan
    (cherry picked from commit fe21a1ab93d0788017ec58905e3273c9ab0f5a67)

    Ye Li
     

16 Nov, 2018

1 commit


15 Nov, 2018

4 commits


14 Nov, 2018

1 commit


12 Nov, 2018

2 commits

  • Add support for fastboot variable 'at-vboot-state', it's composed
    by 6 sub-variable: 'bootloader-locked', 'bootloader-min-versions',
    'avb-perm-attr-set', 'avb-locked', 'avb-unlock-disabled' and
    'avb-min-versions'.

    Test: All 'at-vboot-state' variables are returned
    correctly on imx7d_pico and AIY.

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

    Ji Luo
     
  • Align the callback to ARM64 environment for
    Trusty OS.

    TEST: AIY-3G & AIY-1G board's TIPC and AVB handler
    works.

    Change-Id: I65806f56267a4a9278db04a462e351da181618cc
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     

09 Nov, 2018

3 commits


07 Nov, 2018

2 commits


03 Nov, 2018

9 commits

  • Refact the i.MX8MQ dram init flow to reuse the common dram
    driver used by i.MX8MM.

    Signed-off-by: Bai Ping

    Bai Ping
     
  • Sometimes, SPL need to pass the trained FSP drate to ATF
    if DDR PHY bypass mode is not enabled. So add a fsp_table
    to pass these info to ATF. additionally, add more clock
    frequency point config to support for code reuse for i.MX8MQ.

    Signed-off-by: Bai Ping

    Bai Ping
     
  • Change the dram_pll_init function API to make it same
    as i.MX8MM, so the dram init flow can use call the same
    API for these two different SOC.

    Signed-off-by: Bai Ping

    Bai Ping
     
  • When running with OPTEE, the MMU table in u-boot does not remove the OPTEE
    memory from its settings. So ARM speculative prefetch in u-boot may access
    that OPTEE memory. Due to trust zone is enabled by OPTEE and that memory
    is set to secure access, then the speculative prefetch will fail and cause
    various memory issue in u-boot.
    The fail address register and int_status register in trustzone has logged
    that speculative access from u-boot.

    Signed-off-by: Ye Li

    Ye Li
     
  • Generate the key blob and store it to the last block of boot1 partition
    after setting the rpmb key. The key blob should be checked in spl and be
    passed to Trusty OS if it's valid. If the key blob are damaged, RPMB
    storage proxy service will return fail and should make the device hang.

    Test: Build and boot ok on imx8qm/qxp.

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

    Ji Luo
     
  • Add implementation necessary for supporting SPL on QXP
    ARM2 board with dynamic offset detection from container header.

    Signed-off-by: Teo Hall

    Teo Hall
     
  • If the resource is not owned by current partition, not assign it
    to DomU.

    Signed-off-by: Peng Fan

    Peng Fan
     
  • Align the new pinfunc names with header file for all iMX7ULP EVK and ARM2
    DTS files.
    Also update the EVK DTS files to align with kernel for Rev A3
    board. Removed the extcon node for USB ID, since A3 board uses USB ID pin
    not GPIO.

    Signed-off-by: Ye Li

    Ye Li
     
  • i.MX7ULP B0 silicon has below updates in iomux

    - GPIO function input buffer enable (IBE)/output buffer enable (OBE) is
    now controlled by RGPIO module. IOMUXC IBE/OBE is used as an override.
    - LPUART2_TX (I/O) to PTB12 (ALT4)
    - LPUART2_RX (I) to PTB13 (ALT4)
    - USB0_ID (I) to PTC13 (ALT11), PTC18 (ALT11) and PTC19 (ALT10)
    - VIU_DE (I) to PTC18 (ALT12), PTC19 (ALT12) and PTE5 (ALT12)
    - RTC_CLKOUT (O) to PTB5 (ALT11) and PTB14 (ALT11)
    - SEC_VIO_B (I) to PTB4 (ALT11)
    - Added new Input Selection Registers
    PSMI1_USB0_ID Address: 0x40ac_0338 To select USB_ID input pad/source
    PSMI1_VIU_DE Address: 0x40ac_033c To select VIU_DE input pad/source

    Copy the imx7ulp-pinfunc.h from latest kernel dts
    (commit 18cdeadfe1967ea33d3bdfc7ccead6d6d06a98a6), and update
    the mx7ulp-pins.h accordingly.

    Signed-off-by: Ye Li

    Ye Li
     

29 Oct, 2018

1 commit


25 Oct, 2018

2 commits


23 Oct, 2018

3 commits


18 Oct, 2018

2 commits


17 Oct, 2018

2 commits


16 Oct, 2018

1 commit

  • Since commit 8891410c729b ("MLK-19848 mx6dq: Fix chip version issue for
    rev1.3") it's not possible to call the HAB API functions on i.MX6DQ
    SoC Rev 1.3:

    Authenticate image from DDR location 0x12000000...
    undefined instruction
    pc : [] lr : []
    reloc pc : [] lr : []
    sp : 8ef444a8 ip : 126e8068 fp : 8ff59aa8
    r10: 8ffd51e4 r9 : 8ef50eb0 r8 : 006e8000
    r7 : 00000000 r6 : 126ea01f r5 : 0000002b r4 : 126e8000
    r3 : 412c00dd r2 : 00000001 r1 : 00000001 r0 : 00000063
    Flags: nzCv IRQs off FIQs off Mode SVC_32
    Resetting CPU ...

    resetting ...

    The hab.h code is defining the HAB API base address according to the
    old SoC revision number, thus failing when calling the HAB API
    authenticate_image() function.

    Fix this issue by using mx6dq rev 1.3 instead of mx6dq rev 1.5.

    Signed-off-by: Breno Lima
    Reviewed-by: Ye Li

    Breno Lima