summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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>
* | ARM: image: Add option for ignoring ep bit 3Marek Vasut2018-06-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add option to the booti_setup() which indicates to it that the caller requires the image to be relocated to the beginning of the RAM and that the information whether the image can be located anywhere in RAM at 2 MiB aligned boundary or not is to be ignored. This is useful ie. in case the Image is wrapped in another envelope, ie. fitImage and not relocating it but moving it would corrupt the envelope. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Bin Chen <bin.chen@linaro.org> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Tom Rini <trini@konsulko.com> Reviewed-By: Bin Chen <bin.chen@linaro.org>
* | log: Fix incorect range check in log_get_cat_name()Simon Glass2018-06-181-1/+2
| | | | | | | | | | | | | | This allows access to an element after the end of the array. Fix it. Reported-by: Coverity (CID: 173279) Signed-off-by: Simon Glass <sjg@chromium.org>
* | block: Add SPL_BLOCK_CACHE and default nAdam Ford2018-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | When enabling BLOCK_CACHE on devices with limited RAM during SPL, some devices may not boot. This creates an option to enable block caching in SPL by defaults off. It is dependent on SPL_BLK Fixes: 46960ad6d09b ("block: Have BLOCK_CACHE default to y in some cases") Signed-off-by: Adam Ford <aford173@gmail.com>
* | dm: gpio: Add DM compatibility to GPIO driver for DavinciAdam Ford2018-06-181-1/+1
| | | | | | | | | | | | | | This adds DM_GPIO support for the davinici GPIO driver with DT support. Signed-off-by: Adam Ford <aford173@gmail.com>
* | iotrace: fix behaviour when buffer is fullRamon Fried2018-06-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | Don't continue updating the offset when buffer is full. When the buffer size exhausts and there's no space left to write warn the user and update only the needed size and not both the offset and needed size. Add needed buffer size information in the iotrace command. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | iotrace: move record definitons to header fileRamon Fried2018-06-181-0/+28
| | | | | | | | | | | | | | | | The header definitions are needed for reading record information in cmd/iotrace.c Signed-off-by: Ramon Fried <ramon.fried@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | configs: Remove empty #ifdef/#ifndef blocksChris Packham2018-06-182-5/+0
| | | | | | | | | | | | | | Remove empty #ifdef/#ifndef..#endif blocks where the configuration they guarded has been completely removed. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | am57xx_hs: avb2.0: add support of AVB 2.0Igor Opaniuk2018-06-181-0/+26
| | | | | | | | | | | | | | | | | | | | 1. Add vbmeta partition info to android partition layout for TI platforms. 2. Add support of AVB 2.0 (including avb subset of commands) for am57xx HS Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> [trini: Move to include/environment/ti/boot.h, reword commit slightly] Signed-off-by: Tom Rini <trini@konsulko.com>
* | avb2.0: add boot states and dm-verity supportIgor Opaniuk2018-06-181-1/+18
| | | | | | | | | | | | | | 1. Add initial support of boot states mode (red, green, yellow) 2. Add functions for enforcing dm-verity configurations Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
* | avb2.0: implement AVB opsIgor Opaniuk2018-06-181-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement AVB ops on top of existing mmc subsystem API. Currently there is a full implementation of such operations, defined by [1] AVB2.0 specification: .read_from_partition() - reads N bytes from a partition identified by a name. .write_to_partition() - Writes N bytes to a partition identified by a name. .validate_vbmeta_public_key() - checks if the given public ‘vbmeta’ partition is trusted. .get_unique_guid_for_partition() - Gets the GUID for a partition identified by a string name. As [1] specification recommends to use tamper-evident storage for storing rollback indexes and device state (LOCKED/UNLOCKED), currently are only stubs instead of full implementation for these ops: .read_rollback_index() - Gets the rollback index for a given index location .write_rollback_index() - Sets the rollback index to a given location .read_is_device_unlocked() - Gets where the device is unlocked [1] https://android.googlesource.com/platform/external/avb/+/master/README.md Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
* | Merge git://git.denx.de/u-boot-x86Tom Rini2018-06-183-0/+67
|\ \
| * | x86: Rename efi-x86 target to efi-x86_appBin Meng2018-06-171-0/+0
| | | | | | | | | | | | | | | | | | | | | To avoid confusion, let's rename the efi-x86 target to efi-x86_app. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | efi: stub: Pass EFI GOP information to U-Boot payloadBin Meng2018-06-171-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | If UEFI BIOS has the graphics output protocol (GOP), let's pass its information to U-Boot payload so that U-Boot can utilize it (eg: an EFI framebuffer driver). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | x86: Add generic EFI payload supportBin Meng2018-06-171-0/+32
| |/ | | | | | | | | | | | | | | | | | | | | It is possible to create a generic EFI payload for all x86 boards. The payload is configured to include as many generic drivers as possible. All stuff that touches low-level initialization are not allowed as such is the EFI BIOS's responsibility. Platform specific drivers (like gpio, spi, etc) are not included. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | Merge branch 'master' of git://git.denx.de/u-boot-shTom Rini2018-06-177-19/+26
|\ \ | |/ |/|
| * ARM: rmobile: Fix environment placement on DraakMarek Vasut2018-06-161-1/+1
| | | | | | | | | | | | The environment on Draak is in the eMMC, card 0, place it so. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * ARM: rmobile: Point load address to more sane area on Gen3Marek Vasut2018-06-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Point the $loadaddr variable and default load address to a more sane area, 384 MiB from the start of RAM. This is to avoid all the reserved memory at the beginning of RAM. The old behavior could still be easily retained by "setenv loadaddr 0x48080000" . The new setup allows us to use for example modern fitImage with kernel_noload, so use this as a new preferred default. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Point load address to more sane area on Gen2Marek Vasut2018-06-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Point the $loadaddr variable and default load address to a more sane area, 256 MiB from the start of RAM. While it is convenient to use uImage without copying, which is why the previous load address was set the way it was, uImage is now legacy. This behavior could still be easily retained by "setenv loadaddr 0x40007fc0" . The new setup allows us to use for example modern fitImage with kernel_noload, so use this as a new preferred default. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Zap CONFIG_SYS_CLK_FREQ where applicableMarek Vasut2018-06-144-16/+0
| | | | | | | | | | | | | | | | | | | | The CONFIG_SYS_CLK_FREQ is not used on some of the Gen3 boards, remove it. Moreover, on Ebisu this actually didn't match the comment in the config file at all, but since it was not used, there was no real problem. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * dts: gpio: Sync header with Linux 4.17Marek Vasut2018-06-141-0/+21
| | | | | | | | | | | | | | Sync the gpio.h header with Linux 4.17, which contains new macros. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Tom Rini <trini@konsulko.com>
* | Merge tag 'arc-updates-for-2018.07-rc2' of git://git.denx.de/u-boot-arcTom Rini2018-06-151-0/+6
|\ \ | | | | | | | | | | | | | | | | | | Here we just add a tool for HSDK flashable images preparation together with extensive documentation for HSDK board. This will help real-life users to update U-Boot on the board.
| * | ARC: HSDK: Add tool and make target to generate bspEugeniy Paltsev2018-06-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HSDK board has preloader that reads SPI flash pages and searches for a special image header to fetch and load binary. Add tool, make target (bsp-generate) to generate update script and u-boot binary image with header for preloader. Also add script to default environment to apply updates. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* | | Merge tag 'xilinx-for-v2018.07-rc2' of git://git.denx.de/u-boot-microblazeTom Rini2018-06-151-0/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xilinx fixes for v2018.07-rc2 Zynq: - Fix missing watchdog header - DT fixes ZynqMP: - emmc configuration split - Enable SPD - Fix PMUFW_INIT_FILE logic - Coverity fixes in SoC code timer - Add timer_get_boot_us mmc: - Fix MMC HS200 tuning command serial: - Fix scrabled chars with OF_LIVE
| * | | arm64: zynqmp: Enable SPD ddr support for zcu102 targetsMichal Simek2018-06-151-0/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | zcu102 contains DIMM with SPD on it at 0x51 address. For example: i2c dev 13 i2c sdram 51 Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* | | Merge tag 'signed-efi-next' of git://github.com/agraf/u-bootTom Rini2018-06-142-2/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Patch queue for efi - 2018-06-14 A few minor fixes for the release: - Compile fixes - HI20 relocations for RISC-V - Fix bootefi without load path - Fix Runtime Services with certain compilers
| * | efi_loader: avoid initializer element is not constantHeinrich Schuchardt2018-06-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building with -pedantic the current definition of EFI_GUID() causes an error 'initializer element is not constant'. Currently EFI_GUID() is used both as an anonymous constant and as an intializer. A conversion to efi_guid_t is not allowable when using EFI_GUID() as an initializer. But it is needed when using it as an anonymous constant. We should not use EFI_GUID() for anything but an initializer. So let's introduce a variable where needed and remove the conversion. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
| * | riscv: Add support for HI20 PE relocationsAlexander Graf2018-06-141-0/+3
| |/ | | | | | | | | | | | | | | | | | | | | The PE standard allows for HI20/LOW12 relocations. Within the efi_loader target we always know that our relocation target is 4k aligned, so we don't need to worry about the LOW12 part. This patch adds support for the respective relocations. With this and a few grub patches I have cooking in parallel I'm able to run grub on RISC-V. Signed-off-by: Alexander Graf <agraf@suse.de>
* | net: include/phy.h: add new mode for internal phyKunihiko Hayashi2018-06-131-0/+2
| | | | | | | | | | | | | | | | | | Add the new mode to indicate a built-in PHY. This will be used by UniPhier AVE ethernet driver. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* | drivers/net/vsc9953: Initialize action RAM in VCAP complexRadu Bulie2018-06-131-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | VCAP tables must be initialized even if no advanced classification is used. If no initialization is performed, then ECC error will be observed by the user when the first packet enters the l2switch. The error is marked in MPIC_EISR0 -bit 29 which means - Internal RAM multi-bit ECC error. This patch fixes the aforementioned ECC error by performing the initialization of VCAP tables. Signed-off-by: Radu Bulie <radu-andrei.bulie@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* | net/phy/cortina: Add support for CS4223 PHYVicentiu Galanopulo2018-06-132-0/+5
|/ | | | | | | | | | | | | Add support for Cortina CS4223 10G PHY - As per the CS4223 specs, an EEPROM module is connected to the PHY. At startup the PHY reads the firmware line and tries to load the firmware into the internal memory. - This driver reads the EEPROM status and checks if firmware has been loaded Signed-off-by: Vicentiu Galanopulo <vicentiu.galanopulo@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* u-boot: Fix several typosShyam Saini2018-06-132-2/+2
| | | | | | | 's/environemnt/environment/' and 's/Environemnt/Environment/' Signed-off-by: Shyam Saini <shyam@amarulasolutions.com>
* lib: Add hexdumpAlexey Brodkin2018-06-132-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Often during debugging session it's very interesting to see what data we were dealing with. For example what we write or read to/from memory or peripherals. This change introduces functions that allow to dump binary data with one simple function invocation like: ------------------->8---------------- print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len); ------------------->8---------------- which gives us the following: ------------------->8---------------- 00000000: f2 b7 c9 88 62 61 75 64 72 61 74 65 3d 31 31 35 ....baudrate=115 00000010: 32 30 30 00 62 6f 6f 74 61 72 67 73 3d 63 6f 6e 200.bootargs=con 00000020: 73 6f 6c 65 3d 74 74 79 53 33 2c 31 31 35 32 30 sole=ttyS3,11520 00000030: 30 6e 38 00 62 6f 6f 74 64 65 6c 61 79 3d 33 00 0n8.bootdelay=3. 00000040: 62 6f 6f 74 66 69 6c 65 3d 75 49 6d 61 67 65 00 bootfile=uImage. 00000050: 66 64 74 63 6f 6e 74 72 6f 6c 61 64 64 72 3d 39 fdtcontroladdr=9 00000060: 66 66 62 31 62 61 30 00 6c 6f 61 64 61 64 64 72 ffb1ba0.loadaddr 00000070: 3d 30 78 38 32 30 30 30 30 30 30 00 73 74 64 65 =0x82000000.stde 00000080: 72 72 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 rr=serial0@e0022 00000090: 30 30 30 00 73 74 64 69 6e 3d 73 65 72 69 61 6c 000.stdin=serial 000000a0: 30 40 65 30 30 32 32 30 30 30 00 73 74 64 6f 75 0@e0022000.stdou 000000b0: 74 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 30 t=serial0@e00220 000000c0: 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.............. ... ------------------->8---------------- Source of hexdump.c was copied from Linux kernel v4.7-rc2. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anatolij Gustschin <agust@denx.de> Cc: Mario Six <mario.six@gdsys.cc> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Stefan Roese <sr@denx.de>
* fs: fat: fix wrong casting to unsigned value of sect_to_cluster()Seung-Woo Kim2018-06-131-1/+1
| | | | | | | | | | | | After the commit 265edc03d5a1 ("fs/fat: Clean up open-coded sector <-> cluster conversions"), it is hung up writing new file to FAT16 disk with more than 19 files in armv7. It is because result value of sect_to_cluster() is not proper by casting from signed value to unsigned value. Fix the wrong casting of sect_to_cluster(). Reported-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* include/linux/byteorder: Sync to latest Linux definitionsRamon Fried2018-06-121-40/+67
| | | | | | | | | | generic.h has changed in Linux and new addtionals functions were added. This commit takes the latest and greatest from Linux (v4.17-rc5) to aid with porting drivers that utilize these functions. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* configs: pcm051: Use am335x-wega-rdk.dtb as fdtfileMatwey V. Kornilov2018-06-121-1/+1
| | | | | | | In upstream Linux kernel, the fdtfile for this specific board is called am335x-wega-rdk.dtb Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* configs: pcm051: Use DEFAULT_LINUX_BOOT_ENV instead of hardcoded valuesMatwey V. Kornilov2018-06-121-3/+1
| | | | | | It appears that DEFAULT_LINUX_BOOT_ENV can be used to boot pcm051 board. Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* configs: pcm051: Use DEFAULT_MMC_TI_ARGS instead of hardcoded duplicatesMatwey V. Kornilov2018-06-121-8/+5
| | | | Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* configs: pcm051: Support distro bootcmdsMatwey V. Kornilov2018-06-121-20/+29
| | | | | | Add support for distro bootcmds. Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini2018-06-122-0/+142
|\
| * LS1012AFRWY: Add Secure Boot supportVinitha V Pillai2018-06-111-1/+15
| | | | | | | | | | | | | | | | | | Added the following: 1. defconfig for LS1012AFRWY Secure boot 2. PfE Validation support Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * board: ls1012a: FRWY-LS1012A board supportBhaskar Upadhaya2018-06-111-0/+119
| | | | | | | | | | | | | | | | | | | | FRWY-LS1012A belongs to LS1012A family with features 2 1G SGMII PFE MAC, Micro SD, USB 3.0, DDR, QuadSPI, Audio, UART. Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com> [yorks: rebase and fix SPDX tag] [yorks: fix board/freescale/ls1012afrdm/Kconfig] Reviewed-by: York Sun <york.sun@nxp.com>
| * arm: ls1021aqds: config: enable CONFIG_ID_EEPROM for mac commandJagdish Gediya2018-06-081-0/+9
| | | | | | | | | | Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
* | arm: mvebu: Add Helios4 Armada 38x initial supportDennis Gilmore2018-06-121-0/+172
|/ | | | | | | | | | | The helios4 is built on the SolidRun Armada 38x SOM. The port os based on the ClearFog board, using information from https://github.com/helios-4/u-boot-marvell as well as dtb input from https://github.com/helios-4/linux-marvell Signed-off-by: Dennis Gilmore <dennis@ausil.us> Signed-off-by: Dennis Gilmore <dgilmore@redhat.com> Signed-off-by: Stefan Roese <sr@denx.de>