]> git.baikalelectronics.ru Git - uboot.git/commit
efi: Add a media/block driver for EFI block devices
authorSimon Glass <sjg@chromium.org>
Sat, 4 Dec 2021 15:56:32 +0000 (08:56 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 9 Dec 2021 19:43:25 +0000 (11:43 -0800)
commite07bfa0755c44bae74f9e32fc3e839b67083baf0
tree6b0c87c85a818d8955ca2e199bdb52e219e578d0
parentffb750c1c69d21b9e6906ec2974a4ca6c6c976ef
efi: Add a media/block driver for EFI block devices

Add a block driver which handles read/write for EFI block devices. This
driver actually already exists ('efi_block') but is not really suitable
for use as a real U-Boot driver:

- The operations do not provide a udevice
- The code is designed for running as part of EFI loader, so uses
    EFI_PRINT() and EFI_CALL().
- The bind method probes the device, which is not permitted
- It uses 'EFI' as its parent device

The new driver is more 'normal', just requiring its platform data be set
up in advance.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
drivers/block/Kconfig
drivers/block/Makefile
drivers/block/efi_blk.c [new file with mode: 0644]
include/efi.h