18 Apr, 2019

1 commit

  • initialize potential uninitialized variable with the type of"char*" to
    be NULL in AVB. That "hashtree_error_mode" in code is manually specified
    with a known value, the cases listed cover all potential value of
    "hashtree_error_mode"

    explicitly do a type cast for memcpy parameters.

    Change-Id: Ie5d234422a273d6dab75585bd0d8eb81583707ca
    Signed-off-by: faqiang.zhu

    faqiang.zhu
     

26 Feb, 2019

2 commits

  • When flexspi is assigned to M4 for XIP, its power up/down will fail.
    This is expected so don't need to give warning.

    Signed-off-by: Ye Li
    (cherry picked from commit 0803b4a9d4074a5bb101d194633cbdd7510a1e9a)

    Ye Li
     
  • The CONFIG_QSPI_BOOT has been removed from SPL flexspi build, because
    we have to change the u-boot ENV to SD/MMC, and this configuration will
    set relevant configurations.

    But we don't clean up CONFIG_QSPI_BOOT for SPL completely, SPL still has
    some places using it and cause problem to flexspi boot.
    Using CONFIG_SPL_SPI_SUPPORT to replace the CONFIG_QSPI_BOOT.

    Signed-off-by: Ye Li
    (cherry picked from commit 0491bd4ba21ad620b4c514323a7d6b8a9e10325c)

    Ye Li
     

25 Feb, 2019

1 commit


25 Jan, 2019

1 commit

  • SCFW has taken to reset the base board by deasserting BB_PER_RST_B(SCU_GPIO0_01) on
    imx8QM MEK board, and has removed the SC_R_BOARD_R1 functionality.
    So We don't need to explicitly use SC_R_BOARD_R1, delete the codes from u-boot.

    Signed-off-by: Ye Li

    Ye Li
     

09 Jan, 2019

1 commit


26 Dec, 2018

1 commit


12 Dec, 2018

2 commits

  • Write magic number in board early init, and clear magic when booting
    Linux.

    This is to let XEN know the current EL1 code is U-Boot or Linux
    when reset/reboot. This is just a workaround because CM41 could not
    communicate with XEN now, even XEN knows that EL1 is reseting/rebooting.

    Signed-off-by: Peng Fan
    Reviewed-by: Flynn xu

    Peng Fan
     
  • To support partition reboot, the u-boot has to enable clocks by LPCG.
    The LPCG will reset to default value only when the subsystem is totally
    power off and reset. However, the resources in one subsystem may belong
    to different partitions, so the partition reboot may not reboot the entire
    subsystem.
    Powers, clocks/lpcg, GPR, IP may not reset depends on various cases and
    HW design. Thus, AP software has to ensure everything is reset by SW
    itself to support such above cases.

    Signed-off-by: Ye Li

    Ye Li
     

03 Nov, 2018

1 commit

  • Because u-boot USB gadget only can support one driver, so if we enable
    ci_udc driver, the cdns3 gadget driver must be disabled. This cause build
    error because we don't wrap the cdns gadget functions with its configuration.

    Fix the issue by adding CONFIG_USB_CDNS3_GADGET before cdns3 gadget function.

    Signed-off-by: Ye Li

    Ye Li
     

16 Oct, 2018

1 commit


28 Sep, 2018

2 commits


12 Sep, 2018

1 commit


21 Aug, 2018

1 commit


06 Aug, 2018

1 commit

  • Add the secure boot relevant environment variables to ARM2 and MEK.
    When CONFIG_AHAB_BOOT is enabled, we will switch to boot flow:
    1. Load the signed OS container to address 0x88000000
    2. Using auth_cntr to authenticate the OS container. It will load the
    kernel and FDT to destination addresses.
    3. Using booti to boot kernel.

    Signed-off-by: Ye Li
    (cherry picked from commit eb47b72c1c89deddeaa3b3618d8c28aca05cd4ad)

    Ye Li
     

14 Jun, 2018

1 commit

  • We are targeting let uboot loading images from emmc to boot android.
    Currently only emmc1 is enabled, so other devices are disabled.

    Also change memory layout according to VM layout. The memory layout
    needs to be samesize as what you configured in as "memory = "3584"".

    Add a new dts dedicated for this kind uboot, add a new defconfig
    to select CONFIG_XEN/CONFIG_XEN_DEBUG_SERIAL, deselect CONFIG_DM_SERIAL,
    select CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK, and disable some devices
    compared with imx8qm_mek_androidauto_defconfig.

    Signed-off-by: Peng Fan
    (cherry picked from commit a4e932cae433b9d2e1cff6a94b12e4abcac45543)

    Peng Fan
     

13 Jun, 2018

1 commit


23 May, 2018

1 commit


27 Apr, 2018

3 commits

  • All iMX8QM/iMX8QXP MEK ARM2 boards have typec port for CDNS3 USB. This patch
    addes board level codes to init and clean up CDNS3 USB gadget driver.

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

    Ye Li
     
  • Make sure that all devices that are powered up by uboot
    are powered down before bringing up kernel.
    Else the subsystem/device will never be powered down by SCFW even though
    from the kernel's point of view it should be powered down.

    Benefiting from power domain driver, We have implemented the function "power_off_pd_devices"
    to power off all active devices. No need to explicitly power off them in board_quiesce_devices.

    Signed-off-by: Ranjani Vaidyanathan
    Signed-off-by: Ye Li

    Ye Li
     
  • Add board level codes and configs for i.MX8QM MEK board.

    - Enabled DM driver:
    FEC, LPUART, LPI2C, GPIO, SD/MMC, FSPI, pinctrl, USB host(EHCI/XHCI)
    Power-domain, SC thermal

    - Enabled Non-DM driver:
    SATA, PCIE, fuse, iomux, video(IMXDPUV1), USB device(CI-UDC)

    - Disabled driver:
    mailbox

    - Board defconfigs:
    imx8qm_mek_defconfig
    imx8qm_mek_fspi_defconfig

    Signed-off-by: Ye Li

    Ye Li