AuthorCommitMessageCommit date
Tom RiniTom Rini
3c4fb0e91e2MMerge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi- SPL SPI support R40, H6 (Andre) - eMMC boot part on a64-olinuxino (Petr)
Petr ŠtetiarPetr Štetiar
b8c0d4cc665configs: a64-olinuxino-emmc: add eMMC boot part config commands mmc bootbus and partconf commands are needed in order to be able to configure booting from separate boot0/boot1 eMMC partitions. Signed-off-by: Petr Štetiar <ynezz@true.cz> [jagan: rebase on master] Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>configs: a64-olinuxino-emmc: add eMMC boot part config commandsmmc bootbus and partconf commands are needed in order to be able to configure booting from separate boot0/boot1 eMMC partitions. Signed-off-by: Petr Štetiar <ynezz@true.cz> [jagan: rebase on master] Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tom RiniTom Rini
350c44dfb99MMerge branch '2020-03-27-master-imports'- Update a few MAINTAINERS entries - cache alignment fix in ext4 code - Two small test fixes
Heinrich SchuchardtHeinrich Schuchardt
6cc8e545b79test: typo decompression%s/decopmression/decompression/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Marek BehúnMarek Behún
3e29bd268d6MAINTAINERS: add myself as maintainer of fs/btrfsSigned-off-by: Marek Behún <marek.behun@nic.cz>
Jan KiszkaJan Kiszka
7b83060b1eafs: ext4: Fix alignment of cache buffersWe need to align the cache buffer to ARCH_DMA_MINALIGN in order to avoid access errors like CACHE: Misaligned operation at range [be0231e0, be0235e0] seen on the MCIMX7SABRE. Fixes: d5aee659f217 ("fs: ext4: cache extent data") Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Peter Robinso...
Marek VasutMarek Vasut
cb11eed23d7MAINTAINERS: Add usb.h entry to usbAdd usb.h file into the USB list. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com>
Harald SeilerHarald Seiler
6748a1f2a3etest/py: mmc: Fix 'mmc info' testcaseCommit 41e30dcf8796 ("cmd: mmc: Make Mode: printout consistent") fixed the layout of `mmc info` output. Reflect this change in the respective testcase. Also fix a typo in the documentation. Fixes: 41e30dcf8796 ("cmd: mmc: Make Mode: printout consistent") Signed-off-by: Harald Seiler <hws@denx.de> Acked-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Tom RiniTom Rini
39984d22138Revert "vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader."Currently this causes failures of the platform when running the EFI loader tests, so disable it for now. This reverts commit af827140e5965e5bb2bcad1c53ca8419b428ff6d. Signed-off-by: Tom Rini <trini@konsulko.com>
Tom RiniTom Rini
fa041198a80MMerge tag 'u-boot-rockchip-20200327' of https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip- Fixed for rv1108 and elgin-rv1108 board - Fix the keyboard from USB instead of CrOS EC
Miquel RaynalMiquel Raynal
e5a405583f5rockchip: mkimage: Use an existing macro instead of a decimal valueDepending on the SoC, a header of four characters is prepended to the image. There is already a macro defining the number of characters: RK_SPL_HDR_SIZE, so use it instead of hardcoding "4". Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Otavio SalvadorOtavio Salvador
99f946976e1rv1108: Fix boot regressionSince commit 79030a486128 ("rockchip: Add Single boot image (with binman, pad_cat)") the following boot regression is seen: U-Boot 2020.04-rc3-00050-gd16e18ca6c-dirty (Mar 09 2020 - 11:40:07 -0300) Model: Elgin RV1108 R1 board DRAM: 128 MiB initcall sequence 67fd12a0 failed at call 6000b927 (err=-22) This happens because the above commit missed to include the "rockchip-u-boot.dtsi" for rv11...
Otavio SalvadorOtavio Salvador
2dcbeb3568eelgin-rv1108: Avoid adc_channel_single_shot errorCurrently the following error message is seen during boot: U-Boot 2020.01-08751-g55759ae141 (Mar 09 2020 - 14:44:52 -0300) Model: Elgin RV1108 R1 board DRAM: 128 MiB APLL: 600000000 DPLL:1200000000 GPLL:1188000000 ACLK_BUS: 148500000 ACLK_PERI:148500000 HCLK_PERI:148500000 PCLK_PERI:74250000 MMC: dwmmc@30110000: 0 Loading Environment from MMC... OK In: serial@10210000 Out: serial@1021...
Otavio SalvadorOtavio Salvador
1ac0d52a9bbelgin-rv1108: Use rk_board_late_init() for GPIO settingsSince commit 8e9a8d0d0c8c ("rockchip: elgin-rv1108: use board_early_init_f for per-boar init") the function that configure the board GPIOs is no longer called since CONFIG_BOARD_EARLY_INIT_F=y is not selected. These GPIOs do not need to be configured in such early stagem, so change it to rk_board_late_init() and also select CONFIG_BOARD_LATE_INIT=y to fix the regression. Signed-off-by: Otavio...
Otavio SalvadorOtavio Salvador
af84b3327adARM: dts: Activate pullups in the console pins on rv1108-elgin-r1In order to make the console pins more robust to noise, activate the pullups and increase its drive strength. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Peter RobinsonPeter Robinson
23cb61761b1rockchip: Change keyboard input from CrOS EC keyboard to a USB keyboardThese boards aren't ChromeOS devices so won't have a cros-ec-keyb input as it's the keyboard available via the ChromeOS Embedded Controller. Update them to use a USB keyboard which would actually be available. Also enable the usb keyboard option for those devices that don't have it enabled already. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Michael Trimarchi <michael@ama...
Kever YangKever Yang
9cec3367087rockchip: evb-rv1108: Use syscon API to get grf baseUse syscon API to get grf base instead of get from dts. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Kever YangKever Yang
4aa33690fc9rockchip: elgin-rv1108: Use syscon API to get grf baseUse syscon API to get grf base instead of get from dts. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Kristian AmlieKristian Amlie
af827140e59vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly. Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
Tom RiniTom Rini
0aadc0786e4MMerge tag 'efi-2020-04-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efiPull request for UEFI sub-system for efi-2020-04-rc4 (5) This series contains bug fixes for the UEFI sub-system: * report correct variable length in GetNextVariable() * correct copying direction if freestanding memmove() * remove const for parameter of GetNextVariableName() * correct function descriptions Unit tests are added and adjusted.
Heinrich SchuchardtHeinrich Schuchardt
7a4e717b9c0efi_loader: definition of GetNextVariableName()'vendor' is both an input and an output parameter. So it cannot be constant. Fixes: 0bda81bfdc5c ("efi_loader: use const efi_guid_t * for variable services") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
cde162e7668efi_selftest: test CalculateCrc32, CopyMem, SetMemProvide unit tests for CalculateCrc32(), CopyMem(), SetMem(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
72291a9d83eefi_loader: fix freestanding memmove()For EFI binaries we have to provide an implementation of memmove() in efi_freestanding.c. Before this patch the memmove() function was copying in the wrong direction. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
7aeceffb250efi_loader: description efi_convert_pointer()Correct the description of function efi_convert_pointer(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
9f888969fddefi_loader: simplify logical expression in efi_disk_add_dev()To check if a variable is non-zero there is no need for '!= 0'. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
e1089765b59efi_selftest: check length reported by GetNextVariableName()GetNextVariableName should report the length of the variable including the final 0x0000 in bytes. Check this in the unit test. Increase the buffer size for variable names. 40 bytes is too short. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
4d7f5af841cefi_loader: correct reported length in GetNextVariable()The runtime service GetNextVariable() returns the length of the next variable including the closing 0x0000. This length should be in bytes. Comparing the output of EDK2 and U-Boot shows that this is currently not correctly implemented: EDK2: OsIndicationsSupported: 46 PlatformLang: 26 PlatformLangCodes: 36 U-Boot: OsIndicationsSupported: 23 PlatformLang: 13 PlatformLangCodes: 18 Provide cor...
Heinrich SchuchardtHeinrich Schuchardt
47a9596354eefi_loader: fix function descriptions in efi_disk.cUse Sphinx style for function descriptions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
f0b0f7fe0eeefi_loader: description of efi_variable.cCorrect the file description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Andre PrzywaraAndre Przywara
cd27b933f50sunxi: Remove no longer needed default options from defconfigsNow that those common Allwinner config symbols are defined automatically for all boards in their Kconfig files, we can remove the now redundant definitions from the boards' _defconfig files. Some boards had a differing definiton for some of those symbols, it looks like mostly to "merge races" when the symbol was introduced (new board *_defconfig file missed the "add symbol to all files" patch)...
Andre PrzywaraAndre Przywara
48313fe5100sunxi: Move common defconfig options to KconfigSome config symbols are found in *almost* every _defconfig file for Allwinner boards, because those options are actually a platform choice, and not a per-board decision. Some of these options are older, some have recently been added. Move those options to be set for all Allwinner boards in their respective Kconfig files. The rationales are as follows: - NR_DRAM_BANKS: All Allwinner SoC map DR...
Andre PrzywaraAndre Przywara
e66a34eaba4sunxi: Pine H64: Enable SPI booting in defconfigThe Pine H64 board comes with some onboard SPI flash chip, which is perfect for loading SPL, ATF and U-Boot proper from there. Enable the functionality in the defconfig, so that we use sunxi-fel to transfer a bootable image to the NOR flash. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Andre PrzywaraAndre Przywara
fd40ad0d579sunxi: SPL SPI: Add SPI boot support for the Allwinner H6 SoCThe Allwinner H6 SoC uses a quite different memory map, also changes the clocks quite a bit. This requires some changes to the SPL SPI routine, which hardcodes these values so far. Using the just introduced helper functions to determine base address and SPI controller generation, we can cover some of these differences easily. The clock setup is different, so requires some explicit code changes...
Andre PrzywaraAndre Przywara
da19a0dbc81sunxi: SPL SPI: Add SPI boot support for the Allwinner R40 SoCNow that we can easily select an SoC specific SPI0 base address, adding support for the Allwinner R40 is fairly trivial: We set the base address, add this SoC to the ones that use PC23 and enable it in Kconfig. This allows booting from SPI flash on R40 boards. Tested on a Bananapi M2 Berry with SPI flash connected to the header pins. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Rev...
Andre PrzywaraAndre Przywara
56f51f38751sunxi: SPL SPI: Introduce is_sun6i_gen_spi()So far we were using the CONFIG_SUNXI_GEN_SUN6I symbol to select between the two SPI controller generations used on Allwinner SoCs. This is a convenience symbol to roughly differentiate between "older" and "newer" generation of SoCs. The H6 SoCs is the newest SoC so far, but is sufficiently different to not define this symbol. However it is using a SPI controller compatible to the "new gen" So...
Andre PrzywaraAndre Przywara
2775e08a2b7sunxi: SPL SPI: Split off SPI0 base addressSo far on all supported Allwinner SoCs we find the old generation SPI controller always at address 0x1c05000, and the new generation one at 0x1c68000. However the Allwinner R40 SoC has a new generation SPI at the old address, and the H6 uses a completely different address. So split off the base address from the respective SPI registers, by changing the #defines to just contain offsets. The bas...
Tom RiniTom Rini
14eb12a3c80MMerge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi- Revert "sunxi: psci: avoid error address-of-packed-member"
Tom RiniTom Rini
40e82bb97c6MMerge tag 'efi-2020-04-rc4-4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efiPull request for UEFI sub-system for efi-2020-04-rc4 (4) This series fixes several bugs: * consider the /reserved-memory node in the device tree * consider memory reservations created in ft_board_setup() * correct output of 'efidebug memmap' on the sandbox * correct the definition of efi_capsule_header() Furthermore some definitions needed for future patches are added to header files.
Tom RiniTom Rini
78176d408bfMMerge https://gitlab.denx.de/u-boot/custodians/u-boot-riscv- Fix sbi_remote_sfence_vma{,_asid}. - Avoid calling sbi_clear_ipi(). - Add new SBI v0.2 extensions support.
Tomasz DuszynskiTomasz Duszynski
3586cb82277Revert "sunxi: psci: avoid error address-of-packed-member"Using memcpy() for some MMIO access is generally frowned upon and might break things on some platforms. Allwinner H3, which fails to boot, being an example here. Moreover, fields being accessed are naturally aligned and warnings produced by GCC have been quiesced for some time already by: 53dc8ae ("gcc-9: silence 'address-of-packed-member' warning") That said, it should be okay to revert thi...
AKASHI TakahiroAKASHI Takahiro
74b44875357efi_loader: correct a definition of struct efi_capsule_headerSee UEFI specification, section 8.5.3. In addition, the structure, efi_capsule_header, should be "packed" as it is a serialized binary format in a capsule file. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
AKASHI TakahiroAKASHI Takahiro
b51ec639788efi_loader: export a couple of protocol related functionsThis is a preparatory patch. Those functions will be used in an implementation of UEFI firmware management protocol as part of my capsule update patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
AKASHI TakahiroAKASHI Takahiro
b74d568d836efi_loader: define System Resource Table macrosSome of those values will be used in an implementation of UEFI firmware management protocol as part of my capsule update patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
AKASHI TakahiroAKASHI Takahiro
7cceef7bde3efi_loader: define OsIndicationsSupported flagsThese flags are expected to be set in OsIndicationsSupported variable if corresponding features are supported. See UEFI specification, section 8.5.4. In particular, capsule-related flags will be used in my capsule update patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Fix misspelled EFI_OS_INDICATIONS_BOOT_TO_FW_UI. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Si...
Atish PatraAtish Patra
7be64b885a3cmd: bootefi: Parse reserved-memory node from DTCurrently, bootefi only parses memory reservation block to setup EFI reserved memory mappings. However, it doesn't parse the reserved-memory[1] device tree node that also can contain the reserved memory regions. Add capability to parse reserved-memory node and update the EFI memory mappings accordingly. 1. <U-Boot source>/doc/device-tree-bindings/reserved-memory/reserved-memory.txt] Signed-o...
Heinrich SchuchardtHeinrich Schuchardt
a415d61eac2cmd: map addresses to sysmem in efidebug memmapAddresses in the sandbox's device tree are in the sandbox's virtual address space. If we want to compare memory reservations in the device-tree with the output of 'efidebug memmap', we need to convert back to this address space. Adjust the output of the 'efidebug memmap' command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich SchuchardtHeinrich Schuchardt
fef907b2e44efi_loader: create reservations after ft_board_setupSome memory reservations are made in ft_board_setup(). Ensure that we create reserved memory map entries after ft_board_setup(). The downside of this patch is that if bootefi is called multiple times with an devicetree argument superfluous reservations for the old copies of the device tree will exist. But that is still better than missing a reservation. Deleting the superfluous reservations i...
Bin MengBin Meng
5bde2152d42riscv: Implement new SBI v0.2 extensionsFew v0.1 SBI calls are being replaced by new SBI calls that follows v0.2 calling convention. Implement the replacement extensions and few additional new SBI function calls that makes way for a better SBI interface in future. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Bin MengBin Meng
1b3c8d64020riscv: Introduce a new config for SBI v0.1We now have SBI v0.2 which is more scalable and extendable to handle future needs for RISC-V supervisor interfaces. Introduce a new config and move all SBI v0.1 code under that config. This allows to implement the new replacement SBI extensions cleanly and remove v0.1 extensions easily in future. Currently, the config is enabled by default. Once all M-mode software, with v0.1, is no longer in ...
Bin MengBin Meng
1e32715602driscv: Add SBI v0.2 extension definitionsFew v0.1 SBI calls are being replaced by new SBI calls that follows v0.2 calling convention. This patch just defines these new extensions. This commit is inspired from Linux kernel patch: https://patchwork.kernel.org/patch/11407359/ Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>