Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Aug 31, 2015
  1. Merge git://git.denx.de/u-boot-dm

    Tom Rini authored
  2. @bbrezillon @jwrdegoede

    sunxi: increase SYS_MONITOR_LEN

    bbrezillon authored jwrdegoede committed
    Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
    Acked-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  3. dts: fix dependency of OF_SPL_REMOVE_PROPS

    Masahiro Yamada authored Simon Glass committed
    This should depend on SPL_OF_CONTROL (it is not equivalent to
    SPL && OF_CONTROL).
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Acked-by: Simon Glass <sjg@chromium.org>
  4. pinctrl: sandbox: add sandbox pinctrl driver

    Masahiro Yamada authored Simon Glass committed
    This driver actually does nothing but test pinctrl uclass, and
    demonstrate how things work.
    
    To try this driver, uncomment /* #define DEBUG */ in the
    drivers/pinctrl/pinctrl-sandbox.c, and debug messages will be
    displayed.
    
      DRAM:  128 MiB
      sandbox pinmux: group = 1 (serial_a), function = 1 (serial)
      Using default environment
    
      In:    cros-ec-keyb
      Out:   lcd
      Err:   lcd
      Net:   Net Initialization Skipped
      eth0: eth@1000200, eth1: eth@8000000, eth5: eth@9000000
      => i2c dev 0
      Setting bus to 0
      sandbox pinmux: group = 0 (i2c), function = 0 (i2c)
      sandbox pinconf: group = 0 (i2c), param = 3, arg = 1
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Acked-by: Simon Glass <sjg@chromium.org>
  5. pinctrl: add pin control uclass support

    Masahiro Yamada authored Simon Glass committed
    This creates a new framework for handling of pin control devices,
    i.e. devices that control different aspects of package pins.
    
    This uclass handles pinmuxing and pin configuration; pinmuxing
    controls switching among silicon blocks that share certain physical
    pins, pin configuration handles electronic properties such as pin-
    biasing, load capacitance etc.
    
    This framework can support the same device tree bindings, but if you
    do not need full interface support, you can disable some features to
    reduce memory foot print.  Typically around 1.5KB is necessary to
    include full-featured uclass support on ARM board (CONFIG_PINCTRL +
    CONFIG_PINCTRL_FULL + CONFIG_PINCTRL_GENERIC + CONFIG_PINCTRL_PINMUX),
    for example.
    
    We are often limited on code size for SPL.  Besides, we still have
    many boards that do not support device tree configuration.  The full
    pinctrl, which requires OF_CONTROL, does not make sense for those
    boards.  So, this framework also has a Do-It-Yourself (let's say
    simple pinctrl) interface.  With CONFIG_PINCTRL_FULL disabled, the
    uclass itself provides no systematic mechanism for identifying the
    peripheral device, applying pinctrl settings, etc.  They must be
    done in each low-level driver.  In return, you can save much memory
    footprint and it might be useful especially for SPL.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Acked-by: Simon Glass <sjg@chromium.org>
  6. dm: core: allow device_bind() to not return a device pointer

    Masahiro Yamada authored Simon Glass committed
    This is useful when we want to bind a device, but do not need the
    pointer to the device.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Acked-by: Simon Glass <sjg@chromium.org>
  7. tegra: nyan: Enable TPM command and driver

    Simon Glass authored
    The TPM is listed in the device tree. Enable the driver and 'tpm' command
    so that it can be used.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  8. tpm: Enable 'tpmtest' command for Chrome OS boards with TPMs

    Simon Glass authored
    This command provides a few useful tests so enable it for common boards.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  9. dm: tpm: Add a 'tpmtest' command

    Simon Glass authored
    These tests come from Chrome OS code. They are not particularly tidy but can
    be useful for checking that the TPM is behaving correctly. Some knowledge of
    TPM operation is required to use these.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  10. tpm: Add functions to access flags and permissions

    Simon Glass authored
    Add a few new functions which will be used by the test command in a future
    patch.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  11. tpm: Add a 'tpm info' command

    Simon Glass authored
    Add a command to display basic information about a TPM such as the model and
    open/close state. This can be useful for debugging.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  12. dm: tpm: Convert LPC driver to driver model

    Simon Glass authored
    Convert the tpm_tis_lpc driver to use driver model and update boards which
    use it.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  13. dm: tpm: Convert I2C driver to driver model

    Simon Glass authored
    Convert the tpm_tis_i2c driver to use driver model and update boards which
    use it.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  14. exynos: x86: dts: Add tpm nodes to the device tree for Chrome OS devices

    Simon Glass authored
    Add a TPM node to the various Chromebooks so that driver can be converted to
    driver model.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  15. tpm: Check that parse_byte_string() has data to parse

    Simon Glass authored
    Rather then crashing when there is no data, print an error. The error is
    printed by the caller to parse_byte_string().
    
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  16. dm: tpm: sandbox: Convert TPM driver to driver model

    Simon Glass authored
    Convert the sandbox TPM driver to use driver model. Add it to the device
    tree so that it can be found on start-up.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  17. tpm: Report tpm errors on the command line

    Simon Glass authored
    When a 'tpm' command fails, we set the return code but give no indication
    of failure. This can be confusing.
    
    Add an error message when any tpm command fails.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  18. dm: i2c: Add a command to adjust the offset length

    Simon Glass authored
    I2C chips can support a register offset, with registers accessible by
    sending this offset as the first part of any read or write transaction.
    Most I2C chips have a single byte offset, thus the offset length is 1.
    This provides access for up 256 registers.
    
    However other offset lengths are supported, including 0.
    
    Add a command to provide access to the offset length from the command
    line. This allows the offset length to be read or written.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  19. dm: tpm: Convert the TPM command and library to driver model

    Simon Glass authored
    Add driver model support to the TPM command and the TPM library. Both
    support only a single TPM at present.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  20. dm: tpm: Add a uclass for Trusted Platform Modules

    Simon Glass authored
    Add a new uclass for TPMs which uses almost the same TIS (TPM Interface
    Specification) as is currently implemented. Since init() is handled by the
    normal driver model probe() method, we don't need to implement that. Also
    rename the transfer method to xfer() which is a less clumbsy name.
    
    Once all drivers and users are converted to driver model we can remove the
    old code.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  21. tpm: tpm_tis_i2c: Tidy up delays

    Simon Glass authored
    Use a _US suffix for microseconds and a _MS suffic for milliseconds. Move
    all timeouts and delays into one place. Use mdelay() instead of udelay()
    where appropriate.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  22. tpm: tpm_tis_i2c: Use a consistent tpm_tis_i2c_ prefix

    Simon Glass authored
    Use the same prefix on each function for consistency.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  23. tpm: tpm_tis_i2c: Simplify init code

    Simon Glass authored
    Move all the init and uninit code into one place.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  24. tpm: tpm_tis_i2c: Move definitions into the header file

    Simon Glass authored
    Some definitions are in the C file and some are in the header file. Move
    everything into the header file for consistency and to reduce clutter.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  25. tpm: tpm_tis_i2c: Merge struct tpm into tpm_chip

    Simon Glass authored
    There are too many structures storing the same sort of information. Move the
    fields from struct tpm into struct tpm_chip and remove the former struct.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  26. tpm: tpm_tis_i2c: Merge struct tpm_dev into tpm_chip

    Simon Glass authored
    There are too many structures storing the same sort of information. Move the
    fields from struct tpm_dev into struct tpm_chip and remove the former
    struct.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  27. tpm: tpm_tis_i2c: Drop struct tpm_vendor_specific

    Simon Glass authored
    This function is misnamed since it only applies to a single driver. Merge
    its fields into its parent.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  28. tpm: tpm_tis_i2c: Drop unnecessary methods

    Simon Glass authored
    The function methods in struct tpm_vendor_specific just call local functions.
    Change the code to use a direct call.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  29. tpm: Move the I2C TPM code into one file

    Simon Glass authored
    The current Infineon I2C TPM driver is written in two parts, intended to
    support use with other I2C devices. However we don't have any users and the
    Atmel I2C TPM device does not use this file.
    
    We should simplify this and remove the unused abstration. As a first step,
    move the code into one file.
    
    Also the name tpm_private.h suggests that the header file is generic to all
    TPMs but it is not. Rename it indicate that it relates only to this driver
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  30. tpm: Convert drivers to use SPDX

    Simon Glass authored
    Add an SPDX header to two drivers that don't have it.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  31. tpm: Convert board config TPM options to Kconfig

    Simon Glass authored
    Convert all TPM options to Kconfig and tidy up.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  32. tpm: Add Kconfig options for TPMs

    Simon Glass authored
    Add new Kconfig options for TPMs in preparation for moving boards to use
    Kconfig for TPM configuration.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  33. tpm: Drop two unused options

    Simon Glass authored
    The address of the I2C TPM is now defined in the device tree so there is no
    need for the CONFIG options.
    
    Remove them from the README and board config to avoid confusion.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
  34. tpm: Remove old pre-driver-model I2C code

    Simon Glass authored
    This is not used anymore by any board so drop it.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
    Reviewed-by: Heiko Schocher <hs@denx.de>
Something went wrong with that request. Please try again.