31 May, 2018

20 commits


23 May, 2018

20 commits

  • The GIC clock rate has some limitation, it should be
    set to higher than 100MHz when NOC frequency is set to
    the highest frequency. So switch the GIC clock source
    to sys_pll2_100mhz.

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

    Bai Ping
     
  • like for i.MX 8mq ATF passes as argument to u-boot
    the start and the length of the BL32 firmware.
    u-boot uses this information to adjust the size of the DDR for linux.

    Signed-off-by: Silvano di Ninno
    Acked-by: Peng Fan
    (cherry picked from commit e9ec5ea8dbe3d12b40ba22fe36400cfe98e1bd44)

    Silvano di Ninno
     
  • Enable the NXP TMU driver in defconfig, so the uboot can display the
    current CPU temperature.

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

    Ye Li
     
  • Add the TMU node for iMX8MM, which don't need calibration data from
    DTB.

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

    Ye Li
     
  • The analog sensors on iMX8MM are new, used for 14LPP process. So the
    Temperature Sensor Monitoring Unit (TMU) has some change accordingly.
    We use version 2 in TMU driver to represent the new TMU, so the one driver
    can service for both MQ and MM.

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

    Ye Li
     
  • Introduce spl_qspi.cfg for booting from qspi.
    Add new defconfig files.

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

    Peng Fan
     
  • When boot type could not be detected from rom sw info,
    read sbmr1 to detect, here we only use it to detect FLEXSPI
    boot, because ROM not update it in rom sw info.

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

    Peng Fan
     
  • Extend spl_nor to support FIT image loading.
    CONFIG_SYS_UBOOT_BASE is the Uboot location in NOR memmap address.

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

    Peng Fan
     
  • Since default values of some registers of pmic not match well our board
    design, add BD71837/BD71840 pmic support in spl, for example, RESET key
    (PWRON_B) pushing time, VDD_DRAM too low for 3Ghz DDR.

    Signed-off-by: Robin Gong
    Reviewed-by: Peng Fan

    Robin Gong
     
  • The imx8mm has changed the address of rvt_hab, use new address for imx8mm.
    Also enable fuse driver in SPL and update registers maps.

    The authentication procedure is same as imx8mq. In u-boot, the authentication
    uses SIP call to trap ATF to run HAB authenticate.
    Need to work with ATF commit:
    (commit 7a4d6f90e999ed413d520310cc199901b52b7a04)

    Users need to add CONFIG_SECURE_BOOT=y to imx8mm_evk_defconfig to enable
    the feature.

    Signed-off-by: Ye Li
    Acked-by: Peng Fan
    (cherry picked from commit 1118c9960c22c80a452181c6857fd1df86fe05ae)

    Ye Li
     
  • Add iMX8QM HDMI RX firmware loading.

    Signed-off-by: Sandor Yu
    (cherry picked from commit 969d93660e1b34765627ff9f6f8dcab08dcd1250)

    Sandor Yu
     
  • We clean USBOTG register USBCMD if it is used in serial download mode.
    When XRDC blocking is enabled, we can't write this register directly,
    must enable the OTG power, otherwise the kernel will get SError
    exception in mfgtool.

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

    Ye Li
     
  • MX7ULP needs to have the QSPI interrupt configured as a wakeup source
    in the SIM_WKPU_WAKEUP_ENABLE register, otherwise the QSPI interrupts
    do not wakeup the CPU from idle mode leading to poor performance in
    Linux.

    The SIM_WKPU_WAKEUP_ENABLE register only exists in B0 silicon, so
    make sure to only write to this register in the B0 version (or greater).

    Signed-off-by: Fabio Estevam
    (cherry picked from commit 1ab33446d6843f560fb6d14c781f6417225f8f3d)

    Fabio Estevam
     
  • i.MX8QXPB0 mfgtool ramfs may exceed the memory layout boundary with new
    layout, change the dtb load address from 0x83800000 to 0x83100000 to
    only reserve 1MB for dtb, which should be enough and leave 15MB for
    ramfs.

    Signed-off-by: Han Xu
    (cherry picked from commit 1a7cd5fb2f0f3b853d60fbd52e03cec0f061d329)

    Han Xu
     
  • Enable ARCH_MISC_INIT to get arm trusted firmware commit as
    i.MX8MQ.

    Use savedefconfig to update the config file

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

    Peng Fan
     
  • Enable the USB host and device support, add relvent board level codes
    and settings.

    For device mode, the gadget is fixed on USB device 0. Can't support
    gadget on USB device 1.

    Signed-off-by: Ye Li
    Acked-by: Peng Fan
    (cherry picked from commit 62dab68436bb0a7cc53b506dad9168b9f10d0b3d)

    Ye Li
     
  • When unregister gadget driver in ci_udc, the usb device is not
    removed or stop. This causes next "usb start" fails to work.

    Add a new interface "usb_remove_ehci_gadget" in usb-uclass to
    remove the usb device for DM driver. Using "usb_lowlevel_stop" for
    non-DM driver.

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

    Ye Li
     
  • Enable the OTG power on, add clock fuction and USB base address.

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

    Ye Li
     
  • Since the i.MX8MM reuses the otg controllers on i.MX7D. We can use
    CONFIG_USB_EHCI_MX7 for them.

    Due the TCPC and load switch are used on Typec circuit. Add the
    board_usb_init and board_usb_cleanup to ehci-mx6 DM driver. So
    we can implement the TCPC settings in these board functions.

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

    Ye Li
     
  • Add usb alias for otg1 and otg2. Enable two nodes in
    EVK DTS.

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

    Ye Li