02 Apr, 2014

1 commit

  • 1. The Data timeout counter value in eSDHC_SYSCTL register is
    not working as it should be, so add quirks to enable this
    workaround to fix it to the max value 0xE.

    2. Add CONFIG_SYS_FSL_ERRATUM_ESDHC111 to enable its workaround.

    * Update of patch for change mmc interface by
    Pantelis Antoniou

    Signed-off-by: Haijun Zhang
    Acked-by: Pantelis Antoniou

    Haijun.Zhang
     

31 Mar, 2014

1 commit


29 Mar, 2014

4 commits

  • Signed-off-by: Przemyslaw Marczak
    Cc: Minkyu Kang

    Przemyslaw Marczak
     
  • Fix the macros guarding the spl.h header for various platforms. Due to
    a typo and a propagation of it, the macros went out-of-sync with their
    ifdef check, so fix this.

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

    Marek Vasut
     
  • U-Boot has supported two kinds of asm-offsets.h.

    One is generic for all architectures and its source is located at
    ./lib/asm-offsets.c.

    The other is SoC specific and its source is under SoC directory.
    The problem here is that only boards with SoC directory can use
    the asm-offsets infrastructure.
    Putting asm-offsets.c right under CPU directory does not work.

    Now a new demand is coming. PowerPC folks want to use asm-offsets.
    But no PowerPC boards have SoC directory.

    It seems inconsistent that some boards add asm-offsets.c to SoC
    directoreis and some to CPU directories.
    It looks more reasonable to put asm-offsets.c under arch/$(ARCH)/lib.

    This commit merges asm-offsets.c under SoC directories into
    arch/$(ARCH)/lib/asm-offsets.c.

    By the way, I doubt the necessity of some entries in asm-offsets.c.
    I am leaving refactoring to the board maintainers.
    Please check "TODO" in the comment blocks in
    arch/{arm,nds32}/lib/asm-offsets.c.

    Signed-off-by: Masahiro Yamada
    Cc: Yuantian Tang

    Masahiro Yamada
     
  • U-Boot uses the 'mkimage' tool to produce various image types,
    not only uImage image type. Rename the invocation name from
    UIMAGE to MKIMAGE.

    The following command was used to do the replacement:
    git grep 'quiet_cmd_mkimage.* = UIMAGE' | cut -d : -f 1 | \
    xargs -i sed -i "s@\(quiet_cmd_mkimage\)\(.*\) = UIMAGE @\1\2 = MKIMAGE@" {}

    Signed-off-by: Marek Vasut
    Cc: Tom Rini
    Cc: Masahiro Yamada
    Acked-by: Masahiro Yamada

    Marek Vasut
     

24 Mar, 2014

1 commit

  • The way that struct mmc was implemented was a bit of a mess;
    configuration and internal state all jumbled up in a single structure.

    On top of that the way initialization is done with mmc_register leads
    to a lot of duplicated code in drivers.

    Typically the initialization got something like this in every driver.

    struct mmc *mmc = malloc(sizeof(struct mmc));
    memset(mmc, 0, sizeof(struct mmc);
    /* fill in fields of mmc struct */
    /* store private data pointer */
    mmc_register(mmc);

    By using the new mmc_create call one just passes an mmc config struct
    and an optional private data pointer like this:

    struct mmc = mmc_create(&cfg, priv);

    All in tree drivers have been updated to the new form, and expect
    mmc_register to go away before long.

    Changes since v1:

    * Use calloc instead of manually calling memset.
    * Mark mmc_register as deprecated.

    Signed-off-by: Pantelis Antoniou

    Pantelis Antoniou
     

18 Mar, 2014

9 commits

  • When jumping from one sandbox U-Boot to another in sandbox, the RAM buffer
    is preserved in the jump by using a temporary file. Add an option to tell
    the receiving U-Boot to remove this file when it is no longer needed.

    Similarly the old U-Boot image is left behind in this case. We cannot delete
    it immediately since gdb cannot then find its debug symbols. Delete it just
    before exiting.

    Together these changes ensure that temporary files are removed both for
    memory and U-Boot.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • It is useful for Cltl-C to be handled by U-Boot as it is on other boards.
    But it is also useful to be able to terminate U-Boot with Ctrl-C.

    Add an option to enable signals while in raw mode, and make this the
    default. Add an option to leave the terminal cooked, which is useful for
    redirecting output.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a simple LCD driver which uses SDL to display the image. We update the
    image regularly, while still providing for reasonable performance.

    Adjust the common lcd code to support sandbox.

    For command-line runs we do not want the LCD to be displayed, so add a
    --show_lcd option to enable it.

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

    Simon Glass
     
  • Add a sound driver for sandbox, which uses SDL.

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

    Simon Glass
     
  • SDL (Simple DirectMedia Layer - see www.libsdl.org) is a library which
    provides simple graphics and sound features. It works under X11 and also
    with a simple frame buffer interface. It is ideally suited to sandbox
    U-Boot since it fits nicely with the low-level feature set required by
    U-Boot. For example, U-Boot has its own font drawing routines, its own
    keyboard processing and just needs raw sound output.

    We can use SDL to provide emulation of these basic functions for sandbox.
    This significantly expands the testing that is possible with sandbox.

    Add a basic SDL library which we will use in future commits.

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

    Simon Glass
     
  • In order to support the 'go' command we allow the jumping U-Boot to pass its
    filename to the new U-Boot image. This can then be used to delete that image
    if required.

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

    Simon Glass
     
  • For some tests it is useful to be able to run U-Boot again but pass on the
    same memory contents. Add a function to achieve this.

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

    Simon Glass
     
  • Add an LCD display and keyboard to the sandbox device tree so that these
    features can be used.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This function does not actually change the pointer contents, so use const
    so that functions which have a const pointer do not need to cast.

    Signed-off-by: Simon Glass

    Simon Glass
     

14 Mar, 2014

1 commit


13 Mar, 2014

7 commits


11 Mar, 2014

4 commits


10 Mar, 2014

4 commits


08 Mar, 2014

8 commits