05 May, 2014

1 commit

  • Former usb_cable_connected() patch broke compilation of boards which do
    not support this feature.

    I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
    its default implementation to gadget downloader driver code. There's
    only one driver of this kind and it's unlikely there'll be another, so
    there's no point in keeping it in /common.

    Previously this function was declared in usb.h. I've moved it, since
    it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
    for USB host implementation.

    Existing code, confronted with default -EOPNOTSUPP return value,
    continues as if the cable was connected.

    CONFIG_USB_CABLE_CHECK was removed.

    Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski

    Mateusz Zalega
     

30 Apr, 2014

1 commit


26 Apr, 2014

1 commit


23 Apr, 2014

3 commits


20 Apr, 2014

2 commits


18 Apr, 2014

7 commits


04 Apr, 2014

1 commit


03 Apr, 2014

1 commit


02 Apr, 2014

1 commit

  • Some eMMC chips may need the RST_n_FUNCTION bit set to a non-zero value
    in order for warm reset of the system to work. Details on this being
    required will be part of the eMMC datasheet. Also add using this
    command to the dra7xx README.

    * Whitespace fix by panto

    Signed-off-by: Tom Rini
    Acked-by: Pantelis Antoniou

    Tom Rini
     

29 Mar, 2014

2 commits


28 Mar, 2014

1 commit


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
     

23 Mar, 2014

1 commit

  • I needed to be able to uncompress lzma files. I did this command
    based on unzip command and propose it if it could help.

    Signed-off-by: Patrice Bouchand
    Changed to work with sandbox
    Signed-off-by: Simon Glass

    Patrice Bouchand
     

22 Mar, 2014

9 commits


18 Mar, 2014

3 commits

  • 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 common library for obtaining access to the Chrome OS EC. This is
    used by boards which need to talk to the EC.

    Reviewed-by: Vadim Bendebury
    Tested-by: Vadim Bendebury
    Signed-off-by: Vadim Bendebury
    Signed-off-by: Simon Glass

    Vadim Bendebury
     
  • At present we use U-Boot's filesystem layer to read the sandbox device tree,
    but this is problematic since it relies on a temporary feauture added
    there. Since we plan to implement proper block layer support for sandbox,
    change this code to use the os layer functions instead. Also use the new
    fdt_create_empty_tree() instead of our own code.

    Signed-off-by: Simon Glass

    Simon Glass
     

07 Mar, 2014

3 commits

  • Before this commit, CONFIG_MPC8260 and CONFIG_8260
    were used mixed-up.

    All boards with mpc8260 cpu defined both of them:
    - CONFIG_MPC8260 was defined in board config headers
    and include/common.h
    - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk

    We do not need to have both of them.
    This commit keeps only CONFIG_MPC8260.

    This commit does:
    - Delete CONFIG_8260 and CONFIG_MPC8260 definition
    in config headers and include/common.h
    - Rename CONFIG_8260 to CONFIG_MPC8260
    in arch/powerpc/cpu/mpc8260/config.mk.
    - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260

    Signed-off-by: Masahiro Yamada
    Cc: Wolfgang Denk

    Masahiro Yamada
     
  • When importing a checksummed area we need to be told how big the area in
    question is so that we know that will match the size of the area which
    the checksum is generated against.

    Reported-by: Pierre AUBERT
    Signed-off-by: Tom Rini

    Tom Rini
     
  • The following shell command fails:

    if test -z "$x"; then echo "zero"; else echo "non-zero"; fi

    (assuming $x does not exist, it prints "non-zero" rather than "zero").

    ... since "$x" expands to nothing, and the argument is completely
    dropped, causing too few to be passed to -z, causing cmd_test() to
    error out early.

    This is because when variable expansions are processed by make_string(),
    the expanded results are concatenated back into a new string. However,
    no quoting is applied when doing so, so any empty variables simply don't
    generate any parameter when the combined string is parsed again.

    Fix this by explicitly replacing quoting any argument that was originally
    quoted when re-generating a string from the already-parsed argument list.

    This also fixes loss of whitespace in commands such as:

    setenv space " "
    setenv var " 1${space}${space} 2 "
    echo ">>${var}<
    Acked-by: Simon Glass
    Signed-off-by: Stephen Warren

    Stephen Warren
     

05 Mar, 2014

2 commits

  • Add 64-bit data for memory commands, such as md, mw, mm, cmp. The new
    size ".q " is introduced.

    For 64-bit architecture, 64-bit data is enabled by default, by detecting
    compiler __LP64__. It is optional for other architectures.

    Signed-off-by: York Sun

    York Sun
     
  • Now that named GPIO banks are supported, along with a way of obtaining
    the status of a GPIO (input or output), we can provide an enhanced
    GPIO command for driver model. Where the driver provides its own operation
    for obtaining the GPIO state, this is used, otherwise a generic version
    is sufficient.

    Signed-off-by: Simon Glass

    Simon Glass