1. 17 Jan, 2018 1 commit
  2. 17 Jan, 2017 1 commit
    • Robert Sprowson's avatar
      Fix for NULL pointer dereference · 61e424b0
      Robert Sprowson authored
      When COMMAND_DATA doesn't return an error, SDIODriver was still trying to check the error number in the error block, causing an abort.
      Fixes problem spotted by Chris Hall on Pi Compute with its unusual eMMC chip.
      
      Version 0.13. Tagged as 'SDIODriver-0_13'
      61e424b0
  3. 20 May, 2015 1 commit
    • Robert Sprowson's avatar
      Correction to register offset · b9a67dab
      Robert Sprowson authored
      Looks like a factor of 2 the wrong way 14<-28->56, though SDIODriver doesn't actually use those high up registers fortunately.
      Not tested, given that fact, but matches the comments now.
      
      Version 0.12. Tagged as 'SDIODriver-0_12'
      b9a67dab
  4. 02 Feb, 2015 1 commit
    • Ben Avison's avatar
      Add Raspberry Pi Compute module support · 9bb231f4
      Ben Avison authored
      Detail:
        This is the first board supported by RISC OS that has an eMMC chip. This
        is a non-removable flash memory device which obeys a recent revision of
        the MMC bus protocol, which has many similarities with the SD bus.
        * Flags added to low-level and high-level APIs to identify the device as
          a hard drive under SDFS (affects the media search algorithms).
        * For a sector-addressed MMC device (over 2 GB), CMD1 needs HCS set in
          the command or it won't respond.
        * The MMC device needed to be selected when reading the EXT_CSD (which is
          only present in sector-addressed MMC cards).
        * Added the generic SDHCI fallback versions of some HAL device routines.
      Admin:
        Tested on a Compute module (of course).
      
      Version 0.11. Tagged as 'SDIODriver-0_11'
      9bb231f4
  5. 05 Nov, 2014 1 commit
    • Ben Avison's avatar
      Tweak to SDHCI device API extension from version 0.09 · 56308f72
      Ben Avison authored
      Detail:
        Before this version gets too widely used in the wild, I'm taking the
        opportunity to correct the new call so that it takes the slot parameter
        like all the other calls do.
      
      
      Version 0.10. Tagged as 'SDIODriver-0_10'
      56308f72
  6. 31 Oct, 2014 1 commit
    • Ben Avison's avatar
      Miscellaneous improvements · 208f5654
      Ben Avison authored
      Detail:
        * Important data loss bug rectified: the retry mechanism inadvertently
          failed to pass back over data that had been transmitted to the card but
          not written successfully, instead picking up afterwards and swallowing
          the error. Therefore, only repeatable errors such as card timeouts were
          being reported correctly, and user data could be lost with no indication
          until it failed to read back correctly.
        * Supports controllers with the following quirks:
          1) Error bit in interrupt status register not implemented
          2) Non-standard method of triggering SD bus command
        * Reports non-standard error number 12 reported by some controllers
        * Checks for a major version match on SDHCI HAL devices before using them
          (should have been doing this all along, but fortunately there are no
          plans for incompatible changes that would force a major version change
          in the forseeable future).
      
      Version 0.09. Tagged as 'SDIODriver-0_09'
      208f5654
  7. 14 Jul, 2014 1 commit
    • Ben Avison's avatar
      Support the Raspberry Pi model B+ · cce6a26f
      Ben Avison authored
      Detail:
        For removable slots without a card detect pin, disable the ticker routine
        to poll for the card-detect state, because the HAL is unable to report
        any meaningful result. Pass through the fact that it is one of these types
        of slots to SDFS, where card removal / change is detected by use of
        timeouts instead.
      Admin:
        Already in use in RC12a.
      
      Version 0.08. Tagged as 'SDIODriver-0_08'
      cce6a26f
  8. 01 Apr, 2013 1 commit
    • Jeffrey Lee's avatar
      Adjust startup logic to fix SDCMOS · c0c3104e
      Jeffrey Lee authored
      Detail:
        c/module, cmhg/SDIOHdr - Instead of initialising the device list inside a callback, we now initialise it when we receive our ModulePostInit service call.
        This fixes SDCMOS initialisation; both SDCMOS and SDIODriver were using callbacks to initialise themselves, but the recent fixes to callback triggering during ROM init meant that the SDIODriver callback was no longer guaranteed to occur before the SDCMOS callback. This was preventing SDCMOS from initialising properly as SDFS/SDIODriver wouldn't have been available yet.
      Admin:
        Tested on Raspberry Pi and Pandora with SDCMOS-friendly SD cards
      
      
      Version 0.07. Tagged as 'SDIODriver-0_07'
      c0c3104e
  9. 24 Jan, 2013 1 commit
  10. 06 Jul, 2012 1 commit
    • Ben Avison's avatar
      Change to order of SD controllers · 87356123
      Ben Avison authored
      Detail:
        Now uses OS_Hardware 5 if it is available, so that SD controllers are
        allocated in the order in which they were registered, irrespective of
        whether they were registered before or after SDIODriver initialised.
      Admin:
        Builds, but not tested
      
      Version 0.05. Tagged as 'SDIODriver-0_05'
      87356123
  11. 03 Jul, 2012 1 commit
    • Ben Avison's avatar
      Added support for SD on OMAP4 · 0237f79b
      Ben Avison authored
      Detail:
        The OMAP4 SD controller is more fussy about how it is reset than the OMAP3
        and BCM2835 controllers - more details in inline comments. Issue identified
        by Willi Theiss, but I have implemented the fix differently. Also added
        Willi's support for DebugLib debugging.
      Admin:
        Tested on Beagleboard, Raspberry Pi and Pandaboard, and with the usual
        set of 30+ cards.
      
      Version 0.04. Tagged as 'SDIODriver-0_04'
      0237f79b
  12. 01 Jul, 2012 1 commit
    • Ben Avison's avatar
      Changes to better support the Raspberry Pi · 918d3e25
      Ben Avison authored
      Detail:
        * On SD memory cards and SDIO cards, disengage the card's internal pull-up
          resistor on DAT3. This is designed to function as part of the card detect
          mechanism on some boards (not any of the ones we support) but this is
          probably desirable in order to ensure the impedance of all the DAT lines
          match.
        * Pace data buffer reads by polling the Present State register rather than
          using the Read Buffer Ready interrupt. This is because the controller on
          the BCM2835 occasionally fails to issue the interrupt (another clock
          domain crossing bug in the chip?) so we end up waiting for a timeout and
          then retrying, with the overall effect appearing as variable data transfer
          rates. When background transfers are implemented, we will need to rely on
          TickerV to do this polling. Fortunately, the OMAP3 controller seems to be
          unaffected by this change.
        * Don't use the High Speed Enable bit in the Host Control 1 register - it
          seems to cause more trouble than it's worth (more discussion in inline
          comments).
      Admin:
        Tested on my full collection of test cards on both beagleboard and RPi.
      
      Version 0.03. Tagged as 'SDIODriver-0_03'
      918d3e25
  13. 15 Jun, 2012 1 commit
    • Ben Avison's avatar
      Fixed bug shown up by Raspberry Pi running in high speed mode · 93e167ee
      Ben Avison authored
      Detail:
        The Arasan controller, unlike the OMAP3 one, pays attention to the HSE
        bit in the Control 1 register. This wasn't being reset before starting
        up the next card to be inserted, which caused some cards to fail to
        initialise.
      Admin:
        Tested on Raspberry Pi, should have no effect on OMAP3.
      
      Version 0.02. Tagged as 'SDIODriver-0_02'
      93e167ee
  14. 07 Jun, 2012 1 commit