summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* efi_loader: detach runtime in ExitBootServices()Heinrich Schuchardt2019-07-063-1/+6
| | | | | | | | | | | | | | | | Linux can be called with a command line parameter efi=novamap, cf. commit 4e46c2a95621 ("efi/arm/arm64: Allow SetVirtualAddressMap() to be omitted"). In this case SetVirtualAddressMap() is not called after ExitBootServices(). OpenBSD 32bit does not call SetVirtualAddressMap() either. Runtime services must be set to an implementation supported at runtime in ExitBootServices(). Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Suggested-by: Alexander Graf <agraf@csgraf.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: simplify detachingHeinrich Schuchardt2019-07-061-32/+8
| | | | | | | We do not need any array typed detach list. Let's simply update the pointers directly. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: decision on EFI_RT_SUPPORTED_RESET_SYSTEMHeinrich Schuchardt2019-07-062-4/+7
| | | | | | Move the logic determining which board supports reset at runtime to Kconfig. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* test/py: not all boards support UEFI runtime resetHeinrich Schuchardt2019-07-061-4/+0
| | | | | | | As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: bump UEFI specification number to 2.8Heinrich Schuchardt2019-07-061-2/+2
| | | | | | | | | | We are implementing UEFI variable RuntimeServicesSupported and set the unimplemented runtime functions return EFI_UNSUPPORTED as described in UEFI specification 2.8. So let's also advertise this specification version in our system table. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@csgraf.de>
* efi_loader: split off detaching SetVirtualAddress()Heinrich Schuchardt2019-07-061-11/+58
| | | | | | | | | | | | | The runtime services SetVirtualAddress() and ConvertPointer() become unavailable after SetVirtualAddress(). Other runtime services become unavailable after ExitBootServices. Move the update of SetVirtualAddress() and ConvertPointer() to efi_relocate_runtime_table(). Use functions with the correct signature when detaching. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_selftest: test variable services at runtimeHeinrich Schuchardt2019-07-062-0/+95
| | | | | | | | | Provide a unit test for the variable services at runtime. Currently we expect EFI_UNSUPPORTED to be returned as the runtime implementation is still missing. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: unimplemented runtime servicesHeinrich Schuchardt2019-07-061-32/+2
| | | | | | | Unimplemented runtime services should always return EFI_UNSUPPORTED as described in the UEFI 2.8 spec. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: let the variable driver patch out the runtimeHeinrich Schuchardt2019-07-064-10/+48
| | | | | | | | | Our variable services are only provided at boottime. Therefore when leaving boottime the variable function are replaced by dummy functions returning EFI_UNSUPPORTED. Move this patching of the runtime table to the variable services implementation. Executed it in ExitBootServices(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: clean up runtime detachingHeinrich Schuchardt2019-07-061-23/+55
| | | | | | | | | | | The detaching of the runtime will have to move to ExitBootServices() to encompass operating system that do not call SetVirtualAddressMap(). This patch changes the logic for the relocation of the pointers in the runtime table such that the relocation becomes independent of the entries in the detach list. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: remove NULL entries from runtime detach listHeinrich Schuchardt2019-07-062-20/+9
| | | | | | | | | Some entries in the system table are set to NULL in ExitBootServices(). We had them in the runtime detach list to avoid relocation of NULL. Let's instead assign the pointers dynamically in efi_initialize_system_table() to avoid the relocation entry. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: initialization of variable servicesHeinrich Schuchardt2019-07-063-0/+17
| | | | | | Provide an initialization routine for variable services. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: move efi_query_variable_info()Heinrich Schuchardt2019-07-063-27/+32
| | | | | | | | Let's keep similar things together. Move efi_query_variable_info() to lib/efi_loader/efi_variable.c Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_loader: remove superfluous spaces in commentsHeinrich Schuchardt2019-07-061-4/+4
| | | | | | Leave only a single space after * if not aligning. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* test/py: error message test_efi_selftest_device_treeHeinrich Schuchardt2019-07-061-1/+1
| | | | | | Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_selftest: description of CMD_BOOTEFI_SELFTESTHeinrich Schuchardt2019-07-061-4/+4
| | | | | | | | | | The current short description has a typo. Let it stand out clear that we provide unit tests. Improve the description of the CMD_BOOTEFI_SELFTEST configuration option. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@csgraf.de>
* disk: efi: buffer overflow in part_get_info_efi()Heinrich Schuchardt2019-07-061-2/+2
| | | | | | | | | | | In part_get_info_efi() we use the output of print_efiname() to set info->name[]. The size of info->name is PART_NAME_LEN = 32 but print_efiname() returns a string with a maximum length of PARTNAME_SZ + 1 = 37. Use snprintf() instead of sprintf() to avoid buffer overflow. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* board: amlogic: add mailing-list to MAINTAINERSNeil Armstrong2019-07-046-0/+6
| | | | | | Add missing mailing-list to the amlogic boards MAINTAINERS file. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* Merge tag 'u-boot-imx-20190704' of ↵Tom Rini2019-07-0410-122/+289
|\ | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx Fixes for 2019.07 ----------------- - Wandboard
| * wandboard: README: Adjust the U-Boot proper binary nameFabio Estevam2019-07-041-1/+1
| | | | | | | | | | | | | | After the conversion to DM the U-Boot proper binary name is 'u-boot-dtb.img', so adjust it accordingly. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * wandboard: Add FIT image supportFabio Estevam2019-07-043-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | After the transition to DM, only the mx6dl/solo wandboard is supported. Add FIT image support so that all the wandboard variants can be supported, like it was prior to the DM conversion. Successfully booted Linux on mx6q/solo/qp wandboards. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * wandboard: Add mmc0 aliasFabio Estevam2019-07-041-0/+4
| | | | | | | | | | | | | | Add a mmc0 alias so that U-Boot proper can associate mmc0 with the boot SD card. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * wandboard: Import extra wandboard devicetree filesFabio Estevam2019-07-043-0/+241
| | | | | | | | | | | | | | Import wandboard devicetree files so that the mx6q and mx6qp variants can be properly supported. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * wandboard: Sync with devicetree files from kernel 5.1.9Fabio Estevam2019-07-043-112/+11
| | | | | | | | | | | | | | Udate the wandboard devicetree files with the ones from kernel 5.1.9. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * mx6: dts: Move dtbs under SoC levelFabio Estevam2019-07-041-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | Place dtbs under SoC level rather than board level. imx6q-novena.dtb and imx6dl-wandboard-revb1.dtb were placed under the board config option, so move them to SoC level. This also aligns with the kernel dts Makefile format. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * mx6: dts: Keep dtb entries sortedFabio Estevam2019-07-041-2/+2
|/ | | | | | | Keep dtb entries sorted to help adding new dtbs in an organized form. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* Merge tag 'rockchip-for-v2019.07-rc5-2' of ↵Tom Rini2019-07-0212-49/+124
|\ | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip - fix for atf bl31_image_info pointer - fix for rockpro64 vdd_log init - fix for tinker-rk3288 SPL size too big
| * rockchip: rk3288: enable TPL for tinker-boardKever Yang2019-07-021-0/+1
| | | | | | | | | | | | All the config for TPL has been update, we can enable the TPL. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: config: tiner-rk3288: extend CONFIG_SYS_MONITOR_LEN to 600KBKever Yang2019-07-021-0/+1
| | | | | | | | | | | | | | | | The raw u-boot.bin for tinker board has been about 450KB without debug option, and 550KB with all debug on, and the default value is 200KB, which is not enough for run raw u-boot.bin. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: config: update config for TPL support on tinker-rk3288Kever Yang2019-07-021-8/+5
| | | | | | | | | | | | | | | | We need to update TEXT BASE for TPL/SPL/U-Boot; SPL no need relocate STACK after enable TPL, so remove it; Don't enable pinctrl names so that SPL can get pinctrl dts; Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: dts: rk3288-tinker: enable sdmmc pinctrl node in splKever Yang2019-07-021-0/+24
| | | | | | | | | | | | | | rockchip pinctrl driver has update to use dts, so we need to add the pinctrl config in SPL for sdmmc. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: dts: tinker: migrate the dm-pre-reloc tag into -u-boot dtsKever Yang2019-07-022-19/+30
| | | | | | | | | | | | | | | | | | Migrate all the "u-boot,dm-pre-reloc" tag from rk3288-tinker.dts into rk3288-tinker-u-boot.dtsi. When both board level and soc level '-u-boot.dtsi' files exist, we need to include the soc level 'rk3288-u-boot.dtsi' manually. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: dts: rk3288: move reloc tag into -u-boot dtsKever Yang2019-07-024-8/+40
| | | | | | | | | | | | | | Move all the tag "u-boot,dm-pre-reloc" from rk3288.dtsi into rk3288-u-boot.dtsi. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk3288: add separate TPL STACK addressKever Yang2019-07-021-0/+4
| | | | | | | | | | | | | | | | TPL is at SRAM while other stage is at SDRAM, so it needs separate STACK. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
| * rockchip: rk3288: enable TPL configs to chip levelKever Yang2019-07-022-14/+14
| | | | | | | | | | | | | | More boards other than vyasa needs TPL, so enable the TPL configs at chip level instead of board level. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: dts: rk3399: rockpro64: Provide init voltageMark Kettenis2019-07-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | Add missing regulator-init-microvolt property to vdd_log regulator. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> (Rebase on latest u-boot-rockchip master) Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Change-Id: I13b24fb81e8ad269d7dbb0c7b67f5f4795d2e775
| * spl: atf: Fix uninitialized pointer to bl31_image_infoFrieder Schrempf2019-07-021-0/+1
|/ | | | | | | | | | | The pointer to struct atf_image_info in bl31_params_mem.bl31_params.bl31_image_info is not initialized before being dereferenced. This can cause U-Boot to crash right before jumping to the BL31 ATF binary. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Fixes: bcc1726a7bdd ("spl: add support to booting with ATF") Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
* poplar: increase SYS_MALLOC_F_LEN for DM_FLAG_PRE_RELOC supportShawn Guo2019-07-011-0/+1
| | | | | | | | | | | | | | | | | There is a regression seen on Poplar platform, which doesn't even show a U-Boot version banner on booting. It turns out that due to landing of commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver"), we need to increase SYS_MALLOC_F_LEN from its default size 0x400, as pre-relocation requires more memory there. Let's increase SYS_MALLOC_F_LEN to 0x4000 to fix the regression. Thanks to Andreas Färber <afaerber@suse.de> for reporting, and Bin Meng <bmeng.cn@gmail.com> for trouble shooting. Reported-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Andreas Färber <afaerber@suse.de>
* Merge tag 'u-boot-atmel-fixes-2019.07-b' of ↵Tom Rini2019-07-011-2/+4
|\ | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-atmel Second set of u-boot-atmel fixes for 2019.07 cycle
| * board: atmel: fix pda variable not being resetEugen Hristev2019-06-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | In case someone detects a PDA and u-boot sets the 'pda' variable, and the user does a saveenv, the pda is set in env, and if the screen is removed, u-boot will still have in the env the 'pda' variable, even if no screen is attached. In order to fix this, we have to reset the 'pda' variable, such that it's not just set if the screen is detected, but also unset if no screen is detected. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
* | Merge tag 'uniphier-v2019.07' of ↵Tom Rini2019-06-2917-98/+121
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-uniphier UniPhier SoC updates for v2019.07 - Add SPI pin-mux data for pinctrl driver - Remove unused code - Trivial bug-fix and clean-up
| * | ARM: uniphier: move sg_set_{pinsel, iectrl} to more relevant placesMasahiro Yamada2019-06-294-42/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the sg_set_pinsel macro to arch/arm/mach-uniphier/arm32/debug_ll.S since it is not used anywhere else. Move the C functions sg_set_{pinsel,iectrl} to debug-uart.c since they are not used anywhere else. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * | ARM: uniphier: remove unused init code for CONFIG_DEBUG_UARTMasahiro Yamada2019-06-294-44/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debug_uart_init() is called from spl_board_init(), which is only compiled for SPL. For U-boot proper, _debug_uart_init() is unreachable, so dropped by the dead code elimination. Now that 64-bit SoCs of this SoC family no longer support SPL, debug-uart-ld20.c is never compiled. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * | ARM: uniphier: include <linux/io.h> from dram_init.cMasahiro Yamada2019-06-291-0/+1
| | | | | | | | | | | | | | | | | | | | | This file calls readl(), so needs to include <linux/io.h>. Currently, it relies on someone else including it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * | ARM: uniphier: remove unused sg_set_iectrl_range()Masahiro Yamada2019-06-291-8/+0
| | | | | | | | | | | | Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * | ARM: uniphier: remove unused SC_DPLLOSCCTRLMasahiro Yamada2019-06-291-4/+0
| | | | | | | | | | | | Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * | ARM: uniphier: fix build error for CONFIG_DEBUG_LL=yMasahiro Yamada2019-06-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit e27d6c7d328c ("ARM: uniphier: simplify SoC ID get function") accidentally removed the macros needed to compile debug_ll.S Revive them. Fixes: e27d6c7d328c ("ARM: uniphier: simplify SoC ID get function") Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * | pinctrl: uniphier: Add SPI pin-mux settingsKunihiko Hayashi2019-06-299-0/+76
| | | | | | | | | | | | | | | | | | | | | Add pin-mux settings for SPI controller. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
* | | Merge tag 'efi-2019-07-rc5-4' of ↵Tom Rini2019-06-291-1/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for v2019.07-rc5 (4) The definition of an unimplemented function is corrected.
| * | efi_loader: correct signature of ConvertPointer()Heinrich Schuchardt2019-06-291-1/+2
|/ / | | | | | | | | | | | | ConvertPointer() must be EFIAPI. The first parameter should be of type efi_uint_t. Use the same parameter name as the UEFI specification. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>