summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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>
| * display5: config: factory: Setup IP config data according to LEG production ↵Lukasz Majewski2018-06-181-0/+4
| | | | | | | | | | | | setup Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * display5: factory: Add support for BOOT_FROM = FACTORY switchLukasz Majewski2018-06-181-1/+8
| | | | | | | | | | | | | | | | | | When BOOT_FROM = FACTORY, then the LEG's factory setup is performed. This code relies on boot_nfs u-boot command, so it shall be adjusted appropriately (e.g. provide proper fitImage file). Signed-off-by: Lukasz Majewski <lukma@denx.de>
* | efi.h: Do not use config optionsAlexander Graf2018-06-241-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently efi.h determines a few bits of its environment according to config options. This falls apart with the efi stub support which may result in efi.h getting pulled into the stub as well as real U-Boot code. In that case, one may be 32bit while the other one is 64bit. This patch changes the conditionals to use compiler provided defines instead. That way we always adhere to the build environment we're in and the definitions adjust automatically. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: added some comments to describe the __x86_64__ check] Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | x86: efi-x86_payload: Enable usb keyboard during bootBin Meng2018-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | For boards that don't route serial port pins out, it's quite common to attach a USB keyboard as the input device, along with a monitor. However USB is not automatically started in the generic efi payload codes. This uses a payload specific last_stage_init() to start the USB bus, so that a USB keyboard can be used on the U-Boot shell. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | config: meson-gx-common: Enable USB bootNeil Armstrong2018-06-191-0/+7
| | | | | | | | | | | | Add USB as boot target depending on the configuration. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* | configs: db410c: Set eMMC env partition to BOOT2Ramon Fried2018-06-191-0/+1
| | | | | | | | | | | | | | BOOT2 partition is empty and free for using to store the environment. Use that instead of the default user partition. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | common: Fix cpu nr type which is always unsigned typeMichal Simek2018-06-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | cpu_cmd() is reading cpu number via simple_strtoul() which is always unsigned type. Platform code implementations are not expecting that nr can be negative and there is not checking in the code for that too. This patch is using u32 type for cpu number to make sure that platform code get proper value range. Signed-off-by: Michal Simek <michal.simek@xilinx.com>