31 Mar, 2020

1 commit


05 May, 2019

1 commit

  • The "Mode :" line is the only one in "mmc info" output that has a
    space in front of the colon. Drop the space to make it consistent
    with the rest of the output, e.g.:

    => mmc dev 1 ; mmc info
    switch to partitions #0, OK
    mmc1 is current device
    Device: sd@ee160000
    Manufacturer ID: 3
    OEM: 5344
    Name: SL08G
    Bus Speed: 50000000
    Mode : SD High Speed (50MHz)
    ^------------------------------ Remove this space
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 7.4 GiB
    Bus Width: 1-bit
    Erase Group Size: 512 Bytes

    Signed-off-by: Marek Vasut
    Cc: Jaehoon Chung
    CC: Tom Rini

    Marek Vasut
     

16 Jan, 2019

3 commits

  • The repeatable property is currently attached to the main command and
    sub-commands have no way to change the repeatable value (the
    ->repeatable field in sub-command entries is ignored).

    Replace the ->repeatable field by an extended ->cmd() hook (called
    ->cmd_rep()) which takes a new int pointer to store the repeatable cap
    of the command being executed.

    With this trick, we can let sub-commands decide whether they are
    repeatable or not.

    We also patch mmc and dtimg who are testing the ->repeatable field
    directly (they now use cmd_is_repeatable() instead), and fix the help
    entry manually since it doesn't use the U_BOOT_CMD() macro.

    Signed-off-by: Boris Brezillon
    Reviewed-by: Tom Rini

    Boris Brezillon
     
  • Make sure the block cache is cleared for the MMC device after it was
    reinitialized to avoid having any stale data in the cache, like e.g.
    partition tables or such.

    Signed-off-by: Marek Vasut
    Cc: Jaehoon Chung

    Marek Vasut
     
  • In case the card is removed, force-init the MMC to start the internal
    machinery which deregisters and invalidate the MMC device.

    Signed-off-by: Marek Vasut
    Cc: Jaehoon Chung

    Marek Vasut
     

19 Jun, 2018

1 commit


30 May, 2018

2 commits

  • Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc
    swrite" command is separated from the fastboot code.

    Move image-sparse from common to lib so it's clear it's library code.

    Rename CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE to CONFIG_IMAGE_SPARSE_FILLBUF_SIZE
    and migrate it to Kconfig.

    Signed-off-by: Alex Kiernan
    Acked-by: Jassi Brar
    Reviewed-by: Simon Glass

    Alex Kiernan
     
  • Add the response string as a parameter to fastboot_okay/fail, instead
    of modifying a global, to match the contract expected by the AOSP
    U-Boot code.

    Signed-off-by: Alex Kiernan
    Reviewed-by: Joe Hershberger

    Alex Kiernan
     

24 May, 2018

1 commit


08 May, 2018

1 commit

  • Provide an alternate path for sparse-images to be
    written to MMC. For example, via tftp on platforms
    that don't support fastboot protocol. Or when an
    image is to written at some offset, rather than the
    start of a partition.

    Signed-off-by: Jassi Brar
    [trini: Guard with CONFIG_FASTBOOT_FLASH tests, use LBAF for lbaint_t
    printing]
    Signed-off-by: Tom Rini

    Jassi Brar
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

12 Jan, 2018

5 commits


15 Sep, 2017

1 commit

  • All these places seem to inherit the codes from the MMC driver where
    a FIXME was put in the comment. However the correct operation after
    read should be cache invalidate, not flush.

    The underlying drivers should be responsible for the cache operation.
    Remove these codes completely.

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese
    Reviewed-by: York Sun
    Reviewed-by: Joe Hershberger
    Reviewed-by: Simon Glass
    Tested-by: York Sun

    Bin Meng
     

17 Aug, 2017

1 commit

  • This patch allows to show the EXT_CSD[179] partition_config
    register info, just by specifying the dev param:

    U-Boot> mmc partconf 0
    EXT_CSD[179], PARTITION_CONFIG:
    BOOT_ACK: 0x0
    BOOT_PARTITION_ENABLE: 0x0
    PARTITION_ACCESS: 0x0

    Signed-off-by: Angelo Dureghello
    Signed-off-by: Anatolij Gustschin

    Angelo Dureghello
     

19 Jul, 2017

1 commit


13 Apr, 2017

1 commit

  • The handler do_setdsr receives only the dsr parameter,
    the action is parsed before.

    Error was introduced when restructuring the mmc command
    implementation in commit 1fd93c6e7d8a1e4d6261058cefab11b875ded252.

    Reported-by: Michael Krummsdorf
    Signed-off-by: Markus Niebel

    Markus Niebel
     

01 Dec, 2016

1 commit

  • Add new command that provides possibility to enable the
    background operations handshake functionality
    (BKOPS_EN, EXT_CSD byte [163]) on eMMC devices.

    This is an optional feature of eMMCs, the setting is write-once.
    The command must be explicitly taken into use with
    CONFIG_CMD_BKOPS_ENABLE.

    Signed-off-by: Tomas Melin

    Tomas Melin
     

27 May, 2016

1 commit


17 May, 2016

3 commits


06 May, 2016

1 commit

  • Since we do not build any board with CONFIG_SUPPORT_EMMC_RPMB , this
    piece of code evaded conversion. Fix the following compiler error:

    cmd/mmc.c: In function 'do_mmcrpmb':
    cmd/mmc.c:316:32: error: 'struct blk_desc' has no member named 'part_num'
    original_part = mmc->block_dev.part_num;
    ^

    Signed-off-by: Marek Vasut
    Cc: Pantelis Antoniou
    Cc: Tom Rini

    Marek Vasut
     

02 Apr, 2016

1 commit


15 Mar, 2016

2 commits


25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass