11 Sep, 2018

4 commits


10 Sep, 2018

5 commits


08 Sep, 2018

1 commit


07 Sep, 2018

3 commits


06 Sep, 2018

3 commits

  • We read the ROM version to determine the CPU revision before B1 chip.
    The rom version is 4 bytes word, it has major version at low byte,
    minor version at second byte.

    On B0.1 chip, the value is 0x1020 not 0x20, if reading the word and comparing
    with 0x20, the result is wrong.

    Fix the issue by only reading the lowest byte for major version.

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

    Ye Li
     
  • When running on ARM64 platforms like imx8 and imx8m, the initrd_high should set to
    0xffffffffffffffff not 0xffffffff. Otherwise the initramfs will be relocated to high
    memory by u-boot before booting up kernel.
    This may not cause issue, but to align with previous imx series and save boot time,
    we'd better disable relocation for initramfs.

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

    Ye Li
     
  • At default, u-boot reserves the memory from SP-4KB to DRAM end for lmb in arch_lmb_reserve.
    So lmb won't allocate any memory from it.
    But we found the 4K gap for SP is not enough now, because some FDT updating operations are added
    in our u-boot before jumping to kernel, which needs large stack. This causes the lmb allocated memory
    is overwritten by stack.

    Fix the issue by implementing the board_lmb_reserve to reserve from SP-16KB to memory end for lmb.

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

    Ye Li
     

04 Sep, 2018

5 commits

  • get_boot_device() for imx6 series can't judge the chips is boot from USB
    or not. So, when use uuu, "bootcmd" parameter will get the same value as
    boot from SD card, so if the SD card has image in it, uboot will not
    enter fastboot mode when use uuu. This patch use is_boot_from_usb(void)
    to judge whether boot from USB then change the "bootcmd" parameter
    accordingly.

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

    faqiang.zhu
     
  • On iMX8MQ Rev B1, reading from fuse box is not allowed. The
    OCOTP_READ_FUSE_DATA register is tied to magic number 0xff0055aa
    for chip rev. So u-boot has to disable the fuse sense function for it.

    Signed-off-by: Ye Li
    Tested-by: Anson Huang
    (cherry picked from commit da95f60611e8859eba3e7ccb715fdce4d6376774)

    Ye Li
     
  • The mscale B1 uses OCOTP_HW_OCOTP_READ_FUSE_DATA register for chip id.
    It returns a magic number 0xff0055aa.
    Update get_cpu_rev to support this way, also enable OCOTP clock to allow
    access OCOTP register.

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

    Ye Li
     
  • Add common CHIP_REV_2_1 for chip revision 2.1

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

    Ye Li
     
  • ipg_stop from GPC is not connected to WDOG directly, the sec_debug clock is
    used to sample the ipg_stop from GPC. So when this clock is off, ipg_stop input
    of WDOG can’t assert, WDOG will fail to stop in DSM mode.
    Enable this clock forever in SPL, so other SW don't need to touch it.

    Signed-off-by: Ye Li
    Tested-by: Bai Ping
    (cherry picked from commit 1da6c9b3a837d15c25086af449462d5e8b56c290)

    Ye Li
     

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
     

28 Aug, 2018

9 commits


27 Aug, 2018

3 commits


24 Aug, 2018

2 commits


23 Aug, 2018

2 commits