summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git://git.denx.de/u-boot-socfpgaTom Rini2018-07-131-0/+222
|\ | | | | | | | | | | - Update SPDX tag in arch/arm/mach-socfpga/spl_a10.c Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: socfpga: stratix10: Enable Stratix10 SoC buildLey Foon Tan2018-07-121-0/+222
| | | | | | | | | | | | | | | | | | | | | | | | Add build support for Stratix SoC Signed-off-by: Chin Liang See <chin.liang.see@intel.com> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Conflicts: arch/arm/Kconfig arch/arm/mach-socfpga/Kconfig
* | imx_lpi2c: Update lpi2c driver to support imx8Ye Li2018-07-121-0/+519
|/ | | | | | | | | Add compatible string for i.MX8 and move imx_lpi2c.h from mx7ulp directory to u-boot include directory as a common header file. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* mkimage: fit_image: Add support for SOURCE_DATE_EPOCH in signaturesAlex Kiernan2018-07-101-1/+2
| | | | | | | | | When generating timestamps in signatures, use imagetool_get_source_date() so we can be overridden by SOURCE_DATE_EPOCH to generate reproducible images. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Simon Glass <sjg@chromum.org>
* cmd: Kconfig: Move CONFIG_MP to KconfigSiva Durga Prasad Paladugu2018-07-1031-37/+0
| | | | | | | This patch moves CONFIG_MP to Kconfig Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* omap3_logic: Change console from ttyO0 to ttyS0Adam Ford2018-07-101-1/+1
| | | | | | | | | | | | | | Newer kernels have moved from ttyO0 to ttyS0, and when booting it drops a notice: WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' This ensures that you still see kernel messages. Please update your kernel commandline. This patch updates the console to use ttyS0 and eliminate the chatter. Signed-off-by: Adam Ford <aford173@gmail.com>
* board: arm: Add support for Broadcom BCM7445Thomas Fitzsimmons2018-07-103-0/+213
| | | | | | | | | | | | Add support for loading U-Boot on the Broadcom 7445 SoC. This port assumes Broadcom's BOLT bootloader is acting as the second stage bootloader, and U-Boot is acting as the third stage bootloader, loaded as an ELF program by BOLT. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org> Cc: Stefan Roese <sr@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Florian Fainelli <f.fainelli@gmail.com>
* configs: Remove empty #ifdef/#ifndef blocks from configsAlex Kiernan2018-07-1018-59/+0
| | | | | | | Remove empty #ifdef/#ifndef..#endif blocks where the configuration they guarded has been completely removed. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Merge git://git.denx.de/u-boot-dmTom Rini2018-07-109-7/+171
|\
| * dm: core: Add a function to decode a memory regionSimon Glass2018-07-091-0/+45
| | | | | | | | | | | | | | Add a way to decode a memory region, including the memory type (sram or sdram) and its start address and size. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Update of_read_fmap_entry() for livetreeSimon Glass2018-07-091-4/+2
| | | | | | | | | | | | Update this function to take an ofnode so that it can work with livetree. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: spi: Update sandbox SPI emulation driver to use ofnodeSimon Glass2018-07-091-1/+1
| | | | | | | | | | | | Update the parameters sandbox_sf_bind_emul to support livetree. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Add a way to bind a device by ofnodeSimon Glass2018-07-091-0/+4
| | | | | | | | | | | | | | Add a new device_bind_ofnode() function which can bind a device given its ofnode. This allows binding devices more easily with livetree nodes. Signed-off-by: Simon Glass <sjg@chromium.org>
| * log: Add a way to log a return value with a messageSimon Glass2018-07-091-0/+8
| | | | | | | | | | | | | | | | It is sometimes useful to show a message when logging an error return value, perhaps to add a few details about the problem. Add a function to support this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Add a way to find an ofnode by compatible stringSimon Glass2018-07-091-0/+11
| | | | | | | | | | | | | | Add an ofnode_by_compatible() to allow iterating through ofnodes with a given compatible string. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Add comments to ofnode_read_resource() functoinsSimon Glass2018-07-091-0/+23
| | | | | | | | | | | | These functions are missing comments. Add some. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Fix a few ofnode function commentsSimon Glass2018-07-091-1/+3
| | | | | | | | | | | | Tidy up three return-value errors. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Add ofnode function to read a 64-bit intSimon Glass2018-07-092-0/+26
| | | | | | | | | | | | | | We have a 32-bit version of this function. Add a 64-bit version as well so we can easily read 64-bit ints from the device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
| * fdt: Add device tree memory bindingsMichael Pratt2018-07-093-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Support a default memory bank, specified in reg, as well as board-specific memory banks in subtree board-id nodes. This allows memory information to be provided in the device tree, rather than hard-coded in, which will make it simpler to handle similar devices with different memory banks, as the board-id values or masks can be used to match devices. Signed-off-by: Michael Pratt <mpratt@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
* | include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)Ley Foon Tan2018-07-091-1/+1
| | | | | | | | | | | | | | | | Change to use CONFIG_IS_ENABLED(DM_RESET), so this can work in SPL build (CONFIG_SPL_DM_RESET) and U-boot build (CONFIG_DM_RESET). Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | dt-bindings: clock: Add S900 CMU register definitionsManivannan Sadhasivam2018-07-091-0/+77
| | | | | | | | | | | | | | | | This commit adds Actions Semi S900 CMU register definitions to clock bindings. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* | board: Add uCRobotics Bubblegum-96 board supportManivannan Sadhasivam2018-07-091-0/+43
|/ | | | | | | | | | | | | | | | | | | | This commit adds uCRobotics Bubblegum-96 board support. This board is one of the 96Boards Consumer Edition platform based on Actions Semi S900 SoC. Features: - Actions Semi S900 SoC (4xCortex A53, Power VR G6230 GPU) - 2GiB RAM - 8GiB eMMC, uSD slot - WiFi, Bluetooth and GPS module - 2x Host, 1x Device USB port - HDMI - 20-pin low speed and 40-pin high speed expanders, 6 LED, 3 buttons U-Boot will be loaded by ATF at EL2 execution level. Relevant driver support will be added in further commits. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* Merge branch 'master' of git://git.denx.de/u-boot-netTom Rini2018-07-022-2/+4
|\
| * ax25: Switch to CONFIG_BOOTP_PREFER_SERVERIPAlexander Graf2018-07-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The ax25-ae350 target currently uses CONFIG_BOOTP_SERVERIP which means we ignore the DHCP provided TFTP ip address. This breaks every case where we do now provide a serverip environment variable. Instead, let's use the new CONFIG_BOOT_PREFER_SERVERIP option to fall back to the DHCP provided TFTP IP if no serverip environment variable is set. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Rick Chen <rick@andestech.com>
| * net: Prefer command line argumentsAlexander Graf2018-07-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can call commands like dhcp and bootp without arguments or with explicit command line arguments that really should tell the code where to look for files instead. Unfortunately, the current code simply overwrites command line arguments in the dhcp case with dhcp values. This patch allows the code to preserve the command line values if they were set on the command line. That way the semantics are slightly more intuitive. The reason this patch does that by introducing a new variable is that we can not rely on net_boot_file_name[0] being unset, as today it's completely legal to call "dhcp" and afterwards run "tftp" and expect the latter to repeat the same query as before. I would prefer not to break that behavior in case anyone relies on it. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: Add new wol command - Wake on LANLothar Felten2018-07-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new command 'wol': Wait for an incoming Wake-on-LAN packet or time out if no WoL packed is received. If the WoL packet contains a password, it is saved in the environment variable 'wolpassword' using the etherwake format (dot or colon separated decimals). Intended use case: a networked device should boot an alternate image. It's attached to a network on a client site, modifying the DHCP server configuration or setup of a tftp server is not allowed. After power on the device waits a few seconds for a WoL packet. If a packet is received, the device boots the alternate image. Otherwise it boots the default image. This method is a simple way to interact with a system via network even if only the MAC address is known. Tools to send WoL packets are available on all common platforms. Some Ethernet drivers seem to pad the incoming packet. The additional padding bytes might be recognized as Wake-on-LAN password bytes. By default enabled in pengwyn_defconfig. Signed-off-by: Lothar Felten <lothar.felten@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* | board/aries: RemoveTom Rini2018-07-024-811/+0
|/ | | | | | | The various Aries Embedded boards have been orphaned for a year and no one has come forward to take care of them. Remove. Signed-off-by: Tom Rini <trini@konsulko.com>
* efi_loader: Install ACPI configuration tablesBin Meng2018-07-022-0/+12
| | | | | | | | ACPI tables can be passed via EFI configuration table to an EFI application. This is only supported on x86 so far. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* lib: div64: fix typeo in include/div64.hHeinrich Schuchardt2018-06-291-1/+1
| | | | | | %s/reminder/remainder/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* Merge git://git.denx.de/u-boot-imxTom Rini2018-06-279-65/+109
|\
| * mtd: nand: export nand_get_flash_type functionJörg Krause2018-06-271-3/+7
| | | | | | | | | | | | | | | | | | `nand_get_flash_type()` allows identification of supported NAND flashs. The function is useful in SPL (like mxs_nand_spl.c) to lookup for a NAND flash (which does not support ONFi) instead of using nand_simple.c and hard-coding all required NAND parameters. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
| * power: pmic: Let PFUZE3000 see all 256 registersTrent Piepho2018-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PFUZE3000 uses registers addresses up to 0xff. The DM pfuze100 driver supports both pfuze100 and pfuze3000. Allow it to use the device type to return the correct number of registers. Also rename the too generic PMIC_NUM_OF_REGS enumeration value for pfuze3000 to match the other "PFUZE3000_" prefixed enumerations and the pfuze100 enumeration value PFUZE100_NUM_OF_REGS. Cc: Peng Fan <Peng.Fan@freescale.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Trent Piepho <tpiepho@impinj.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
| * arm: dts: imx7: sync with LinuxStefan Agner2018-06-272-5/+26
| | | | | | | | | | | | Sync with Linux commit 60cc43fc8884 ("Linux 4.17-rc1"). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * mx6cuboxi: consolidate board detection and add som revision checkingJon Nettleton2018-06-181-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | In order to properly detect the board the checks need to be done in a specific order. Move these tests back into a single enum function that will always return the proper the board it is checking. This also adds the best test we have for detecting the rev 1.5 som, and it simplifies the device-tree filename building. Signed-off-by: Jon Nettleton <jon@solid-run.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
| * board: Silent out the console on the K+P's imx53 boardsLukasz Majewski2018-06-181-0/+1
| | | | | | | | | | | | | | Disable console output by default on imx53 based boards from K+P. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * pico-imx7d: Adjust the dtb nameFabio Estevam2018-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | Since kernel commit 41bbeadceb03 ("ARM: dts: imx7d-pico-pi: Separate into cpu and baseboard dts") the dtb name has changed. Fix it accordingly. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * wandboard: Remove hardcoded baudrate from "console" variableOtavio Salvador2018-06-181-1/+1
| | | | | | | | | | | | | | We should use the baudrate variable available inside U-Boot environment to allow it to be changed dynamically. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * display5: config: Add GPT verification and restoration code on SWUpdate entryLukasz Majewski2018-06-181-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | If GPT gets broken, then after N boot attempts we will run the SWUpdate restoration image. On its enter we will check GPT and restore it if needed. To test it: display5 > mmc write 0x12000000 4 8 It will overwrite the primary GPT table. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Reduce rootfs2 (BACKUP) size from 1528M to 512MLukasz Majewski2018-06-181-1/+1
| | | | | | | | Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Add cma=256M to command line argumentsLukasz Majewski2018-06-181-1/+1
| | | | | | | | Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Update swupdate initramfs file name (now supporting ext4)Lukasz Majewski2018-06-181-1/+1
| | | | | | | | | | | | | | After moving to swupdate 2017.07, the default fs for swupdate rootfs is ext4, not ext3. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: factory: Update BACKUP rootfs in factory modeLukasz Majewski2018-06-181-4/+2
| | | | | | | | | | | | | | After splitting rootfs images to BACKUP and ACTIVE, the "factory" u-boot also needs to update the former. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Provide 'tftp_mmc_rootfs_bkp' command to write BACKUP rootfsLukasz Majewski2018-06-181-0/+5
| | | | | | | | Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: wdt: Enable WDT support (both SPL and u-boot)Lukasz Majewski2018-06-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test case: The fitImage gets corrupted: truncate -c -s 3M fitImage run tftp_mmc_fitImg setenv boot_os y reset [board shall hang in SPL with "Trying to boot from MMC1" information] Then after X seconds WDT is causing board to reset. After N boot attempts we enter recovery mode. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: Support for the emergency PAD pressingLukasz Majewski2018-06-181-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | To enter the special mode, one needs to short cut two pads with e.g. screw driver. After power up the SPL will execute u-boot in which proper actions will be taken. It is worth noting that we do not alter envs (even the BOOT_FROM variable) and unconditionally go to recovery. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Update SPI-NOR partition for larger swupdate-initramfsLukasz Majewski2018-06-181-2/+2
| | | | | | | | | | | | | | | | The SPI-NOR partition information has been updated to store swupdate-kernel-FIT just after envs as well as two times larger swupdate-initramfs image. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Remove support for Linux initramfs recovery image bootLukasz Majewski2018-06-181-28/+1
| | | | | | | | | | | | | | | | | | This is a prerequisite patch to combine SWUpdate and Linux recovery initramfs images. It removes the support for it. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Reset the board when bootm failsLukasz Majewski2018-06-181-5/+5
| | | | | | | | | | | | | | | | Since display5 is now supporting boot counting, we can just reset the board when bootm fails (i.e. it doesn't boot the fitImage kernel for any reason). Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Provide command to flash the whole SPI-NOR memoryLukasz Majewski2018-06-181-0/+11
| | | | | | | | | | | | | | It may be necessary to update the content of the whole SPI-NOR memory at once with using a single command (tftp_sf_img). Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: config: Add "factory" (1MiB) SPI-NOR partition in u-bootLukasz Majewski2018-06-181-0/+1
| | | | | | | | | | | | | | | | To test if this partition is present - one needs to write: display5 > sf probe; mtdparts display5 > sf erase factory +0x100000 Signed-off-by: Lukasz Majewski <lukma@denx.de>