07 Dec, 2011

15 commits

  • It is fine to use __maybe_unused instead of #ifdef, but we also need one
    for print_eth() since not all boards have Ethernet. This fixes this
    warning:

    cmd_bdinfo.c:39:13: warning: 'print_eth' defined but not used [-Wunused-function]

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The spi.h include is no longer included in exports.h, so must be included
    here.

    This fixes these errors:

    In file included from exports.c:41:0:
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h: In function 'jumptable_init':
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:27:1: error: 'spi_init' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:27:1: note: each undeclared identifier is reported only once for each function it appears in
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:28:1: error: 'spi_setup_slave' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:29:1: error: 'spi_free_slave' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:30:1: error: 'spi_claim_bus' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:31:1: error: 'spi_release_bus' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:32:1: error: 'spi_xfer' undeclared (first use in this function)

    Signed-off-by: Simon Glass

    Simon Glass
     
  • exports.h no longer includes common.h, which contains assert(). qsort.c
    needs to be updated. This fixes this warning:

    qsort.c: In function 'qsort':
    qsort.c:30:3: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]

    Signed-off-by: Simon Glass
    Acked-by: Kumar Gala
    Tested-by: Heiko Schocher

    Simon Glass
     
  • This reverts commit 5c45a22b9203351a32aec4600514341b91175542.

    It causes a lot of "incompatible pointer type" warnings for a large
    number of Ethernet drivers, which are not really worth fixing
    especially as this patch was only supposed to help the old,
    deprecated miiphy API. Instead of adding more efforts to a lost case
    we rather revert it.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • When building u-boot as 64 bit application (e.g. sandbox) ulong might be
    64 bits in size. This breaks network code as IPaddr_t is 64 bytes in
    size then and an IPv4 address is 32 bits in size. This patch makes sure
    that IPaddr_t is always 32 bits in size. Also some warnings introduced
    by this patch are fixed.

    Signed-off-by: Matthias Weisser
    Acked-by: Mike Frysinger

    Matthias Weisser
     
  • Signed-off-by: Marek Vasut
    Cc: Wolfgang Denk

    Marek Vasut
     
  • Signed-off-by: Thomas Weber

    Thomas Weber
     
  • When ENV_IS_EMBEDDED is not set, but CONFIG_BUILD_ENVCRC is set,
    the environment.h file does not get included resulting in unrecognized
    env_t type.
    Fix this by moving the include directive.

    Reported-by: Mike Frysinger
    Signed-off-by: Igor Grinberg
    Tested-by: Mike Frysinger

    Igor Grinberg
     
  • It is sometimes desireable to clean up the byproducts of the build
    process without removing the executable results. "make clean" is
    close, but leaves the build directory with a large number of
    *.depend* files. This new build option invokes make clean, and then
    removes the depend files.

    Signed-off-by: Andy Fleming

    Andy Fleming
     
  • This should make sending out e-mails to the right people easier.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • The command gets an arbitrary number of arguments (up to 30), which
    are interpreted as byte values and are feed into the TPM device after
    proper initialization. Then the return value and data of the TPM
    driver is examined.

    TPM commands are described in the TCG specification.

    For instance, the following sequence is the 'TPM Startup' command, it
    is processed by the TPM and a response is generated:

    boot > tpm 0x0 0xc1 0x0 0x0 0x0 0xc 0x0 0x0 0x0 0x99 0x0 0x1
    Found TPM SLB9635 TT 1.2 by Infineon
    Got TPM response:
    00 c4 00 00 00 0a 00 00 00 00

    If the command is corrupted (fed one byte short), an error is reported:
    boot > tpm 0x0 0xc1 0x0 0x0 0x0 0xc 0x0 0x0 0x0 0x99 0x0
    generic_lpc_tpm.c:311 unexpected TPM status 0xff000888
    generic_lpc_tpm.c:516 failed sending data to TPM
    tpm command failed
    boot >

    Change-Id: I3f3c5bfec8b852e208c4e99ba37b0f2b875140b0
    Signed-off-by: Vadim Bendebury
    CC: Wolfgang Denk

    Vadim Bendebury
     
  • If no default label is specified, but a situation arises where the
    default label should be used, treat the first label specified as the
    default label.

    Signed-off-by: Jason Hobbs
    Cc: Ricardo Salveti de Araujo
    Cc: Wolfgang Denk

    Jason Hobbs
     
  • If we move the local funcs to the top of the file, and use the
    __maybe_unused define, we can drop a lot of ugly ifdef logic and
    duplicated prototypes.

    Acked-by: Simon Glass
    Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • This patch is added for PHY whose register offset value exceeds 0xFF and
    cannot be used with "unsigned char" datatype in miiphy_read, miiphy_write
    and miiphy_register functions. Datatype of register offset is changed to
    unsigned short instead of unsigned char so that offset value greater then
    0xFF can be used.

    Signed-off-by: Chandan Nath
    Acked-by: Mike Frysinger

    Chandan Nath
     
  • Modify exports.h to remove its dependencies on other files, thus
    enabling standalone apps to require only exports.h from the U-Boot
    source tree. This appears to be the intent based on the following
    note: http://lists.denx.de/pipermail/u-boot/2010-January/067174.html

    Signed-off-by: Mike Partington

    Mike Partington
     

06 Dec, 2011

22 commits


02 Dec, 2011

3 commits