1. 12 Aug, 2021 1 commit
  2. 10 Jul, 2021 1 commit
  3. 06 Jul, 2021 1 commit
  4. 25 Jun, 2021 1 commit
  5. 29 Jan, 2021 1 commit
    • SkyLake.Huang's avatar
      spi: mtk_snor: add support for MTK SPI NOR controller · 7a49d617
      SkyLake.Huang authored and Tom Rini's avatar Tom Rini committed
      
      
      This patch adds support for MTK SPI NOR controller, which you
      can see on mt7622 & mt7629.
      
      1. This controller is designed only for SPI NOR. We can't adjust
      its bus clock dynamically. Set clock in dts instead.
      2. This controller only supports 1-1-1 write mode.
      3. Remove mtk_snor_match_read() since upper SPI-MEM layer already
      handles command.
      4. sf read/write/update commands are tested with this driver.
      Signed-off-by: default avatarSkyLake.Huang <skylake.huang@mediatek.com>
      7a49d617
  6. 24 Jan, 2021 1 commit
  7. 18 Dec, 2020 1 commit
  8. 22 Oct, 2020 1 commit
  9. 03 Aug, 2020 1 commit
  10. 29 Jun, 2020 2 commits
    • Tom Rini's avatar
      Convert CONFIG_CADENCE_QSPI to Kconfig · 582b4f7f
      Tom Rini authored
      
      
      This converts the following to Kconfig:
         CONFIG_CADENCE_QSPI
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      582b4f7f
    • Lukasz Majewski's avatar
      spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI* · 56c40460
      Lukasz Majewski authored and Tom Rini's avatar Tom Rini committed
      
      
      This change allows more fine tuning of driver model based SPI support in
      SPL and TPL. It is now possible to explicitly enable/disable the DM_SPI
      support in SPL and TPL via Kconfig option.
      
      Before this change it was necessary to use:
          /* SPI Flash Configs */
          #if defined(CONFIG_SPL_BUILD)
          #undef CONFIG_DM_SPI
          #undef CONFIG_DM_SPI_FLASH
          #undef CONFIG_SPI_FLASH_MTD
          #endif
      
      in the ./include/configs/<board>.h, which is error prone and shall be
      avoided when we strive to switch to Kconfig.
      
      The goal of this patch:
      
      Provide distinction for DM_SPI support in both U-Boot proper and SPL (TPL).
      Valid use case is when U-Boot proper wants to use DM_SPI, but SPL must
      still support non DM driver.
      
      Another use case is the conversion of non DM/DTS SPI driver to support
      DM/DTS. When such driver needs to work in both SPL and U-Boot proper, the
      distinction is needed in Kconfig (also if SPL version of the driver
      supports OF_PLATDATA).
      
      In the end of the day one would have to support following use cases (in
      single driver file - e.g. mxs_spi.c):
      
      - U-Boot proper driver supporting DT/DTS
      - U-Boot proper driver without DT/DTS support (deprecated)
      - SPL driver without DT/DTS support
      - SPL (and TPL) driver with DT/DTS (when the SoC has enough resources to
        run full blown DT/DTS)
      - SPL driver with DT/DTS and SPL_OF_PLATDATA (when one have constrained
        environment with no fitImage and OF_LIBFDT support).
      
      Some boards do require SPI support (with DM) in SPL (TPL) and some only
      have DM_SPI{_FLASH} defined to allow compiling SPL.
      
      This patch converts #ifdef CONFIG_DM_SPI* to #if CONFIG_IS_ENABLED(DM_SPI)
      and provides corresponding defines in Kconfig.
      Signed-off-by: Lukasz Majewski's avatarLukasz Majewski <lukma@denx.de>
      Tested-by: Adam Ford <aford173@gmail.com> #da850-evm
      Signed-off-by: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
      [trini: Fixup a few platforms]
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      56c40460
  11. 11 Jun, 2020 1 commit
  12. 01 Jun, 2020 1 commit
  13. 10 May, 2020 1 commit
  14. 27 Jan, 2020 1 commit
    • Michael Walle's avatar
      spi: nxp_fspi: new driver for the FlexSPI controller · 383fded7
      Michael Walle authored and Jagan Teki's avatar Jagan Teki committed
      
      
      This is a port of the kernel's spi-nxp-fspi driver. It uses the new
      spi-mem interface and does not expose the more generic spi-xfer
      interface. The source was taken from the v5.3-rc3 tag.
      
      The port was straightforward:
       - remove the interrupt handling and the completion by busy polling the
         controller
       - remove locks
       - move the setup of the memory windows into claim_bus()
       - move the setup of the speed into set_speed()
       - port the device tree bindings from the original fspi_probe() to
         ofdata_to_platdata()
      
      There were only some style change fixes, no change in any logic. For
      example, there are busy loops where the return code is not handled
      correctly, eg. only prints a warning with WARN_ON(). This port
      intentionally left most functions unchanged to ease future bugfixes.
      
      This was tested on a custom LS1028A board. Because the LS1028A doesn't
      have proper clock framework support, changing the clock speed was not
      tested. This also means that it is not possible to change the SPI
      speed on LS1028A for now (neither is it possible in the linux driver).
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Reviewed-by: Jagan Teki's avatarJagan Teki <jagan@amarulasolutions.com>
      Tested-by: default avatarKuldeep Singh <kuldeep.singh@nxp.com>
      383fded7
  15. 25 Jul, 2019 2 commits
  16. 18 Jul, 2019 1 commit
  17. 10 Jul, 2019 1 commit
  18. 09 Jul, 2019 1 commit
  19. 06 Jun, 2019 1 commit
  20. 17 Apr, 2019 1 commit
  21. 04 Mar, 2019 1 commit
  22. 07 Feb, 2019 1 commit
  23. 16 Jan, 2019 1 commit
  24. 24 Nov, 2018 2 commits
  25. 04 Oct, 2018 1 commit
    • Stefan Roese's avatar
      spi: Add SPI driver for MT76xx SoCs · 5eee9dee
      Stefan Roese authored and Jagan Teki's avatar Jagan Teki committed
      
      
      This patch adds the SPI driver for the MediaTek MT7688 SoC (and
      derivates). Its been tested on the LinkIt Smart 7688 and the Gardena
      Smart Gateway with and SPI NOR on CS0 and on the Gardena Smart
      Gateway additionally with an SPI NAND on CS1.
      
      Note that the SPI controller only supports a max transfer size of 32
      bytes. This driver implementes a workaround to enable bigger xfer
      sizes to speed up the transfer especially for the SPI NAND support.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Jagan Teki <jagan@openedev.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Piotr Dymacz <pepe2k@gmail.com>
      Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
      Reviewed-by: Daniel Schwierzeck's avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      5eee9dee
  26. 26 Sep, 2018 1 commit
  27. 20 Sep, 2018 1 commit
  28. 03 Aug, 2018 1 commit
  29. 16 Jul, 2018 1 commit
  30. 10 Jul, 2018 1 commit
    • Thomas Fitzsimmons's avatar
      board: arm: Add support for Broadcom BCM7445 · 894c3ad2
      Thomas Fitzsimmons authored and Tom Rini's avatar Tom Rini committed
      
      
      Add support for loading U-Boot on the Broadcom 7445 SoC.  This port
      assumes Broadcom's BOLT bootloader is acting as the second stage
      bootloader, and U-Boot is acting as the third stage bootloader, loaded
      as an ELF program by BOLT.
      Signed-off-by: default avatarThomas Fitzsimmons <fitzsim@fitzsim.org>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      894c3ad2
  31. 07 May, 2018 1 commit
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      83d290c5
  32. 11 Apr, 2018 1 commit
  33. 24 Jan, 2018 2 commits
  34. 30 Nov, 2017 1 commit
  35. 16 Oct, 2017 1 commit
  36. 21 Sep, 2017 1 commit
    • Rick Chen's avatar
      nds32: spi: Support spi dm driver. · 7155cd2e
      Rick Chen authored
      
      
      Support spi driver and can detect MX25U1635E flash on AE3XX board.
      
      Verification:
      
      sf probe 0:0 50000000 0
      spi_flash_std_probe(sf_Probr.c)
      	spi_flash_probe_slave(sf_Probr.c)
      	SF: Detected mx25u1635e with page size 256 Bytes, erase size 4 KiB, total 2 MiB
      	NDS32 # sf test 0x100000 0x1000
      	SPI flash test:
      	0 erase: 34 ticks, 117 KiB/s 0.936 Mbps
      	1 check: 15 ticks, 266 KiB/s 2.128 Mbps
      	2 write: 21 ticks, 190 KiB/s 1.520 Mbps
      	3 read: 11 ticks, 363 KiB/s 2.904 Mbps
      	Test passed
      	0 erase: 34 ticks, 117 KiB/s 0.936 Mbps
      	1 check: 15 ticks, 266 KiB/s 2.128 Mbps
      	2 write: 21 ticks, 190 KiB/s 1.520 Mbps
      	3 read: 11 ticks, 363 KiB/s 2.904 Mbps
      Signed-off-by: Rick Chen's avatarrick <rick@andestech.com>
      7155cd2e