16 Aug, 2018

1 commit


15 Aug, 2018

3 commits


13 Aug, 2018

1 commit


11 Aug, 2018

4 commits

  • In file included from arch/arm/mach-imx/imx8m/soc.c:11:0:
    arch/arm/mach-imx/imx8m/soc.c: In function ‘imx_gpc_set_m_core_pgc’:
    ./arch/arm/include/asm/io.h:44:28: warning: cast to pointer from integer of differen t size [-Wint-to-pointer-cast]
    #define __arch_getl(a) (*(volatile unsigned int *)(a))
    ^
    ./arch/arm/include/asm/io.h:122:31: note: in expansion of macro ‘__arch_getl’
    #define readl(c) ({ u32 __v = __arch_getl(c); __iormb(); __v; })
    ^~~~~~~~~~~
    arch/arm/mach-imx/imx8m/soc.c:427:8: note: in expansion of macro ‘readl’
    val = readl(GPC_BASE_ADDR + offset);
    ^~~~~
    ./arch/arm/include/asm/io.h:49:29: warning: cast to pointer from integer of differen t size [-Wint-to-pointer-cast]
    #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v))
    ^
    ./arch/arm/include/asm/io.h:117:48: note: in expansion of macro ‘__arch_putl’
    #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; })
    ^~~~~~~~~~~
    arch/arm/mach-imx/imx8m/soc.c:432:2: note: in expansion of macro ‘writel’
    writel(val, GPC_BASE_ADDR + offset);
    ^~~~~~
    arch/arm/mach-imx/imx8m/soc.c: In function ‘imx8m_usb_power’:
    arch/arm/mach-imx/imx8m/soc.c:453:16: warning: unused variable ‘ret’ [-Wunused-varia ble]
    unsigned long ret;
    ^~~

    Signed-off-by: Li Jun

    Li Jun
     
  • enable fastboot for i.MX8QX MEK FlexSPI u-boot

    Signed-off-by: Han Xu

    Han Xu
     
  • When rewoked eMMC to MMC socket, change MMC driver can recognize the card
    Enable the fastboot to test usb gadget

    Signed-off-by: Ye Li

    Ye Li
     
  • Enable DWC3 USB support at i.MX850D platform

    Signed-off-by: Frank Li

    Frank Li
     

10 Aug, 2018

7 commits


06 Aug, 2018

3 commits

  • Refact the lpddr4 init flow on i.MX8MM EVK board. board level only need
    to provide the necessary dram init related parameter.

    Signed-off-by: Bai Ping
    (cherry picked from commit 72a06ef47c7c93de49730261adb8f251612d1883)

    Bai Ping
     
  • the dram init is board related. But there is still some common
    part can be reused on different board. The basic flow is common
    for all the board. only the DDRC and DDR PHY config register setting
    is different on different board. So extract the LPDDR4 init common
    flow to make it more generic. baord level only need to provide
    the DDRC and PHY config register parameter to the common code to finish
    the dram init.

    the same method can be use for DDR4. will be added later.

    Signed-off-by: Bai Ping
    (cherry picked from commit 220d0cc79a3f340e0da664242bb19ccda7a071d1)

    Bai Ping
     
  • Still meet DPLL unstable issue on iMX8QXP B0 when doing various stress tests.
    So switch back to use AVPLL for usdhc on B0

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

    Ye Li
     

03 Aug, 2018

2 commits


01 Aug, 2018

2 commits


28 Jul, 2018

1 commit


26 Jul, 2018

1 commit


20 Jul, 2018

4 commits


17 Jul, 2018

1 commit


16 Jul, 2018

4 commits

  • uuu can change emmc device number for fastboot

    Signed-off-by: Frank Li

    Frank Li
     
  • We enabled the DM for xhci-imx8m driver which uses compatible string
    "fsl, imx8mq-dwc3". But found a issue that u-boot will get four USB bus not two.
    The reason is the low level driver xhci-dwc3 also adds the DM support which uses
    compatible string "snps,dwc3". Thus, one USB node and its dwc3 subnode are both
    binded as independent USB bus.

    Since the xhci-imx8m driver uses xhci-dwc3 as low level driver, to fix the issue
    we add -u-boot.dtsi files to change the USB node compatible string to
    "simple-bus" and change dwc3 node compatibe string to "fsl, imx8mq-dwc3". Then
    xhci-dwc3 DM driver won't bind any node.

    Signed-off-by: Ye Li

    Ye Li
     
  • Checks whether the HDMI FW is running before initialize the HDMI display.
    So that for cases like mfgtool and imx-boot image without HDMI FW, the
    u-boot won't be blocked.

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

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

12 Jul, 2018

1 commit

  • In optee enabled defconfig, the trust zone is enabled in DCD. On iMX6UL/ULL, there
    is IC limitation that LCDIF master access can only be non-secure, because PL301
    hard code the m_3/4/5 to non-secure masters. It causes LCDIF fails to fetch data
    from memory.

    This patch adds a workaround to change trust zone Region 0 attribute to allow both secure
    and non-secure read/write. So it permits the LCDIF master access to memory.
    Since optee will configure Region 0 by itself, this should not introduce problem to optee.

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

    Ye Li
     

11 Jul, 2018

1 commit


06 Jul, 2018

1 commit

  • According to ADD, the target frequency for NOC bus clock is 750Mhz,
    the default setting from ROM is selecting the PLL1_800M_clk as source.
    This patch sets the PLL3 to 750Mhz and select it as the source of NOC
    clock root.

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

    Ye Li
     

04 Jul, 2018

1 commit