20 Sep, 2018

1 commit

  • Since the mx6ulz don't have FEC, it needs to use USB2NET dongle
    to connect network. We decouple the CONFIG_FEC_MXC with CONFIG_CMD_NET.
    For 6ull, all defconfigs need to enable the CONFIG_FEC_MXC explicitly.

    Another change is adding ${usb_net_cmd} environment for usb start command
    in netboot scripts on 6ulz.

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

    Ye Li
     

18 Sep, 2018

2 commits


14 Sep, 2018

1 commit


12 Sep, 2018

1 commit


11 Sep, 2018

1 commit


07 Sep, 2018

1 commit


03 Sep, 2018

1 commit


30 Aug, 2018

2 commits

  • This commit is basically cherry-picked from:
    commit ced8dc6ce85f2227a29a52d55836b73223e71e73
    Author: Ye Li
    Date: Mon Aug 20 23:35:20 2018 -0700

    MLK-19263-2 imx8mq_evk: Adjust SPL malloc pool and stack address

    Currently the SRAM is allocated to malloc pool due to large malloc
    needed by USB SDP. The stack is moved to OCRAM. This causes a
    problem when enabling HAB. The HAB authentication needs large
    memory on stack, so after ATF image loaded, the stack overwrites
    the ATF image in OCRAM and causes authentication failed.

    This patch moves the malloc pool to DDR and set back stack to
    SRAM. So SDP still can run with enough memory on DDR. And the
    stack overwrite issue can be fixed by enough memory 24KB left on
    SRAM.

    This change also need to use a early malloc pool by defining the
    CONFIG_MALLOC_F_ADDR. And in SPL codes, we have to adjust DDR init
    before board_init_r.

    Signed-off-by: Ye Li

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

    Luo Ji
     
  • Sync configs with BSP team to enable uuu for imx8m AIY board,
    create new file imx8mq_phanbell_androidthings_uuu_defconfig
    for uuu image build.

    Test: uuu works on imx8m AIY board.

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

    Luo Ji
     

21 Aug, 2018

5 commits

  • Currently the SRAM is allocated to malloc pool due to large malloc needed
    by USB SDP. The stack is moved to OCRAM. This causes a problem when enabling
    HAB. The HAB authentication needs large memory on stack, so after ATF image loaded,
    the stack overwrites the ATF image in OCRAM and causes authentication failed.

    This patch moves the malloc pool to DDR and set back stack to SRAM. So SDP still
    can run with enough memory on DDR. And the stack overwrite issue can be fixed by
    enough memory 24KB left on SRAM.

    This change also need to use a early malloc pool by defining the CONFIG_MALLOC_F_ADDR.
    And in SPL codes, we have to adjust DDR init before board_init_r.

    Signed-off-by: Ye Li

    Ye Li
     
  • Now fsl_esdhc driver require the index of USDHCx_CLK_ROOT should be
    defined sequentially. otherwise driver may get the wrong usdhc root
    clock.

    e.g. for imx8mm, usdhc3, driver actually get the rate of I2C1_CLK_ROOT

    This patch add MXC_XXX_CLK, map to the real defined clock index.

    Signed-off-by: Haibo Chen
    (cherry picked from commit 5cddab6e02e99a748f66e32880906aa427dc8e60)

    Conflicts:
    arch/arm/cpu/armv8/imx8m/clock_imx8mm.c

    Haibo Chen
     
  • The hdmi rx firmware is appended to the end of u-boot binary,
    load it in u-boot, this will increase the size of u-boot binary
    by 128k.

    Test: hdmi rx firmware loaded successfully on imx8qm_mek.

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

    Luo Ji
     
  • Change VDD_DRAM to 0.9V

    Change-Id: Ia2d0672b2f31f18add6626ac2e23e66b8c421a75
    Signed-off-by: Zhang Bo
    Reviewed-on: http://androidsource.ap.freescale.net/project/5139
    Reviewed-by: Wang Haoran

    Zhang Bo
     
  • Change the VDD_3V3 and VDD_1V8 to lower one to save power.

    Change-Id: I61f1f4ed8c6e036173d9adc5358db01bd9c835a2
    Signed-off-by: Zhang Bo
    Reviewed-on: http://androidsource.ap.freescale.net/project/5144
    Reviewed-by: Wang Haoran

    Zhang Bo
     

20 Aug, 2018

4 commits

  • Decrease the phanbell DDR(1G + 3G) frequency to 1600
    MTS, this may save some power.

    Test: Boot ok on both 1G and 3G DDR board, the dram_core_clk
    decrease from 800000000 to 400000000.

    Change-Id: I73b78865e7691001a868061826f0211cb9927cee
    Signed-off-by: Luo Ji
    Reviewed-on: http://androidsource.ap.freescale.net/project/5100
    Reviewed-by: Wang Haoran

    Luo Ji
     
  • Add 1G DDR support, distinguish different boards by the
    Board ID, They are:
    SAI5_MCLK: Board_id[6]
    SAI5_RXFS: Board_id[5]
    SAI5_RXC: Board_id[4]
    SAI5_RXD3: Board_id[3]
    SAI5_RXD2: Board_id[2]
    SAI5_RXD1: Board_id[1]
    SAI5_RXD0: Board_id[0]
    Current Board ID for imx8m boards are:
    AIY Micron 1G: 0x5c
    AIY Hynix 1G: 0x56
    AIY Mirconb 3G: 0x40
    Wibo 3G: 0x00
    imx8m_ref 3G: 0x00

    Test: Boot ok on all imx8m boards.

    Change-Id: I3d65931483f369c545632b660f04fc9da120547d
    Signed-off-by: Luo Ji
    Reviewed-on: http://androidsource.ap.freescale.net/project/5093
    Reviewed-by: guoyin.chen
    Reviewed-by: Wang Haoran

    Luo Ji
     
  • Fix build warnings in u-boot.

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

    Luo Ji
     
  • i2c_setup calls force_idle_bus which calls
    get_timer if SDA and SCL are not high. On the Pico
    baseboard there are level shifters that pull SDA
    and SCL high, but the test harness does not have
    pull-ups on these lines. Because
    board_early_init_f is called before timer_init the
    call to get_timer was causing a divide-by-zero
    error due to CNTFRQ not being initialized. Moving
    the i2c_setup calls to board_init fixes this
    issue. power_init_board (which uses I2C to
    configure the PMIC) is called after board_init, so
    this should be safe.

    Bug:
    Test: PMIC registers are read correctly on both
    boards (DEV_ID=0x30 REV_ID=0x11)
    Test: iMX7D SOM boots on Pico baseboard
    Test: iMX7D SOM boots on test harness
    Change-Id: Iecdd28f3177fe915a3b614565d8dfa6e20e6a842

    Braden Kell
     

17 Aug, 2018

1 commit


16 Aug, 2018

1 commit


14 Aug, 2018

1 commit

  • Get such build error below due to the changes in tcpc.h
    (MLK-19181-2: i.MX850: SPL enable usb support).
    Fix the issue by removing unused tcpc and usb header files from spl.c

    spl/board/freescale/imx8qxp_mek/spl.o: In function `tcpc_setup_ufp_mode':
    spl.c:(.text.tcpc_setup_ufp_mode+0x0): multiple definition of `tcpc_setup_ufp_mode'
    spl/board/freescale/imx8qxp_mek/imx8qxp_mek.o:imx8qxp_mek.c:(.text.tcpc_setup_ufp_mode+0x0): first defined here
    spl/board/freescale/imx8qxp_mek/spl.o: In function `tcpc_setup_dfp_mode':
    spl.c:(.text.tcpc_setup_dfp_mode+0x0): multiple definition of `tcpc_setup_dfp_mode'
    spl/board/freescale/imx8qxp_mek/imx8qxp_mek.o:/home/leyoen/Workspace/u-boot-upgrading/u-boot/board/freescale/imx8qxp_mek/imx8qxp_mek.c:547: first defined here
    scripts/Makefile.build:359: recipe for target 'spl/board/freescale/imx8qxp_mek/built-in.o' failed

    Signed-off-by: Ye Li

    Ye Li
     

13 Aug, 2018

1 commit

  • Pull down the DSI_EN gpio to disable mipi dsi panel before booting kernel.
    This avoids display full yellow screen before kernel mipi driver probes
    the device.

    For MIPI2HDMI card, this DSI_EN gpio is not used. So nothing impact to it.

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

    Ye Li
     

11 Aug, 2018

2 commits


10 Aug, 2018

3 commits


06 Aug, 2018

4 commits

  • dispmix & mipi phy power domain must be enabled before doing any
    config for lcfif and dsi.

    Signed-off-by: Bai Ping
    (cherry picked from commit 240475ecb29aff22fb362ea39f3bf8e7045281db)

    Bai Ping
     
  • 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
     
  • 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
     
  • Meet such warning during boot with EPDC splash screen enabled, because the
    flushed waveform buffer size is not aligned to cacheline size
    CACHE: Misaligned operation at range [ff027d00, ff270d99]

    Since we have enough 4MB buffer allocated, round up the flushed size to
    eliminate the warning.

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

    Ye Li
     

20 Jul, 2018

2 commits


16 Jul, 2018

1 commit


06 Jul, 2018

2 commits


02 Jul, 2018

1 commit


22 Jun, 2018

1 commit

  • Enable the SPL SDP for iMX8MM EVK. So that when booting from USB serial
    download mode, the SPL will enter SDP to download FIT image from USB host
    (uuu tool) and boot into FIT image.

    The SDP driver needs larger malloc pool size, so extend the SPL malloc pool
    to 12KB and reduce the SPL BSS MAX to 4KB because BSS actual size is about 1KB.

    Signed-off-by: Ye Li

    Ye Li
     

20 Jun, 2018

1 commit