1. 28 Jan, 2015 3 commits
    • Ulf Hansson's avatar
      mmc: pwrseq: Initial support for the simple MMC power sequence provider · 8c96f89c
      Ulf Hansson authored
      To add the core part for the MMC power sequence, let's start by adding
      initial support for the simple MMC power sequence provider.
      
      In this initial step, the MMC power sequence node are fetched and the
      compatible string for the simple MMC power sequence provider are
      verified.
      
      At this point we don't parse the node for any properties, but instead
      that will be handled from following patches. Since there are no
      properties supported yet, let's just implement the ->alloc() and the
      ->free() callbacks.
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Tested-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Reviewed-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      8c96f89c
    • Ulf Hansson's avatar
      mmc: pwrseq: Document DT bindings for the simple MMC power sequence · 0e6d6332
      Ulf Hansson authored
      To support SOCs which specifies specific MMC power sequences, document
      some MMC DT bindings to be able to describe these hardwares.
      
      Let's also document bindings for a simple MMC power sequence provider,
      which purpose is to support a set of common properties between various
      SOCs.
      
      In this initial step, let's also document a top level description of
      the MMC power sequence and describe the compatible string used for the
      simple MMC power sequence provider.
      
      The simple MMC power sequence provider will initially support a reset
      GPIO. From several earlier posted patches, it's clear that such
      hardware exists. Especially some WLAN chips which are attached to an
      SDIO interface may use a GPIO reset.
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Tested-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Reviewed-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      0e6d6332
    • Ulf Hansson's avatar
      mmc: core: Initial support for MMC power sequences · 3aa8793f
      Ulf Hansson authored
      System on chip designs may specify a specific MMC power sequence. To
      successfully detect an (e)MMC/SD/SDIO card, that power sequence must
      be followed while initializing the card.
      
      To be able to handle these SOC specific power sequences, let's add a
      MMC power sequence interface. It provides the following functions to
      help the mmc core to deal with these power sequences.
      
      mmc_pwrseq_alloc() - Invoked from mmc_of_parse(), to initialize data.
      mmc_pwrseq_pre_power_on()- Invoked in the beginning of mmc_power_up().
      mmc_pwrseq_post_power_on()- Invoked at the end in mmc_power_up().
      mmc_pwrseq_power_off()- Invoked from mmc_power_off().
      mmc_pwrseq_free() - Invoked from mmc_free_host(), to free data.
      
      Each MMC power sequence provider will be responsible to implement a set
      of callbacks. These callbacks mirrors the functions above.
      
      This patch adds the skeleton, following patches will extend the core of
      the MMC power sequence and add support for a specific simple MMC power
      sequence.
      
      Do note, since the mmc_pwrseq_alloc() is invoked from mmc_of_parse(),
      host drivers needs to make use of this API to enable the support for
      MMC power sequences. Moreover the MMC power sequence support depends on
      CONFIG_OF.
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Tested-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Reviewed-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      3aa8793f
  2. 21 Jan, 2015 6 commits
  3. 20 Jan, 2015 22 commits
  4. 19 Jan, 2015 9 commits