summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* omap3_beagle: Enable DM_SPITom Rini2019-02-191-0/+1
| | | | | | Switch to DM_SPI support now. Signed-off-by: Tom Rini <trini@konsulko.com>
* omap3_beagle: Update for DM SPL supportTom Rini2019-02-195-51/+20
| | | | | | | | | | | - Switch to using the omap3-u-boot.dtsi file for needed properties. - Remove a few SPL features to free up more SRAM space. - Switch CONFIG_SYS_TEXT_BASE to the normal default, we don't need to worry about X-Loader at this point anymore. - A few related updates to SPL options as part of switching to DM SPL. Signed-off-by: Tom Rini <trini@konsulko.com> Tested-by: Derald D. Woods <woods.technical@gmail.com>
* cmd/fs: fix build if CMD_BOOTEFI is not setGervais, Francois2019-02-191-0/+2
| | | | | | | Fixes: cmd/fs.c:29: undefined reference to `efi_set_bootdev' Signed-off-by: Francois Gervais <fgervais@distech-controls.com>
* ARM: omap3_logic: Enable SPL booting device treeAdam Ford2019-02-199-41/+39
| | | | | | | | | | | | With the generic omap3-u-boot.dtsi file available, this patch increased the memory of the various incarnations of the omap3_logic board, and points their respective u-boot.dtsi files to the newly created generic one, and removes the PLATDATA from the board file. These are all done at once because the're all utilizing the same omap3logic.c board file. Signed-off-by: Adam Ford <aford173@gmail.com>
* ARM: DTS: omap3-u-boot.dtsiAdam Ford2019-02-191-0/+81
| | | | | | | | | | | Create generic omap3-u-boot.dtsi file that omap3 based boards can include to generate device tree in SPL for booting MLO. Credit should go to Tom Rini. Signed-off-by: Adam Ford <aford173@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Tested-by: Derald D. Woods <woods.technical@gmail.com>
* ARM: da8xxevm: Add NAND instructions for da850-evm to READMEAdam Ford2019-02-191-0/+8
| | | | | | | | | The README.da850 file continues information on how to burn NAND for the LCDK, but not the DA850-EVM. This patch adds both the commands and dip switch instructions for burning and booting NAND. Signed-off-by: Adam Ford <aford173@gmail.com>
* ARM: am3517_evm: Enable Falcon ModeAdam Ford2019-02-192-0/+2
| | | | | | | The other OMAP3 based Logic PD boards have Falcon Mode enabled, so this patch makes it possible on the AM3517-evm as well. Signed-off-by: Adam Ford <aford173@gmail.com>
* ARM: da850evm: Increase Malloc SizeAdam Ford2019-02-194-0/+4
| | | | | | | | | | The SPI NOR frameware was recently updated, but they require a little more memory that we had previosly allocated, so it stopped booting. This patch doubles the size of CONFIG_SPL_SYS_MALLOC_F_LEN to 0x800. Fixes: c4e8862308d4 ("mtd: spi: Switch to new SPI NOR framework") Signed-off-by: Adam Ford <aford173@gmail.com>
* hikey: Allow environment to store in eMMC and increase bootdelayManivannan Sadhasivam2019-02-192-4/+5
| | | | | | | | | Current Hikey configuration allows us to store u-boot environment on uSD card. But this will be useless if uSD card is not inserted, hence use the onboard eMMC memory for storing environment at Boot1 partition. While we are at it, let's increase the boot delay to 10s also. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* test: let use gdbserver for all sandbox targetsIgor Opaniuk2019-02-191-2/+2
| | | | | | | | | Enable usage of gdbserver for all sandbox targets (sandbox, sandbox_flattree etc.). Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* bcm963158: use TARGET_BCM963158 instead of ARCH_BCM63158Philippe Reynes2019-02-191-1/+1
| | | | | | | We use TARGET_BCM63158 in the Kconfig instead of ARCH_BCM63158, so we could add other board that use a bcm63158. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
* dtbo: Fix dtbo generation rulesMichal Simek2019-02-191-1/+1
| | | | | | | Take the first prerequisite (dts overlay file) instead of standard input. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* fs: fat: Reduce default max clustersize 64KiB from malloc poolTien Fong Chee2019-02-191-1/+9
| | | | | | | Release cluster block immediately when no longer use would help to reduce 64KiB memory allocated to the memory pool. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
* fs: fat: dynamically allocate memory for temporary bufferTien Fong Chee2019-02-191-6/+12
| | | | | | | | | Drop the statically allocated get_contents_vfatname_block and dynamically allocate a buffer only if required. This saves 64KiB of memory. Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
* spl: implement CRC check on U-Boot uImageSimon Goldschmidt2019-02-193-7/+50
| | | | | | | | | | | | | | | | | SPL currently does not check uImage CRCs when loading U-Boot. This patch adds checking the uImage CRC when SPL loads U-Boot. It does this by reusing the existing config option SPL_CRC32_SUPPORT to allow leaving out the CRC check on boards where the additional code size or boot time is a problem (adding the CRC check currently adds ~1.4 kByte to flash). The SPL_CRC32_SUPPORT config option now gets enabled by default if SPL support for legacy images is enabled to check the CRC on all boards that don't actively take countermeasures. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFUBin Liu2019-02-191-0/+11
| | | | | | Define CONFIG_SPL_LOAD_FIT_ADDRESS to enable SPL-DFU for am57x platform. Signed-off-by: Bin Liu <b-liu@ti.com>
* cmd: date: Do not overwrite argumentsRoman Kapl2019-02-191-4/+4
| | | | | | | Arguments are const and belong to the caller. Calling date in a hush loop will yield different results from the second invocation. Signed-off-by: Roman Kapl <rka@sysgo.com>
* elf: fix cache flushing in 'bootelf -p' commandKurban Mallachiev2019-02-191-2/+4
| | | | | | | | | | | | | | | | | Currently there are two problems in 'bootelf -p' (load elf by segments) command: - bss section is not flushed, so booted elf can have non zero values in bss; - at least on ARM there are 'CACHE: Misaligned operation at range...' warnings Use p_memsz instead of p_filesz during cache flushing for elf segment. p_filesz doesn't include zero initialized memory (e.g. bss section), which also should be flushed. Align these cache flushes to line boundaries. Signed-off-by: Kurban Mallachiev <mallachiev@ispras.ru>
* board/BuR/brxre1: convert do DMHannes Schmelzer2019-02-196-61/+463
| | | | | | | | | | | | | This commit converts the brxre1 board to DM, for this we have todo following things: - add a devicetree-file for this board - drop all obsolete settings from board header-file - use dm_i2c_xxx calls for read/write to the resetcontroller - request gpios before operate them Serues-cc: trini@konsulko.com Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
* dm: scsi: report correct device numberHeinrich Schuchardt2019-02-191-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Before the patch scsi would report the same device number for all SCSI devices, e.g. Device 0: (1:0) Vendor: ATA Prod.: Crucial_CT128M55 Rev: MU01 Type: Hard Disk Capacity: 122104.3 MB = 119.2 GB (250069680 x 512) Device 0: (1:0) Vendor: ATA Prod.: Rev: Type: Hard Disk Capacity: not available With the patch the same device number is reported as is used in scsi_read(): Device 0: (1:0) Vendor: ATA Prod.: Crucial_CT128M55 Rev: MU01 Type: Hard Disk Capacity: 122104.3 MB = 119.2 GB (250069680 x 512) Device 1: (1:0) Vendor: ATA Prod.: Rev: Type: Hard Disk Capacity: not available Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* tpm: simplify: tpm_set_global_lock()Heinrich Schuchardt2019-02-191-3/+1
| | | | | | | | When in pack_byte_string() memcpy() is called for size 0 the source buffer address has no relevance. So we can use NULL here. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
* Merge branch 'master' of git://git.denx.de/u-boot-socfpgaTom Rini2019-02-188-175/+69
|\ | | | | | | | | | | - Misc Gen5 fixes - stratix10 bugfix - dwmmc bugfix
| * ARM: socfpga: stratix10: Return valid error code from FPGA driverAng, Chee Hong2019-02-181-11/+6
| | | | | | | | | | | | | | | | This patch prevent the Stratix 10 FPGA driver incorrectly return the transaction ID as the mailbox error code. It should always return the actual mailbox error code from SDM firmware. Signed-off-by: Ang, Chee Hong <chee.hong.ang@intel.com>
| * mmc: dwmmc: Poll for iDMAC TX/RX interruptLey Foon Tan2019-02-182-0/+26
| | | | | | | | | | | | | | | | Poll for iDMAC TX/RX interrupt before disable DMA. This to prevent disable DMA before data is transfer completed. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
| * arm: socfpga: gen5: remove hacked ETH RST handlingSimon Goldschmidt2019-02-183-110/+1
| | | | | | | | | | | | | | | | | | | | The 'dwmac_socfpga' ETH driver can now get the MACs out of reset via the socfpga reset driver and can set PHY mode via syscon. This means we can now remove the ad-hoc code to do this from arch/arm/mach-socfpga. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * arm: socfpga: gen5 enable designware_socfpgaSimon Goldschmidt2019-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | Enable the socfpga specific designware ethernet driver by default for socfpga by implying it when enabling CONFIG_ETH_DESIGNWARE for a MACH_SOCFPGA config. This is required to remove the hacky reset and phy mode handling in arch/arm/mach-socfpga. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * net: designware: socfpga: adapt to Gen5Simon Goldschmidt2019-02-182-54/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver was written for Arria10, but it applies to Gen5, too. The main difference is that Gen5 has 2 MACs (Arria10 has 3) and the syscon bits are encoded in the same register, thus an offset is needed. This offset is already read from the devicetree, but for Arria10 it is always 0, which is probably why it has been ignored. By using this offset when writing the phy mode into the syscon regiter, we can use this driver to set the phy mode for both of the MACs on Gen5. Since the PHY mode bits in sysmgr are the same even for Stratix10, let's drop the detection of the sub-mach by checking compatible version and just use the same code for all FPGAs. To work correctly, this driver depends on SYSCON and REGMAP, so select those via Kconfig when it is enabeld. Tested on socfpga_socrates (where the 2nd MAC is connected, so a shift offset is required). Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* | Prepare v2019.04-rc2v2019.04-rc2Tom Rini2019-02-181-1/+1
| | | | | | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* | configs: Enable CONFIG_BLK in am57xx_evm and am57xx_hs_evmJean-Jacques Hiblot2019-02-182-4/+6
| | | | | | | | | | | | | | Enable CONFIG_DM_SCSI and CONFIG_BLK. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* | configs: k2g_evm: Enable CONFIG_BLKJean-Jacques Hiblot2019-02-181-1/+0
| | | | | | | | | | | | | | | | CONFIG_BLK can be safely enabled as DM_MMC and DM_USB are already enabled. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Tested-by: Vignesh R <vigneshr@ti.com>
* | efi_loader: Swap roles with HeinrichAlexander Graf2019-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Heinrich is going to take over maintainership of the efi_loader tree going forward. To ensure that I will still receive review mails at least, add me as reviewer with a stable email address. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* | rpi: Make Matthias maintainerAlexander Graf2019-02-181-1/+1
| | | | | | | | | | | | | | | | Matthias Brugger agreed to take over maintainership from me for the Raspberry Pi tree. Add him to the MAINTAINERS file instead. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* | board/BuR/brppt1: fix ethernet support on brppt1 boardsHannes Schmelzer2019-02-183-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The commit 1bac199e8c87 ("configs: Resync with savedefconfig") did remove ethernet driver from following boards defconfig: - brppt1_mmc - brppt1_nand - brppt1_spi With this commit we add ethernet and responsible phy support again. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
* | Merge tag 'efi-2019-04-rc2' of https://github.com/xypron2/u-bootTom Rini2019-02-1816-226/+868
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | The patches fix multiple errors. Mentionable are: - EFI unit tests (bootefi selftest) can run on i386. - `make tests` executes the Unicode unit tests. The LoadImage patch is preparing for further rework to be delivered in v2019.07.
| * | efi_loader: do not miss last relocation blockHeinrich Schuchardt2019-02-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | If the last block in the relocation table contains only a single relocation, the current coding ignores it. Fix the determination of the end of the relocation table. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: documentation of image loaderHeinrich Schuchardt2019-02-162-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add missing function descriptions. - Update existing function descriptions to match Sphinx style. - Add lib/efi_loader/efi_image_loader.c to the input files for Sphinx generated documentation. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: clean up bootefi_test_prepare()Heinrich Schuchardt2019-02-161-25/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Free resources upon failure. Correct the function description. As there is no need for any special address in the dummy memory device path passed via the EFI_LOADED_IMAGE_PROTOCOL simply use 0 as address. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: fix EFI entry countingHeinrich Schuchardt2019-02-162-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `bootefi selftest` fails on qemu-x86_defconfig if efi_selftest() is not invoked using EFI_CALL(). Likewise we call the entry point of EFI payloads with EFI_CALL(efi_start_image()). entry_count indicates if we are in U-Boot (1) or in EFI payload code (0). As we start in U-Boot code the initial value has to be 1. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: use efi_start_image() for bootefiHeinrich Schuchardt2019-02-163-24/+8
| | | | | | | | | | | | | | | | | | | | | Remove the duplicate code in efi_do_enter() and use efi_start_image() to start the image invoked by the bootefi command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: set entry point in efi_load_pe()Heinrich Schuchardt2019-02-164-31/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up to now efi_load_pe() returns the entry point or NULL in case of an error. This does not allow to return correct error codes from LoadImage(). Let efi_load_pe() return a status code and fill in the entry point in the corresponding field of the image object. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: LoadImage: always allocate new pagesHeinrich Schuchardt2019-02-163-32/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we want to properly unload images in Exit() the memory should always be allocated in the same way. As we allocate memory when reading from file we should do the same when the original image is in memory. A further patch will be needed to free the memory when Exit() is called. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: error handling in efi_setup_loaded_image()Heinrich Schuchardt2019-02-161-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of an error we should set the returned pointers to NULL. This ensures that an illegal free does not occur even if the caller calls free() for the handles. If protocols cannot be installed, release all resources. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | test: adjust names of Unicode test functionsHeinrich Schuchardt2019-02-161-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In test/py/conftest.py the assumption is made that for if a test is called with `ut unicode` the test function name starts with 'unicode_test_'. As the Unicode tests did not follow this naming scheme they were not executed by `make tests`. Rename the Unicode test functions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | lib/vsprintf: print '?' for illegal Unicode sequenceHeinrich Schuchardt2019-02-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 0e66c10a7d80 ("lib: vsprintf: avoid overflow printing UTF16 strings") broke the Unicode unit tests: an illegal UTF16 code point should be printed as '?'. Fixes: 0e66c10a7d80 ("lib: vsprintf: avoid overflow printing UTF16 strings") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_selftest: LoadImage from file device pathHeinrich Schuchardt2019-02-162-0/+532
| | | | | | | | | | | | | | | | | | | | | Provide a unit test that calls LoadImage() with a file device path and executes the application via StartImage(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: comments for efi_file_from_path()Heinrich Schuchardt2019-02-161-1/+11
| | | | | | | | | | | | | | | | | | Add more comments for efi_file_from_path(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: efi_dp_split_file_path() error handlingHeinrich Schuchardt2019-02-161-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the path passed to efi_dp_split_file_path() does not contain a reference to a file it returns EFI_OUT_OF_RESOURCES. This does not properly indicate the kind of the problem that occurred. Return EFI_INVALID_PARAMETER instead. Update function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_selftest: fix memory allocation in HII testsHeinrich Schuchardt2019-02-161-34/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | In efi_selftest we are in EFI land. We cannot call U-Boot library functions malloc() and free() but should use the boot time services instead. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@suse.de>
| * | efi_selftest: do not use efi_free_pool()Heinrich Schuchardt2019-02-163-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | In efi_selftest we are in EFI land. We should not use U-Boot library functions but boot time services for memory management. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@suse.de>
* | | Merge tag 'video-for-2019.04-rc2' of git://git.denx.de/u-boot-videoTom Rini2019-02-162-20/+45
|\ \ \ | | | | | | | | | | | | | | | | - sunxi display DDC probe fallback - support 24bpp BMP files on 16bpp displays