Skip to content
Snippets Groups Projects
  1. Feb 10, 2025
  2. Oct 11, 2024
  3. Oct 03, 2024
  4. May 20, 2024
  5. May 19, 2024
  6. May 07, 2024
  7. Apr 26, 2024
    • Jonas Karlman's avatar
      mmc: rockchip_sdhci: Fix 4 blocks PIO mode read limit for RK35xx · e82d4edf
      Jonas Karlman authored
      
      The commit 2cc6cde6 ("mmc: rockchip_sdhci: Limit number of blocks
      read in a single command") introduced a limit of number of blocks to
      read to fix a Data End Bit Error on RK3568 and RK3588. This had a side
      affect of significant slowing down reading FIT from eMMC.
      
      After the commit 6de9d7b2 ("rockchip: rk35xx: Enable eMMC HS200 mode
      by default") the limit of number of blocks to read workaround is no
      longer necessary and at HS200+ a Data End Bit Error is no longer
      happening using PIO mode.
      
      Change this limitation to allow reading more than 4 blocks with a single
      CMD18 command in PIO mode at HS200+ speed, keep using the 4 blocks
      limitation when loadig FIT from eMMC at lower speed than HS200.
      
      Fixes: 2cc6cde6 ("mmc: rockchip_sdhci: Limit number of blocks read in a single command")
      Signed-off-by: default avatarJonas Karlman <jonas@kwiboo.se>
      Reviewed-by: default avatarDragan Simic <dsimic@manjaro.org>
      Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
      e82d4edf
  8. Feb 05, 2024
  9. May 18, 2023
    • Jonas Karlman's avatar
      mmc: rockchip_sdhci: Disable DMA mode using a device tree property · 3b804b37
      Jonas Karlman authored
      
      Loading part of TF-A into SRAM from eMMC using DMA fails on RK3399
      similar to other Rockchip SoCs. Checksum validation fails with:
      
        ## Checking hash(es) for Image atf-2 ... sha256 error!
        Bad hash value for 'hash' hash node in 'atf-2' image node
        spl_load_simple_fit: can't load image loadables index 1 (ret = -1)
        mmc_load_image_raw_sector: mmc block read error
        SPL: failed to boot from all boot devices
        ### ERROR ### Please RESET the board ###
      
      Add a device tree property, u-boot,spl-fifo-mode, to control when the
      rockchip_sdhci driver should disable the use of DMA and fallback on PIO
      mode. Same device tree property is used by the rockchip_dw_mmc driver.
      
      In commit 2cc6cde6 ("mmc: rockchip_sdhci: Limit number of blocks
      read in a single command") the DMA mode was disabled using a CONFIG
      option on RK3588. Revert that and instead disable DMA using the device
      tree property for all RK3588 boards, also apply similar workaround for
      all RK3399 boards.
      
      Fixes: 2cc6cde6 ("mmc: rockchip_sdhci: Limit number of blocks read in a single command")
      Signed-off-by: default avatarJonas Karlman <jonas@kwiboo.se>
      Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
      Tested-by: Quentin Schulz <foss+uboot@0leil.net> # RK3399 Puma, RK3588 Tiger
      3b804b37
    • Jonas Karlman's avatar
      mmc: rockchip_sdhci: Skip blocks read workaround on RK3399 · 41fc80b8
      Jonas Karlman authored
      
      The workaround to limit number of blocks to read in a single command
      should only be applied to RK3568 and RK3588. Change to be more strict
      when to apply the workaround.
      
      Fixes: 2cc6cde6 ("mmc: rockchip_sdhci: Limit number of blocks read in a single command")
      Suggested-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarJonas Karlman <jonas@kwiboo.se>
      Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
      Tested-by: Quentin Schulz <foss+uboot@0leil.net> # RK3399 Puma, RK3588 Tiger
      41fc80b8
  10. Apr 21, 2023
  11. Mar 19, 2023
  12. Apr 18, 2022
  13. Apr 12, 2022
  14. Mar 16, 2022
  15. Mar 14, 2022
    • Alper Nebi Yasak's avatar
      rockchip: sdhci: Fix RK3399 eMMC PHY power cycling · ee5a284b
      Alper Nebi Yasak authored
      
      The Rockchip RK3399 eMMC PHY has to be power-cycled while changing its
      clock speed to some higher speeds. This is dependent on the desired
      SDHCI clock speed, and it looks like the PHY should be powered off while
      setting the SDHCI clock in these cases.
      
      Commit ac804143 ("mmc: rockchip_sdhci: add phy and clock config for
      rk3399") attempts to do this in the set_ios_post() hook by setting the
      SDHCI clock once more while the PHY is turned off/on as necessary, as
      the SDHCI framework does not provide a way to override how it sets its
      clock. However, the commit breaks reinitializing the eMMC on a few
      boards including chromebook_kevin and reportedly ROCKPro64.
      
      This patch reworks the power cycling to utilize the SDHCI framework
      slightly better (using the set_control_reg() hook to power off the PHY
      and set_ios_post() hook to power it back on) which happens to fix the
      issue, at least on a chromebook_kevin.
      
      Signed-off-by: default avatarAlper Nebi Yasak <alpernebiyasak@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      ee5a284b
  16. Oct 15, 2021
  17. Aug 11, 2021
  18. Dec 13, 2020
  19. Jul 10, 2020
    • Walter Lozano's avatar
      dtoc: extend dtoc to use struct driver_info when linking nodes · 51f1263d
      Walter Lozano authored
      
      In the current implementation, when dtoc parses a dtb to generate a struct
      platdata it converts the information related to linked nodes as pointers
      to struct platdata of destination nodes. By doing this, it makes
      difficult to get pointer to udevices created based on these
      information.
      
      This patch extends dtoc to use struct driver_info when populating
      information about linked nodes, which makes it easier to later get
      the devices created. In this context, reimplement functions like
      clk_get_by_index_platdata() which made use of the previous approach.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      51f1263d
  20. Feb 06, 2020
  21. Jul 20, 2019
  22. May 07, 2018
    • 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: default avatarTom Rini <trini@konsulko.com>
      83d290c5
Loading