05 Dec, 2019

1 commit

  • The 'sf' command is not supposed to rely on the MTD stack, but both
    'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite
    their location, these functions do not depend at all on the MTD
    stack.

    This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is
    selected, which is inconsistent with the current situation. Solve this
    by moving these three functions (which are only used by the above two
    commands) out of mtd_uboot.c and put them in a C file only compiled
    with cmd/sf.c and cmd/nand.c.

    Signed-off-by: Miquel Raynal
    [trini: Don't export get_part function now]
    Signed-off-by: Tom Rini

    Miquel Raynal
     

12 Apr, 2019

1 commit

  • This patch update the behavior introduced by
    commit 96907c0fe50a ("dm: spi: Read default speed and mode values from DT")

    In case of DT boot, don't read default speed and mode for SPI from
    CONFIG_* but instead read from DT node. This will make sure that boards
    with multiple SPI/QSPI controllers can be probed at different
    bus frequencies and SPI modes.

    Remove also use in boards of the value speed=0 (no more supported)
    for ENV in SPI by using CONFIG_ENV_SPI_MAX_HZ=0.

    DT values will be always used when available (full DM support of
    SPI slave with available DT node) even if speed and mode are requested;
    for example in splash screen support (in splash_sf_read_raw)
    or in SPL boot (in spl_spi_load_image).
    The caller of spi_get_bus_and_cs() no more need to force speed=0.

    But the current behavior don't change if the SPI slave is not
    present (device with generic driver is created automatically)
    or if platdata is used (CONFIG_OF_PLATDATA).

    Signed-off-by: Patrick Delaunay
    Acked-by: Jagan Teki

    Patrick Delaunay
     

16 Jan, 2019

1 commit


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
     

23 Mar, 2018

1 commit


05 Apr, 2017

1 commit

  • This patch adds the flags parameter to device_remove() and changes all
    calls to this function to provide the default value of DM_REMOVE_NORMAL
    for "normal" device removal.

    This is in preparation for the driver specific pre-OS (e.g. DMA
    cancelling) remove support.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass
    Acked-by: Simon Glass

    Stefan Roese
     

12 Sep, 2016

1 commit

  • This patch fixes the "sf probe" command. The very first SPI flash probe
    passes, for instance when u-boot tries to read its environment settings
    from a (Q)SPI memory but next "sf probe" commands fail because the flash
    memory node is unbound from the SPI controller children nodes.

    Signed-off-by: Cyrille Pitchen
    Signed-off-by: Wenyou Yang
    Tested-by: Stefan Roese
    Tested-by: Hannes Schmelzer
    Reviewed-by: Simon Glass

    Cyrille Pitchen
     

09 Jul, 2016

1 commit

  • In case of DT boot, don't read default speed and mode for SPI from
    CONFIG_*, instead read from DT node. This will make sure that boards
    with multiple SPI/QSPI controllers can be probed at different
    bus frequencies and SPI modes.

    Signed-off-by: Vignesh R
    Reviewed-by: Simon Glass
    Reviewed-by: Mugunthan V N
    Reviewed-by: Jagan Teki

    Vignesh R
     

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