11 Jan, 2014

1 commit


10 Jan, 2014

2 commits


09 Jan, 2014

9 commits

  • Signed-off-by: David Feng

    David Feng
     
  • Relocation code based on a patch by Scott Wood, which is:
    Signed-off-by: Scott Wood

    Signed-off-by: David Feng

    David Feng
     
  • Signed-off-by: David Feng

    David Feng
     
  • Signed-off-by: David Feng

    David Feng
     
  • The eMMC and the SD-Card specifications describe the optional SET_DSR command.
    During measurements at our lab we found that some cards implementing this feature
    having really strong driver strengts per default. This can lead to voltage peaks
    above the specification of the host on signal edges for data sent from a card to
    the host.

    Since availability of a given card type may be shorter than the time a certain
    hardware will be produced it is useful to have support for this command (Alternative
    would be changing termination resistors and adapting the driver strength of the
    host to the used card.)

    Following proposal for an implementation:

    - new field that reflects CSD field DSR_IMP in struct mmc
    - new field for design specific DSR value in struct mmc
    - board code can set DSR value in mmc struct just after registering an controller
    - mmc_startup sends the the stored DSR value before selecting a card, if DSR_IMP is set

    Additionally the mmc command is extended to make is possible to play around with different
    DSR values.

    The concept was tested on a i.MX53 based platform using a Micron eMMC card where the default
    DSR is 0x0400 (12mA) but in our design 0x0100 (0x0100) were enough. To use this feature for
    instance on a mx53loco one have to add a call to mmc_set_dsr() in board_mmc_init() after
    calling fsl_esdhc_initialize() for the eMMC.

    Signed-off-by: Markus Niebel
    Acked-by: Pantelis Antoniou

    Markus Niebel
     
  • It is useful to be able to save and restore the RAM contents of sandbox
    U-Boot either for setting up tests, for later analysys, or for chaining
    together multiple tests which need to keep the same memory contents.

    Add a function to provide a memory file for U-Boot. This is read on
    start-up and written when shutting down. If the file does not exist
    on start-up, it will be created when shutting down.

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

    Simon Glass
     
  • With sandbox, errors and problems may be reported before console_init_f()
    is executed. For example, an argument may not parse correctly or U-Boot may
    panic(). At present this output is swallowed so there is no indication what
    is going wrong.

    Adjust the console to deal with a very early sandbox setup, by detecting that
    there is no global_data yet, and calling os functions in that case.

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

    Simon Glass
     
  • The execution flow becomes easier if we can return from board_init_f()
    as ARM does. We can control things from start.c instead of having to
    call back into that file from other places.

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

    Simon Glass
     
  • Provide a way to use any host file or device as a block device in U-Boot.
    This can be used to provide filesystem access within U-Boot to an ext2
    image file on the host, for example.

    The support is plumbed into the filesystem and partition interfaces.

    We don't want to print a message in the driver every time we find a missing
    device. Pass the information back to the caller where a message can be printed
    if desired.

    Signed-off-by: Henrik Nordström
    Signed-off-by: Simon Glass
    - Removed change to part.c get_device_and_partition()

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

    Henrik Nordström
     

16 Dec, 2013

2 commits

  • fdt_fixup_memory_banks() will add and update /memory node in
    device tree blob. In the case that /memory node doesn't exist,
    after adding a new one, this function returns error.

    The correct behavior should be continuing to update its properties.

    Signed-off-by: Miao Yan

    Miao Yan
     
  • The next version VxWorks adopts device tree (for PowerPC and ARM) as its hardware
    description mechanism. For PowerPC, the boot interface conforms to
    the ePAPR standard, which is:

    void (*kernel_entry)(ulong fdt_addr,
    ulong r4 /* 0 */,
    ulong r5 /* 0 */,
    ulong r6 /* EPAPR_MAGIC */, ulong r7 /* IMA size */,
    ulong r8 /* 0 */, ulong r9 /* 0 */)

    For ARM, the boot interface is:

    void (*kernel_entry)(void *fdt_addr)

    Signed-off-by: Miao Yan
    [trini: Fix build error when !CONFIG_OF_FDT is set, typo on PowerPC,
    missing extern ft_fixup_num_cores]
    Signed-off-by: Tom Rini

    Miao Yan
     

13 Dec, 2013

5 commits


05 Dec, 2013

1 commit

  • The local pointer of address (i.e., addr) only gets
    referenced under SPI mode, and it won't be appropriate
    to pass only 1-byte addr[1] to i2c_read/i2c_write while
    CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 1.

    1. In U-boot's I2C model, the address would be re-assembled
    to a byte string in MSB order inside I2C controller drivers.

    2. The 'CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW' option which could
    be found at soft_i2c.c is always turned on in cmd_eeprom.c,
    the addr[0] always contains the device address with overflowed
    MSB address bits.

    Signed-off-by: Kuo-Jung Su
    Cc: Alexey Brodkin
    Cc: Jean-Christophe PLAGNIOL-VILLARD
    cc: Peter Tyser
    Cc: Heiko Schocher
    Cc: Wolfgang Denk
    Cc: Stefan Roese
    Cc: Mischa Jonker

    Kuo-Jung Su
     

25 Nov, 2013

3 commits


23 Nov, 2013

2 commits


13 Nov, 2013

1 commit


12 Nov, 2013

1 commit

  • Remove the redundant lcd_line_length initialisation which
    sneaked in when an earlier version of the patch of commit
    6d330719 has been rebased.

    Some lcd drivers need to setup lcd_line_length not from the
    panel_info parameters but by different means. Make the
    lcd_get_size() weak to allow setting lcd_line_length in
    a driver specific way.

    Signed-off-by: Anatolij Gustschin
    Cc: Stephen Warren

    Anatolij Gustschin
     

09 Nov, 2013

10 commits


08 Nov, 2013

2 commits

  • In commit "5c427e4: use BOOTM_STATE_OS_CMDLINE flag for plain bootm"
    and "3d187b3: Only pass BOOTM_STATE_OS_CMDLINE on PowerPC/MIPS",
    BOOTM_STATE_OS_CMDLINE was added to do_bootm for PowerPC and MIPS. This
    breaks other OSes (vxworks, netbsd, plan9,...) that don't support
    subcommand processing, e.g. they all contain the following code in their
    do_bootm_xxx():

    if (flag & BOOTM_STATE_OS_PREP)
    return 0;
    if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
    return 1;

    which will result a "subcommand not supported" error.
    This patch changes the above logic to:

    /* if not go command, pretend everything to be OK */
    if (flag != BOOTM_STATE_OS_GO)
    return 0;

    Signed-off-by: Miao Yan

    Miao Yan
     
  • env exists is a way to test (in hush) if an environment variable
    exists. A workaround existed using printenv but this new command
    doesn't require all the stdout/stderr redirection to prevent
    printing information to the screen.

    Example:
    $ set testexists 1
    $ env exists testexists && echo "yes"
    yes
    $ env exists testexists || echo "no"
    $ set testexists
    $ env exists testexists && echo "yes"
    $ env exists testexists || echo "no"
    no
    $

    Signed-off-by: Andrew Ruder

    Andrew Ruder
     

06 Nov, 2013

1 commit

  • Here is the set of command which has been performed
    to proof this feature.

    gzip < fpga.bin > fpga.bin.gz
    mkimage -A arm -O u-boot -T firmware -C gzip \
    -a 20000000 -n "zc702_fpga_bin" -d fpga.bin.gz fpga.bin.gz.ub

    tftp 100000 fpga.bin.gz.ub
    fpga loadmk 0 100000

    This flow should speedup loading bitstream data
    from external memory and save image footprint in non volatile
    memory.

    Signed-off-by: Michal Simek
    Acked-by: Jagannadha Sutradharudu Teki

    Michal Simek