17 Jul, 2013

2 commits

  • Add support for Atmel TPM devices with two wire interface.

    Signed-off-by: Dirk Eibach
    Signed-off-by: Reinhard Pfau
    Reviewed-by: Simon Glass
    Signed-off-by: Andy Fleming

    Dirk Eibach
     
  • Extend the tpm library with support for single authorized (AUTH1) commands
    as specified in the TCG Main Specification 1.2. (The internally used helper
    functions are implemented in a way that they could also be used for double
    authorized commands if someone needs it.)

    Provide enums with the return codes from the TCG Main specification.

    For now only a single OIAP session is supported.

    OIAP authorized version of the commands TPM_LoadKey2 and TPM_GetPubKey are
    provided. Both features are available using the 'tpm' command, too.

    Authorized commands are enabled with CONFIG_TPM_AUTH_SESSIONS. (Note that
    this also requires CONFIG_SHA1 to be enabled.)

    Signed-off-by: Reinhard Pfau
    Signed-off-by: Dirk Eibach
    Acked-by: Che-Liang Chiou
    Signed-off-by: Andy Fleming

    Reinhard Pfau
     

10 Jul, 2013

1 commit


02 Jul, 2013

1 commit


01 Jul, 2013

1 commit

  • Dfu transfer uses a buffer before writing data to the
    raw storage device. Make the size (in bytes) of this buffer
    configurable through environment variable "dfu_bufsiz".
    Defaut value is configurable through CONFIG_SYS_DFU_DATA_BUF_SIZE

    Signed-off-by: Heiko Schocher
    Cc: Pantelis Antoniou
    Cc: Tom Rini
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Marek Vasut
    Cc: Wolfgang Denk
    Acked-by: Tom Rini

    Heiko Schocher
     

26 Jun, 2013

4 commits

  • Align the list of default commands mentioned in the configuration options
    paragraph of the README with the actual definitions found in
    include/config_cmd_default.h

    Signed-off-by: Vincent Stehlé

    Vincent Stehlé
     
  • RSA provides a public key encryption facility which is ideal for image
    signing and verification.

    Images are signed using a private key by mkimage. Then at run-time, the
    images are verified using a private key.

    This implementation uses openssl for the host part (mkimage). To avoid
    bringing large libraries into the U-Boot binary, the RSA public key
    is encoded using a simple numeric representation in the device tree.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a structure to describe an algorithm which can sign and (later) verify
    images.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This patch adds the driver for keyboard that's controlled by ChromeOS EC.

    Signed-off-by: Randall Spangler
    Signed-off-by: Simon Glass
    Signed-off-by: Vincent Palatin
    Signed-off-by: Hung-ying Tyan
    Acked-by: Simon Glass

    Hung-ying Tyan
     

25 Jun, 2013

1 commit


24 Jun, 2013

1 commit


21 Jun, 2013

5 commits

  • There will need the environment in SPL for reasons other than network
    support (in particular, hwconfig contains info for how to set up DDR).

    Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT
    for environment in common/Makefile.

    Signed-off-by: Ying Zhang
    Reviewed-by: Tom Rini
    Signed-off-by: Andy Fleming

    Ying Zhang
     
  • For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM,
    then jump to it to begin execution. After that, the SPL loads the final uboot
    image into DDR, then jump to it to begin execution. The segment .resetvec in
    the SPL and in final U-boot is useless.

    So, add new symbols CONFIG_SYS_MPC85XX_NO_RESETVEC for this application.
    If CONFIG_SYS_MPC85XX_NO_RESETVEC is set, the segment .resetvec is excluded
    and the segment .bootpg is placed in the previous 4K of the segment .text.

    Signed-off-by: Ying Zhang
    Signed-off-by: Andy Fleming

    Ying Zhang
     
  • Currently, the macro "CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER" can enable
    the master module of Boot from SRIO and PCIE on a platform. But this
    is not a silicon feature, it's just a specific booting mode based on
    the SRIO and PCIE interfaces. So it's inappropriate to put the macro
    into the file arch/powerpc/include/asm/config_mpc85xx.h.

    Change the macro "CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER" to
    "CONFIG_SRIO_PCIE_BOOT_MASTER", remove them from
    arch/powerpc/include/asm/config_mpc85xx.h file, and add those macros
    in configuration header file of each board which can support the
    master module of Boot from SRIO and PCIE.

    Signed-off-by: Liu Gang
    Signed-off-by: Andy Fleming

    Liu Gang
     
  • BSC9131RDB is a Freescale Reference Design Board for
    BSC9131 SoC which is a integrated device that contains
    one powerpc e500v2 core and one DSP starcore.

    To support DSP starcore
    -Creating LAW and TLB for DSP-CCSR space.
    -Creating LAW for DSP-core subsystem M2 memory

    Signed-off-by: Priyanka Jain
    Signed-off-by: Poonam Aggrwal
    Signed-off-by: Prabhakar Kushwaha
    Signed-off-by: Andy Fleming

    Priyanka Jain
     
  • IFC errata A003399 is valid for IFC NOR boot i.e.if no on-board NOR flash or
    no NOR boot, do not compile its workaround.

    Signed-off-by: Prabhakar Kushwaha
    Signed-off-by: Andy Fleming

    Prabhakar Kushwaha
     

15 Jun, 2013

1 commit


14 Jun, 2013

2 commits

  • A negative value of CONFIG_ENV_OFFSET is treated as a backwards offset
    from the end of the eMMC device/partition, rather than a forwards offset
    from the start.

    This is useful when a single board may be stuffed with different eMMC
    devices, each of which has a different capacity, and you always want the
    environment to be stored at the very end of the device (or eMMC boot
    partition for example).

    One example of this case is NVIDIA's Ventana reference board.

    Signed-off-by: Stephen Warren
    Signed-off-by: Andy Fleming

    Stephen Warren
     
  • Describe the meaning of CONFIG_ENV_IS_IN_MMC, and all related defines that
    must or can be set when using that option.

    Signed-off-by: Stephen Warren
    Reviewed-by: Peter Korsgaard
    Acked-by: Tom Rini
    Signed-off-by: Andy Fleming

    Stephen Warren
     

13 Jun, 2013

1 commit


08 Jun, 2013

3 commits

  • The pci_indirect.c file is always compiled when
    CONFIG_PCI is defined although the indirect PCI
    bridge support is not needed by every board.

    Introduce a new CONFIG_PCI_INDIRECT_BRIDGE
    config option and only compile indirect PCI
    bridge support if this options is enabled.

    Also add the new option into the configuration
    files of the boards which needs that.

    Compile tested for powerpc, x86, arm and nds32.
    MAKEALL results:

    powerpc:
    --------------------- SUMMARY ----------------------------
    Boards compiled: 641
    Boards with warnings but no errors: 2 ( ELPPC MPC8323ERDB )
    ----------------------------------------------------------
    Note: the warnings for ELPPC and MPC8323ERDB are present even
    without the actual patch.

    x86:
    --------------------- SUMMARY ----------------------------
    Boards compiled: 1
    ----------------------------------------------------------

    arm:
    --------------------- SUMMARY ----------------------------
    Boards compiled: 311
    ----------------------------------------------------------

    nds32:
    --------------------- SUMMARY ----------------------------
    Boards compiled: 3
    ----------------------------------------------------------

    Cc: Tom Rini
    Cc: Daniel Schwierzeck
    Signed-off-by: Gabor Juhos

    Gabor Juhos
     
  • If Falcon mode support is enabled (and the system isn't directed into
    booting u-boot), it will instead try to load kernel from sector
    CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR and
    CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS of kernel argument parameters
    starting from sector CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR.

    Signed-off-by: Peter Korsgaard

    Peter Korsgaard
     
  • If Falcon mode support is enabled (and the system isn't directed into
    booting u-boot), it will instead try to load kernel from
    CONFIG_SPL_FAT_LOAD_KERNEL_NAME file and kernel argument parameters from
    CONFIG_SPL_FAT_LOAD_ARGS_NAME, both from the same partition as u-boot.

    Signed-off-by: Peter Korsgaard

    Peter Korsgaard
     

03 Jun, 2013

2 commits

  • This patch does a similar code reogranzation from
    http://patchwork.ozlabs.org/patch/132179/
    which is based on an old version of code (fdt support and bus selection
    still not in). It merges this tidy-up on top of the recent code. It does
    not make any logical change.

    tpm.c implements the interface defined in tpm.h based on underlying
    LPC or I2C TPM driver. tpm.c and the underlying driver communicate
    throught tpm_private.h.

    Note: Merging the LPC driver with tpm.c is left to future patches.

    Change-Id: Ie1384f5f9e3935d3bc9a44adf8de80c5a70a5f2b
    Signed-off-by: Tom Wai-Hong Tam
    Signed-off-by: Simon Glass
    Reviewed-by: Simon Glass

    Tom Wai-Hong Tam
     
  • The new name is more aligned with Linux kernel's naming of TPM driver.

    Signed-off-by: Peter Huewe
    Signed-off-by: Che-Liang Chiou
    Signed-off-by: Simon Glass
    Acked-by: Mike Frysinger
    Reviewed-by: Simon Glass
    Tested-by: Tom Wai-Hong Tam

    Che-liang Chiou
     

30 May, 2013

1 commit


16 May, 2013

1 commit


15 May, 2013

2 commits


13 May, 2013

1 commit


12 May, 2013

1 commit


11 May, 2013

1 commit


10 May, 2013

1 commit

  • Warm reset on OMAP5 freezes when USB cable is connected.
    Fix requires PRM_RSTTIME.RSTTIME1 to be programmed
    with the time for which reset should be held low for the
    voltages and the oscillator to reach stable state.

    There are 3 parameters to be considered for calculating
    the time, which are mostly board and PMIC dependent.
    -1- Time taken by the Oscillator to shut + restart
    -2- PMIC OTP times
    -3- Voltage rail ramp times, which inturn depends on the
    PMIC slew rate and value of the voltage ramp needed.

    In order to keep the code in u-boot simple, have a way
    for boards to specify a pre computed time directly using
    the 'CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC'
    option. If boards fail to specify the time, use a default
    as specified by 'CONFIG_DEFAULT_OMAP_RESET_TIME_MAX_USEC' instead.
    Using the default value translates into some ~22ms and should work in
    all cases.
    However in order to avoid this large delay hiding other bugs,
    its recommended that all boards look at their respective data
    sheets and specify a pre computed and optimal value using
    'CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC'

    In order to help future board additions to compute this
    config option value, add a README at doc/README.omap-reset-time
    which explains how to compute the value. Also update the toplevel
    README with the additional option and pointers to
    doc/README.omap-reset-time.

    Signed-off-by: Lokesh Vutla
    [rnayak@ti.com: Updated changelog and added the README]
    Signed-off-by: Rajendra Nayak

    Lokesh Vutla
     

02 May, 2013

1 commit

  • Downloaded from http://slre.sourceforge.net/
    and adapted for U-Boot environment.

    Used to implement regex operations on environment variables.
    Code size is ~ 3.5 KiB on PPC.

    To enable this code, define the CONFIG_REGEX option in your board
    config file.

    Note: There are more recent versions of the SLRE library available at
    http://slre.googlecode.com ; unfortunately, the new code has a heavily
    reorked API which makes it less usable for our purposes:
    - the return code is strings, which are more difficult to process
    - we don't get any information any more which sub-string of the data
    was matched by the given regex
    - it is much more cumbersome to work with arbitrary expressions, where
    for example the number of substrings for capturing are not known at
    compile time
    Also, there does not seem to be any real changes or improvements of
    the functionality.

    Because of this, we deliberately stick with the older code.

    Note 2: the test code (built when SLRE_TEST is defined) was modified
    to allow for more extensive testing; now we can test the regexp
    matching on all lines on a text file (instead of the whole data in the
    file as a single block).

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

28 Apr, 2013

1 commit


22 Apr, 2013

1 commit

  • Sometimes it might make sense to verify the written data to NOR flash.
    This patch adds this feature. To enable this verify-after-write, you
    need to define CONFIG_FLASH_VERIFY in your board config header.

    Please note that this option is useless in nearly all cases,
    since such flash programming errors usually are detected earlier
    while unprotecting/erasing/programming. Please only enable
    this option if you really know what you are doing.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

14 Apr, 2013

2 commits

  • Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     
  • Remove SPL-related ASSERT() in arch/arm/cpu/u-boot.lds
    as this file is never used for SPL builds.

    Rewrite the ASSERT() in arch/arm/cpu/u-boot-spl.lds
    to separately test image (text,data,rodata...) size,
    BSS size, and full footprint each against its own max,
    and make Tegra boards check full footprint.

    Also, output section mmutable is not used in SPL builds.
    Remove it.

    Finally, update README regarding the (now homogeneous)
    semantics of CONFIG_SPL_[BSS_]MAX_SIZE and add the new
    CONFIG_SPL_MAX_FOOTPRINT macro.

    Signed-off-by: Albert ARIBAUD
    Reported-by: Benoît Thébaudeau

    Albert ARIBAUD
     

13 Apr, 2013

1 commit


12 Apr, 2013

1 commit

  • Change CONFIG_SPL_PAD_TO from a link address to an image offset since this is
    more handy and closer to the purpose of this config.

    Automatically define CONFIG_SPL_PAD_TO to CONFIG_SPL_MAX_SIZE (or 0 without
    CONFIG_SPL_MAX_SIZE).

    Test that CONFIG_SPL_PAD_TO >= CONFIG_SPL_MAX_SIZE if CONFIG_SPL_PAD_TO is
    non-zero.

    Signed-off-by: Benoît Thébaudeau

    Benoît Thébaudeau