1. 17 5月, 2016 1 次提交
  2. 19 4月, 2016 2 次提交
  3. 16 3月, 2016 2 次提交
  4. 15 3月, 2016 1 次提交
  5. 23 10月, 2015 2 次提交
  6. 13 8月, 2015 2 次提交
  7. 05 5月, 2015 1 次提交
  8. 30 1月, 2015 1 次提交
  9. 05 12月, 2014 3 次提交
  10. 07 11月, 2014 1 次提交
    • I
      omap: hsmmc: assume cd gpio is active low · 0b03a931
      Igor Grinberg 提交于
      Switch the default CD GPIO polarity to active low.
      
      The current hsmmc driver assumption that the CD GPIO is active high, but
      in the real hardware, usually the opposite holds.
      The usual SD card socket has a mechanical switch which is grounded as
      soon as a card is inserted.
      Of course there might be some board logic which inverts the signal, but
      as far as current users are concerned, there is no such logic.
      
      Current U-Boot users either not using the CD functionality, or have a
      different way (e.g. external to SoC GPIO controller) for checking the
      card presence.
      
      This patch also brings the polarity assumption in line with the Linux
      kernel and adds appropriate comments.
      
      This patch also might spare issues once the TWL GPIO driver will be
      converted to the DM.
      Signed-off-by: NIgor Grinberg <grinberg@compulab.co.il>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Cc: Dmitry Lifshitz <lifshitz@compulab.co.il>
      Reviewed-by: NTom Rini <trini@ti.com>
      0b03a931
  11. 24 10月, 2014 1 次提交
  12. 19 7月, 2014 1 次提交
  13. 24 3月, 2014 3 次提交
    • P
      mmc: Split mmc struct, rework mmc initialization (v2) · 93bfd616
      Pantelis Antoniou 提交于
      The way that struct mmc was implemented was a bit of a mess;
      configuration and internal state all jumbled up in a single structure.
      
      On top of that the way initialization is done with mmc_register leads
      to a lot of duplicated code in drivers.
      
      Typically the initialization got something like this in every driver.
      
      	struct mmc *mmc = malloc(sizeof(struct mmc));
      	memset(mmc, 0, sizeof(struct mmc);
      	/* fill in fields of mmc struct */
      	/* store private data pointer */
      	mmc_register(mmc);
      
      By using the new mmc_create call one just passes an mmc config struct
      and an optional private data pointer like this:
      
      	struct mmc = mmc_create(&cfg, priv);
      
      All in tree drivers have been updated to the new form, and expect
      mmc_register to go away before long.
      
      Changes since v1:
      
      * Use calloc instead of manually calling memset.
      * Mark mmc_register as deprecated.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      93bfd616
    • P
      mmc: Convert mmc struct's name array to a pointer · 22cb7d33
      Pantelis Antoniou 提交于
      Using an array is pointless; even more pointless (and scary) is using
      sprintf to fill it without a format string.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      22cb7d33
    • P
      mmc: Remove ops from struct mmc and put in mmc_ops · ab769f22
      Pantelis Antoniou 提交于
      Remove the in-structure ops and put them in mmc_ops with
      a constant pointer to it.
      
      This makes the mmc structure smaller as well as conserving
      code space (in theory).
      
      All in-tree drivers are converted as well; this is done in a
      single patch in order to not break git bisect.
      
      Changes since V1:
      Fix compilation b0rked issue on omap platforms where OMAP_GPIO was
      not set.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      ab769f22
  14. 18 9月, 2013 2 次提交
    • L
      ARM: OMAP: Enable 8-bit eMMC access for OMAP4/5/DRA7xx · 152ba363
      Lubomir Popov 提交于
      Enable 8-bit host capability for HSMMC2 and/or HSMMC3. CONFIG_HSMMC2_8BIT
      (for OMAP4/5/DRA7xx) and/or CONFIG_HSMMC3_8BIT (for DRA7xx only) must be
      defined in the board header if an 8-bit eMMC device is connected to the
      corresponding port.
      
      Fix the "No status update" error that appeared for eMMC devices by
      inserting a 20 us delay between writing arguments and command. This
      solution has been proposed by Michael Cashwell <mboards@prograde.net>.
      
      A minor cosmetic fix in a comment as well.
      Signed-off-by: NLubomir Popov <lpopov@mm-sol.com>
      152ba363
    • O
      omap_hsmmc: omap4+/am335x: modify MMC controller internal fsm reset func · 61a6cc27
      Oleksandr Tyshchenko 提交于
      "mmc_send_cmd: timeout: No status update" error sometimes happens in
      omap_hsmmc driver func mmc_send_cmd() when the MMC controller card
      identification and selection sequence is executed for eMMC on OMAP4
      boards.
      
      It happens due to incorrect execution of CMD line reset procedure
      for OMAP4. Because CMD(DAT) lines reset procedures are slightly
      different for OMAP3 and OMAP4(AM335x,OMAP5,DRA7xx).
      
      According to OMAP3 TRM:
      Set SRC(SRD) bit in MMCHS_SYSCTL register to 0x1 and wait until
      it returns to 0x0.
      
      According to OMAP4(AM335x,OMAP5,DRA7xx) TRMs, CMD(DATA) lines reset
      procedure steps must be as follows:
      1. Initiate CMD(DAT) line reset by writing 0x1 to SRC(SRD) bit in
         MMCHS_SYSCTL register (SD_SYSCTL for AM335x).
      2. Poll the SRC(SRD) bit until it is set to 0x1.
      3. Wait until the SRC(SRD) bit returns to 0x0
        (reset procedure is completed).
      
      Unfortunately, at present omap_hsmmc driver has support only for
      OMAP3. And as result step #2 is missing for OMAP4(AM335x,OMAP5,DRA7xx).
      This sometimes leads to the fact that the waiting loop which is
      required in step #3 does not executed, because SRC bit does not set
      yet (at the moment of checking a condition of a loop execution).
      And as a result this can cause to timeout error when sending a
      next command.
      
      In the particular case (working with eMMC witch do not respond to
      some SD specific command) due to incorrect reset sequence after
      command SD_CMD_SEND_IF_COND which finished with CTO flag within
      64 clock cycles, the next command MMC_CMD_APP_CMD leads to a
      timeout error within 1s.
      
      So, extend CMD(DATA) lines reset procedure in func
      mmc_reset_controller_fsm() by adding the missing step #2 for
      OMAP4+/AM335x boards.
      Signed-off-by: NOleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
      Acked-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      61a6cc27
  15. 10 6月, 2013 1 次提交
  16. 10 5月, 2013 2 次提交
  17. 25 3月, 2013 1 次提交
  18. 11 3月, 2013 1 次提交
  19. 09 3月, 2013 5 次提交
  20. 15 5月, 2012 3 次提交
  21. 09 5月, 2012 3 次提交
  22. 16 2月, 2012 1 次提交