1. 19 1月, 2015 9 次提交
  2. 13 12月, 2014 6 次提交
  3. 05 12月, 2014 1 次提交
  4. 03 10月, 2014 3 次提交
  5. 19 7月, 2014 2 次提交
  6. 12 6月, 2014 1 次提交
  7. 23 5月, 2014 3 次提交
  8. 16 5月, 2014 2 次提交
  9. 02 4月, 2014 1 次提交
  10. 24 3月, 2014 2 次提交
    • 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: 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
  11. 08 2月, 2014 3 次提交
  12. 07 2月, 2014 1 次提交
  13. 09 1月, 2014 1 次提交
    • M
      mmc: add setdsr support · ab71188c
      Markus Niebel 提交于
      The eMMC and the SD-Card specifications describe the optional SET_DSR command.
      During measurements at our lab we found that some cards implementing this feature
      having really strong driver strengts per default. This can lead to voltage peaks
      above the specification of the host on signal edges for data sent from a card to
      the host.
      
      Since availability of a given card type may be shorter than the time a certain
      hardware will be produced it is useful to have support for this command (Alternative
      would be changing termination resistors and adapting the driver strength of the
      host to the used card.)
      
      Following proposal for an implementation:
      
      - new field that reflects CSD field DSR_IMP in struct mmc
      - new field for design specific DSR value in struct mmc
      - board code can set DSR value in mmc struct just after registering an controller
      - mmc_startup sends the the stored DSR value before selecting a card, if DSR_IMP is set
      
      Additionally the mmc command is extended to make is possible to play around with different
      DSR values.
      
      The concept was tested on a i.MX53 based platform using a Micron eMMC card where the default
      DSR is 0x0400 (12mA) but in our design 0x0100 (0x0100) were enough. To use this feature for
      instance on a mx53loco one have to add a call to mmc_set_dsr() in board_mmc_init() after
      calling fsl_esdhc_initialize() for the eMMC.
      Signed-off-by: NMarkus Niebel <Markus.Niebel@tqs.de>
      Acked-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      ab71188c
  14. 31 10月, 2013 1 次提交
  15. 20 9月, 2013 1 次提交
  16. 18 9月, 2013 2 次提交
  17. 21 8月, 2013 1 次提交
    • Y
      powerpc: mpc85xx: Support booting from SD Card with SPL · bb0dc108
      Ying Zhang 提交于
      The code from the internal on-chip ROM. It loads the final uboot image
      into DDR, then jump to it to begin execution.
      
      The SPL's size is sizeable, the maximum size must not exceed the size of L2
      SRAM. It initializes the DDR through SPD code, and copys final uboot image
      to DDR. So there are two stage uboot images:
      	* spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that
      	ddr spd code can get the interleaving mode setting in env. It loads
      	final uboot image from offset 96KB.
      	* final uboot image, size is variable depends on the functions enabled.
      Signed-off-by: NYing Zhang <b40530@freescale.com>
      Acked-by: NYork Sun <yorksun@freescale.com>
      bb0dc108