summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cmd: mem: fix range of bitflip testWIP/2020-09-18-assorted-bugfixesRalph Siemsen2020-09-182-5/+28
| | | | | | | | | | | | | | | | | | | | | | | The bitflip test uses two equal sized memory buffers. This is achieved by splitting the range of memory into two pieces. The address of the second buffer, as well as the length of each buffer, were not correctly calculated. This caused bitflip test to access beyond the end of range. This patch fixes the pointer arithmetic problem. A second problem arises because u-boot "mtest" command expects the ending address to be inclusive. When computing (end - start) this results in missing 1 byte of the requested length. The bitflip test expects a count rather than an "ending" address. Thus it fails to test the last word of the requested range. Fixed by using (end - start + 1). Added Kconfig option to optionally disable the bitflip test, since it does add significantly to the time taken for "mtest". Fixes: 8e434cb705d463bc8cff935160e4fb4c77cb99ab ("cmd: mem: Add bitflip memory test to alternate mtest") Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Reviewed-by: Stefan Roese <sr@denx.de>
* configs: bcmstb: Disable networking supportThomas Fitzsimmons2020-09-182-0/+2
| | | | | | | | Silence the "Driver Model for Ethernet drivers" migration warning for the bcm7445 and bcm7260 ports, neither of which supports networking yet. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* fs/squashfs: Fix Coverity Scan defectsJoao Marcos Costa2020-09-183-10/+18
| | | | | | Fix control flow issues and null pointer dereferences. Signed-off-by: Joao Marcos Costa <jmcosta944@gmail.com>
* Merge tag 'u-boot-imx-20200918' of ↵WIP/18Sep2020Tom Rini2020-09-1833-74/+67
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx ---------------------------------------------------------------- Fixes for 2020.10 ----------------- - Toradex boards - mx6qsabrelite: fix env offset - esdhc_imx: waiting for clock instead of sleep - dyn RAM calibration for entry point i.MX6 Travis: https://travis-ci.org/github/sbabic/u-boot-imx/builds/728274602
| * board: tbs2910: Disable CONFIG_ENV_VARS_UBOOT_CONFIG in defconfigSoeren Moch2020-09-181-1/+0
| | | | | | | | | | | | | | | | This is not required for sysboot (we defined fdtfile), let's save a few bytes in the binary image without these variables. Signed-off-by: Soeren Moch <smoch@web.de> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * apalis-imx8qm: rename all occurences to apalis-imx8Philippe Schenker2020-09-175-6/+6
| | | | | | | | | | | | | | | | The Toradex product is called apalis-imx8 consisting of SoM with i.MX8QM and i.MX8QP SoCs. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri-imx8qxp: rename all occurences to colibri-imx8xPhilippe Schenker2020-09-175-6/+6
| | | | | | | | | | | | | | | | The Toradex product is called colibri-imx8x consisting of SoM with i.MX8QXP and i.MX8DX SoCs. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * mmc: fsl_esdhc_imx: check the clock stable status after config the clock rate.Haibo Chen2020-09-171-1/+6
| | | | | | | | | | | | | | | | | | Currently, after config the clock rate, delay 10ms, this is quite a rough method. Check the clock stable status in the present status register is enough. Tested-by: Ji Luo <ji.luo@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
| * ARM: mx6: ddr: Add support for iMX6UL/ULL/SL/SDLMarek Vasut2020-09-171-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for iMX6UL/ULL/SL/SDL MMDC into the DDR calibration code. The difference between MX6DQ and MX6UL/ULL/SL is that the later SoCs have 2 SDQS registers, just like MX6SX, while the MX6DQ/MX6SDL has 8. Fixes: 4f4c128c65 ("ARM: mx6: ddr: Add support for iMX6SX") Signed-off-by: Marek Vasut <marex@denx.de> Cc: Eric Nelson <eric@nelint.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * mx6qsabrelite: increase the environment offsetDenis Pynkin2020-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The size of the binary created with the default U-boot config is much greater than the default offset for environment `0x60000`. In case if that binary is used for booting via MMC it is overlapped with the environment stored on MMC. This leads to U-Boot corruption while saving environment with `saveenv` command and non-bootable SabreLite board. The offset for environment `CONFIG_ENV_OFFSET=0x60000` was added in commit a09fea1 but did not count in the change to `0xC0000` if option `CONFIG_ENV_IS_IN_MMC` is used. The offset is also used for variant with environment saving onto SPI NOR flash (with enabled option `CONFIG_ENV_IS_IN_SPI_FLASH`). In that case the U-Boot binary flashed on SPI NOR is also corrupted after environment saving with the original 0x60000 offset. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * imx8mp: Remove parts MIMX8ML7 and MIMX8ML5 supportPeng Fan2020-09-174-18/+5
| | | | | | | | | | | | | | | | Latest datasheet revE has removed MIMX8ML7D/5D/7C/5C parts, so update u-boot to remove decoding and support for those parts. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * imx8m: clock_imx8mm: add missed returnPeng Fan2020-09-171-0/+1
| | | | | | | | | | | | Add missed return Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * imx8mq: fix SSCG_PLL_REFCLK_SEL_xPeng Fan2020-09-171-4/+4
| | | | | | | | | | | | | | | | Fix SSCG_PLL_REFCLK_SEL_x, the offset starts from 0, not 16 Reported-by: Coverity 3448860 Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
| * imx8mq: fix FRAC_PLL_REFCLK_SEL_MASKPeng Fan2020-09-171-1/+1
| | | | | | | | | | | | | | | | | | Coverity reported dead code, however it is FRAC_PLL_REFCLK_SEL_MASK was wrongly set. Reported-by: Coverity 10045172 Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
| * imx7: ccm: correct target interface numPeng Fan2020-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | According to i.MX 7Dual Applications Processor Reference Manual, Rev. 1 The target interface CCM root index ranges [0,124], so the number should be 125. Reported-by: Coverity 18045 Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
| * apalis_imx6: provide fdtfile in env instead of setting it in runtimeIgor Opaniuk2020-09-171-1/+2
| | | | | | | | | | | | | | | | Provide fdtfile value in default env instead of setting it dynamically in runtime. Fixes: 85cb2bc686("apalis/colibri imx6: provide proper fdtfile value") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri_imx6: provide fdtfile in env instead of setting it in runtimeIgor Opaniuk2020-09-171-1/+2
| | | | | | | | | | | | | | | | Provide fdtfile value in default env instead of setting it dynamically in runtime. Fixes: 85cb2bc686("apalis/colibri imx6: provide proper fdtfile value") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri_imx7: use preboot for fdtfile evaluationIgor Opaniuk2020-09-173-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable and set preboot var with fdtfile evaluation. preboot will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive mode without manual setting fdtfile value, as it it's already evaluated before entering interactive mode. Fixes: a62c60610f("colibri_imx7_emmc: add Colibri iMX7D 1GB (eMMC) module support") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri_vf: use preboot for fdtfile evaluationIgor Opaniuk2020-09-172-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable and set preboot var with fdtfile evaluation. preboot will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive mode without manual setting fdtfile value, as it it's already evaluated before entering interactive mode. Fixes: 304042c1f3("colibri_vf: set fdtfile for distroboot") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri-imx6ull: use preboot for fdtfile evaluationIgor Opaniuk2020-09-172-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable and set preboot var with fdtfile evaluation. preboot will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive mode without manual setting fdtfile value, as it it's already evaluated before entering interactive mode. Fixes: board: 31b1e17f44("toradex: add Colibri iMX6ULL support") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri_imx7: wrap video specific funcs with ifdefsIgor Opaniuk2020-09-171-0/+2
| | | | | | | | | | | | | | Wrap video specific functionality with ifdefs. Fixes: 195011b24d("colibri-imx7: fix splash logo drawing") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * toradex: drop legacy show_boot_logo function and use splashscreenIgor Opaniuk2020-09-171-19/+0
| | | | | | | | | | | | | | | | Drop show_boot_logo legacy function, as splashscreen functionality can be used instead. Fixes: d324189772("toradex: common: show boot logo") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri_imx7: use splashcreen value instead of legacy functionIgor Opaniuk2020-09-172-2/+1
| | | | | | | | | | | | | | | | Set proper splashscreen env value instead of calling legacy function to show embed boot logo. Fixes: 195011b24d("colibri-imx7: fix splash logo drawing") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * colibri-imx6ull: use splashcreen value instead of legacy functionIgor Opaniuk2020-09-172-2/+1
| | | | | | | | | | | | | | | | Set proper splashscreen env value instead of calling legacy function to show embed boot logo. Fixes: 391c712dde("colibri-imx6ull: show boot logo") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* | Merge branch '2020-09-16-assorted-fixes'Tom Rini2020-09-174-4/+16
|\ \ | |/ |/| | | - Assorted bug fixes
| * doc: qemu: debug UART settings for QEMU ARM virtWIP/2020-09-16-assorted-fixesHeinrich Schuchardt2020-09-161-0/+10
| | | | | | | | | | | | Provide the settings for the debug UART on the QEMU ARM virt board. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * MAINTAINERS: add myself as reviewer for SquashFSMiquel Raynal2020-09-161-0/+1
| | | | | | | | | | | | | | | | I also followed the development of the SquashFS support in U-Boot as part of Joao Marcos internship, so I would also appreciate receiving new contributions and bug reports related to this topic. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
| * MAINTAINERS: add myself as reviewer for SquashFSThomas Petazzoni2020-09-161-0/+1
| | | | | | | | | | | | | | | | As I have followed the development of the SquashFS support in U-Boot as part of Joao Marcos work, it makes sense to get Cc'ed on contributions/bug reports related to the squashfs support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
| * lib: fdt: Fix fdtdec_setup_mem..() conversion to livetree APIMarek Vasut2020-09-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Repair incorrectly negated condition in the original patch which broke DT memory node parsing on everything which has more than one DT memory node, e.g. R-Car3. In case multiple valid memory nodes are present in the DT, the original patch would complete parsing cycle for the first memory node, then move on to the next one, identify it as a valid, and end the parsing. The fix is to invert the condition, to make the code behave as it did before the livetree conversion, so it would continue parsing the subsequent memory nodes as well. Fixes: c2f0950c33 ("lib: fdt: Convert fdtdes_setup_mem..() to livetree API") Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Tested-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Michal Simek <michal.simek@xilinx.com>
| * include: phy: fix NULL pointer check in phy_write()Thirupathaiah Annapureddy2020-09-161-1/+1
| | | | | | | | | | | | | | | | phy_write() uses bus->write() instead of bus->read(). This means NULL pointer pre-check needs to happen on bus->write instead of bus->read. Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com> Reviewed-by: Michal Simek <michal.simek@xilinx.com>
| * MAINTAINERS: update clk entry git treeBaruch Siach2020-09-161-1/+1
|/ | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il>
* Merge tag 'efi-2020-10-rc5' of ↵WIP/16Sep2020Tom Rini2020-09-165-15/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for efi-2020-10-rc5 The following bugs are fixed: * unaligned access in br_i32_decode() * missing restore of global data pointer in UEFI selftest * missing restore of global data pointer on RISC-V in UEfI subsystem * efi_var_mem_notify_exit_boot_services() should not be __efi_runtime
| * efi_selftest: restore gd before do_reset()Heinrich Schuchardt2020-09-141-2/+4
| | | | | | | | | | | | | | | | Before calling do_reset() in the EFI selftest we must restore the global data pointer. Fixes: fa63753f86cc ("efi_selftest: substitute ResetSystem() by do_reset()") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * efi_loader: save global data pointer on RISC-VHeinrich Schuchardt2020-09-141-9/+9
| | | | | | | | | | | | | | On RISC-V the global data pointer is stored in register gp. When a UEFI binary calls the EFI API we have to restore it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * riscv: define function set_gd()Heinrich Schuchardt2020-09-141-0/+9
| | | | | | | | | | | | | | Function set_gd() is needed in the UEFI sub-system if the global data pointer is stored in a register. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * efi_loader: efi_var_mem_notify_exit_boot_servicesHeinrich Schuchardt2020-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | efi_var_mem_notify_exit_boot_services() is invoked when ExitBootServices() is called by the UEFI payload. efi_var_mem_notify_exit_boot_services() should not be defined as __efi_runtime as it is invoking EFI_ENTRY() and EFI_EXIT() which themselves are not __efi_runtime. Fixes: f1f990a8c958 ("efi_loader: memory buffer for variables") Fixes: e01aed47d6a0 ("efi_loader: Enable run-time variable support for tee based variables") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
| * rsa: crash in br_i32_decode() called from rsa_gen_key_prop()Robert Reither2020-09-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes problem for unaligned 32bit big-endian access in lib/rsa/rsa-keyprop.c. Exchanges br_i32_decode() with get_unaligned_be32(). This will keep the unaligned access for architectures capable and will do some byte-shift magic for the not so capable ones. Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-by: Robert Reither <robert.reither@external.thalesgroup.com> Remove unused include. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | Merge tag 'u-boot-rockchip-20200916' of ↵Tom Rini2020-09-166-4/+11
|\ \ | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip - Fix rv1108 grf access issue - make_fit_atf: ignore empty PT_LOAD segment
| * | rockchip: make_fit_atf: ignore empty PT_LOAD segmentHeinrich Schuchardt2020-09-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The linker sometimes creates PT_LOAD segments with length (p_filesz) zero as described in https://man7.org/linux/man-pages/man5/elf.5.html. This leads to build failures. We should ignore empty segments. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Tested-by: Tom Rini <trini@konsulko.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * | rockchip: rv1108: enable board early initKever Yang2020-09-162-0/+2
| | | | | | | | | | | | | | | | | | Enable board early init callback to init board specific hardware. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | rockchip: rv1108: Enable grf as pre-reloc nodeKever Yang2020-09-161-0/+4
| | | | | | | | | | | | | | | | | | The grf node will be used before relocate, enable it in dts. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | rockchip: rv1108: use correct API for board callbackKever Yang2020-09-162-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | Use board_early_init_f() instead of mach_cpu_init() for board, the board_early_init_f() is used for board init and after dm_initf, while the mach_cpu_init() is used for CPU/SOC and before dm_initf()(not able to use syscon API). Fixes: 9cec336708 ("rockchip: evb-rv1108: Use syscon API to get grf base") Fixes: 4aa33690fc {"rockchip: elgin-rv1108: Use syscon API to get grf base") Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
* | Merge tag 'mmc-2020-9-15' of https://gitlab.denx.de/u-boot/custodians/u-boot-mmcWIP/15Sep2020Tom Rini2020-09-152-14/+8
|\ \ | | | | | | | | | | | | - Use mmc_of_parse for msm_sdhci - Add missing common host caps for xenon_sdhci.
| * | mmc: xenon_sdhci: Add missing common host capabilitiesAndre Heider2020-09-151-14/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use mmc_of_parse() to set the common host properties. That includes "bus-width", so parsing it can be removed from the driver. But more importantly, "non-removable" is now respected, which fixes the usage of eMMC. Signed-off-by: Andre Heider <a.heider@gmail.com> Reviewed-by: Konstantin Porotchkin <kostap@marvell.com> Tested-by: Marek Behún <marek.behun@nic.cz>
| * | mmc: msm_sdhci: Use mmc_of_parse for setting host_capsManivannan Sadhasivam2020-09-151-0/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the introduction of 'get_cd' callback in sdhci core, dragonboard410c's MMC interface is broken. It turns out that 'get_cd' callback checks for the host_caps for validating the chip select. And since the msm_sdhci driver is not parsing the host_caps from DT, not all of the cababilities are parsed properly. This results in the MMC interfaces to be broken. Hence, fix this by adding a call to 'mmc_of_parse' during driver probe. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Tested-by: Aníbal Limón <anibal.limon@linaro.org> Reviewed-By: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
* | Azure/GitLab/Travis: Add SH4 r2dplus machine with various PCI ethernet optionsMarek Vasut2020-09-153-0/+68
|/ | | | | | | | Add SH4 R2Dplus machine configured to test various U-Boot PCI ethernet options -- RTL8139, EEPRO100, AMD PCnet, DEC Tulip. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* Merge branch '2020-09-12-assorted-bugfixes'Tom Rini2020-09-1412-19/+187
|\ | | | | | | | | - A large assortment of minor fixes - Documentation improvements
| * test: do no assume hush parser in validate_empty()WIP/2020-09-12-assorted-bugfixesHeinrich Schuchardt2020-09-121-1/+1
| | | | | | | | | | | | | | | | | | The environment variable test uses function validate_empty() to check that a variable is not defined. If the hush parser is not enabled, we cannot refer to a variable by $var_name but only by ${var_name}. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Stephen Warren <swarren@nvidia.com>
| * Makefile: mrproper shall delete doc/output/Heinrich Schuchardt2020-09-121-1/+1
| | | | | | | | | | | | | | | | HTML documentation is generated in doc/output/. This directory shall be deleted by 'make mrproper' Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * doc: describe building with GCCHeinrich Schuchardt2020-09-122-0/+120
| | | | | | | | | | | | | | Provide a description of the U-Boot build process with GCC in the HTML documentation. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>