03 Nov, 2018

15 commits


29 Oct, 2018

2 commits


27 Oct, 2018

1 commit


26 Oct, 2018

2 commits

  • Open configs to enable spl build for imx8q on both
    Android and Android Auto.

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

    Luo Ji
     
  • Currently the clocks and power of USB controller and USB PHY are both
    controlled by ehci-mx6 driver in device probe. However, the function
    "ehci_usb_ofdata_to_platdata" calls "ehci_usb_phy_mode"
    to access PHY registers when "dr_mode" is set to OTG, both "dr_mode" and
    "extcon" properties are not set in DTB. This may cause hang at accessing
    USB PHY registers if the power and clocks are not enabled.

    Change the usb type logic to more clear way:
    1. plat->init_type: The requested USB mode type from uplayers
    2. priv->init_type: The USB mode type specified by DTB or by the USB ID pin or
    by external controller like tcpc or GPIO.
    3. If two init_type are not same, return failure. Align with non-DM driver.
    4. USB PHY access is moved after power and clock enabled.

    Signed-off-by: Ye Li

    Ye Li
     

25 Oct, 2018

3 commits


24 Oct, 2018

1 commit

  • Found the imx8mq Rev A chip (B0 and B1 chips are ok) boot hang at CAAM RNG init.
    The jobring 0 can't complete instantiation descriptor and spins on checking ORSFR_JR0.

    In current implementation, the descriptor and jobring input and output base address locate
    on TCM, because the driver uses raw_data array in jr_data_st structure as the buffer.
    This seems cause the issue. If switched from TCM to OCRAM, the issue will go.

    Since accessing TCM by CAAM is not very reliable. Add this patch to use OCRAM for SPL case.
    The early malloc is ready on SPL before calling board_init_f. So we can use malloc to allocate
    memory instead of the raw_data array.

    Signed-off-by: Ye Li
    Reviewed-by: Peng Fan

    Ye Li
     

23 Oct, 2018

5 commits


18 Oct, 2018

3 commits


17 Oct, 2018

2 commits


16 Oct, 2018

4 commits

  • Add support for FIT image loading of ATF and uboot proper for iMX8QXP mek.

    Signed-off-by: Abel Vesa

    Abel Vesa
     
  • Add support for FIT image loading of ATF and uboot proper for iMX8QM mek.

    Signed-off-by: Abel Vesa

    Abel Vesa
     
  • If SPL is built with CONFIG_SPL_LOAD_FIT make the checking for
    FIT image. If there is no FIT image go with the raw default mode.

    Signed-off-by: Abel Vesa

    Abel Vesa
     
  • 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
     

12 Oct, 2018

2 commits