1. 12 7月, 2019 12 次提交
    • T
      Merge tag 'dm-pull-9jul19-take2' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm · a9758ece
      Tom Rini 提交于
      - Sandbox improvements including .dts refactor
      - Minor tracing and PCI improvements
      - Various other minor fixes
      - Conversion of patman, dtoc and binman to support Python 3
      a9758ece
    • T
      Merge https://gitlab.denx.de/u-boot/custodians/u-boot-marvell · 68deea23
      Tom Rini 提交于
      - SPL SATA enhancements to allow booting from RAW SATA device
        needed for Clearfog (Baruch)
      - Enable SATA booting on Clearfog (Baruch)
      - Misc changes to Turris Omnia (Marek)
      - Enable CMD_BOOTZ and increase SYS_BOOTM_LEN on crs305-1g-4s
        (Luka)
      - Enable FIT support for db-xc3-24g4xg (Chris)
      - Enable DM_SPI on Keymile Kirkwood board with necessary changes
        for this (Pascal)
      - Set 38x and 39x AVS on lower frequency (Baruch)
      68deea23
    • T
      Merge tag 'uniphier-v2019.10' of https://gitlab.denx.de/u-boot/custodians/u-boot-uniphier · 79b8d3c2
      Tom Rini 提交于
      UniPhier SoC updates for v2019.10
      
      - import DT updates from Linux
      
      - add UniPhier SPI controller driver
      
      - make U-Boot image for 64bit SoCs position independent
      
      - tidy up various init code for next generation SoCs
      
      - misc cleanups
      79b8d3c2
    • T
      Merge branch '2019-07-11-master-imports' · 5acce685
      Tom Rini 提交于
      - spear platform improvements
      - Android BCB support
      - Cadence PCIe endpoint driver
      5acce685
    • M
      gpio: pca953x: Add TI TCA9539 compatible string · 4a09831a
      Marek Vasut 提交于
      Add TI TCA9539 compatible string for yet another I2C GPIO expander.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Mario Six <mario.six@gdsys.cc>
      Cc: Peng Fan <van.freenix@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: NPeng Fan <peng.fan@nxp.com>
      4a09831a
    • M
      arm: mach-omap2: am33xx: Init pinmux before clock · b2a2bf41
      Marek Vasut 提交于
      The board_early_init_f() inits clock before initing pinmux. However,
      the clock configuration code might need to adjust PMIC settings of a
      PMIC on I2C bus (e.g. board/ti/am335x/board.c does that). If the I2C
      bus pin muxing is not configured before attempting to communicate
      with the PMIC, the communication will silently fail and the prcm_init()
      may configure fast enough CPU clock that the default voltage provided
      by the PMIC would be insufficient and the platform would become
      unstable.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
      Cc: Tom Rini <trini@konsulko.com>
      b2a2bf41
    • E
      doc: relocate/rename Android README and add BCB overview · 9bdf0e8f
      Eugeniu Rosca 提交于
      Rename:
       - doc/{README.avb2 => android/avb2.txt}
       - doc/{README.android-fastboot => android/fastboot.txt}
      
      Add a new file documenting the 'bcb' command:
       - doc/android/bcb.txt
      
      The new directory structure has been reviewed by Simon in
      https://patchwork.ozlabs.org/patch/1101107/#2176031 .
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      9bdf0e8f
    • E
      cmd: Add 'bcb' command to read/modify/write BCB fields · db7b7a05
      Eugeniu Rosca 提交于
      'Bootloader Control Block' (BCB) is a well established term/acronym in
      the Android namespace which refers to a location in a dedicated raw
      (i.e. FS-unaware) flash (e.g. eMMC) partition, usually called "misc",
      which is used as media for exchanging messages between Android userspace
      (particularly recovery [1]) and an Android-capable bootloader.
      
      On higher level, this allows implementing a subset of Android Bootloader
      Requirements [2], amongst which is the Android-specific bootloader
      flow [3]. Regardless how the latter is implemented in U-Boot ([3] being
      the most memorable example), reading/writing/dumping the BCB fields in
      the development process from inside the U-Boot is a convenient feature.
      Hence, make it available to the users.
      
      Some usage examples of the new command recorded on R-Car H3ULCB-KF
      ('>>>' is an overlay on top of the original console output):
      
      => bcb
      bcb - Load/set/clear/test/dump/store Android BCB fields
      
      Usage:
      bcb load  <dev> <part>       - load  BCB from mmc <dev>:<part>
      bcb set   <field> <val>      - set   BCB <field> to <val>
      bcb clear [<field>]          - clear BCB <field> or all fields
      bcb test  <field> <op> <val> - test  BCB <field> against <val>
      bcb dump  <field>            - dump  BCB <field>
      bcb store                    - store BCB back to mmc
      
      Legend:
      <dev>   - MMC device index containing the BCB partition
      <part>  - MMC partition index or name containing the BCB
      <field> - one of {command,status,recovery,stage,reserved}
      <op>    - the binary operator used in 'bcb test':
                '=' returns true if <val> matches the string stored in <field>
                '~' returns true if <val> matches a subset of <field>'s string
      <val>   - string/text provided as input to bcb {set,test}
                NOTE: any ':' character in <val> will be replaced by line feed
                during 'bcb set' and used as separator by upper layers
      
      => bcb dump command
      Error: Please, load BCB first!
       >>> Users must specify mmc device and partition before any other call
      
      => bcb load 1 misc
      => bcb load 1 1
       >>> The two calls are equivalent (assuming "misc" has index 1)
      
      => bcb dump command
      00000000: 62 6f 6f 74 6f 6e 63 65 2d 73 68 65 6c 6c 00 72    bootonce-shell.r
      00000010: 79 00 72 00 00 00 00 00 00 00 00 00 00 00 00 00    y.r.............
       >>> The output is in binary/string format for convenience
       >>> The output size matches the size of inspected BCB field
       >>> (32 bytes in case of 'command')
      
      => bcb test command = bootonce-shell && echo true
      true
      => bcb test command = bootonce-shell- && echo true
      => bcb test command = bootonce-shel && echo true
       >>> The '=' operator returns 'true' on perfect match
      
      => bcb test command ~ bootonce-shel && echo true
      true
      => bcb test command ~ bootonce-shell && echo true
      true
       >>> The '~' operator returns 'true' on substring match
      
      => bcb set command recovery
      => bcb dump command
      00000000: 72 65 63 6f 76 65 72 79 00 73 68 65 6c 6c 00 72    recovery.shell.r
      00000010: 79 00 72 00 00 00 00 00 00 00 00 00 00 00 00 00    y.r.............
       >>> The new value is NULL-terminated and stored in the BCB field
      
      => bcb set recovery "msg1:msg2:msg3"
      => bcb dump recovery
      00000040: 6d 73 67 31 0a 6d 73 67 32 0a 6d 73 67 33 00 00    msg1.msg2.msg3..
      00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
      00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
       >>> --- snip ---
       >>> Every ':' is replaced by line-feed '\n' (0xA). The latter is used
       >>> as separator between individual commands by Android userspace
      
      => bcb store
       >>> Flush/store the BCB structure to MMC
      
      [1] https://android.googlesource.com/platform/bootable/recovery
      [2] https://source.android.com/devices/bootloader
      [3] https://patchwork.ozlabs.org/patch/746835/
          ("[U-Boot,5/6] Initial support for the Android Bootloader flow")
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      db7b7a05
    • E
      include: android_bootloader_message.h: Minimize the diff to AOSP · 0381b713
      Eugeniu Rosca 提交于
      Perform the following updates:
       - Relocate the commit id from the file to the description of U-Boot
         commit. The AOSP commit is c784ce50e8c10eaf70e1f97e24e8324aef45faf5.
         This is done to avoid stale references in the file itself. The
         reasoning is in https://patchwork.ozlabs.org/patch/1098056/#2170209.
       - Minimize the diff to AOSP, to decrease the effort of the next AOSP
         backports. The background can be found in:
         https://patchwork.ozlabs.org/patch/1080394/#2168454.
       - Guard the static_assert() calls by #ifndef __UBOOT__ ... #endif,
         to avoid compilation failures of files including the header.
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      0381b713
    • T
      SPL: Default to disabling legacy image support when using FIT · 11bd2fa1
      Tom Rini 提交于
      When we have a FIT image being used by SPL by default that means the
      most common case is that we'll never run into a legacy image.  Disable
      legacy image support by default in that case to reclaim space.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      11bd2fa1
    • T
      configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT · c76c93a3
      Tom Rini 提交于
      The name CONFIG_LEGACY_IMAGE_FORMAT reads slightly better along with
      allowing us to avoid a rather nasty Kbuild/Kconfig issue down the line
      with CONFIG_IS_ENABLED(IMAGE_FORMAT_LEGACY).  In a few places outside of
      cmd/ switch to using CONFIG_IS_ENABLED() to test what is set.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      c76c93a3
    • R
      tpm: wait for valid status · 27eb177b
      Roman Kapl 提交于
      The TPM specification says that the EXPECT_DATA bit is not valid until
      the VALID bit is set. Wait for that bit to be set. Fixes problems with
      Ifineon SPI TPM.
      Signed-off-by: NRoman Kapl <rka@sysgo.com>
      27eb177b
  2. 11 7月, 2019 28 次提交