Skip to content
Snippets Groups Projects
  1. Mar 11, 2021
  2. Feb 26, 2021
  3. Feb 23, 2021
    • Brandon Maier's avatar
      spi: zynqmp_gqspi: fix set_speed bug on multiple runs · d9aa19ef
      Brandon Maier authored
      
      If zynqmp_qspi_set_speed() is called multiple times with the same speed,
      then on the second call it will skip recalculating the baud_rate_val as
      it assumes the speed is already configured correctly. But it will still
      write the baud_rate_val to the configuration register and call
      zynqmp_gqspi_set_tapdelay(). Because it skipped recalculating the
      baud_rate_val, it will use the initial value of 0 . This causes the
      driver to run at maximum speed which for many spi flashes is too fast and
      causes data corruption.
      
      Instead only write out a new baud_rate_val if we have calculated the
      correct baud_rate_val.
      
      This opens up another issue with the "if (speed == 0)", we don't save
      off the new plat->speed_hz value when setting the baud rate on the
      speed=0 path. Instead mimic what the Linux zynqmp gqspi driver does, and
      have speed==0 just use the same calculation as a normal speed. That will
      cause the baud_rate_val to use the slowest speed possible, which is the
      safest option.
      
      Signed-off-by: default avatarBrandon Maier <brandon.maier@rockwellcollins.com>
      CC: jagan@amarulasolutions.com
      CC: michal.simek@xilinx.com
      CC: Ashok Reddy Soma <ashokred@xilinx.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      d9aa19ef
    • Michal Simek's avatar
      clk: zynq: Add dummy clock enable function · 9b7aac75
      Michal Simek authored
      
      A lot of Xilinx drivers are checking -ENOSYS which means that clock driver
      doesn't have enable function. Remove this checking from drivers and create
      dummy enable function as was done for clk_fixed_rate driver by
      commit 6bf6d81c ("clk: fixed_rate: add dummy enable() function").
      
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      9b7aac75
  4. Feb 08, 2021
  5. Feb 03, 2021
  6. Feb 02, 2021
    • Simon Glass's avatar
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      401d1c4f
  7. Jan 29, 2021
    • 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
  8. Jan 24, 2021
  9. Jan 23, 2021
  10. Jan 15, 2021
    • Dario Binacchi's avatar
      dm: fix build errors generated by last merges · b0db69b4
      Dario Binacchi authored and Tom Rini's avatar Tom Rini committed
      
      Something was wrong in the merge process into the mainline.
      Some added patches access driver structure fields and functions that
      have been modified by previous patches.
      The patch renames:
       - dev_get_platdata to dev_get_plat
       - dev_get_uclass_platdata to dev_get_uclass_plat
       - ofdata_to_platdata to of_to_plat
       - plat_data_alloc_size to plat_auto
       - priv_auto_alloc_size to priv_auto
       - video_uc_platdata to video_uc_plat
      
      Signed-off-by: default avatarDario Binacchi <dariobin@libero.it>
      b0db69b4
  11. Jan 13, 2021
  12. Jan 12, 2021
  13. Jan 05, 2021
  14. Jan 04, 2021
  15. Dec 23, 2020
  16. Dec 19, 2020
  17. Dec 18, 2020
Loading