summaryrefslogtreecommitdiffstats
path: root/drivers/efi
Commit message (Collapse)AuthorAgeFilesLines
* efi: cleanupsOleksij Rempel2019-02-181-1/+1
| | | | | | | make local functions static and remove unused code Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Remove trailing whitespaces and tabsAlexander Shiyan2019-01-211-1/+1
| | | | | | | Just a cleanup over barebox tree Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers: Introduce dev_set_name()Andrey Smirnov2018-10-181-1/+1
| | | | | | | | Introduce dev_set_name() in order to hide implementation details of setting device's name so it'd be easier to change it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: add bootsource detectionEnrico Jorns2018-02-221-0/+48
| | | | | | | | We check the supported protocol of the parent EFI device of 'efi_loaded_image' to see if we are booted from USB or not (HD) Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Kconfig: drop unused HAS_POWEROFFAntony Pavlov2018-01-111-1/+0
| | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* EFI: add poweroff supportJean-Christophe PLAGNIOL-VILLARD2017-10-271-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: add missing Kconfig selectsEnrico Jorns2017-10-161-0/+2
| | | | | | | | | | | | | | | | Building EFI code without block device and partition support enabled will fail with: | drivers/built-in.o: In function `efi_bio_probe': | (.text+0x125d): undefined reference to `blockdevice_register' | drivers/built-in.o: In function `efi_bio_probe': | (.text+0x126c): undefined reference to `parse_partition_table' | Makefile:766: recipe for target 'barebox' failed Thus always select BLOCK and PARTITION_DISK when enabling EFI_BOOTUP. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* param: make parameter functions more consistentSascha Hauer2017-04-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | This patch creates a consitent set of device parameter functions. With this we have: dev_add_param_<type><access> "type" is one of: int32, uint32, int64, uint64, string, mac, ipv4, enum, bitmask The improvement here is that we now can exactly specify the width of the int type parameters and also correctly distinguish between signed and unsigned variables which means that a variable no longer ends up with INT_MAX when it's assigned -1. "access" can be empty for regular read/write parameter, "_ro" for readonly parameters which get their value from a variable pointer in the background or "_fixed" for parameters which are set to a fixed value (without a pointer in the background). Some more exotic types are not (yet) implemented, like dev_add_param_ip_ro. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: only iterate over handles that provide the device path protocolMichael Olbrich2017-03-301-2/+4
| | | | | | | All other handled are skipped anyways. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: load the protocol expected by the driverMichael Olbrich2017-03-301-3/+4
| | | | | | | | | | The drivers are loaded if any guid provided by the device matches. So load the protocol for the matched guid and not for the first guid. Otherwise the driver may cast the protocol to the wrong type and proably crash. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: add veriable to report secure boot support and statusJean-Christophe PLAGNIOL-VILLARD2017-03-091-0/+33
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: add efi handle dump commandJean-Christophe PLAGNIOL-VILLARD2017-03-091-0/+169
| | | | | | | so we can inspect easly what is supported by the EFI implementation we running on Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: add minor and major to the bus and display it at bootJean-Christophe PLAGNIOL-VILLARD2017-03-091-1/+10
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: bus: add firmware vendor and resision and tables infoJean-Christophe PLAGNIOL-VILLARD2017-03-091-0/+23
| | | | | | | This alllow us to known where we boot from Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: move bus driver to driver/efiJean-Christophe PLAGNIOL-VILLARD2017-02-243-0/+355
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>