summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-13tpm: sandbox: fix wrong assignment with a simplificationMiquel Raynal
The recv variable in sandbox_tpm2_fill_buf() is a pointer on a pointer of a char array. It means accessing *recv is the char array pointer itself while **recv is the first character of that array. There is no need for such indirection here, so simplify the code. Simplifying things will make the last assignment right: "*recv = NULL" is now correct. The issue has been found by the following Coverity Scan report: CID 183371: Incorrect expression (UNUSED_VALUE) Assigning value "4UL" to "*recv" here, but that stored value is overwritten before it can be used. 232 *recv += sizeof(rc); 233 234 /* Add trailing \0 */ 235 *recv = NULL; While at simplifying things, use '\0' instead of NULL when adding an empty char at the end of the buffer. Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-13tpm: sandbox: fix wrong check on pcr_mapMiquel Raynal
The second check on pcr_map in sandbox_tpm2_xfer() is wrong. It should check for pcr_map not being empty. Instead, it is a pure copy/paste of the first check which is redundant. This has been found thanks to a Coverity Scan report: CID 183370: Memory - illegal accesses (UNINIT) Using uninitialized value "pcr_index". put_unaligned_be32(tpm->pcr_extensions[pcr_index], recv); This is because pcr_index is initialized only if the user input is correct, ie. at least one valid bit is set in pcr_map. Fix the second check and also initialize pcr_index to 0 (which is harmless in case of error) to make Coverity Scan happy. Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-13MAINTAINERS: Add more sources to Arch SnapdragonRamon Fried
Add scattered driver files around the source tree that belongs to Snapdragon arch. Not sure why they were not included in the first place. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-13db410c: add FIT supportRamon Fried
1. Add FIT support for DB410c defconfig. 2. Don't overwrite bootargs (they're already defined in Linux device tree for DB410c. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-13db410: alter WLAN/BT MAC address fixupRamon Fried
Change the way MAC address fixup is done: 1. Stop using LK handed device-tree and calculate the MAC address our own. 2. Allow overriding the generated MACS with environment variables: "wlanaddr" and "btaddr". Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-13snapdragon: added MAC generation functionsRamon Fried
Add support for generation of unique MAC address that is derived from board serial. Algorithm for generation of MAC taken from LK. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-13snapdragon: added msm_board_serial() funcRamon Fried
This commit adds a function to get the board serial number. In snapdragon it's actually the eMMC serial number. Function added in a new file misc.c that will include further snapdragon miscellaneous functions. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-13stm32f7: board: Fix memory initPatrice Chotard
Commit 1473b12ad0b3 ("lib: fdtdec: Update ram_base to store ram start adddress") brings regression on STM32F7 which can't boot. Use fdtdec_setup_mem_size_base() to setup memory base and size. Use fdtdec_setup_memory_banksize() to setup memory bank base and size. Reported-by: Mark Olsson <mark@markolsson.se> Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Cc: Mark Olsson <mark@markolsson.se> Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
2018-08-13configs: stm32f429-evaluation: Add DISTRO_DEFAULT supportPatrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32f469-discovery: Add DISTRO_DEFAULT supportPatrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32h743-discovery: Add DISTRO_DEFAULT supportPatrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32h743-evaluation: Add DISTRO_DEFAULT supportPatrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32f4xx: Remove CONFIG_SYS_RAM_FREQ_DIVPatrice Chotard
Since commit bfea69ad2793 ("stm32f7: sdram: correct sdram configuration as per micron sdram"), CONFIG_SYS_RAM_FREQ_DIV flag is no more used, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32h7xx: Migrate CONFIG_CMD_CACHE to defconfigPatrice Chotard
Remove CONFIG_CMD_CACHE from include/configs/stm32h7xx.h and enable it in stm32h7xx_defconfig Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32f746-disco: Migrate CONFIG_CMD_CACHE to defconfigPatrice Chotard
Remove CONFIG_CMD_CACHE from include/configs/stm32f746-disco.h and enable it in stm32f746-disco_defconfig Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32f4xx: Enable ICACHE and DCACHEPatrice Chotard
Enable instruction and data caches. Fix boot_sd command as since commit d409c962169b ("armv7m: disable icache before linux booting"), instruction cache is automatically disable before linux booting. "icache off" from boot_sd command becomes useless, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32f429-disco: Remove CONFIG_SYS_RAM_CSPatrice Chotard
This flag is not used, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13configs: stm32fxxx: Remove CONFIG_SYS_CLK_FREQPatrice Chotard
Since commit aa5e3e22f4d6 ("board: stm32: switch to DM STM32 timer") SYS_CLK_FREQ is useless, remove it from stm32f4 and stm32f7 boards. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13board: stm32: use bi_dram[0].start instead of hardcoded valuePatrice Chotard
Use gd->bd->bi_dram[0].start initialized from DT instead of using hardcoded CONFIG_SYS_SDRAM_BASE from config file. Remove unused CONFIG_SYS_RAM_BASE and CONFIG_SYS_SDRAM_BASE defines. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2018-08-13clk: at91: utmi: add timeout for utmi lockEugen Hristev
In case the slow clock is not properly configured, the UTMI clock cannot lock the PLL, because UPLLCOUNT will "wait X slow clock cycles". In this case U-boot will loop indefinitely. Added a timeout in this case, to start U-boot even if UTMI clock is not enabled, so the user can use different media if needed, or investigate. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
2018-08-13arm: bcm7445: Move config defines to bcm7445.hThomas Fitzsimmons
Move some configuration #defines that do not apply to other bcmstb boards from bcmstb.h to bcm7445.h. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org>
2018-08-13arm: bcm7445: Fix parallel make race conditionThomas Fitzsimmons
Move the contents of prior_stage.h into bcmstb.h to prevent a build failure when bcmstb.h is #include'ed before the asm/arch symbolic link is present. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org>
2018-08-13rsa: Fix LibreSSL before v2.7.0Caliph Nomble
Fix LibreSSL compilation for versions before v2.7.0. Signed-off-by: Caliph Nomble <nomble@palism.com> Reviewed-by: Jonathan Gray <jsg@jsg.id.au>
2018-08-13fs: fix typo 'dumm'Heinrich Schuchardt
%s/dumm /dummy / Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2018-08-13avb2.0: add get_size_of_partition()Igor Opaniuk
Implement get_size_of_partition() operation, which is required by the latest upstream libavb [1]. [1] https://android.googlesource.com/platform/external/avb/+/android-p-preview-5 Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> Acked-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
2018-08-13Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini
2018-08-11Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-stagingTom Rini
2018-08-11Merge branch 'master' of git://git.denx.de/u-boot-videoTom Rini
2018-08-11misc: Add gdsys_ioep driverMario Six
Add driver for the IHS IO endpoint on IHS FPGAs. Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11test: Add tests for misc uclassMario Six
Add a set of tests for the misc uclass. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-11misc: uclass: Add enable/disable functionMario Six
Add generic enable/disable function to the misc uclass. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11misc: docs: Fix comments in misc.hMario Six
The comments in misc.h are not in kernel-doc format. Correct the format. Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11video_display: Add Xilinx LogiCore DP TXMario Six
Add a driver for the Xilinx LogiCORE DisplayPort IP core, which is a pure DP transmitter core for Xiling FPGA (no display capabilities). Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11video: Sort Makefile entriesMario Six
The entries of Makefiles should be sorted, which is not the case in the video driver Makefile. Sort the entries alphabetically as far as this makes sense. Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11cmd: Add axi commandMario Six
Add a command to debug the AXI bus. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11test: Add AXI testMario Six
Add tests for the AXI uclass. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11sandbox: Add and build AXI bus and deviceMario Six
Add test AXI drivers to the sandbox. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11axi: Add AXI sandbox driver and simple emulatorMario Six
Add test infrastructure and tests for the AXI uclass. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11axi: Add ihs_axi driverMario Six
Add a driver for the gdsys IHS AXI bus used on IHS FPGAs. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-08-11drivers: Add AXI uclassMario Six
Add a uclass for AXI (Advanced eXtensible Interface) busses, and a driver for the gdsys IHS AXI bus on IHS FPGAs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-10travis: give every job a nameStephen Warren
Travis CI now supports giving jobs an explicit name. Do this for all jobs. This allows more direct control over jobs names than the previous automatic or implicit naming based on the environment variables or script text. Signed-off-by: Stephen Warren <swarren@nvidia.com> [trini: Update names for jobs added/changed since posting] Signed-off-by: Tom Rini <trini@konsulko.com>
2018-08-10elf: Add support for PPC64 ELF V1 ABI in bootelfRob Bracero
This update adds PPC64 ELF V1 ABI support to bootelf for both the program header and section header options. Elf64 support was already present for the program header option, but it was not handling the PPC64 ELF V1 ABI case. For the PPC64 ELF V1 ABI, the e_entry field of the elf header must be treated as function descriptor pointer instead of a function address. The first doubleword of the function descriptor is the function's entry address. Signed-off-by: Rob Bracero <robbracero@gmail.com> [trini: Fix whitespace issues] Signed-off-by: Tom Rini <trini@konsulko.com>
2018-08-10db410c: Fixup DRAMRamon Fried
Call the MSM DRAM detection and fixup function to support dynamic detection of onboard memory. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-10snapdragon: Add DRAM detection & FDT fixupRamon Fried
Fixup the Linux FDT with the detection of onboard DRAM as provided by SBL (Secondary boot loader) by reading the shared-memory region. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
2018-08-10disk: part: Don't show redundant error messageSam Protsenko
Underlying API should already print some meaningful error message, so this one is just brings more noise. E.g. we can see log like this: MMC: no card present ** Bad device mmc 0 ** Obviously, second error message is unwanted. Let's only print it in case when DEBUG is defined to keep log short and clear. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
2018-08-10env: Don't show "Failed" error messageSam Protsenko
"Failed" error message from env_load() only clutters the log with unnecessary details, as we already have all needed warnings by that time. Example: Loading Environment from FAT... MMC: no card present ** Bad device mmc 0 ** Failed (-5) Let's only print it in case when DEBUG is defined to keep log clear. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
2018-08-10smbios: fix checkstyle warningChristian Gmeiner
Fixes the following checkstyle warning: WARNING: Missing a blank line after declarations + int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++); + max_struct_size = max(max_struct_size, tmp); Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-10smbios: fix checkstyle errorChristian Gmeiner
Fixes the following chechpatch -f error: ERROR: "(foo*)" should be "(foo *)" + strncpy((char*)t->uuid, serial_str, sizeof(t->uuid)); Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-10doc: FIT image: clarify usage of "compression" propertySimon Goldschmidt
Compressed images should have their compression property set to "none" if U-Boot should leave them compressed. This is especially the case for compressed ramdisks that should be uncompressed by the kernel only. Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
2018-08-10configs: omap3_logic: Disable NAND ID during SPLAdam Ford
For these boards, the GPMC timings are more determined by processor speed/type than the NAND/PoP memory. This code is never invoked, so disable the config option, so it doesn't take the time to compile it in. Signed-off-by: Adam Ford <aford173@gmail.com>