1. 15 7月, 2008 2 次提交
  2. 13 12月, 2007 1 次提交
  3. 18 10月, 2007 1 次提交
  4. 24 9月, 2007 22 次提交
  5. 23 9月, 2007 5 次提交
  6. 26 7月, 2007 1 次提交
  7. 01 5月, 2007 8 次提交
    • P
      mmc: remove old card states · bd766312
      Pierre Ossman 提交于
      Remove card states that no longer make any sense.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      bd766312
    • P
      MMC: Fix handling of low-voltage cards · 55556da0
      Philip Langdale 提交于
      Fix handling of low voltage MMC cards.
      
      The latest MMC and SD specs both agree that support for
      low-voltage operations is indicated by bit 7 in the OCR.
      The MMC spec states that the low voltage range is
      1.65-1.95V while the SD spec leaves the actual voltage
      range undefined - meaning that there is still no such
      thing as a low voltage SD card.
      
      However, an old Sandisk spec implied that bits 7.0
      represented voltages below 2.0V in 1V or 0.5V increments,
      and the code was accordingly written with that expectation.
      
      This confusion meant that host drivers attempting to support
      the typical low voltage (1.8V) would set the wrong bits in
      the host OCR mask (usually bits 5 and/or 6) resulting in the
      the low voltage mode never being used.
      
      This change corrects the low voltage range and adds sanity
      checks on the reserved bits (0-6) and for SD cards that
      claim to support low-voltage operations.
      Signed-off-by: NPhilip Langdale <philipl@overt.org>
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      55556da0
    • P
      MMC: Consolidate voltage definitions · 4be34c99
      Philip Langdale 提交于
      Consolidate the list of available voltages.
      
      Up until now, a separate set of defines has been
      used for host->vdd than that used for the OCR
      voltage mask values. Having two sets of defines
      allows them to get out of sync and the current
      sets are already inconsistent with one claiming
      to describe ranges and the other specific voltages.
      
      Only the SDHCI driver uses the host->vdd defines and
      it is easily fixed to use the OCR defines.
      Signed-off-by: NPhilip Langdale <philipl@overt.org>
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      4be34c99
    • P
      mmc: add bus handler · 7ea239d9
      Pierre Ossman 提交于
      Delegate protocol handling to "bus handlers". This allows the core to
      just handle the task of arbitrating the bus. Initialisation and
      pampering of cards is now done by the different bus handlers.
      
      This design also allows MMC and SD (and later SDIO) to be more cleanly
      separated, allowing easier maintenance.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      7ea239d9
    • P
      mmc: Separate out protocol ops · da7fbe58
      Pierre Ossman 提交于
      Move protocol operations and definitions into their own files
      in an effort to separate protocol handling and bus
      arbitration more clearly.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      da7fbe58
    • P
      mmc: Move core functions to subdir · aaac1b47
      Pierre Ossman 提交于
      Create a "core" subdirectory to house the central bus handling
      functions.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      aaac1b47
    • P
      mmc: deprecate mmc bus topology · b855885e
      Pierre Ossman 提交于
      The classic MMC bus was defined as multi card bus
      system, which is reflected in the design in the MMC
      layer.
      
      When SD showed up, the bus topology was abandoned
      and a star topology (one card per host) was mandated.
      MMC version 4 has followed this, officially deprecating
      the bus topology.
      
      As we do not have any known users of the bus
      topology we can remove support for it. This will
      simplify the code and rectify some incorrect
      assumptions in the newer additions.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      b855885e
    • P
      mmc: Flush pending detects on host removal · 3b91e550
      Pierre Ossman 提交于
      Make sure we kill of any pending detection runs when the host
      is removed instead of when it is freed. Also add some debugging
      to make sure the driver doesn't queue up more detection after it
      has removed the host.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      3b91e550