summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-18cm_fx6: Switch to full DM-awareJagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option. Build fine, but not tested. Cc: Nikita Kiryanov <[email protected]> Signed-off-by: Jagan Teki <[email protected]>
2020-12-18cl-som-imx7: Switch to DM_SPI/DM_SPI_FLASHJagan Teki
Enable DM_SPI/DM_SPI_FLASH with associated config options. Build fine, but not tested. Cc: Uri Mashiach <[email protected]> Signed-off-by: Jagan Teki <[email protected]>
2020-12-16configs: Resync with savedefconfigTom Rini
Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <[email protected]>
2020-12-16Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86Tom Rini
- Update cmdline parameter to be an env var in zimage boot - Various minor fixes for Intel Edison board
2020-12-16x86: edison: Switch to DM_USB_GADGETAndy Shevchenko
DM is the modern default approach for the drivers in U-Boot. It also allows to configure code via Device Tree. Move Intel Edison to use DM_USB_GADGET and drop hard coded values. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-16x86: edison: Use dwc3-generic driver for Intel EdisonAndy Shevchenko
Use generic Synopsys DesignWare 3 driver on Intel Edison. For now it's just a stub which allows future refactoring. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-16x86: edison: BINMAN selection is specific to the boardAndy Shevchenko
The platforms based on Intel Tangier may have different requirements how to create bootloader bundle to supply to a device. Currently the BINMAN approach is for Intel Edison only. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-16x86: edison: Add CPU to compatible stringAndy Shevchenko
Like in the rest of x86 boards append CPU to the board compatible string. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-16x86: edison: Drop unneeded DM_PCI_COMPATAndy Shevchenko
None of the driver for Edison is using DM_PCI_COMPAT, hence drop it. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-16x86: tangier: Find proper memory region for relocationAndy Shevchenko
It appears that U-Boot works by luck on Intel Edison board because the amount of RAM is less than 1 GB and standard way of calculating the top of it work for this configuration. However, this won't work if the amount of RAM is different and split differently in address space. We have to find the suitable window correctly. Find proper memory region for relocation by scanning MMAP SFI table in board_get_usable_ram_top() callback. According to the address map documentation the Main Memory is guaranteed to lie in the 0..2 GB range, that's why we limit search by this range. Fixes: e71de54a4943 ("x86: Add Intel Tangier support") Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]> [bmeng: fixed a typo in the commit message] Signed-off-by: Bin Meng <[email protected]>
2020-12-16x86: coral: Update the boot scriptSimon Glass
Make use of the new bootargs substitution mechanism and zboot command syntax. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-16x86: zimage: Update cmdline parameter to be an env varSimon Glass
With the updated changes to bootargs substitution[1], the zboot command needs to be updated to get its command line from an environment variable instead of a memory address. This is because the command-line string must be updated to convert %U to ${uuid}, etc. In any case it is more flexible to use a environment variable and it is best to do this before the release to avoid a subsequent change. Update the command accordingly. [1] http://patchwork.ozlabs.org/project/uboot/list/?series=212481 Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-15Merge tag 'doc-2021-01-rc4' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-efi Documentation fixes for v2020.01-rc4 Move several README files to reStructured text for the HTML documentation. Describe register for global data on x86. Allow building HTML documentation with Sphinx 3
2020-12-15distro_bootcmd: set devtype for dhcp bootIgor Opaniuk
Set $devtype for DHCP boot, which can be handy for the boot.scr for detection of devtype used (for example, when the same boot.scr is used for both mmc/dhcp boot): if test ${devtype} = "dhcp"; then ... fi Signed-off-by: Igor Opaniuk <[email protected]> Reviewed-by: Oleksandr Suvorov <[email protected]>
2020-12-15Merge tag 'u-boot-amlogic-20201215' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic - fix pinctrl BIAS setup which caused failure on some eMMC models - fix dr-mode configuration in dwc3-meson-g12a glue driver
2020-12-15doc: uefi: remove leading $ from bash commandsHeinrich Schuchardt
Use the same formatting for all bash commands. Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-12-15doc: move README.bootmenu to HTML docHeinrich Schuchardt
Convert README.bootmenu to reStructured text and move it to usage/bootmenu.rst. Adjust the text concerning configuration settings as these now are managed via Kconfig. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Pali Rohár <[email protected]>
2020-12-15doc: move README.trace to HTML documentationHeinrich Schuchardt
Convert README.trace to reStructured text and move it to develop/trace.rst. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2020-12-15doc: move README.NetConsole to HTML documentationHeinrich Schuchardt
Convert README.NetConsole to reStructured text and move it to doc/usage/netconsole.rst. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2020-12-15doc: use code-block in pstore.rstHeinrich Schuchardt
Use syntax highlighting for a Linux console session. Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-12-15doc: move pstore.rst to usage/pstore.rstHeinrich Schuchardt
Let's have a separate chapter dedicated to using U-Boot. Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-12-15doc: move README.commands to HTML docHeinrich Schuchardt
Reformat README.commands as reStructured text and add it to the HTML documentation as develop/commands.rst. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2020-12-15doc: allow building htmldoc with Sphinx 3+Heinrich Schuchardt
Due to removed function c_funcptr_sig_re building with Sphinx 3 fails. With the patch building succeeds with a lot of warnings if the '-W' flag is removed from doc/Makefile. Most of the documentation is correct This follows the approach taken by the Linux kernel. Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-12-15doc: global data pointer on x86, x86_64Heinrich Schuchardt
On x86 the global data pointer is stored in register fs. On x86_64 no register is used for the global data pointer. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2020-12-15doc/build/gcc.rst: required packages for SUSEHeinrich Schuchardt
Describe the packages required to build U-Boot on SUSE. Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-12-14Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscvTom Rini
- Fix wrong amoswap t1 usage in startup. - Reset the board after crash. - Enable distro booting from an attached SCSI disk for QEMU. - Support the optional header fields in efi header.
2020-12-14pinctrl: meson: fix bit manipulation of pin bias configurationNeil Armstrong
This fixes the wrong usage of clrsetbits_le32(), badly setting the set argument. Fixes: c4c726c26b ("pinctrl: meson: add pinconf support") Reported-by: Anton Arapov <[email protected]> Reported-by: Otto Meier <[email protected]> Signed-off-by: Neil Armstrong <[email protected]>
2020-12-14usb: dwc3-meson-g12a: always configure dr-modeMarek Szyprowski
dwc3_meson_g12a_force_mode() sets the dr-mode of the USB PHY. However it skips setting the mode if it matches the one done during driver probe (stored in private structure). This fails if the mode has been changed to other value and then back to initial one. Fix this by configuring the dr-mode always, regadless of the one set at the driver probe). This fixes operation of USB gadget based drivers when they are initialized for the second time. Signed-off-by: Marek Szyprowski <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Neil Armstrong <[email protected]>
2020-12-14riscv: Complete efi header for RV32/64Leo Yu-Chi Liang
This patch depends on Atish's patch. (https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/) Add fields to complete Optional Header "Data Directories" specified in the document. (https://docs.microsoft.com/en-us/windows/win32/debug/pe-format) Signed-off-by: Leo Yu-Chi Liang <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Reviewed-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Atish Patra <[email protected]>
2020-12-14riscv: Fix efi header size for RV32Leo Yu-Chi Liang
This patch depends on Atish's patch. (https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/) Modify the size of the Optional Header "Windows-Specific Fields" to fit with the specification. (https://docs.microsoft.com/en-us/windows/win32/debug/pe-format) Signed-off-by: Leo Yu-Chi Liang <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected]
2020-12-14riscv: Fix efi header for RV32Atish Patra
RV32 should use PE32 format instead of PE32+ as the efi header format. This requires following changes 1. A different header magic value 2. An additional parameter known as BaseOfData. Currently, it is set to zero in absence of any usage. Signed-off-by: Atish Patra <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Rick Chen <[email protected]>
2020-12-14riscv: qemu: enable distro boot from scsiHeinrich Schuchardt
Booting via distro boot fails for: qemu-system-riscv64 -drive if=none,file=sct-riscv64.img,format=raw,id=mydisk \ -device ich9-ahci,id=ahci -device ide-hd,drive=mydisk,bus=ahci.0 Enable distro booting from an attached SCSI disk. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Bin Meng <[email protected]>
2020-12-14riscv: reset after crashHeinrich Schuchardt
If an exception occurs on ARM or x86, we call panic() which will try to reset the board. Do the same on RISC-V. To avoid -Werror=format-zero-length move a '\n' to the string passed to panic. We don't need a message here as depending on CONFIG_PANIC_HANG we will either see ### ERROR ### Please RESET the board ### or resetting ... as next message. Reviewed-by: Rick Chen <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-12-14riscv: fix the wrong swap value registerBrad Kim
Not s2 register, t1 register is correct Fortunately, it works because t1 register has a garbage value Signed-off-by: Brad Kim <[email protected]> Reviewed-by: Lukas Auer <[email protected]> Reviewed-by: Leo Liang <[email protected]>
2020-12-11Merge tag 'u-boot-atmel-fixes-2021.01-b' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-atmel Second set of u-boot-atmel fixes for 2021.01 cycle This set includes very important fixes for: MMC booting on several boards, drive strength on sam9x60ek mmc lines, compile issues for timer.c old driver, removal of unwanted access to sam9x60 bit for oscillator bypass mode, and eeproms read on sama5d2_icp.
2020-12-11ARM: dts: at91: sama5d2_icp: fix i2c eeprom compatibleEugen Hristev
The correct compatible for this eeproms is microchip,24aa02e48 The previous compatible string was working up to U-boot 2020.04. Signed-off-by: Eugen Hristev <[email protected]> Tested-by: Codrin Ciubotariu <[email protected]>
2020-12-11Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriqTom Rini
- Add lx2162 soc, lx2162qds support. - Bug-fixes related ls102x-usb, ifc, bootcmd, secure-boot header, - rgmii, vid, fdt, env variable, pci for Layerscape products
2020-12-10configs: lx2162aqds: Enable gpio driver in defconfigHui Song
make lx2162aqds platform to enable gpio driver. Signed-off-by: Hui Song <[email protected]> Signed-off-by: Ran Wang <[email protected]> [Rebased] Signed-off-by: Priyanka Jain <[email protected]>
2020-12-10arm: ls102xa: select USB PHY erratum's only if USB is enabledAleksandar Gerasimovski
The USB support is not by default enabled on all designs, so it does not make seance to have USB specific erratum's enabled on such a designs. On our internal Hitachi-Powergrids design not using the USB controller there is a crash when accessing those specific memory locations selected by the erratum flags. Signed-off-by: Aleksandar Gerasimovski <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10drivers: ifc: add define for IFC_CSPRn TE bitAleksandar Gerasimovski
To drive TE pin high is supported IFC configuration that can be used on some designs. Signed-off-by: Aleksandar Gerasimovski <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10powerpc: mpc85xx: Allow boards to override CONFIG_USB_MAX_CONTROLLER_COUNTChris Packham
If the board isn't strapped to enable USB1 then attempting to access it will result in a hang. Avoid this by allowing boards to define CONFIG_USB_MAX_CONTROLLER_COUNT. Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10armv8: fsl-layerscape: Fix automatic setting of bootmcd with TF-AAlban Bedel
When booting from TF-A there is a logic that attempt to detect if the default environment is used, if this is the case it then set the `bootcmd` and `mcinitcmd` depending of the device we booted from. This detection logic is dubious as it access internals of the env implementation and it doesn't always work correctly. First of all it detect any valid environment as not being the default, so after running `env default -a && saveenv` the board doesn't boot anymore as `bootcmd` is then empty. But it also fails in some other ways, for example it always detect a default environment when redundant env is enabled on MMC, so in that case `bootcmd` is overwritten on every boot. Instead of increasing the complexity of the detection just check if `bootcmd` and `mcinitcmd` are set in the environment and set them if they are not. Signed-off-by: Alban Bedel <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10net: pfe_eth: read PFE ESBC header flash with spi_flash_read APIBiwen Li
Read PFE ESBC header flash with spi_flash_read API - logs as follows, Net: SF: Detected s25fs512s with page size 256 Bytes, erase size 256 KiB, total 64 MiB "Synchronous Abort" handler, esr 0x96000210 elr: 000000008206db44 lr : 0000000082004ea0 (reloc) elr: 00000000b7ba6b44 lr : 00000000b7b3dea0 x0 : 00000000b79407e8 x1 : 0000000040640000 x2 : 0000000000000050 x3 : 0000000000000000 x4 : 000000000000000a x5 : 0000000000000050 x6 : 0000000000000366 x7 : 00000000b7942308 x8 : 00000000b76407c0 x9 : 0000000000000008 x10: 0000000000000044 x11: 00000000b7634d1c x12: 000000000000004f x13: 0000000000000044 x14: 00000000b7634d98 x15: 00000000b76407c0 x16: 0000000000000000 x17: 0000000000000000 x18: 00000000b7636dd8 x19: 0000000000000000 x20: 00000000b79407d0 x21: 00000000b79407e8 x22: 0000000040640000 x23: 00000000b7634e58 x24: 0000000000000000 x25: 0000000003800000 x26: 00000000b7bdd000 x27: 0000000000000000 x28: 0000000000000000 x29: 00000000b7634d10 Code: d2800003 eb03005f 54000101 d65f03c0 (f8636826) Resetting CPU ... Signed-off-by: Biwen Li <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10lx2160a: Fix address for secure boot headersManish Tomar
Update kernel_size_sd variable with correct value for lx2160a. Signed-off-by: Manish Tomar <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10ls1043a: Fix address for secure boot headersManish Tomar
Update kernelheader_addr and kernelheader_addr variables with correct values for ls1043a. Signed-off-by: Manish Tomar <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10layerscape: fdt.c: Check for NULL return value from fdt_getprop()Priyanka Singh
Check for NULL return value from fdt_getprop() in fdt_fixup_remove_jr() Signed-off-by: Priyanka Singh <[email protected]> [Fixed checkpatch errors/warnings] Signed-off-by: Priyanka Jain <[email protected]>
2020-12-10board: freescale: powerpc: add support for all RGMII modesMadalin Bucur
Make sure all RGMII internal delay modes are covered. Signed-off-by: Madalin Bucur <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10armv8: ls1043/ls1046aqds: add support for all RGMII modesMadalin Bucur
Make sure all RGMII internal delay modes are covered. Signed-off-by: Madalin Bucur <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10board: freescale: vid.c: Initialize variable 'i2caddress'Priyanka Singh
Initialize variable 'i2caddress' in adjust_vdd() to zero Signed-off-by: Priyanka Singh <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2020-12-10include/configs: ls1012aqds: add default environment variableBiwen Li
This adds default environment variable for ls1012aqds Signed-off-by: Biwen Li <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>