16 Dec, 2015

1 commit


15 Dec, 2015

1 commit

  • uintptr_t which is a typdef for unsigned long is needed for creating
    pointers (32 or 64 bit depending on Core) from 32 bit variables
    storing the address.
    If a 32 bit variable (u32) is typecasted to a pointer (void *),
    compiler gives a warning in case size of pointer on the core is 64 bit.

    The typdef has been moved from include/compiler.h to include/linux/types.h

    Signed-off-by: Aneesh Bansal
    Reviewed-by: York Sun

    Aneesh Bansal
     

07 Dec, 2015

1 commit


01 Dec, 2015

3 commits

  • Add support for the third USB controller for LS1043A.

    Signed-off-by: Gong Qianyu
    Reviewed-by: York Sun

    Gong Qianyu
     
  • Freescale's LS2085A is a another personality of LS2080A SoC with
    support of AIOP and DP-DDR.
    This Patch adds support of LS2085A Personality.

    Signed-off-by: Pratiyush Mohan Srivastava
    Signed-off-by: Prabhakar Kushwaha
    [York Sun: Updated MAINTAINERS files
    Dropped #ifdef in cpu.h
    Add CONFIG_SYS_NS16550=y in defconfig]
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • LS2080A is a prime personality of Freescale’s LS2085A. It is a non-AIOP
    personality without support of DP-DDR, L2 switch, 1588, PCIe endpoint etc.
    So renaming existing LS2085A code base to reflect LS2080A (Prime personality)

    Signed-off-by: Pratiyush Mohan Srivastava
    Signed-off-by: Prabhakar Kushwaha
    [York Sun: Dropped #ifdef in cpu.c for cpu_type_list]
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     

20 Nov, 2015

1 commit

  • Add a simple USB keyboard driver for sandbox. It provides a function to
    'load' it with input data, which it will then stream through to the normal
    U-Boot input subsystem. When the input data is exhausted, the keyboard stops
    providing data.

    Signed-off-by: Simon Glass

    Simon Glass
     

13 Nov, 2015

1 commit


12 Nov, 2015

1 commit

  • Implement a Memory Technology Device (MTD) uclass. It should
    include most flash drivers in the future. Though no uclass ops
    are defined yet, the MTD ops could be used.

    The NAND flash driver is based on MTD. The CFI flash and SPI
    flash support MTD, too. It should make sense to convert them
    to MTD uclass.

    Signed-off-by: Thomas Chou

    Thomas Chou
     

06 Nov, 2015

1 commit


05 Nov, 2015

2 commits


26 Oct, 2015

2 commits

  • sync with linux v4.2

    commit 64291f7db5bd8150a74ad2036f1037e6a0428df2
    Author: Linus Torvalds
    Date: Sun Aug 30 11:34:09 2015 -0700

    Linux 4.2

    This update is needed, as it turned out, that fastmap
    was in experimental/broken state in kernel v3.15, which
    was the last base for U-Boot.

    Signed-off-by: Heiko Schocher
    Tested-by: Ezequiel Garcia

    Heiko Schocher
     
  • add missing definitions for the ubi/ubifs sync
    with linux 4.2, also change "#define kfree ..."
    into a static inline, so prevent ubi compile error:

    CC drivers/mtd/ubi/fastmap.o
    drivers/mtd/ubi/fastmap.c: In function 'scan_pool':
    drivers/mtd/ubi/fastmap.c:475:3: error: called object 'free' is not a function

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

21 Oct, 2015

2 commits


12 Sep, 2015

1 commit


11 Sep, 2015

1 commit


26 Aug, 2015

4 commits

  • Increase max sizes for OOB, Page size and eccpos to
    suit for Micron MT29F32G08 part

    Signed-off-by: Siva Durga Prasad Paladugu

    Siva Durga Prasad Paladugu
     
  • Update the NAND code to match Linux v4.1. The previous sync was
    from Linux v3.15 in commit 4e67c57125290b25.

    CONFIG_SYS_NAND_RESET_CNT is removed, as the upstream Linux code now
    has its own timeout. Plus, CONFIG_SYS_NAND_RESET_CNT was undocumented
    and not selected by any board.

    Signed-off-by: Scott Wood

    Scott Wood
     
  • In addition to mtd_block_isbad(), which checks if a block is bad or
    reserved, it's needed to check if a block is reserved only (but not
    bad). This commit adds an MTD interface for it, in a similar fashion to
    mtd_block_isbad().

    While here, fix mtd_block_isbad() so the out-of-bounds checking is done
    before the callback check.

    Signed-off-by: Ezequiel Garcia
    Tested-by: Pekon Gupta
    Signed-off-by: Brian Norris
    [scottwood: Cherry-picked from Linux 8471bb73ba10ed67]
    Signed-off-by: Scott Wood

    Ezequiel Garcia
     
  • I didn't approve the patch that added them. Get them out of the way
    before doing a sync.

    Signed-off-by: Scott Wood

    Scott Wood
     

19 Aug, 2015

1 commit

  • The previous commit introduced a useful macro used in makefiles,
    in order to reference to different variables (CONFIG_... or
    CONFIG_SPL_...) depending on the build context.

    Per-image config option control is a PITA in C sources, too.
    Here are some macros useful in C/CPP expressions.

    CONFIG_IS_ENABLED(FOO) can be used as a shorthand for

    (!defined(CONFIG_SPL_BUILD) && defined(CONFIG_FOO)) || \
    (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_FOO))

    For example, it is useful to describe C code as follows,

    #if CONFIG_IS_ENABLED(OF_CONTROL)
    (device tree code)
    #else
    (board file code)
    #endif

    The ifdef conditional above is switched by CONFIG_OF_CONTROL during
    the U-Boot proper building (CONFIG_SPL_BUILD is not defined), and by
    CONFIG_SPL_OF_CONTROL during SPL building (CONFIG_SPL_BUILD is
    defined).

    The macro can be used in C context as well, so you can also write the
    equivalent code as follows:

    if (CONFIG_IS_ENABLED(OF_CONTROL)) {
    (device tree code)
    } else {
    (board file code)
    }

    Another useful macro is CONFIG_VALUE().
    CONFIG_VALUE(FOO) is expanded into CONFIG_FOO if CONFIG_SPL_BUILD is
    undefined, and into CONFIG_SPL_FOO if CONFIG_SPL_BUILD is defined.

    You can write as follows:

    text_base = CONFIG_VALUE(TEXT_BASE);

    instead of:

    #ifdef CONFIG_SPL_BUILD
    text_base = CONFIG_SPL_TEXT_BASE;
    #else
    text_base = CONFIG_TEXT_BASE;
    #endif

    This commit also adds slight hacking on fixdep so that it can
    output a correct list of fixed dependencies.

    If the fixdep finds CONFIG_IS_ENABLED(FOO) in a source file,
    we want
    $(wildcard include/config/foo.h)
    in the U-boot proper building context, while we want
    $(wildcard include/config/spl/foo.h)
    in the SPL build context.

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

    Masahiro Yamada
     

05 Aug, 2015

1 commit


25 Jul, 2015

1 commit


22 Jul, 2015

8 commits


10 Jul, 2015

1 commit

  • Since commit 09c3280754f8 (mtd, nand: Move common functions from
    cmd_nand.c to common place), NAND commands would not work at all
    on large devices.

    => nand read 80000000 10000 10000

    NAND read: Offset exceeds device limit
    => nand erase 100000 100000

    NAND erase: Offset exceeds device limit

    The type of the "size" of "struct mtd_info" is uint64_t, while
    mtd_arg_off_size() and mtd_arg_off() treat chipsize as int type.
    The chipsize is wrapped around if the argument is given with 2GB
    or larger.

    Acked-by: Heiko Schocher
    Acked-by: Scott Wood
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

30 Jun, 2015

1 commit

  • Move common functions from cmd_nand.c (for calculating offset
    and size from cmdline paramter) to common place, so they could
    used from other commands which use mtd partitions.

    For onenand the arg_off_size() is left in common/cmd_onenand.c.
    It should use now the common arg_off() function, but as I could
    not test onenand I let it there ...

    Signed-off-by: Heiko Schocher
    Acked-by: Scott Wood
    Reviewed-by: Jagannadh Teki

    Heiko Schocher
     

28 May, 2015

1 commit


14 May, 2015

2 commits


22 Apr, 2015

1 commit


19 Apr, 2015

1 commit