Permalink
Commits on Nov 20, 2018
  1. sunxi: H6: enable 32-bit SPL support

    Andre-ARM committed Oct 16, 2018
    For using the SPL in FEL mode (booting via USB-OTG) we need to run it in
    AArch32 mode, as switching to AArch64 (and back) changes to much of the
    execution state to easily return into the BootROM.
    Split the existing A64 Kconfig stanza into a common one and two separate
    symbols for 32 and 64 bit.
    Change the existing defconfig to use the new MACH_SUN50I_H6_64 symbol.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  2. sunxi: A64: add generic A64 32-bit SPL defconfigs

    Andre-ARM committed Jan 25, 2018
    To be able to use FEL booting (Allwinner's USB-OTG protocol), we need a
    32 bit SPL, to easily return into the 32 bit BootROM.
    Add two generic defconfigs for that purpose, one for boards with DDR3
    DRAM, the other for those with LPDDR3 DRAM chips.
    The resulting spl/sunxi-spl.bin can be used with the sunxi-fel tool to
    initialise the DRAM via FEL. This allows to load the normal versions for
    the rest of the firmware components (ATF, 64 bit U-Boot proper).
    This SPL will determine the architecture of the loaded binaries and will
    switch the bitness if necessary.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  3. sunxi: A64: prepare for 32-bit SPL support

    Andre-ARM committed Jan 25, 2018
    For using the SPL in FEL mode (booting via USB-OTG) we need to run it in
    AArch32 mode, as switching to AArch64 (and back) changes to much of the
    execution state to easily return into the BootROM.
    Split the existing A64 Kconfig stanza into a common one and two separate
    symbols for 32 and 64 bit.
    Change the existing defconfig to use the new MACH_SUN50I_64 symbol.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  4. sunxi: H5: add generic H5 32-bit SPL defconfig

    Andre-ARM committed Jan 25, 2018
    To be able to use FEL booting (Allwinner's USB-OTG protocol), we need a
    32 bit SPL, to easily return into the 32 bit BootROM.
    Add a generic defconfig for that purpose, that should work on all boards.
    The resulting spl/sunxi-spl.bin can be used with the sunxi-fel tool to
    initialise the DRAM via FEL. This allows to load the normal versions for
    the rest of the firmware components (ATF, 64 bit U-Boot proper).
    This SPL will determine the architecture of the loaded binaries and will
    switch the bitness if necessary.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  5. sunxi: H5: prepare for 32-bit SPL support

    Andre-ARM committed Jan 25, 2018
    For using the SPL in FEL mode (booting via USB-OTG) we need to run it in
    AArch32 mode, as switching to AArch64 (and back) changes to much of the
    execution state to easily return into the BootROM.
    Split the existing H5 Kconfig stanza into a common one and two separate
    symbols for 32 and 64 bit.
    Change the existing defconfig to use the new MACH_SUN50I_H5_64 symbol.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  6. sunxi: introduce RMR switch to enter payloads in 64-bit mode

    Andre-ARM committed Sep 11, 2016
    The ARMv8 capable Allwinner A64 SoC comes out of reset in AArch32 mode.
    To run AArch64 code, we have to trigger a warm reset via the RMR register,
    which proceeds with code execution at the address stored in the RVBAR
    register.
    If the bootable payload in the FIT image is using a different
    architecture than the SPL has been compiled for, enter it via this said
    RMR switch mechanism, by writing the entry point address into the MMIO
    mapped, writable version of the RVBAR register.
    Then the warm reset is triggered via a system register write.
    If the payload architecture is the same as the SPL, we use the normal
    branch as usual.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  7. SPL: read and store arch property from U-Boot image

    Andre-ARM committed Sep 11, 2016
    Read the specified "arch" value from a legacy or FIT U-Boot image and
    store it in our SPL data structure.
    This allows loaders to take the target architecture in account for
    custom loading procedures.
    Having the complete string -> arch mapping for FIT based images in the
    SPL would be too big, so we leave it up to architectures (or boards) to
    overwrite the weak function that does the actual translation, possibly
    covering only the required subset there.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  8. Makefile: use "arm64" architecture for U-Boot image files

    Andre-ARM committed Sep 20, 2016
    At the moment we use the arch/arm directory for arm64 boards as well,
    so the Makefile will pick up the "arm" name for the architecture to use
    for tagging binaries in U-Boot image files.
    Differentiate between the two by looking at the CPU variable being defined
    to "armv8", and use the arm64 architecture name on creating the image
    file if that matches.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  9. sunxi: A64: Add Pine64-LTS board

    Andre-ARM committed Oct 24, 2018
    The Pine64 LTS is an updated version of the Pine64, copying the
    technical updates from the SoPine platform: LPDDR3 DRAM, eMMC socket and
    soldered SPI flash chip, even the broken SD card detect pin has been copied.
    Consequently this leads to the .dts (copied from the kernel) just including
    the SoPine baseboard .dts, and the defconfig being almost identical.
    Nevertheless the boards deserves a separate config.
    
    Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Commits on Nov 14, 2018
  1. Prepare v2018.11

    trini committed Nov 14, 2018
    Signed-off-by: Tom Rini <trini@konsulko.com>
  2. gpio: pca953x_gpio: fix DT GPIO flags translation

    Anatolij Gustschin authored and trini committed Oct 18, 2018
    Commit fb01e07 accidentally broke initialisation of GPIO
    descriptor flags from device tree: currently the active low
    flag from gpio-specifier is always ignored. Fix it.
    
    Signed-off-by: Anatolij Gustschin <agust@denx.de>
    Cc: Mario Six <mario.six@gdsys.cc>
  3. configs: Migrate and re-enabled CONFIG_CMD_MTDPARTS

    trini committed Nov 14, 2018
    Now that CMD_UBI does not select CMD_MTDPARTS we need to make platforms
    that had been enabling it turn it on by hand.  This exposed that we had
    not yet migrated CMD_MTDPARTS fully, so do so now.
    
    Fixes: 86dfa55 ("cmd: ubi: Remove useless call to mtdparts_init()")
    Signed-off-by: Tom Rini <trini@konsulko.com>
  4. configs: Resync with savedefconfig

    trini committed Nov 14, 2018
    Rsync all defconfig files using moveconfig.py
    
    Signed-off-by: Tom Rini <trini@konsulko.com>
Commits on Nov 13, 2018
  1. mtd: Drop duplicate MTD_PARTITIONS Kconfig option

    Boris Brezillon Jagan Teki
    Boris Brezillon authored and Jagan Teki committed Nov 13, 2018
    Commit 9c5b009 ("Convert CONFIG_MTD_PARTITIONS et al to Kconfig")
    introduced a publicly visible Kconfig entry for the
    CONFIG_MTD_PARTITIONS option, while the rework on MTD partitioning
    was in progress, and we somehow did not notice that the same Kconfig
    entry was added by commit 4048a5c ("mtd: declare MTD_PARTITIONS
    symbol in Kconfig"), but this time as an invisible entry (this can
    only be selected by other options).
    
    Keep the non-visible version of this symbol, since MTD_PARTITIONS is
    not something the user should be able to enable/disable directly.
    
    Fixes: 4048a5c ("mtd: declare MTD_PARTITIONS symbol in Kconfig")
    Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Reviewed-by: Jagan Teki <jagan@openedev.com>
  2. cmd: ubi: Remove useless call to mtdparts_init()

    Boris Brezillon Jagan Teki
    Boris Brezillon authored and Jagan Teki committed Nov 13, 2018
    Commit c58fb2c ("cmd: ubi: clean the partition handling")
    introduced a call to mtd_probe_devices() in the ubi_attach() path
    and this function takes care of parsing mtdparts/mtdids and
    creating/registering the associated mtd partitions.
    
    The mtdparts_init() call in the ubi_detach() path is not only
    unnecessary but can sometimes print error messages even when things
    work properly (that's the case with SPI NAND devices that have not
    been probed with 'mtd list'), which is misleading.
    
    Remove this call to mtdparts_init() and drop the dependency on
    CMD_MTDPARTS.
    
    Fixes: c58fb2c ("cmd: ubi: clean the partition handling")
    Reported-by: Stefan Roese <sr@denx.de>
    Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
    Tested-by: Stefan Roese <sr@denx.de>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Reviewed-by: Jagan Teki <jagan@openedev.com>
  3. mtd: Make {MTDIDS, MTDPARTS}_DEFAULT visible when MTD_PARTITIONS is s…

    Boris Brezillon Jagan Teki
    Boris Brezillon authored and Jagan Teki committed Nov 13, 2018
    …elected
    
    gwventana configs are relying on CMD_UBI to select CMD_MTDPARTS,
    which is then making {MTDIDS,MTDPARTS}_DEFAULT options available.
    
    We are about to remove the 'select CMD_MTDPARTS' statement in the
    CMD_UBI entry, but if we do that without first making sure
    {MTDIDS,MTDPARTS}_DEFAULT are visible, we end up with a build
    failure when building gwventana configs.
    
    Address that by adding a depends on MTD_PARTITIONS to
    {MTDIDS,MTDPARTS}_DEFAULT which does the trick since CMD_UBI selects
    MTD_UBI which in turn selects MTD_PARTITIONS.
    
    We also get rid of the depends on CMD_MTD, since CMD_MTD also selects
    MTD_PARTITIONS.
    
    Reported-by: Jagan Teki <jagan@amarulasolutions.com>
    Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Reviewed-by: Jagan Teki <jagan@openedev.com>
  4. dfu: nand: Add missing dependency on CMD_MTDPARTS

    Boris Brezillon Jagan Teki
    Boris Brezillon authored and Jagan Teki committed Nov 13, 2018
    dfu_fill_entity_nand() uses find_dev_and_part() and mtdparts_init()
    which are provided by cmd/mtdparts.c.
    
    Add the dependency to avoid build failures when CMD_MTDPARTS is not
    selected.
    
    Reported-by: Jagan Teki <jagan@amarulasolutions.com>
    Fixes: 6828e60 ("dfu: Migrate to Kconfig")
    Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Reviewed-by: Jagan Teki <jagan@openedev.com>
  5. mtd: Use default mtdparts/mtids when not defined in the environment

    Boris Brezillon Jagan Teki
    Boris Brezillon authored and Jagan Teki committed Nov 13, 2018
    U-boot provides a mean to define default values for mtdids and mtdparts
    when they're not defined in the environment. Patch mtd_probe_devices()
    to use those default values when env_get("mtdparts") or
    env_get("mtdids") return NULL.
    
    This implementation is based on the logic found in cmd/mtdparts.c.
    
    Fixes: 5db66b3 ("cmd: mtd: add 'mtd' command")
    Reported-by: Stefan Roese <sr@denx.de>
    Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
    Tested-by: Stefan Roese <sr@denx.de>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Reviewed-by: Jagan Teki <jagan@openedev.com>
Commits on Nov 12, 2018
  1. Merge tag 'u-boot-imx-20181112' of git://git.denx.de/u-boot-imx

    trini committed Nov 12, 2018
    Fix build vf boards + fix gpr_init()
  2. imx: mkimage: add size check to the u-boot.imx make target

    ziswiler authored and sbabic committed Nov 9, 2018
    The make macro to check if the binary exceeds the board size limit is
    taken straight from the root Makefile.
    
    Without this and e.g. enabled EFI Vybrid fails booting as the regular
    size limit check does not take the final u-boot.imx binary size into
    account which is bigger due to alignment as well as IMX header stuff.
    
    Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
    Reviewed-by: Fabio Estevam <festevam@gmail.com>
  3. board: toradex: colibri_vf: drop SPI support

    ziswiler authored and sbabic committed Nov 9, 2018
    Drop SPI support saving precious 4 Kb on boards with tough size
    restrictions.
    
    Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
    Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
  4. board: toradex: colibri_vf: unset CONFIG_CMDLINE_EDITING

    ziswiler authored and sbabic committed Nov 9, 2018
    Unset CONFIG_CMDLINE_EDITING saving precious 4 Kb on boards with tough
    size restrictions.
    
    Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
  5. board: toradex: colibri_vf: efi_loader: unset CONFIG_EFI_UNICODE_CAPI…

    ziswiler authored and sbabic committed Nov 9, 2018
    …TALIZATION
    
    Unset CONFIG_EFI_UNICODE_CAPITALIZATION on boards with tough size
    restrictions.
    
    This is analogous to commit a90bf07
    ("efi_loader: unset CONFIG_EFI_UNICODE_CAPITALIZATION").
    
    Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
    Reviewed-by: Alexander Graf <agraf@suse.de>
Commits on Nov 10, 2018
  1. mmc: dw_mmc: Add RCRC handling

    Marek Vasut authored and trini committed Nov 6, 2018
    This patch adds check for command response CRC failure. The driver
    is currently ignoring CRC check failure on command resposes which
    have CRC atteched to it, which can be potentially dangerous. Even
    more grueling problem happens when the command response is followed
    by data transfer though, as in that case, the dwmci_data_transfer()
    function will spin until it reaches the 240s timeout.
    
    Signed-off-by: Marek Vasut <marex@denx.de>
    Cc: Heiko Stuebner <heiko@sntech.de>
    Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Commits on Nov 9, 2018
  1. common: build ymodem only on need

    niej authored and trini committed Feb 13, 2018
    Build ymodem only on need to shrink spl image size.
    
    Signed-off-by: Jun Nie <jun.nie@linaro.org>
  2. common: Compile error with CONFIG_MULTI_DTB_FIT and not SPL

    lpovlsen authored and trini committed Oct 23, 2018
    common/common_fit.c is including <spl.h>, but not actually using it. The
    inclusion will cuase compile error on platforms using CONFIG_OF_SEPARATE
    and not SPL.
    
    Signed-off-by: Lars Povlsen <lars.povlsen@microsemi.com>
    Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
  3. dm: Fix typo - missed semicolon

    andy-shev authored and trini committed Nov 5, 2018
    The commit
    
      484fdf5 ("dm: Add support for all targets which requires MANUAL_RELOC")
    
    introduces subtle typo, i.e. missed semicolon.
    
    Fixes: 484fdf5 ("dm: Add support for all targets which requires MANUAL_RELOC")
    Cc: Michal Simek <michal.simek@xilinx.com>
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Michal Simek <michal.simek@xilinx.com>
  4. spl: fix debug prints for tiny printf

    Simon Goldschmidt authored and trini committed Nov 2, 2018
    Tiny printf does not support %.*s and %lX. Since tiny printf should
    be very common in SPL, replace these by %32s (for printing image
    name) and %lx.
    
    Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
    Reviewed-by: Simon Glass <sjg@chromium.org>
  5. MAINTAINERS: Update stm32mp entry

    patrickdelaunay authored and trini committed Nov 8, 2018
    Add mailing list for stm32mp architecture and board.
    
    Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
  6. fit: Add missing CR in debug output in fit_find_config_node()

    stroese authored and trini committed Nov 8, 2018
    Testing has shown that a line-break is missing in one debug line in
    fit_find_config_node().
    
    Signed-off-by: Stefan Roese <sr@denx.de>
Commits on Nov 8, 2018
  1. imx: imx6: perform gpr_init only on suitable cpu types

    cniedermaier authored and sbabic committed Oct 19, 2018
    If the function gpr_init is used in a common MX6 spl
    implementation we have to ensure that it is only called for
    suitable cpu types, otherwise it breaks hardware parts like
    enet1, can1, can2, etc.
    
    Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.de>
Commits on Nov 7, 2018
  1. imx8qxp_mek: Disable CONFIG_DISPLAY_CPUINFO

    lbmeng authored and trini committed Nov 7, 2018
    Due to revert of commit c043440, this board does not build
    any more. Disable CONFIG_DISPLAY_CPUINFO for v2018.11 release.
    
    This commit should be reverted after v2018.11 release.
    
    Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
    Acked-by: Peng Fan <peng.fan@nxp.com>
    Reviewed-by: Simon Glass <sjg@chromium.org>
  2. Revert "board_f: Use static print_cpuinfo if CONFIG_CPU is active"

    lbmeng authored and trini committed Nov 7, 2018
    This reverts commit c043440.
    
    It turns out commit c043440 broke some boards which have DM CPU
    driver with CONFIG_DISPLAY_CPUINFO option on. These boards just fail
    to boot when print_cpuinfo() is called during boot.
    
    Fixes are already sent to ML and in u-boot-dm/next, however since
    we are getting close to the v2018.11 release, it's safer we revert
    the original commit.
    
    This commit should be reverted after v2018.11 release.
    
    Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
    Acked-by: Peng Fan <peng.fan@nxp.com>
    Reviewed-by: Simon Glass <sjg@chromium.org>