20 Dec, 2012

1 commit


14 Dec, 2012

19 commits


12 Dec, 2012

17 commits

  • Do not compile in FDT related code, when it is not supported.

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Kyungmin Park
    Acked-by: Stefano Babic

    Łukasz Majewski
     
  • Add a simple command to stress-test a TPM (Trusted Platform Module).

    Signed-off-by: Luigi Semenzato

    Signed-off-by: Simon Glass

    Luigi Semenzato
     
  • The CONFIG_SYS_CONSOLE_INFO_QUIET option should suppress the console
    information, but allow boards to display it later if required. Adjust
    the code to support this.

    This is used to avoid printing the information while the LCD display
    is not ready, since it only becomes ready when stdio init is complete.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Provide u-boot console functions to access IO space registers. A no
    thrills implementation, accessing one register at a time.

    For example:
    boot > iod 80
    0080: 00000094
    boot > iod.w 80
    0080: 0094
    boot > iod.b 80
    0080: 94
    boot > iow.b 0x80 12
    boot > iod 0x80
    0080: 00000012

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

    Vadim Bendebury
     
  • This function can be used for LCDs as well as monitors.

    Signed-off-by: Tom Wai-Hong Tam
    Signed-off-by: Simon Glass

    Tom Wai-Hong Tam
     
  • Add a single command to read the EDID information over I2C.

    For example:

    SMDK5250 # i2c dev 7
    Setting bus to 7
    SMDK5250 # i2c edid 50
    EDID version: 1.4
    Product ID code: 305c
    Manufacturer: AUO
    Serial number: 00000000
    Manufactured in week: 0 year: 2011
    Video input definition: digital signal, voltage level 0, blank to black
    Monitor is non-RGB
    Maximum visible display size: 26 cm x 14 cm
    Power management features: no active off, no suspend, no standby
    Estabilished timings:
    Standard timings:
    1366x768 60 Hz (detailed)
    1366x768 60 Hz (detailed)
    Monitor ID: 2VD2K.B116XW

    Signed-off-by: Tom Wai-Hong Tam
    Signed-off-by: Sean Paul
    Signed-off-by: Simon Glass

    Tom Wai-Hong Tam
     
  • This implements a library for accessing EDID data from an LCD panel.
    This is used to obtain information about the panel such as its
    resolution and type.

    This is a tidied-up version of the original code pulled from
    https://github.com/ynezz/u-boot-edid.

    The changes we made are:
    - removed bit fields in the struct;
    - removed endianness cases in the struct;
    - fixed some wrong definitions;
    - fixed to fit 80 columns;
    - fixed some code styles.

    Signed-off-by: Tom Wai-Hong Tam
    Signed-off-by: Simon Glass

    Tom Wai-Hong Tam
     
  • This new command supports hashing SHA1 and SHA256. It could be extended
    to others such as MD5 and the CRC algorithms. The syntax is modeled on
    those:

    hash

    [* | ]

    to calculate a hash, and:

    hash -v

    [* | ]

    to verify a hash.

    Use CONFIG_CMD_HASH to enable the command, CONFIG_SHA1 to enable SHA1 and
    CONFIG_SHA256 to enable SHA256.

    The existing sha1sum command remains.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Update the code to use the hash layer instead of local code.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • We have a SHA1 command and want to add a SHA256 command also. Instead of
    duplicating the code, create a generic hash API which can process
    commands for different algorithms.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The name is already copied when we memcpy() the whole structure.

    This is because struct stdio_dev has this field:

    char name[16]; /* Device name */

    So the data is inline, rather than being a pointer.

    Signed-off-by: Vincent Palatin

    Signed-off-by: Simon Glass

    Vincent Palatin
     
  • This code was not guarded with CONFIG_LMB so failed to build on x86.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Sometimes data is on a block device and within a partition, but not in a
    particular filesystem.

    This commands permits reading raw data from a partition.

    Signed-off-by: Kenneth Waters
    Signed-off-by: Simon Glass

    Kenneth Waters
     
  • Gettime returns the current timer value. If CONFIG_SYS_HZ is defined
    then the timer value is also converted to seconds.

    Tegra20 (SeaBoard) # gettime
    Timer val: 7754
    Seconds : 7
    Remainder : 754
    sys_hz = 1000

    There has been some discussion about whether this is useful enough to
    be included in U-Boot. The following boards do not have CONFIG_SYS_HZ
    defined:

    M52277EVB
    M52277EVB_stmicro
    M53017EVB
    M54418TWR
    M54418TWR_nand_mii
    M54418TWR_nand_rmii
    M54418TWR_nand_rmii_lowfreq
    M54418TWR_serial_mii
    M54418TWR_serial_rmii

    Signed-off-by: Anton Staaf
    Signed-off-by: Simon Glass

    Anton Staaf
     
  • Mark when we get to the main loop.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add kerneldoc style documentation into cmd_i2c.c to properly describe
    all overridable functions and most of the command interface.

    Signed-off-by: Marek Vasut
    Cc: Heiko Schocher

    Marek Vasut
     
  • Use __weak from linux/compiler.h instead of __attribute__((weak, alias))
    to define overridable function. This patch is intended as a cleanup patch
    to bring some consistency into the code.

    Signed-off-by: Marek Vasut
    Cc: Heiko Schocher

    Marek Vasut
     

07 Dec, 2012

1 commit


06 Dec, 2012

2 commits

  • With this patch, getenv_f() can be included easily into the SPL
    binary. With this, SPL boards can now use getenv_f() to read
    environment variables (e.g. to detect if the OS or U-Boot shall
    be executed).

    In the approach this is done for env stored in NOR flash, as this
    will be used by an upcoming MPC5200 board port.

    Signed-off-by: Stefan Roese

    Stefan Roese
     
  • This patch enables the SPL framework to be used on powerpc platforms
    and not only ARM.

    timer_init() does not exist on PPC systems. The timer (decrementer) is
    initialized and enabled in interrupt_init() here. And currently
    interrupt_init() is called after relocation to SDRAM. Since the only
    powerpc SPL implementation (a3m071) doesn't need a timer, let's remove
    this timer_init() call for PPC systems.

    Signed-off-by: Stefan Roese

    Stefan Roese