01 Oct, 2017

1 commit

  • The ADC can support some channels signal-ended some bits Successive Approximation
    Register (SAR) A/D Converter, like 6-channel and 10-bit. It converts the analog
    input signal into some bits binary digital codes.

    Signed-off-by: David Wu
    Acked-by: Philipp Tomsich
    Reviewed-by: Philipp Tomsich

    David Wu
     

30 Sep, 2017

22 commits

  • Add tracing printings to Linux/Android boot commands, so that we can see
    what's going on. Helps to trace possible bugs on early stages and
    improves the output for user (which is especially useful, because we
    have a bunch of boot commands executing one by one).

    Signed-off-by: Sam Protsenko
    Reviewed-by: Tom Rini

    Sam Protsenko
     
  • Extract commands for booting Linux from eMMC to separate command. It
    seems more logical that way, and allows us to run the whole command set
    from U-Boot shell with only one command.

    Signed-off-by: Sam Protsenko
    Reviewed-by: Tom Rini

    Sam Protsenko
     
  • Right now on OMAP5-based boards we have only one partition defined for
    Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that
    is defined in include/environment/ti/boot.h). To fix Linux boot we may
    either:

    1. Change bootpart to be 1:1
    2. Or add preceding partition, so that rootfs is actually 1:2

    Second choice seems more reasonable, as DFU is already using similar
    partition table and can rely on bootpart to be 1:2.

    This patch adds "bootloader" partition. So now eMMC layout for Linux
    boot looks like this:

    offset content size partition
    (KiB) (KiB)
    Reviewed-by: Tom Rini

    =======================================================================

    0 +--------------------------------+
    | MBR/GPT header | 128 -
    128 +--------------------------------+
    | MLO | 256 -
    384 +--------------------------------+
    | u-boot.img | 1792 bootloader
    2176 +--------------------------------+
    | //////////// hole //////////// | 256 -
    2432 +--------------------------------+
    | U-Boot environment | 128 -
    2560 +--------------------------------+
    | U-Boot environment (redundant) | 128 -
    2688 +--------------------------------+
    | rootfs | remaining rootfs
    end +--------------------------------+

    =======================================================================

    Guard hole appears because U-Boot environment offset was calculated for
    Android partition table, which has two additional partitions in place of
    that hole ("environment" and "misc" partitions).

    This patch also changes rootfs offset from 2 MiB further to 2688 KiB,
    so that there won't be any collisions with U-Boot environment when we
    flash rootfs.

    Signed-off-by: Sam Protsenko

    Sam Protsenko
     
  • Right now on OMAP5-based boards we have only one partition defined for
    Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that
    is defined in include/environment/ti/boot.h). To fix Linux boot we may
    either:

    1. Change bootpart to be 1:1
    2. Or add preceding partition, so that rootfs is actually 1:2

    Second choice seems more reasonable, as DFU is already using similar
    partition table and can rely on bootpart to be 1:2.

    This patch adds "bootloader" partition. So now eMMC layout for Linux
    boot looks like this:

    offset content size partition
    (KiB) (KiB)
    Reviewed-by: Tom Rini

    =======================================================================

    0 +--------------------------------+
    | MBR/GPT header | 128 -
    128 +--------------------------------+
    | MLO | 256 -
    384 +--------------------------------+
    | u-boot.img | 1792 bootloader
    2176 +--------------------------------+
    | //////////// hole //////////// | 256 -
    2432 +--------------------------------+
    | U-Boot environment | 128 -
    2560 +--------------------------------+
    | U-Boot environment (redundant) | 128 -
    2688 +--------------------------------+
    | rootfs | remaining rootfs
    end +--------------------------------+

    =======================================================================

    Guard hole appears because U-Boot environment offset was calculated for
    Android partition table, which has two additional partitions in place of
    that hole ("environment" and "misc" partitions).

    This patch also changes rootfs offset from 2 MiB further to 2688 KiB,
    so that there won't be any collisions with U-Boot environment when we
    flash rootfs.

    Signed-off-by: Sam Protsenko

    Sam Protsenko
     
  • This re-syncs omap3 DTS file with current file from
    Linux v4.14-rc1 to ensure a consistent configuration. Upstream
    Linux removed the redundant Interrupt-parent property from usbhsohci,
    usbhsehci, ssi_port1 and ssi_port2 sub nodes.

    Signed-off-by: Karthik Tummala

    Karthik Tummala
     
  • Add missing .priv_auto_alloc_size() callback.
    Previously private struct stm32_clk was not allocate
    which leads to unpredictable behaviour

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

    Patrice Chotard
     
  • With DM enabled, gpio numbering is assigned based on the
    probed order of gpios, irrespective of the gpio base. So enable
    all necessary gpios in SPL.

    Fixes: edf25d94d55c (“ARM: dts: OMAP5+: Enable gpio in SPL”)
    Reported-by: Gou, Hongmei
    Tested-by: Aparna Balasubramanian
    Signed-off-by: Suman Anna
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • Now the u-boot spi image is greater than 0x80000, increase the same
    in env during spi erase.

    Reported-by: Yan Liu
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • On all other platforms the command 'findfdt' populates the variable
    'fdtfile', but on K2G we only populate 'name_fdt'. The generic boot
    and automation scripts fail when 'findfdt' is not populated, fix
    this for K2G.

    Signed-off-by: Andrew F. Davis

    Andrew F. Davis
     
  • On secure devices the initial secure software may install a firewall at
    the end of DRAM, define protected RAM to avoid space.

    Signed-off-by: Andrew F. Davis

    Andrew F. Davis
     
  • This patch adds support for authentication of both plain
    text and encrypted binaries. A new SECDEV package is needed
    to enable encryption of binaries by default for AM3x.

    The ROM authentication API detects encrypted images at
    runtime and automatically decrypts the image if the
    signature verification passes.

    Addition of encryption on AM3x results in a change in the
    image format. On AM4x, AM5x and, on AM3x devices signing
    clear test images, the signature is appended to the end of the
    binary.

    On AM3x, when the SECDEV package is used to create signed
    and encrypted images, the signature is added as a header
    to the start of the binary. So the binary size calculation
    has been updated to reflect this change.

    The signing tools and encrypted image format for AM3x
    cannot be changed to behave like AM4x and AM5x to
    maintain backward compatibility with older Sitara
    M-Shield releases.

    Signed-off-by: Madan Srinivas
    Signed-off-by: Andrew F. Davis

    Madan Srinivas
     
  • Add a new defconfig file for the AM335x High Security EVM. This config
    is specific for the case of UART booting

    Signed-off-by: Andrew F. Davis

    Andrew F. Davis
     
  • With the device tree ported from Linux 4.13, this enables
    Driver Model and Device Tree support for the am3517-evm

    Signed-off-by: Adam Ford
    Tested-by: Derald D. Woods

    Adam Ford
     
  • To keep the DTS and DTSI files clean and in sync with Linux, new
    u-boot.dtsi files are added.

    There are some spacing issues in the patch, but they appear to be
    present in the Linux source files. I'll try to get to fixing them there,
    and do a future re-sync at a later date.

    Signed-off-by: Adam Ford
    Tested-by: Derald D. Woods

    Adam Ford
     
  • Corresponds to 375506d (File writing nit) from upstream
    (https://github.com/ulfalizer/Kconfiglib).

    Adds proper 'imply' support and fixes a few minor issues, one of which
    previously triggered the following weird warning:

    configs/taurus_defconfig: /tmp/tmpisI45S:6: warning: assignment to SPL_LDSCRIPT changes mode of containing choice from "arch/$(ARCH)/cpu/u-boot-spl.lds" to "y"

    The change in 8639f69 (genconfig.py: Print defconfig next to warnings)
    was reapplied.

    tools/moveconfig.py previously depended on a hack that merged 'select's
    with 'imply's. It was modified to look at the union of
    Symbol.get_selected_symbols() and Symbol.get_implied_symbols(), which
    should give the same behavior.

    tools/genboardscfg.py was verified to produce identical board.cfg's
    before and after the change.

    Signed-off-by: Ulf Magnusson

    Ulf Magnusson
     
  • Checkpatch can use two dictionaries for finding typos:
    * scripts/spelling.txt
    * /usr/share/codespell/dictionary.txt
    which comes with package codespell and is selected by parameter
    --codespell

    If the file scripts/spelling.txt is missing, a warning is shown.

    Add the spelling.txt file from the Linux kernel 4.13 source.

    We can later add our own typo corrections.

    Signed-off-by: Heinrich Schuchardt
    Acked-by: Dan Murphy

    Heinrich Schuchardt
     
  • The current code wraps a pre tag inside an a tag. For some reason, this
    causes at least Firefox to attempt to drag the pre section content when
    using a mouse drag to select text. Re-order the tags so that the text can
    be selected using the mouse, at least if you start the drag outside the
    text (after the end of the line, for example).

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • Some tests use external tools (executables) during their operation. Add
    a test.py mark to indicate this. This allows those tests to be skipped if
    the required tool is not present.

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • When skipping tests, explicitly mention the board type or config option
    that caused the skip. This will help people understand/fix any issues.

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • Some tests rely on external tools. Mention these in the test/py README.

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • On ARCH_OMAP2PLUS platforms we know what the DDR layout is going to be,
    and that it is safe to use SPL_STACK_R and provide a default value for
    it. select this and re-sync the defconfigs.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • With DM now enabled with the device tree pulled from Linux, we can
    enable DM_I2C in U-Boot.

    Reviewed-by: Jagan Teki
    Signed-off-by: Adam Ford
    [trini: Add DM_I2C_COMPAT to da850_am18xxevm to fix warning]
    Signed-off-by: Tom Rini

    Adam Ford
     

29 Sep, 2017

9 commits


28 Sep, 2017

3 commits

  • Tom Rini
     
  • This patch adds SD/MMC support for STM32H7 SoCs.

    Here is an extraction of SDMMC main features, embedded in
    STM32H7 SoCs.
    The SD/MMC block include the following:
    _ Full compliance with MultiMediaCard System Specification
    Version 4.51. Card support for three different databus modes:
    1-bit (default), 4-bit and 8-bit.
    _ Full compatibility with previous versions of MultiMediaCards
    (backward compatibility).
    _ Full compliance with SD memory card specifications version 4.1.
    (SDR104 SDMMC_CK speed limited to maximum allowed IO speed,
    SPI mode and UHS-II mode not supported).
    _ Full compliance with SDIO card specification version 4.0.
    Card support for two different databus modes: 1-bit (default)
    and 4-bit. (SDR104 SDMMC_CK speed limited to maximum allowed IO
    speed, SPI mode and UHS-II mode not supported).
    _ Data transfer up to 208 Mbyte/s for the 8 bit mode.
    (depending maximum allowed IO speed).
    _ Data and command output enable signals to control external
    bidirectional drivers.

    The current version of the SDMMC supports only one SD/SDIO/MMC card
    at any one time and a stack of MMC Version 4.51 or previous.

    Signed-off-by: Christophe Kerello
    Signed-off-by: Patrice Chotard
    Reviewed-by: Simon Glass

    Patrice Chotard
     
  • It is caused from asm/io.h declare different input type.

    Signed-off-by: rick

    rick
     

27 Sep, 2017

5 commits