1. 19 Apr, 2021 7 commits
  2. 18 Apr, 2021 28 commits
    • Tom Rini's avatar
      Merge tag 'efi-2021-07-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi · 3a9aaefc
      Tom Rini authored
      Pull request for efi-2021-07-rc1-2
      
      Documentation:
      	man-page for fatinfo
      
      Bug fixes:
      	memory leak in efi_capsule_scan_dir()
      	incorrect invocations of EFI_CALL macro creating ESRT table
      	buffer overflow in tcg2_create_digest()
      3a9aaefc
    • Tom Rini's avatar
      Merge https://source.denx.de/u-boot/custodians/u-boot-usb · c6ae5e98
      Tom Rini authored
      This is a patchset which makes away with the .bind() controller indexing
      workaround which was broken since before v2021.04, and then adds PHY
      support and MX8M support on top of that. Better add it into the release
      early to get as much testing as possible done, because this really does
      a lot of changes to the ehci-mx6 driver.
      c6ae5e98
    • Tom Rini's avatar
      Merge tag 'ti-v2021.07-rc1' of https://source.denx.de/u-boot/custodians/u-boot-ti · 2fbc8047
      Tom Rini authored
      - Support for pinmux status command on beaglebone
      - Updates for MMC speed modes for J721e-evm
      - Fix MMC booting on omap35_logic_somlv board
      2fbc8047
    • Tom Rini's avatar
      Merge branch '2021-04-16-env-updates' · 6e052b85
      Tom Rini authored
      - SPI Flash ENV improvements / cleanups
      - Redundant support for FAT
      - Assorted bugfixes
      6e052b85
    • Marek Vasut's avatar
      ARM: imx8m: verdin-imx8mm: Enable USB Host support · d08cdc22
      Marek Vasut authored
      Enable USB host support on MX8MM Verdin.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
      Cc: Max Krummenacher <max.krummenacher@toradex.com>
      Cc: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
      d08cdc22
    • Marek Vasut's avatar
      usb: ehci-mx6: Add iMX8M support · 5e7e2a8e
      Marek Vasut authored
      The iMX8M uses nop PHY, select PHY and NOP_PHY automatically.
      Otherwise, the DM capable driver is now perfectly compatible.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      5e7e2a8e
    • Marek Vasut's avatar
      usb: ehci-mx6: Fix aarch64 build warnings · f444f898
      Marek Vasut authored
      Fix cast from pointer to integer of different size by casting the
      pointer to uintptr_t instead of uint32_t, the former has correct
      size on both 32bit and 64bit architectures.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      f444f898
    • Marek Vasut's avatar
      usb: ehci-mx6: Add fsl,imx7d-usb compatible string · e87015ff
      Marek Vasut authored
      Add new compatible string, used by some more up-to-date DTs.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      e87015ff
    • Marek Vasut's avatar
      usb: ehci-mx6: Set default CONFIG_MXC_USB_PORTSC if not defined · 1aae8a35
      Marek Vasut authored
      There is now multiple copies of CONFIG_MXC_USB_PORTSC in configs set to
      PORT_PTS_UTMI | PORT_PTS_PTW, which is in fact the default register value
      for MX6, MX7 and MX7ULP. Define the default value of CONFIG_MXC_USB_PORTSC
      in the driver and use it in case CONFIG_MXC_USB_PORTSC is not defined in
      config, to reduce the duplication.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      1aae8a35
    • Marek Vasut's avatar
      usb: ehci-mx6: Add generic EHCI PHY support · 50d0146c
      Marek Vasut authored
      In case PHY support is enabled, use the generic EHCI PHY support
      to start and stop the PHY.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      50d0146c
    • Marek Vasut's avatar
      usb: ehci-mx6: Use portnr from DT in DM case · 6443a3bc
      Marek Vasut authored
      In case the platform uses DM, determine port number, which is
      used as offset in USBMISC registers, from PHY node DT aliases,
      just like Linux does.
      
      Fixes: 4de51cc2 ("usb: ehci-mx6: Drop assignment of sequence number")
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      6443a3bc
    • Marek Vasut's avatar
      usb: ehci-mx6: Pass MISC address to usb_oc_config() · 66864699
      Marek Vasut authored
      Instead of passing ad-hoc sequence number to usb_oc_config(), pass in
      the USB MISC address itself. The USB MISC address comes from DT in DM
      case, and from the old method using controller index in non-DM case.
      
      Fixes: 4de51cc2 ("usb: ehci-mx6: Drop assignment of sequence number")
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      66864699
    • Marek Vasut's avatar
      usb: ehci-mx6: Split usb_power_config() · 849763b9
      Marek Vasut authored
      Split usb_power_config() per SoC and pass in USB PHY, USBNC and ANATOP
      addresses instead of ad-hoc sequence numbers. This is only applicable
      on legacy systems which do not implement proper PHY support. Once PHY
      support is available, parts of this can be removed altogether and moved
      to the PHY driver, similar to Linux phy-mxs-usb.c .
      
      Fixes: 4de51cc2 ("usb: ehci-mx6: Drop assignment of sequence number")
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      849763b9
    • Marek Vasut's avatar
      usb: ehci-mx6: Pass PHY address to usb_*_phy*() · eb64f598
      Marek Vasut authored
      Instead of passing ad-hoc index to USB PHY handling functions and then
      try and figure out the PHY address, pass in the PHY address itself. For
      DM case, this address comes easily from DT. For non-DM case, the previous
      method is still present, however the non-DM case will soon be removed.
      
      Fixes: 4de51cc2 ("usb: ehci-mx6: Drop assignment of sequence number")
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      eb64f598
    • Marek Vasut's avatar
      usb: ehci-mx6: Split ehci_mx6_common_init() · ef464e4c
      Marek Vasut authored
      In order to pass component addresses around easily instead of passing
      ad-hoc sequence numbers, it is necessary to split ehci_mx6_common_init().
      Make it so and call the separate functions instead.
      
      Since board_ehci_hcd_init() makes no sense in DM case, do not call it
      in DM case.
      
      Fixes: 4de51cc2 ("usb: ehci-mx6: Drop assignment of sequence number")
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      ef464e4c
    • Marek Vasut's avatar
      usb: ehci-mx6: Parse USB PHY and MISC offsets from DT · 4dcfa3bc
      Marek Vasut authored
      In case DM and OF controler is enabled, but PHY support is disabled,
      parse USB PHY and MISC component addresses from DT manually. Those
      component addresses will be used in subsequent patches to access the
      ANATOP, PHY and MISC registers matching the controller and thus get
      rid of the ad-hoc controller sequence number mapping.
      
      Fixes: 4de51cc2 ("usb: ehci-mx6: Drop assignment of sequence number")
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      4dcfa3bc
    • Marek Vasut's avatar
      usb: ehci-mx6: Unify USBNC registers · 598fa7e1
      Marek Vasut authored
      Merge USBNC register layout structure into a single one, instead of
      having three separate structures and a lot of ifdeffery. No functional
      change.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      598fa7e1
    • Marek Vasut's avatar
      usb: ehci-mx6: Add DM clock support · 7f2c10ee
      Marek Vasut authored
      Add support for using DM clock framework to enable and disable all the
      necessary clock for the USB controller.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      7f2c10ee
    • Marek Vasut's avatar
      usb: ehci-mx6: Turn off Vbus on probe failure · 7e1f1e16
      Marek Vasut authored
      The driver turns on Vbus regulator in probe, but fails to turn it back
      off in case of probe failure. Add the missing code.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      7e1f1e16
    • Marek Vasut's avatar
      imx: power-domain: Add fsl,imx8mn-gpc compatible string · f174a0db
      Marek Vasut authored
      The driver is compatible with iMX8MN, add missing compatible string.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      f174a0db
    • Marek Vasut's avatar
      imx: power-domain: Add fsl,imx8mm-gpc compatible string · da16034d
      Marek Vasut authored
      The driver is compatible with iMX8MM, add missing compatible string.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      da16034d
    • Marek Vasut's avatar
      ARM: dts: imx8mn: Add power domain nodes · d78f7d81
      Marek Vasut authored
      Add power domain nodes to DT.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      d78f7d81
    • Marek Vasut's avatar
      ARM: dts: imx8mm: Add power domain nodes · f0e10e33
      Marek Vasut authored
      Add power domain nodes to DT.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      f0e10e33
    • Marek Vasut's avatar
      ARM: dts: imx8mn: Replace deprecated fsl,usbphy DT props with phys · 5781f465
      Marek Vasut authored
      The fsl,usbphy DT property is deprecated, replace it with phys DT
      property and specify #phy-cells, so that the generic PHY framework
      can parse the PHY bindings without any extra hacking.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      5781f465
    • Marek Vasut's avatar
      ARM: dts: imx8mm: Replace deprecated fsl,usbphy DT props with phys · aded940f
      Marek Vasut authored
      The fsl,usbphy DT property is deprecated, replace it with phys DT
      property and specify #phy-cells, so that the generic PHY framework
      can parse the PHY bindings without any extra hacking.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      aded940f
    • Marek Vasut's avatar
      ARM: dts: k2g-evm: Use standard compatible string for USB no-op PHY · c7eb5d2c
      Marek Vasut authored
      The standard compatible string is "usb-nop-xceiv", use it.
      Note that keystone-k2g.dtsi already uses the aforementioned
      compat string, so this patch can only remove the override.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
      Cc: Murali Karicheri <m-karicheri2@ti.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      c7eb5d2c
    • Marek Vasut's avatar
      arc: emsdp/iotdk: Use standard compatible string for USB no-op PHY · b31e16b3
      Marek Vasut authored
      The standard compatible string is "usb-nop-xceiv", use it.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
      Cc: Murali Karicheri <m-karicheri2@ti.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      b31e16b3
    • Marek Vasut's avatar
      phy: nop-phy: Add standard usb-nop-xceiv compat string · 1220aa9a
      Marek Vasut authored
      The USB no-op PHY uses "usb-nop-xceiv" compatible string. This driver is
      compatible with USB no-op PHY, so add the compatible string.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
      Cc: Murali Karicheri <m-karicheri2@ti.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      1220aa9a
  3. 17 Apr, 2021 5 commits