13 Jan, 2014

2 commits


11 Jan, 2014

13 commits


10 Jan, 2014

2 commits


09 Jan, 2014

8 commits

  • To add the DesignWare MMC driver support for Altera SOCFPGA. It
    required information such as clocks and bus width from platform
    specific files (SOCFPGA handoff files)

    Signed-off-by: Chin Liang See
    Cc: Rajeshwari Shinde
    Cc: Jaehoon Chung
    Cc: Pantelis Antoniou
    Cc: Wolfgang Denk
    Acked-by: Pantelis Antoniou

    Chin Liang See
     
  • 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: Markus Niebel
    Acked-by: Pantelis Antoniou

    Markus Niebel
     
  • Fixup prints to show where the print is done from, and
    a few minor formatting/grammar issues.

    Signed-off-by: Darwin Rambo
    Acked-by: Pantelis Antoniou

    Darwin Rambo
     
  • Bounce buffer implementation takes care of proper data buffer alignemt
    and correct flush/invalidation of data cache at once so we no longer
    depend on input data variety and make sure CPU and MMC controller deal
    with expected data in case of enabled data cache.

    Bounce buffer requires to add its definition (CONFIG_BOUNCE_BUFFER) in
    board configuration, otherwise corresponding library won't be compiled
    and linker will fail to build resulting executable.

    Difference since v1 - fixed compile-time warning with type casting to
    "void *":

    Slight edit to remove UTF8 characters in the commit message.

    Acked-by: Jaehoon Chung
    Tested-by: Jaehoon Chung
    Acked-by: Pantelis Antoniou

    ====
    passing argument 2 of 'bounce_buffer_start' discards 'const' qualifier
    from pointer target type
    ====

    Signed-off-by: Alexey Brodkin

    Cc: Mischa Jonker
    Cc: Alim Akhtar
    Cc: Rajeshwari Shinde
    Cc: Jaehoon Chung
    Cc: Amar
    Cc: Kyungmin Park
    Cc: Minkyu Kang
    Cc: Simon Glass
    Cc: Pantelis Antoniou
    Cc: Andy Fleming

    Alexey Brodkin
     
  • The original codes misused recvbuf in source buffer instead of sendbuf,
    and read from incorrect offset 14 instead of 22.

    Signed-off-by: Che-Liang Chiou

    Signed-off-by: Simon Glass
    Reviewed-by: Simon Glass
    Tested-by: Che-Liang Chiou

    Che-Liang Chiou
     
  • Add a simple TPM emulator for sandbox. It only supports a small subset of
    TPM operations. However, these are enough to perform common tasks.

    Note this is an initial commit to get this working, but it could use
    cleaning up (for example constants instead of open-coded values).

    Signed-off-by: Simon Glass

    Signed-off-by: Simon Glass
    Reviewed-by: Simon Glass

    Simon Glass
     
  • Provide a way to use any host file or device as a block device in U-Boot.
    This can be used to provide filesystem access within U-Boot to an ext2
    image file on the host, for example.

    The support is plumbed into the filesystem and partition interfaces.

    We don't want to print a message in the driver every time we find a missing
    device. Pass the information back to the caller where a message can be printed
    if desired.

    Signed-off-by: Henrik Nordström
    Signed-off-by: Simon Glass
    - Removed change to part.c get_device_and_partition()

    Signed-off-by: Simon Glass
    Reviewed-by: Simon Glass

    Henrik Nordström
     
  • To enhance the SDMMC DesignWare driver to use calloc instead of
    malloc. This will avoid the incident that uninitialized members
    of mmc structure are later used for NULL comparison.

    Signed-off-by: Chin Liang See
    Cc: Rajeshwari Shinde
    Cc: Jaehoon Chung
    Cc: Mischa Jonker
    Cc: Alexey Brodkin
    Cc: Andy Fleming
    Cc: Pantelis Antoniou
    Acked-by: Pantelis Antoniou

    Chin Liang See
     

08 Jan, 2014

1 commit


06 Jan, 2014

1 commit


03 Jan, 2014

1 commit


31 Dec, 2013

1 commit

  • Fix unaligned access in OneNAND core. The problem is that the ffchars[] array
    is an array of "unsigned char", but in onenand_write_ops_nolock() can be passed
    to the memcpy_16() function. The memcpy_16() function will treat the buffer as
    an array of "unsigned short", thus triggering unaligned access if the compiler
    decided ffchars[] to be not aligned.

    I managed to trigger the problem with regular ELDK 5.4 GCC compiler.

    Signed-off-by: Marek Vasut
    Cc: Albert Aribaud
    Cc: Scott Wood
    Cc: Tom Rini

    Marek Vasut
     

20 Dec, 2013

1 commit


19 Dec, 2013

10 commits