21 Sep, 2018

1 commit

  • camera sometime can't been open once run M4 image.
    ISI-CH0 probe funtion is not called when meet issue.

    The root cause is:
    M4 image set assign resource SC_R_ISI_CH0 into m4 partition
    when open camera in m4 side.
    Uboot will call update_fdt_with_owned_resources to check the pd
    in current dts node. it will call sc_rm_is_resource_owned to
    check the pd whether in other partition, If yes, it will delete
    the dts node. uboot delete isi_0 node whose pd is SC_R_ISI_CH0.

    Change-Id: I4e2afbed2c55caad0a9f804fa8d85511c3bfea38
    Signed-off-by: zhang sanshan

    zhang sanshan
     

18 Sep, 2018

1 commit


12 Sep, 2018

2 commits

  • Fixes 9486251ced24("MLK-19494 configs: imx8qm mek android audo: correct xen physical memory")

    correct text base, IPC address, memmap.

    Signed-off-by: Peng Fan

    Peng Fan
     
  • When Trusty OS allocates the mem region from 0xfe0000000-0xffffffff, the get_effective_memsize
    does not return correct memory size. There is a check in get_effective_memsize to find the memreg
    where the u-boot is running, and return the size of that memreg as the result of get_effective_memsize.
    When using aligned start, the value is 0x80200000 since it is 2MB aligned. Thus the finding of memreg
    will fail and return the PHYS_SDRAM_1_SIZE because u-boot text base is 0x80020000.
    This cause u-boot relocating to the high memory where has been occupied by Trusty OS.

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

    Ye Li
     

28 Aug, 2018

1 commit


15 Aug, 2018

2 commits


11 Aug, 2018

1 commit


10 Aug, 2018

4 commits


06 Aug, 2018

1 commit


16 Jul, 2018

1 commit

  • Get such warning below in fuse driver, due to a u32 pointer is converted to ulong then
    passed as ulong pointer.
    This is dangerous when assigning value to the memory where ulong pointer points to.
    So use a intermediate variable to hand over value. Also fix the indenting issue in this patch.

    arch/arm/cpu/armv8/imx8/fuse.c: In function ‘fuse_sense’:
    arch/arm/cpu/armv8/imx8/fuse.c:33:25: warning: passing argument 3 of ‘call_imx_sip_ret2’
    makes pointer from integer without a cast [-Wint-conversion]
    (unsigned long)val, 0, 0);
    ^
    In file included from ./arch/arm/include/asm/arch/sys_proto.h:7:0,
    from arch/arm/cpu/armv8/imx8/fuse.c:13:
    ./arch/arm/include/asm/imx-common/sys_proto.h:94:15: note: expected ‘long unsigned int *’
    but argument is of type ‘long unsigned int’
    unsigned long call_imx_sip_ret2(unsigned long id, unsigned long reg0, unsigned long *reg1,
    unsigned long reg2, unsigned long reg3);

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

    Ye Li
     

15 Jul, 2018

1 commit

  • The API to get the value of environment variable is not
    correct, use correct API. This fix the build errors like
    below:
    arch/arm/mach-imx/built-in.o: In function `mmc_get_env_dev':
    uboot-imx/arch/arm/mach-imx/imx8/cpu.c:840:
    undefined reference to `get_env_ulong

    Test: Build pass for imx8qm/imx8qxp.

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

    Luo Ji
     

14 Jul, 2018

1 commit

  • uuu can write to any position of mmc
    sdps: boot -f ../mkimage_imx8dv/imx-mkimage/iMX8QX/flash.bin

    FB: ucmd setenv fastboot_dev mmc
    FB: ucmd setenv mmcdev ${emmc_dev}
    FB: ucmd mmc dev ${emmc_dev}
    FB: flash -raw2sparse all xx.sdcard

    Signed-off-by: Frank Li
    (cherry picked from commit ca96e0bd1aea1996904b0a71fb1d74c3f5176929)

    Conflicts:
    arch/arm/cpu/armv8/imx8/cpu.c
    drivers/usb/gadget/f_fastboot.c
    include/configs/imx8qxp_mek.h

    Frank Li
     

04 Jul, 2018

1 commit


15 Jun, 2018

2 commits


14 Jun, 2018

3 commits

  • Update SOC code to support U-Boot in a XEN VM. Currently
    we only support to boot android using uboot in a VM,
    so there is hardcode that using MMC1_BOOT boot.

    There are a few small fixes included.

    For the mmu configuration, the mem map is used from xen
    guest VM and our iomem space in vm cfg file.

    The VM use a different MU, so use a wrap for SC_IPC_CH.

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

    Peng Fan
     
  • Set grant to true to grant parent able to access resources assigned
    to child partition.

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

    Peng Fan
     
  • Since M4 will arrange some eDMA channels to its partition, the A core
    can't use them. We have to remove these eDMA channels from DTB dynamically.

    Different like other resources, disabling the eDMA channels require to modify
    the edma nodes by removing relevant registers, interrupts configurations, and
    adjust dma channels number.

    This patch searches the edma nodes from kernel DTB, checks the channels by
    binding their registers base address with their resource IDs. Then update
    the reg, interrupts, interrupt-names and dma-channels properties.

    Signed-off-by: Ye Li
    Acked-by : Robin Gong

    Ye Li
     

13 Jun, 2018

1 commit


23 May, 2018

5 commits


27 Apr, 2018

12 commits

  • Add function and new command "auth_cntr" for secure boot support.
    When booting with life cycle set to OEM closed, we need to use
    this function to authenticate the OS container and load kernel & FDT
    from OS container to their destination.

    Users can set CONFIG_AHAB_BOOT=y to enable the feature. It is not
    set at default.

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

    Ye Li
     
  • Add parse dtb support, see
    arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-dom0.dts for example.

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

    Peng Fan
     
  • Add partition API cmd support.

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

    Peng Fan
     
  • SCFW has provided the sc_misc_seco_build_info to get seco FW commit,
    so use it in u-boot to print out the commit.
    For A0 chip and unsupported SCFW build, the SECO commit is always 0.

    BuildInfo:
    - SCFW 433c7fb7, SECO-FW 041c9f92, IMX-MKIMAGE 8b15026b, ATF 5e238f9
    - U-Boot 2017.03-00899-gdbd3637-dirty

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

    Ye Li
     
  • Implemented the clock enable and disable interfaces for CDNS3 USB
    driver.

    Signed-off-by: Ye Li
    Acked-by: Peter Chen
    (cherry picked from commit 2f0dc4c503d8ac831fb809ec124e79712defae77)

    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.MX8QXP MEK board.

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

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

    - Disabled driver:
    mailbox

    - Board defconfigs:
    imx8qxp_mek_defconfig
    imx8qxp_mek_fspi_defconfig

    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
     
  • Add board level codes and configs for i.MX8QXP LPDDR4 ARM2 board
    and i.MX8QXP DDR3 ARM2 board.

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

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

    - Disabled driver:
    mailbox

    - Board defconfigs:
    imx8qxp_ddr3_arm2_defconfig
    imx8qxp_lpddr4_arm2_fspi_defconfig
    imx8qxp_ddr4_arm2_defconfig

    Signed-off-by: Ye Li

    Ye Li
     
  • Add board level codes and configs for i.MX8QM LPDDR4 ARM2 board
    and DDR4 ARM2 board.

    - Enabled DM driver:
    FEC, LPUART, LPI2C, GPIO, SD/MMC, FSPI, PCA953X, 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_lpddr4_arm2_defconfig
    imx8qm_lpddr4_arm2_fspi_defconfig
    imx8qm_ddr4_arm2_defconfig

    Signed-off-by: Ye Li

    Ye Li
     
  • Using SC thermal sensor to get temperature and print the CPU
    temperature at booting.

    Signed-off-by: Ye Li

    Ye Li
     
  • Add common functions for LVDS/DC setup, video framebuffer init/disable,
    LVDS to HDMI card settings, etc. Refactor it from video_imxdpuv1.c.
    1. Add power, clocks, PLL relevant setup for LVDS and DC.
    2. Configure the LVDS and its PHY settings for the display format and pixel link.
    3. Setup the LVDS to HDMI card.
    4. Implement the video_hw_init by calling DC driver API to output data to
    specified display panel.

    Signed-off-by: Oliver Brown
    Signed-off-by: Ye Li
    (cherry picked from commit 9317f7ea4d976335a633f7056bbac1f77b01247a)

    Ye Li