06 May, 2020

8 commits

  • 1. Fix wrong USDHC clock
    2. Increase malloc f size to 0x2000
    3. Change to use DM GPIO interfaces to avoid wrong GPIO device selected
    4. Enlarge SPL max size to 148KB
    5. Add do_reset command

    Signed-off-by: Ye Li

    Ye Li
     
  • Add QSPI NOR relavant configurations and QSPI clock init to board
    codes

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

    Ye Li
     
  • i.MX8MQ EVK has two USB ports, the port 0 is typec, the port 1 is host.
    This patch enables both device and host mode (xhci) for typec port by setting tcpc
    to relevant UFP/DFP mode. For port 1, it is only supports the host mode (xhci).

    PD charge is enabled at default on typec port for the dead battery. In this case,
    the typec port only works in device mode.

    Signed-off-by: Ye Li
    (cherry picked from commit 27345e2b5e85c11b361dffda37172ad1f141d7ba)
    (cherry picked from commit a1fca2fec215aca9cac700bbd40eff6f0bed94fc)

    Ye Li
     
  • Only the GPR0 bit[13] is used as GPR_ENET1_TX_CLK_SEL, bit[17] is reserved
    on imx8mq. So we don't need to clear bit[17].

    Add the definition of bit[13] in register file.
    Also fix the size of gpr array, should be 48 not 47.

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

    Ye Li
     
  • Add ENET no-DM support, CDNS USB3 host/gadget, M4 bootaux and memtest etc
    Update some SPL configs:
    1. Remove FIT support and enable TINY printf for saving SPL size.
    2. Fix wrong SPL regulator driver enabled, show use fixed regulator not
    gpio.
    3. Add flexspi defconfig which uses SPI relevant SPL configs and disable
    MMC, GPIO and regulator SPL drivers.
    4. Enable the panic. Since we use PSCI to reset, but ATF is not boot when
    SPL is running.
    5. Use full malloc not simple malloc which has dedicated malloc pool
    to support large pool size. The simple malloc size is also used by
    early malloc which occupies the stack space. This causes we can't
    have a large malloc pool

    Signed-off-by: Ye Li

    Ye Li
     
  • Add board codes and defconfig file for iMX8QM MEK board. Support
    peripherals: UART, USB3 host/gadget, Flexspi, SD/eMMC, ENET, i2c.

    Signed-off-by: Ye Li

    Ye Li
     
  • Make sure that all devices that are powered up by SPL are powered down
    before entering into the u-boot. Otherwise the subsystem/device will never
    be powered down by SCFW, due to SPL and u-boot are in different partitions.

    Benefiting from power domain driver, this patch implements the function
    "power_off_pd_devices" to power off all active devices.

    Signed-off-by: Ye Li

    Ye Li
     
  • Ported the tcpc driver for USB typec port controller from imx_v2019.04
    The functionalities in this driver include:
    1. USB power delivery support at dead battery
    2. Support configure to UFP or DFP mode
    3. Support callback to setup external PD switch. When PD process is enabled,
    we call this function only when SINK_VBUS is enabled to avoid system power
    shut down.

    Signed-off-by: Li Jun
    Signed-off-by: Ye Li

    Ye Li
     

30 Mar, 2020

8 commits


10 Mar, 2020

4 commits

  • This fixes the following warning:

    ===================== WARNING ======================
    This board does not use CONFIG_DM_ETH (Driver Model
    for Ethernet drivers). Please update the board to use
    CONFIG_DM_ETH before the v2020.07 release. Failure to
    update by the deadline may result in board removal.
    See doc/driver-model/migration.rst for more info.
    ====================================================

    Signed-off-by: Pedro Jardim
    Reviewed-by: Fabio Estevam

    Pedro Jardim
     
  • This fixes the following warning:

    ===================== WARNING ======================
    This board does not use CONFIG_DM_ETH (Driver Model
    for Ethernet drivers). Please update the board to use
    CONFIG_DM_ETH before the v2020.07 release. Failure to
    update by the deadline may result in board removal.
    See doc/driver-model/migration.rst for more info.
    ====================================================

    Signed-off-by: Pedro Jardim
    Reviewed-by: Fabio Estevam

    Pedro Jardim
     
  • Instead of resetting the ethernet phy through functions in imx8mq_evk.c, let the
    driver reset the phy via dts description adding a reset duration of 10 ms
    following atheros 8031's datasheet recommendation.

    Signed-off-by: Alifer Moraes

    Alifer Moraes
     
  • Convert imx6sabresd ethernet to driver model to fix the following warning:

    ===================== WARNING ======================
    This board does not use CONFIG_DM_ETH (Driver Model
    for Ethernet drivers). Please update the board to use
    CONFIG_DM_ETH before the v2020.07 release. Failure to
    update by the deadline may result in board removal.
    See doc/driver-model/migration.rst for more info.
    ====================================================

    Signed-off-by: Alifer Moraes
    Reviewed-by: Fabio Estevam

    Alifer Moraes
     

09 Mar, 2020

2 commits


10 Feb, 2020

1 commit


09 Feb, 2020

3 commits

  • Convert imx6sabresd PCI to driver model to fix the following warning:

    ===================== WARNING ======================
    This board does not use CONFIG_DM_PCI Please update
    the board to use CONFIG_DM_PCI before the v2019.07 release.
    Failure to update by the deadline may result in board removal.
    See doc/driver-model/MIGRATION.txt for more info.
    ====================================================

    After the conversion the following commands were used for testing:

    => pci enum
    PCI: Failed autoconfig bar 10
    PCI: Failed autoconfig bar 10
    => pci 1
    Scanning PCI devices on bus 1
    BusDevFun VendorId DeviceId Device Class Sub-Class
    Reviewed-by: Fabio Estevam

    Alifer Moraes
     
  • Currently there are two targets for the i.MX6SX SabreSD board:
    mx6sxsabresd_defconfig and mx6sxsabresd_spl_defconfig.

    This brings additional maintainance effort without a clear
    advantage.

    Keep only the mx6sxsabresd_defconfig one and remove
    mx6sxsabresd_spl_defconfig to keep it simpler.

    Also remove the SPL related code from the board file.

    Signed-off-by: Fabio Estevam
    Acked-by: Peng Fan

    Fabio Estevam
     
  • Minor spelling fix in README file.

    Signed-off-by: Marcel Ziswiler
    Reviewed-by: Oleksandr Suvorov

    Marcel Ziswiler
     

04 Feb, 2020

4 commits


24 Jan, 2020

8 commits


21 Jan, 2020

1 commit


20 Jan, 2020

1 commit

  • detail_board_ddr_info() is not used anywhere, so simply remove it.

    This function is only used by Layerscape, not by i.MX.

    This was detected by the following sparse warning:

    board/freescale/imx8qxp_mek/imx8qxp_mek.c:115:6: warning: no previous
    prototype for ‘detail_board_ddr_info’ [-Wmissing-prototypes]

    Signed-off-by: Alifer Moraes

    Alifer Moraes