01 Jun, 2017

2 commits


10 May, 2017

1 commit

  • A common use of memmove() can be handled by memcpy(). Also memcpy()
    includes an optimisation for large sizes: it copies a word at a time. So
    we can get a speed-up by calling memcpy() to handle our move in this case.

    Update memmove() to call memcpy() if the destination is before the source.

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

    Simon Glass
     

05 Apr, 2017

1 commit

  • Most of the time the optimised memset() is what we want. For extreme
    situations such as TPL it may be too large. For example on the 'rock'
    board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and
    the rodata bug, this patch is enough to reduce the TPL image below the
    limit.

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

    Simon Glass
     

07 Jun, 2016

1 commit


12 Dec, 2014

1 commit


15 Oct, 2013

1 commit


01 Jun, 2013

1 commit

  • This patch is essentially an update of u-boot MTD subsystem to
    the state of Linux-3.7.1 with exclusion of some bits:

    - the update is concentrated on NAND, no onenand or CFI/NOR/SPI
    flashes interfaces are updated EXCEPT for API changes.

    - new large NAND chips support is there, though some updates
    have got in Linux-3.8.-rc1, (which will follow on top of this patch).

    To produce this update I used tag v3.7.1 of linux-stable repository.

    The update was made using application of relevant patches,
    with changes relevant to U-Boot-only stuff sticked together
    to keep bisectability. Then all changes were grouped together
    to this patch.

    Signed-off-by: Sergey Lapin
    [scottwood@freescale.com: some eccstrength and build fixes]
    Signed-off-by: Scott Wood

    Sergey Lapin
     

14 Dec, 2012

1 commit

  • isspace() and strim() are not in the typical user-mode string.h, so
    put them in a separate compilation unit so that they can be built into
    tools that need them independent of the other common string functions.

    This allows code shared by u-boot and the linux user-mode tools to link.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     

12 Dec, 2012

1 commit

  • strncasecmp() is present as strnicmp() but disabled. Make it available
    and define strcasecmp() also. There is a only a small performance penalty
    to having strcasecmp() call strncasecmp(), so do this instead of a
    standalone function, to save code space.

    Update the prototype in arch-specific headers as needed to avoid warnings.

    Signed-off-by: Simon Glass

    Simon Glass
     

27 Jan, 2012

1 commit

  • [backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe]

    This is part of the synchronization with the nand driver to the
    Linux 3.0 state.

    Signed-off-by: Christian Hitz
    Cc: Scott Wood
    Signed-off-by: Scott Wood

    Christian Hitz
     

26 Jul, 2011

1 commit


13 Apr, 2010

1 commit

  • Now that the other architecture-specific lib directories have been
    moved out of the top-level directory there's not much reason to have the
    '_generic' suffix on the common lib directory.

    Signed-off-by: Peter Tyser

    Peter Tyser