20 Jul, 2018

7 commits

  • Add new mipi dsi driver sec_mipi_dsim to support the samsung mipi dsi used
    on iMX8MM and iMX7D platforms. This driver implements the interfaces required
    by mipi dsi bridge. Users can use mipi dsi bridge common APIs to access it.

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

    Ye Li
     
  • Setup the mipi_dsi_northwest driver and register a the HX8363 panel
    device to mipi dsi bridge in board codes.

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

    Ye Li
     
  • Remove the functions for northwest driver and HX8363 driver, change
    to use mipi dsi bridge interfaces.
    The mipi_dsi_northwest driver setup and hx8363 init will move to
    board level codes.

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

    Ye Li
     
  • Update the HX8363 mipi panel to use new mipi dsi bridge interfaces
    to register a panel device and send command packets. So this panel
    driver can decouple with mipi_dsi_northwest driver.

    A new header file mipi_dsi_panel.h is added for all panel init
    functions declare.

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

    Ye Li
     
  • Update the mipi_dsi_northwest driver to implement mipi dsi bridge interfaces
    and register it as a bridge controller. Users can call bridge common interfaces
    to access the northwest driver, don't need to call its private driver functions.

    We also add a kconfig entry for this driver, the name is changed to
    CONFIG_IMX_NORTHWEST_MIPI_DSI

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

    Ye Li
     
  • Add a mipi dsi bridge driver to abstract mipi dsi interfaces for
    mipi panel and display controller drivers.
    So for panel and display conntroller drivers, they can use same functions
    to access mipi dsi controller.

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

    Ye Li
     
  • We can get the bootimage SD/MMC offset at runtime according to the SOC type and
    version. No need to use CONFIG_BOOTLOADER_OFFSET_33K and CONFIG_BOOTLOADER_OFFSET_32K
    any longer, so remove them.

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

    Ye Li
     

19 Jul, 2018

3 commits


18 Jul, 2018

2 commits

  • The CONFIG_USB_GADGET is removed from header file and must add to defconfig,
    but imx8mm_evk_fspi_defconfig is not udpated. Thus it causes build break.

    Fix the issue and add other missed configs. Since the fastboot does not support
    flexspi, we don't enable it.

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

    Ye Li
     
  • CONFIG_USB_GADGET was removed in imx8mm_evk.h, add it to
    imx8mm_evk_android_defconfig. Also add CONFIG_SDP_LOADADDR
    to support uuu.

    Change-Id: Ie8b50b2acadb2779024c7ac7fd0ead65d7189476
    Signed-off-by: Luo Ji
    (cherry picked from commit c990e96a89a4d8dfe7fb5d2dee296d16d3b6aa71)

    Luo Ji
     

17 Jul, 2018

3 commits


16 Jul, 2018

9 commits

  • uuu can change emmc device number for fastboot

    Signed-off-by: Frank Li

    Frank Li
     
  • include/configs/imx8mm_evk.h:305: warning: "CONFIG_USB_GADGET_DOWNLOAD" redefined
    #define CONFIG_USB_GADGET_DOWNLOAD

    Signed-off-by: Frank Li

    Frank Li
     
  • Move common mfgtools config into this config files.

    Signed-off-by: Frank Li

    Frank Li
     
  • uuu will use fastboot command to write emmc

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

    Conflicts:
    configs/imx8mm_evk_defconfig

    Frank Li
     
  • if SDP_WRITE and SDP_JUMP addr is zero, use CONFIG_SDP_LOADADDR
    as default address

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

    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
     
  • with tzasc enabled, the GPU is generating AXI bus errors.
    currently reverting the patch while debuging

    This reverts commit ccec5df5aaf583c6d261d5c64a1d668d0e001ed8.

    Signed-off-by: Silvano di Ninno

    Silvano di Ninno
     
  • 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

2 commits

  • The bootaux from community uses ulong to read private data and write to M4 TCM,
    this cause problem on ARM64 platform where the ulong is 8bytes.
    Fix it by using u32 to replace ulong.

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

    Ye Li
     
  • Use NXP logo.
    The vendor and board dir not changed, only replace the contents
    of freescale.bmp.

    Signed-off-by: Peng Fan
    (cherry picked from commit 0b381fdf1a45cb06a057724e708ce0bbeee67f4d)
    (cherry picked from commit 836461a95ca8df0f41dacf1d390a966624190524)

    Peng Fan
     

09 Jul, 2018

1 commit

  • The u-boot changed to check CONFIG_IS_ENABLED for SYS_CONSOLE_IS_IN_ENV,
    so we have to set the configuration in defconfig not in header file,
    otherwise the checking will fail and lead to use vga for stdout and stderr
    when video is enabled.

    Fix the issue by moving CONFIG_VIDEO and CONFIG_SYS_CONSOLE_IS_IN_ENV to
    defconfig and remove duplicated configurations from header file.

    Signed-off-by: Ye Li

    Ye Li
     

06 Jul, 2018

4 commits

  • The env location label ENVL_ESATA is missed in location tables, so
    when we configure the ENV in SATA, u-boot fails to get correct env
    location and cause boot hang in board_f.

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

    Ye Li
     
  • 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
     
  • Change to use clock API "clock_set_target_val" to set DRAM APB clock
    root for DDR4 init.

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

    Ye Li
     
  • Some debug codes in DDR init are used, which set NOC and NOC APB clocks to 25M
    OSC and causes slow booting and poor performance in SPL and u-boot. Change to
    original codes which only set DRAM APB clock to 200Mhz and use clock API to
    implement it.

    Some trailing spaces are also trimmed in this patch.

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

    Ye Li
     

04 Jul, 2018

2 commits


02 Jul, 2018

4 commits